Serial Sniffer & Send XON - Raspberry Pi Forums


hi,

have issue on device , first step in linux world (and raspberry pi).

situation :
have 2 devices connected through rs232.
1 device regularly stop communicate (no more data on tx).
after analysis, xon solution relaunch communication.
suppose xoff has been send , must prove it.

need 2 thinks :
1) use sniffer on serial port (rx & tx) , create log file.
2) listen on tx , if there no more transmission send xon , restart sniffer create new file.

1) sniffer solution :
sniffer, see http://jpnevulator.snarl.nl/.
has possibility log bin , ascii.

2) listening & transmit xon :
think little program python listen tx.
how such listening easily?
program listen on tx , if there no more data, :
1) stop sniffer : suppose not complicated do.
2) commute relay (to disconnect rx pin te other device , connect rpi)
3) rpi send xon
4) restart sniffer.

suppose, absolutely need use 2 serial ports :
- 1 spy rx+tx sniffer : http://www.lammertbies.nl/comm/cable/rs ... nitor.html
- , listen tx on second serial port.

way or better solution?
can give advices , guide me in python listener?

thank

serial data transfer stops between 2 devices maybe because xoff has been sent.

1 of devices rapberry pi?

serial data format , baud rate being used?


raspberrypi



Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62