NP2kai
NP2kai copied to clipboard
Connect serial interface to existing TCP server with host and port
Is it possible to connect serial interface to a existing TCP server apart from TTY devices, using SDL Net? I've tried socat before but never succeed.
Thanks to your nice idea. It's interesting.😁
NP2kai's serial I/O connect to devicefile provided by socat? (Or NP2kai's serial I/O connect to SDL_net?) I'll make time for research!🔍
Maybe it's better to use SDL_net, socat seems to have more limitations.
I've tried SDL_net with some testing code in my forked reporsitory, but NP2's serial seems to works differently from SDL_net and I can't read anything from the TCP server yet. Also I cannot read the newly added configuration items from config file even if I have added all the things needed, and I had to hardcode the configurations for testing.
I haven't figure out the meaning of the return codes for serialread
, serialwrite
, serialgetstat
.
This issue, It must pseudo HW(SDL_NET) NIC on 98x1 system. Then It needs a bit technical.