longshine / ser2nets

Serial port to network proxy enhanced
GNU General Public License v2.0
44 stars 19 forks source link

no receive on tcp port #4

Open fwt-dot-fr opened 8 years ago

fwt-dot-fr commented 8 years ago

I receive nothing from the tcp port, device to tcp state: unconnected is always unconnected.

with the same configuration /etc/ser2net.conf 6000:raw:600:/dev/ttyUSB0:115200 8DATABITS NONE 1STOPBIT -XONXOFF -RTSCTS

with ser2nets: -> showport TCP Port 6000 enable state: raw timeout: 600 connected to (or last connection): 600:, device: /dev/ttyUSB0 device config: 115200 1STOPBIT 8DATABITS NONE device controls: RTSHI DTRHI tcp to device state: waiting input device to tcp state: unconnected bytes read from TCP: 10 bytes written to TCP: 0 bytes read from device: 290 bytes written to device: 10

with ser2net -> showport TCP Port 6000 enable state: raw timeout: 600 connected to (or last connection): ::ffff:192.168.1.6,39162 device: /dev/ttyUSB0 device config: 115200 1STOPBIT 8DATABITS NONE device controls: RTSHI DTRHI tcp to device state: waiting input device to tcp state: waiting input bytes read from TCP: 0 bytes written to TCP: 0 bytes read from device: 0 bytes written to device: 0

Idea ?

Regards.

markdegrootnl commented 8 years ago

+1

BTOdell commented 7 years ago

+1

runahue commented 6 years ago

Same here with raspberry pi and 4.9 kernel. Tested with other PC Linux and same result.

sigio commented 6 years ago

Same here.... weird thing is... ser2nets does receive the data.... if I connect on the monitoring port and issue a 'monitor term ' command there, I do get to see the terminal output, just not on the normally connected clients.

maquefel commented 6 years ago

+1 use older version, don't remeber which exactly.

sigio commented 6 years ago

All later versions seem to be the same for my use-case... tried all seemingly relevant commits

commit 52ae6ec6e5c004f5fdbbd8304dd7cb18f76353b4 --> First version that allows multiple connections, but doesn't print serial output again

commit 94bcba0359cd90dbd75ab408850cac904a97fa79 --> last version that prints serial-output to the network, but doesn't alllow multiple connections

BTOdell commented 6 years ago

This project is pretty much obsolete now that the original ser2net program has been updated to support multiple connections.

sigio commented 6 years ago

Thanks.... seems the upstream version does indeed do this... with the 'max-connections=X' option... Doesn't work for the version in debian currently... but works with the git-version.