简体   繁体   中英

Android serial port over WiFi

I'm trying to implement a car controlled by HTC Desize Z. I have a car which is being controlled by serial port, the data flows into serial port through this .

But how do I connect to the board through WiFi? I know the RxTx library, it's even been ported to Android, but I have absolutely no clue how to use it, or where to start. Any help would be appreciated.

I can't tell you if this would work for your specific device but normally these serial over WiFi adapters take the serial data in and then expect you to connect or listen for a TCP/IP socket connection from the WiFi device and the serial data is tunneled over the socket.

You should read the documentation for that device and see if that is true for this device. Usually the WiFi board has a telnet server that you can connect to, to configure the device, and then as part of the configuration you specify an IP address and port for the device to try to connect to when it wants to send serial data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM