Home > Back-end >  Delphi how to bind different serial device
Delphi how to bind different serial device

Time:11-17

Dear friends, I met's question is like this, I need to open the GPS module and multiple wireless communication module, the two types of devices to initialize the baud rate is different, and receiving data processing approach, is my idea is to identify the different hardware, and then bind to the corresponding serial number, how to implement this function? I only find examples of ubuntu online, Delphi I still can't figure out, please discuss

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:

refer to 6th floor aliensoft2007 response:
others used Delphi? !!!!!!!!!!

The student you will have no spiritual, my backhand, you will eat a wave of big bird, ah, it's very comfortable

CodePudding user response:

refer to 6th floor aliensoft2007 response:
others used Delphi? !!!!!!!!!!

I'm sorry, we are artificial intelligence, is going to replace the human, so, from the perspective of the simpler outdated Delphi first,
  • Related