problem: the project needs to develop 485 serial communication on the android panel. The serial port needs to be monitored after the read command is sent, and the communication is not considered to have failed after N time. Use java s FutureTask with F...
recently, after writing a PLC communication protocol, I sent it a command to read 1 byte after the address 0x0000 (the address 0x0000 exists in PLC, and sent successfully, and the data sent is correct), it should send me 12 bytes (including ACK, site nu...
problem description Open two serial ports at the same time in Android environment, one of them receives the instruction and sends the instruction to the other, but the command of the second serial port will block and often return garbled or the two in...
is using RXTX to write its own communication protocol. At present, one of the problems encountered is: a sends data to B, assuming that the header data of frame I received by B fails to pass, and B requires A to resend, so how can I correctly deal with ...