AZO234 / NP2kai

Neko Project II kai
http://domisan.sakura.ne.jp/article/np2kai/np2kai.html
MIT License
246 stars 61 forks source link

Connect serial interface to existing TCP server with host and port #100

Open frank-deng opened 4 years ago

frank-deng commented 4 years ago

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.

AZO234 commented 4 years ago

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

frank-deng commented 4 years ago

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

frank-deng commented 4 years ago

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 commented 4 years ago

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

AZO234 commented 3 years ago

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