开发者

How to program RS232 over Ethernet?

开发者 https://www.devze.com 2023-02-24 03:57 出处:网络
An existng system, with a server and terminals communicating over RS232. Now the terminals are to be replaced with Android开发者_StackOverflow中文版 slate PCs and minimal changes should be made to th

An existng system, with a server and terminals communicating over RS232.

Now the terminals are to be replaced with Android开发者_StackOverflow中文版 slate PCs and minimal changes should be made to the server.

I presume they will use RS232 to Ethernet convertors at the server, but how will the traffic look to the Android? Which protocol? How to I read and write an Ascii string?


This depends entirely on the hardware you buy, but generally this is done over Telnet or similar.

While Telnet does have a basic protocol that sometimes gets followed for terminals, generally it is as connect on a specific port (such as 23) and send and receive data. That data is then relayed to RS232.

0

精彩评论

暂无评论...
验证码 换一张
取 消