I understand that it is not easy to share a serial com port for RX/TX transmission to several hosts due to collision.
But, for example in home automation projects, we have sometime devices that just send data to serial port. My request would be the possibility to grab this data onto several computers.
For example I receive (I do not want to transmit anything, just receive) information on /dev/ttyS0 but I want to get this informations on hostA and hostB
Ideally hostA connect through TCP port A, and hostB connect through TCP port B.
I do not see anything that can prevent this kind of function, but may be I am wrong.
What do specialist think of this possibility ?
I can change the code is you point me to the right direction without the need to "learn" all ser2net code.
Do you think it is possible ?
ser2net will not currently do this. It will reject any connection on a port that is already connected.
You could add this function fairly easily by allowing multiple connections to the same port. You will need to add tracking for each connection. Telnet protocol will add some difficulty, if you want to support that, but it shouldn't be too hard.
Can you tell me more how to do that?
Log in to post a comment.