Winform question and the next crew to consider when doing Bluetooth communication

Winform question and the next crew to consider when doing Bluetooth communication

1. To achieve automatic Bluetooth connection, you need to automatically connect to the serial port as the same idea is before the first scan N COM ports, through try, try to open the blockage and timer with COM, hair handshake, then the port if properly positioned reply success!

2. There is a pit Bluetooth module, the module does not know is also a question of what is the mechanism, HC05 module and buy a computer terminal for the first time after establishing a good connection, the computer will automatically assign a Bluetooth module for two COM ports, one can with, another

Can not be used, and over period of time after unloading will be re-installed automatically, almost into a fine!

3. If more than a COM does not matter, the key to this extra mouth also affect a port scan, if the first boot winform scanned this useless mouth, was able to open successfully, and then try to send the opening handshake signal, this time winform interface directly stuck. . . . . Forced to switch off and then again according to the above steps, found the open mouth has failed. . . . nausea.

4. In fact, every time you turn the port scan, the situation appears stuck, stuck in the program serial port to send data get out. Solution: The time when the serial transmission data overflow winform a timeout value must be set so that if the Send Timeout

Send function will pop up, so you do not stuck up, get!

Guess you like

Origin www.cnblogs.com/pacexdong/p/11442244.html