NP2kai icon indicating copy to clipboard operation
NP2kai copied to clipboard

Connect serial interface to existing TCP server with host and port

Open frank-deng opened this issue 4 years ago • 5 comments

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.

frank-deng avatar Jun 09 '20 00:06 frank-deng

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!🔍

AZO234 avatar Jun 09 '20 18:06 AZO234

Maybe it's better to use SDL_net, socat seems to have more limitations.

frank-deng avatar Jun 09 '20 23:06 frank-deng

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.

frank-deng avatar Jun 10 '20 16:06 frank-deng

I haven't figure out the meaning of the return codes for serialread, serialwrite, serialgetstat.

frank-deng avatar Jun 11 '20 00:06 frank-deng

This issue, It must pseudo HW(SDL_NET) NIC on 98x1 system. Then It needs a bit technical.

AZO234 avatar Jan 14 '21 02:01 AZO234