Re: termios ifnterface, raw?
>
> Hi,
> I'm using the program below to grab data from the serial port. The data is in a predefined language and does not follow the typical character set, but sending commands.
>
> The hex values I've received is in no way close to that being send and I've tried just about every configuration I can think of. The raw data 0x02 for instance signifies the start of a message and that's no where to be found. I'm using a non return to zero format: 1 start bit, 8 data bits, no parity, and one stop.
> Can any one offer any insight into this? What am I missing?
> Thanks a lot.
>
> listing:
> main()
...
I haven't used FASYNC, but I have an example using select at
http://aspodata.se/aspo/serial.tgz. I have used the spy.c with great
effect in production.
Regards,
/Karl
-----------------------------------------------------------------------
Karl Hammar Aspö Data karl@aspodata.se
Lilla Aspö 2340 Networks
S-742 94 Östhammar +46 173 140 57 Computers
Sweden +46 70 511 97 84 Consulting
-----------------------------------------------------------------------
Reply to: