I'm trying to connect a wind speed monitor up to my Linux box via the
serial port.
The output from the unit is 4800 8N1, no hardware control and can not be
changed.
I can see the output on my Psion using a terminal emulator so I know the
data stream is good.
Using minicom I can't see anything. I have tried this on a Dell 486/66 and
a newer Claymore Pentium 200.
Typing cat /dev/ttyS0 I can see data coming
in, but it is garbelled.
Setting up minicom to 9600 I can talk to the Psion terminal set to 9600.
If I set minicom to 19200 I can talk to the Psion set to 19200
If I set minicom to 4800 and I can't talk to the Psion set to 4800,
although I can talk to the Psion set to 9600.
I get the same results talking from the 486 to Pentium with minicom, all
is well above 9600, but not at 4800.
Then I turned my attentions to setserial
Outputs shown are from the Pentium with mandrake 6.1, the RH6 machine
gives similar results.
[root@obs:/root]$ setserial -a /dev/ttyS0
/dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000, closing_wait2: infinte
Flags: spd_normal skip_test
so ...
[root@obs:/root]$ setserial /dev/ttyS0 baud_base 9600
[root@obs:/root]$ setserial -a /dev/ttyS0
/dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
Baud_base: 9600, close_delay: 50, divisor: 0
closing_wait: 3000, closing_wait2: infinte
Flags: spd_normal skip_test
makes sense ... so ....
[root@obs:/root]$ setserial /dev/ttyS0 baud_base 4800
Cannot set serial info: Invalid argument
oh!
So, the question is, how can I set the baud rate to 4800 and get to my
wind speed data?
I've got the same problem on the 486 under RH6, and mandrake 6.1 on the
Pentium.
Any ideas?
Dan.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs