You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently trying to use ser2tcp to forward a COM port on Windows to WSL2 over TCP, but the connection crashes with the following error as soon as I connect the client:
ser2tcp.exe -c .\ser2tcp_config.json
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\sigur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts\ser2tcp.exe\__main__.py", line 7, in <module>
File "C:\Users\sigur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\ser2tcp\main.py", line 53, in main
servers_manager.process()
File "C:\Users\sigur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\ser2tcp\server_manager.py", line 20, in process
read_sockets = _select.select(sockets, [], [], .1)[0]
io.UnsupportedOperation: fileno
socat returns with no error message and no error code. I know nothing about socat, just copied the command from this stackoverflow post, so I might very well be using it wrong. Does anyone know what I might be doing wrong, or if there could be a bug in ser2tcp?
The text was updated successfully, but these errors were encountered:
sigurdo
changed the title
Crashes as soon as connection is set upio.UnsupportedOperation: filenoMay 24, 2023
sigurdo
changed the title
io.UnsupportedOperation: fileno
Crashes on client connection: io.UnsupportedOperation: filenoMay 24, 2023
The windows system does not support ‘select’, I am not sure how to handle it. You can try starting a separate thread to monitor and read data from the serial port. This may solve the problem, I guess
Python version: 3.10.11
I am currently trying to use
ser2tcp
to forward a COM port on Windows to WSL2 over TCP, but the connection crashes with the following error as soon as I connect the client:Here is my config:
172.29.176.1
is the IP address of Windows on the Windows-WSL2 ethernet adapter.On the WSL side I use
socat
to forward TCP to a virtual COM port with the following command:socat
returns with no error message and no error code. I know nothing aboutsocat
, just copied the command from this stackoverflow post, so I might very well be using it wrong. Does anyone know what I might be doing wrong, or if there could be a bug inser2tcp
?The text was updated successfully, but these errors were encountered: