ts-7000
[Top] [All Lists]

Re: [ts-7000] Need help with t37300 serial port project

To:
Subject: Re: [ts-7000] Need help with t37300 serial port project
From: "Michael Schmidt" <>
Date: Tue, 13 Nov 2007 14:00:14 -0700 (MST)
On Tue, November 13, 2007 9:01 am, burnhamcg wrote:
> I'm looking to find someone to help me with C++ source code for a
> ts7300 project involving RS-232 ports and wireless UDP. I'm learning
> C++ but I need a jump start on this one. I expect this will involve
> some hours or days so there will be compensation.
>
> Basically, we want to open ts7300 COM ports 2 - 7 (6 ports) at
> (various) hard-coded baud rates and read short input strings with
> known start and stop characters. We know everything about these
> strings except the comma-delimited numerical data in the middle.
> These are from RS-232 instruments such as GPS, magnetometers, etc. We
> also want to write some short strings out to the ports occasionally.
> I get that in C++ you treat the port as a file, but I'm unclear how
> you set up the "new-character-received" interrupt, control buffers,
> etc. I can't find example code that uses the ts7300 device drivers.
>

Is there are reason why you need to use C++ as opposed to C?  All this
sounds reasonably simple to implement in C.  Mostly likely in C++ you
would be writing wrappers around the select() call, since serial port
files don't behave quite the same as a regular file in some instances -
for example, you might issue a read() call and not get back as many bytes
as you expected.  Since it is possible for a serial port to time out or
lose data, you also would have to deal with mal-formed or missing data,
with more attention then you would reading a regular file.

Michael




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU