[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Data from a serial port



On 09/27/2014 08:26 PM, Ethan Rosenberg, PhD wrote:
I have an Avery Berkel POS  [Point Of Sale] scale which I wish to
integrate into a POS system. The output is sent to a RS232 port. I do
not know how to extract the data.
Here is what I have about the RS232 port:
ethan@meow:~$ dmesg | grep tty
[    0.000000] console [tty0] enabled
[    0.383854] 00:07: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200)
is a 16550A
[    0.404352] 0000:00:03.3: ttyS1 at I/O 0x1c90 (irq = 17, base_baud =
115200) is a 16550A
root@meow:/home/ethan#  setserial -g /dev/ttyS[0123]
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: 16550A, Port: 0x1c90, IRQ: 17
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
More info from the manual --
9600 baud, 7 data bits, even parity, 1 stop bit
Transmits weight and scale status whenever ASCII 'W'<CR> is sent by the
POS terminal.

What is your point of sale software?


David


Reply to: