CodePudding user response:
Don't understand what mean,,,You this GPS module and wireless communication module is refers to the hardware module and software module?
If it is a hardware module, you want to identify, must first by assigning a serial port connection communication, to identify, there is no longer binding serial number,
If is a software module, you can set a mark, and then specify the available serial number,
As to how to detect the serial port on the computer, the DELPHI code, everywhere,
A serial port available is not available, a serial port is not being used and the successful communication and the equipment is available,
CodePudding user response:
to do with multithreading, each thread class definition different serial port devices,Is down again, for each class defines detection function, communication function and so on,
CodePudding user response:
Can use virtual serial port..CodePudding user response:
Use a serial port communication equipment, need to add a serial port, realize the control,CodePudding user response:
Does your device to A computer connection or dynamic, A device for A while connected to A serial port 1, have connected to A serial port 4? A device of baud rate has been changed?If are fixed, the initial set up a serial port number, baud rate, response just receive events,
CodePudding user response:
Others used the Delphi? !!!!!!!!!!CodePudding user response: