--- In "susheel4uall" <> wrote:
>
> Hello everyone, I have used the below serial program to display data
> from GPS receiver(SIM508 EVB) on host pc with Redhat Linux9.0 It was
> displaying the gps data correctly onto the screen(I havnt used any
> minicom). we used /dev/ttyS0 serial port,with 9600bps baudrate,no
> parity,no hardware control options.
>
> But when I used the same serial port pgm on TS-7300, it was not
> being displayed on the terminal.There were no errors when I compiled
> the same pgm using g++ in TS-7300. I even changed the serial port to
> /dev/ttyAM1 and /dev/ttyAM0, but still it is not working.
>
> Can anyone of you, plz help me regarding this issue, its quite
> urgent...have to submit the project to our officials...
>
> regards,
> Susheel
>
My suggestions would be
1) Try writing the output to a file rather than the terminal to start
with. That way you can eliminate any possibilty of conflicts on serial
ports.
2) Put some debugging statements in your code that handles the serial
port, to see if it is even being called. It's only a guess, but maybe
the serial ports don't support the way you are getting notifications
with signals? You may have to change the structure of your program to
use 'select' or similar.
3) Just a side point, but I can't see that your serial port gets reset
properly on exit. You put it into a busy wait loop (which might not be
the best thing anyway, depending on your application) and the only
exit is to CTRL+C, but this exits the whole program not just that
loop. The two statements following the while(1){} loop don't get executed.
Cheers
Phil
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/
|