Dual-notebook with Bluetooth serial communication

Dual-notebook with Bluetooth serial communication

Today's laptops have their own Bluetooth module, and ordinary desktop PCs can also extend the Bluetooth function through the USB Bluetooth module. Therefore, for computers with Bluetooth modules, dual-computer communication can be performed by virtualizing Bluetooth as a serial port. For Electron serial port applications, Bluetooth serial port is also an optional method.

Window system's support for Bluetooth protocol version

For the interconnection with the Bluetooth module, if the supported protocol is not compatible, the peer device cannot be found, and the Windows system supports different Bluetooth versions.

The following is the support for Bluetooth in the previous version of Win10:
Insert picture description here
here is the support for the Bluetooth version of Win10: In
Insert picture description here
summary, Win7 does not support BLE Bluetooth, Win10 supports BLE Bluetooth. The virtual serial port implemented by the Windows system by setting the COM port corresponds to the SPP protocol of Bluetooth 2.x. Therefore, when the PC communicates with a single external Bluetooth module through a serial port, the external Bluetooth module needs to support the SPP protocol (generally dual-mode modules support). If the PC wants to perform BLE serial communication with a single external Bluetooth module, you need to design a separate application (similar to the BLE Android serial port assistant on a mobile phone) for "translation", and you cannot directly use common PC serial tools.

Window system dual Bluetooth serial communication mode

The basic way is to configure one of the computers as a slave (incoming port), and the other computer as a master (outgoing port), where the incoming port and outgoing port actually express the Bluetooth master and slave The concept of the machine, once the connection is established, the serial port data can be sent and received on each port, that is, full duplex.

Window system dual Bluetooth serial communication configuration process

  1. First, configure the Bluetooth virtual serial port of one of the computers to realize the incoming port, find the "Open Settings" of the Bluetooth icon and
    Insert picture description here
    set "Allow Discovery" to
    Insert picture description here
    add the COM port and select "Incoming" to
    Insert picture description here
    get the virtual input port
    Insert picture description here
    confirmation and the configuration is complete. Can be seen on the device manager
    Insert picture description here

  2. Configure another computer as a Bluetooth virtual serial port and the type of outgoing port. First open the configuration interface.

Insert picture description here
To add a virtual serial port,
Insert picture description here
select "Outgoing" and click Browse.
Insert picture description here
Select the opposite computer.
Insert picture description here
After confirming, a failure alarm appears.
Insert picture description here
This is because the opposite computer is configured with a virtual incoming serial port, but it is not opened by the serial port program and is under monitoring. Run a serial port tool on the opposite computer and open the serial port.
Insert picture description here
Then restart the current computer Bluetooth outgoing port settings. After success, it will display the "virtual Bluetooth serial port number of the peer computer"
Insert picture description here
and the virtual Bluetooth serial port outgoing port number of this machine. Check
Insert picture description here
it from the device manager. The configuration of the computer is complete.

Window system dual Bluetooth serial communication test

The "incoming" end PC has already run the serial port tool software, so a serial port tool software is also running on the "outgoing" end PC.
Insert picture description here
A PC sends AA 55 to the other party, and the other computer sends 55 AA to the other party, both of which can be received correctly.
Insert picture description here
Insert picture description here
-End-

Guess you like

Origin blog.csdn.net/hwytree/article/details/103507953