-1
If I use an RS232 to Ethernet converter like this and connect it to the lan network by transmitting data from a printer or any other serial device, is it possible that I can read the serial information from another PC on the lan network using pyserial only? trying to communicate using IP: port or I need drivers on the client PC to create a virtual port that converts TCP / IP to RS232, regardless of whether I work with linux, windows or mac I hope you understand me, Thank you.
The driver installed on the host PC creates a virtual serial/COM port. You would access the remote RS-232 port just as if it were actually a local port. The installed driver is part of the OS, and should hide from application programs all details of the actual Ethernet transfer. – sawdust – 2019-07-26T01:59:51.323
search google "Python read serial (RS-232) data over TCP/IP". I don't understand why he connect successfully to ethernet converter using socket connection and this way can read the original serial message :/ – asterix – 2019-07-26T13:03:15.567
You are doing a poor job of (a) expressing what the actual issue is, and (b) comprehending the explanations available on the web and what I've written. You seem intent on ignoring the straightforward solution, and prefer to do the complex alternative. BTW if there is a web page that is relevant, then post the link to it. I'm not going to search for it. – sawdust – 2019-07-26T20:53:13.043
(a) I do not want to depend on drivers to create virtual ports, but through ip: port connection (b) I understand the web and your answer but it is not a solution for me. I think the solution is from pyserial without drivers "serial_for_url()" (c) BTW thx – asterix – 2019-07-28T00:16:17.147
You are probably underestimating the functionality of the driver. Besides the actual transfer of data, the driver also performs device configuration and status monitoring. If the device manufacturer does not document this interface, then you could have a lot of reverse engineering to perform in order to get this to actually work reliably. – sawdust – 2019-07-30T22:26:05.650
Hi. I tested finally the setup. It is working fine transmitting serial rs232 data through LAN/WLAN. I can recover the message using pyserial without use virtual com from the RS232 to Ethernet server conversor. Only need this: serial_for_url("socket://<host>:<port>/?logging=debug") – asterix – 2019-07-31T15:45:52.890