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/
|