CN112423280A - Wireless communication method, system and medium based on Bluetooth private protocol - Google Patents

Wireless communication method, system and medium based on Bluetooth private protocol Download PDF

Info

Publication number
CN112423280A
CN112423280A CN202011163642.5A CN202011163642A CN112423280A CN 112423280 A CN112423280 A CN 112423280A CN 202011163642 A CN202011163642 A CN 202011163642A CN 112423280 A CN112423280 A CN 112423280A
Authority
CN
China
Prior art keywords
bluetooth
protocol
bluetooth device
connection
private protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011163642.5A
Other languages
Chinese (zh)
Inventor
骆大典
孙立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Shadow Creator Information Technology Co Ltd
Original Assignee
Shanghai Shadow Creator Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Shadow Creator Information Technology Co Ltd filed Critical Shanghai Shadow Creator Information Technology Co Ltd
Priority to CN202011163642.5A priority Critical patent/CN112423280A/en
Publication of CN112423280A publication Critical patent/CN112423280A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Abstract

The invention provides a wireless communication method, a system and a medium based on a Bluetooth private protocol, comprising the following steps: an initial connection step: when the first Bluetooth device and the second Bluetooth device are paired for the first time, establishing initial connection through classical Bluetooth protocol pairing; protocol detection: the first Bluetooth device detects whether the second Bluetooth device supports a Bluetooth private protocol preset in the first Bluetooth device; adjusting connection: when detecting that the connection state of a classic Bluetooth protocol does not meet the preset requirement and a second Bluetooth device supports the Bluetooth private protocol, a first Bluetooth device pairs with the second Bluetooth device again through the Bluetooth private protocol to establish a new connection. Through the Bluetooth equipment connected by the private protocol, the problem of high communication delay in the use process is solved, the real-time performance of communication between the equipment is improved, the experience effect of a user is improved, and the interference of a classic Bluetooth frequency band in the use process is avoided.

Description

Wireless communication method, system and medium based on Bluetooth private protocol
Technical Field
The present invention relates to the field of bluetooth communication technologies, and in particular, to a wireless communication method, system, and medium based on a bluetooth private protocol.
Background
Bluetooth is a special short-range wireless technology connection that establishes a communication environment for fixed and mobile devices based on low-cost short-range wireless connections, and is widely used in the fields of telecommunications, computers, networks, consumer electronics, and the like.
As the variety of electronic devices with bluetooth function increases, the defects of bluetooth also begin to appear: when a plurality of pairs of bluetooth devices communicate simultaneously in a similar area, or when a pair of bluetooth devices communicate with other communication modes (such as WiFi) in similar frequency bands, the pair of bluetooth devices may affect each other, which may cause problems such as rapid decrease of data throughput, difficulty in pairing devices, intermittent interruption of communication, and the like, and may seriously affect normal use of users.
Disclosure of Invention
In view of the shortcomings in the prior art, it is an object of the present invention to provide a wireless communication method, system and medium based on bluetooth private protocol.
The invention provides a wireless communication method based on a Bluetooth private protocol, which comprises the following steps:
an initial connection step: when the first Bluetooth device and the second Bluetooth device are paired for the first time, establishing initial connection through classical Bluetooth protocol pairing;
protocol detection: the first Bluetooth device detects whether the second Bluetooth device supports a Bluetooth private protocol preset in the first Bluetooth device;
adjusting connection: when detecting that the connection state of a classic Bluetooth protocol does not meet the preset requirement and a second Bluetooth device supports the Bluetooth private protocol, a first Bluetooth device pairs with the second Bluetooth device again through the Bluetooth private protocol to establish a new connection.
Preferably, after establishing the connection through the bluetooth private protocol, the next connection of the first bluetooth device and the second bluetooth device is directly connected using the bluetooth private protocol.
Preferably, the pairing information of the classic bluetooth protocol and the pairing information of the bluetooth private protocol are respectively stored in the memories of the first bluetooth device and the second bluetooth device, and the first bluetooth device and the second bluetooth device judge whether to pair for the first time and establish connection according to the pairing information stored in the memories.
Preferably, the step of adjusting the connection further comprises:
the first Bluetooth device temporarily stores the connection state of the classic Bluetooth protocol and the connection state of the Bluetooth private protocol and compares the connection states, and selects the protocol with the better connection state to establish the final connection.
Preferably, in case that the first bluetooth device is simultaneously connected to a plurality of second bluetooth devices, part of the second bluetooth devices are connected through a classic bluetooth protocol and the remaining part of the second bluetooth devices are connected through a bluetooth private protocol.
The invention provides a wireless communication system based on a Bluetooth private protocol, which comprises:
an initial connection module: when the first Bluetooth device and the second Bluetooth device are paired for the first time, establishing initial connection through classical Bluetooth protocol pairing;
the protocol detection module: the first Bluetooth device detects whether the second Bluetooth device supports a Bluetooth private protocol preset in the first Bluetooth device;
adjusting the connecting module: when detecting that the connection state of a classic Bluetooth protocol does not meet the preset requirement and a second Bluetooth device supports the Bluetooth private protocol, a first Bluetooth device pairs with the second Bluetooth device again through the Bluetooth private protocol to establish a new connection.
Preferably, after establishing the connection through the bluetooth private protocol, the next connection of the first bluetooth device and the second bluetooth device is directly connected using the bluetooth private protocol.
Preferably, the pairing information of the classic bluetooth protocol and the pairing information of the bluetooth private protocol are respectively stored in the memories of the first bluetooth device and the second bluetooth device, and the first bluetooth device and the second bluetooth device judge whether to pair for the first time and establish connection according to the pairing information stored in the memories.
Preferably, the step of adjusting the connection further comprises:
the first Bluetooth device temporarily stores the connection state of the classic Bluetooth protocol and the connection state of the Bluetooth private protocol and compares the connection states, and selects the protocol with the better connection state to establish the final connection.
Preferably, in case that the first bluetooth device is simultaneously connected to a plurality of second bluetooth devices, part of the second bluetooth devices are connected through a classic bluetooth protocol and the remaining part of the second bluetooth devices are connected through a bluetooth private protocol.
According to the present invention, a computer-readable storage medium is provided, in which a computer program is stored, which, when being executed by a processor, carries out the above-mentioned method steps.
Compared with the prior art, the invention has the following beneficial effects:
1. the Bluetooth equipment connected by the private protocol solves the problem of high communication delay in the use process, increases the real-time performance of communication between the equipment and improves the experience effect of users.
2. The private protocol is adopted for communication among the devices, so that interference of a classic Bluetooth frequency band in the using process is avoided, and the safety of the devices in the adaptation process is ensured.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
FIG. 1 is a flow chart of the present invention.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that it would be obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit of the invention. All falling within the scope of the present invention.
As shown in fig. 1, the present invention provides a wireless communication method based on bluetooth private protocol, including:
an initial connection step: the first bluetooth device and the second bluetooth device establish an initial connection through classical bluetooth protocol pairing when initially paired.
Protocol detection: the first Bluetooth device detects whether the second Bluetooth device supports a Bluetooth private protocol preset in the first Bluetooth device.
Adjusting connection: and under the condition that the first Bluetooth device detects that the connection state of the classic Bluetooth protocol does not meet the preset requirement and the second Bluetooth device supports the Bluetooth private protocol, the first Bluetooth device is paired with the second Bluetooth device again through the Bluetooth private protocol to establish new connection.
In the invention, the classic Bluetooth protocol belongs to the existing Bluetooth protocol, and the existing Bluetooth protocol can be directly used. The bluetooth private protocol is a protocol which can be improved by a device manufacturer on the basis of the classic bluetooth protocol, and only needs to ensure that the working frequency bands of the device manufacturer and the device manufacturer do not conflict.
Whether the pairing is established through a classic Bluetooth protocol or the pairing connection is established through a private protocol, pairing information is respectively stored in memories of the first Bluetooth device and the second Bluetooth device, and the first Bluetooth device and the second Bluetooth device judge whether to pair for the first time and establish connection according to the pairing information stored in the memories.
After the connection is established through the Bluetooth private protocol, the pairing information can be found in the memory through the next connection of the first Bluetooth device and the second Bluetooth device, and the Bluetooth private protocol is directly and preferentially used for connection.
In other usage scenarios, the adjusting the connection step further comprises:
the first Bluetooth device temporarily stores the connection state of the classic Bluetooth protocol and the connection state of the Bluetooth private protocol and compares the connection states, and selects the protocol with the better connection state to establish the final connection.
Under the condition that the first Bluetooth device is connected with a plurality of second Bluetooth devices at the same time, the second Bluetooth devices of the part are connected through the classic Bluetooth protocol, and the second Bluetooth devices of the rest part are connected through the Bluetooth private protocol, so that the situation that the Bluetooth private protocol is adopted completely or the classic Bluetooth protocol is adopted completely is avoided.
With products such as VR, AR in order, all will be equipped with intelligent glasses and handle usually, because the requirement of its use scene, intelligent glasses and handle all need to adopt the bluetooth to be connected with the host computer, the mutual interference between two bluetooth communication connection can appear this moment.
The method comprises the steps of firstly starting the host, the handle and the glasses, and then identifying the host, the handle and the glasses by software to pair through a classic Bluetooth protocol. After the handle is connected with the host and the glasses are connected with the host in a matching way, as long as a communication problem occurs, one of the handle and the host can be changed into a Bluetooth private protocol through the Bluetooth private protocol communication method, so that mutual interference is avoided, the real-time performance of communication is improved, and the precision of handle posture capture is improved.
The invention also provides a wireless communication system based on the Bluetooth private protocol, which comprises:
an initial connection module: the first bluetooth device and the second bluetooth device establish an initial connection through classical bluetooth protocol pairing when initially paired.
The protocol detection module: the first Bluetooth device detects whether the second Bluetooth device supports a Bluetooth private protocol preset in the first Bluetooth device.
Adjusting the connecting module: and under the condition that the first Bluetooth device detects that the connection state of the classic Bluetooth protocol does not meet the preset requirement and the second Bluetooth device supports the Bluetooth private protocol, the first Bluetooth device is paired with the second Bluetooth device again through the Bluetooth private protocol to establish new connection.
The invention also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method as described above.
Those skilled in the art will appreciate that, in addition to implementing the system and its various devices, modules, units provided by the present invention as pure computer readable program code, the system and its various devices, modules, units provided by the present invention can be fully implemented by logically programming method steps in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Therefore, the system and various devices, modules and units thereof provided by the invention can be regarded as a hardware component, and the devices, modules and units included in the system for realizing various functions can also be regarded as structures in the hardware component; means, modules, units for performing the various functions may also be regarded as structures within both software modules and hardware components for performing the method.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.

Claims (10)

1. A method of wireless communication based on the bluetooth private protocol, comprising:
an initial connection step: when the first Bluetooth device and the second Bluetooth device are paired for the first time, establishing initial connection through classical Bluetooth protocol pairing;
protocol detection: the first Bluetooth device detects whether the second Bluetooth device supports a Bluetooth private protocol preset in the first Bluetooth device;
adjusting connection: when detecting that the connection state of a classic Bluetooth protocol does not meet the preset requirement and a second Bluetooth device supports the Bluetooth private protocol, a first Bluetooth device pairs with the second Bluetooth device again through the Bluetooth private protocol to establish a new connection.
2. The bluetooth private protocol-based wireless communication method according to claim 1, wherein, after the connection is established by the bluetooth private protocol, a next connection of the first bluetooth device and the second bluetooth device is directly connected using the bluetooth private protocol.
3. The bluetooth private protocol-based wireless communication method according to claim 1, wherein pairing information according to a classic bluetooth protocol and pairing information according to a bluetooth private protocol are respectively stored in memories of the first bluetooth device and the second bluetooth device, and the first bluetooth device and the second bluetooth device determine whether to initially pair and establish connection according to the pairing information stored in the memories.
4. The bluetooth private protocol-based wireless communication method according to claim 1, wherein the adjusting connection step further comprises:
the first Bluetooth device temporarily stores the connection state of the classic Bluetooth protocol and the connection state of the Bluetooth private protocol and compares the connection states, and selects the protocol with the better connection state to establish the final connection.
5. The bluetooth private protocol-based wireless communication method according to claim 1, wherein in case that a first bluetooth device connects a plurality of second bluetooth devices at the same time, part of the second bluetooth devices are connected through a classic bluetooth protocol, and the remaining part of the second bluetooth devices are connected through a bluetooth private protocol.
6. A wireless communication system based on the bluetooth private protocol, comprising:
an initial connection module: when the first Bluetooth device and the second Bluetooth device are paired for the first time, establishing initial connection through classical Bluetooth protocol pairing;
the protocol detection module: the first Bluetooth device detects whether the second Bluetooth device supports a Bluetooth private protocol preset in the first Bluetooth device;
adjusting the connecting module: when detecting that the connection state of a classic Bluetooth protocol does not meet the preset requirement and a second Bluetooth device supports the Bluetooth private protocol, a first Bluetooth device pairs with the second Bluetooth device again through the Bluetooth private protocol to establish a new connection.
7. The bluetooth private protocol-based wireless communication system according to claim 6, wherein after the connection is established through the bluetooth private protocol, a next connection of the first bluetooth device and the second bluetooth device is directly connected using the bluetooth private protocol.
8. The bluetooth private protocol-based wireless communication system according to claim 6, wherein pairing information according to the classic bluetooth protocol and pairing information according to the bluetooth private protocol are respectively stored in memories of the first bluetooth device and the second bluetooth device, and the first bluetooth device and the second bluetooth device determine whether to initially pair and establish connection according to the pairing information stored in the memories.
9. The bluetooth private protocol based wireless communication system of claim 6, wherein the step of adjusting the connection further comprises:
the first Bluetooth device temporarily stores the connection state of the classic Bluetooth protocol and the connection state of the Bluetooth private protocol and compares the connection states, and selects the protocol with the better connection state to establish the final connection.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN202011163642.5A 2020-10-27 2020-10-27 Wireless communication method, system and medium based on Bluetooth private protocol Pending CN112423280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011163642.5A CN112423280A (en) 2020-10-27 2020-10-27 Wireless communication method, system and medium based on Bluetooth private protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011163642.5A CN112423280A (en) 2020-10-27 2020-10-27 Wireless communication method, system and medium based on Bluetooth private protocol

Publications (1)

Publication Number Publication Date
CN112423280A true CN112423280A (en) 2021-02-26

Family

ID=74841134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011163642.5A Pending CN112423280A (en) 2020-10-27 2020-10-27 Wireless communication method, system and medium based on Bluetooth private protocol

Country Status (1)

Country Link
CN (1) CN112423280A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113099393A (en) * 2021-04-02 2021-07-09 欧阳博 Method for realizing user identity authentication based on Bluetooth broadcast and application

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020030504A (en) * 2000-10-18 2002-04-25 구자홍 Private Network Using Bluetooth and Communication Method Using the Network
US20060133414A1 (en) * 2004-12-22 2006-06-22 Juha-Pekka Luoma Wireless gateway for enabling wireless devices to discover and interact with various short-range services/devices
CN105704725A (en) * 2016-03-09 2016-06-22 青岛海信电器股份有限公司 Method and device for preventing mutual interference between WIFI communication and Bluetooth communication
CN105792263A (en) * 2014-12-22 2016-07-20 深圳Tcl数字技术有限公司 Signal interference prevention method of terminal device and the terminal device
CN106658366A (en) * 2016-11-30 2017-05-10 建荣半导体(深圳)有限公司 Switching method and device for Bluetooth working modes, Bluetooth chip and electronic equipment
CN108886516A (en) * 2017-11-30 2018-11-23 深圳市大疆创新科技有限公司 UAV system and method
CN109618319A (en) * 2019-01-02 2019-04-12 百度在线网络技术(北京)有限公司 Communicate to connect method for building up, device, electronic equipment and readable storage medium storing program for executing
CN109788461A (en) * 2017-11-15 2019-05-21 深圳市优必选科技有限公司 Bluetooth dual mode data communication means and device
CN110177363A (en) * 2019-05-28 2019-08-27 百度在线网络技术(北京)有限公司 Bluetooth data transfer method, apparatus, Bluetooth chip and storage medium
CN110572803A (en) * 2019-07-25 2019-12-13 华为技术有限公司 Bluetooth switching method and Bluetooth device
CN111436038A (en) * 2019-10-23 2020-07-21 珠海市杰理科技股份有限公司 Bluetooth connection method and system, Bluetooth master and slave device connection method and Bluetooth master and slave device
CN111818493A (en) * 2020-05-21 2020-10-23 上海橙群微电子有限公司 Data transmission method, wireless network system, node and readable storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020030504A (en) * 2000-10-18 2002-04-25 구자홍 Private Network Using Bluetooth and Communication Method Using the Network
US20060133414A1 (en) * 2004-12-22 2006-06-22 Juha-Pekka Luoma Wireless gateway for enabling wireless devices to discover and interact with various short-range services/devices
CN105792263A (en) * 2014-12-22 2016-07-20 深圳Tcl数字技术有限公司 Signal interference prevention method of terminal device and the terminal device
CN105704725A (en) * 2016-03-09 2016-06-22 青岛海信电器股份有限公司 Method and device for preventing mutual interference between WIFI communication and Bluetooth communication
CN106658366A (en) * 2016-11-30 2017-05-10 建荣半导体(深圳)有限公司 Switching method and device for Bluetooth working modes, Bluetooth chip and electronic equipment
CN109788461A (en) * 2017-11-15 2019-05-21 深圳市优必选科技有限公司 Bluetooth dual mode data communication means and device
CN108886516A (en) * 2017-11-30 2018-11-23 深圳市大疆创新科技有限公司 UAV system and method
CN109618319A (en) * 2019-01-02 2019-04-12 百度在线网络技术(北京)有限公司 Communicate to connect method for building up, device, electronic equipment and readable storage medium storing program for executing
CN110177363A (en) * 2019-05-28 2019-08-27 百度在线网络技术(北京)有限公司 Bluetooth data transfer method, apparatus, Bluetooth chip and storage medium
CN110572803A (en) * 2019-07-25 2019-12-13 华为技术有限公司 Bluetooth switching method and Bluetooth device
CN111436038A (en) * 2019-10-23 2020-07-21 珠海市杰理科技股份有限公司 Bluetooth connection method and system, Bluetooth master and slave device connection method and Bluetooth master and slave device
CN111818493A (en) * 2020-05-21 2020-10-23 上海橙群微电子有限公司 Data transmission method, wireless network system, node and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱广等: "低功耗物联网网关设计与实现", 《国外电子测量技术》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113099393A (en) * 2021-04-02 2021-07-09 欧阳博 Method for realizing user identity authentication based on Bluetooth broadcast and application

Similar Documents

Publication Publication Date Title
CN110536342A (en) A kind of network mode control method and terminal, storage medium
EP3125513A1 (en) Multi-mode power saving multimedia transmission method and system
US20210176810A1 (en) Method and device for reconnecting bluetooth communication
CN105392212A (en) Automatic Bluetooth reconnection method, system and intelligent terminal
CN106973359B (en) Method and device for quickly establishing wireless connection, wireless equipment and communication system
CN103326749B (en) A kind of control method of NFC radio frequency communication, Apparatus and system
CN113157300A (en) Data processing method, device and storage medium
WO2020114048A1 (en) Data transmission method and related apparatus
CN104202714A (en) Mobile terminal near field communication method and system for heterogeneous operating system
CN111585801A (en) ZigBee device upgrading method and related device
WO2016008077A1 (en) Method and apparatus for interconnecting intelligent terminal and vehicle terminal
CN106507501A (en) A kind of Bluetooth connecting method and device
CN110177357B (en) Bluetooth management method, mobile terminal and computer storage medium
CN112423280A (en) Wireless communication method, system and medium based on Bluetooth private protocol
CN111970749A (en) Network connection method and device, intelligent household equipment and intelligent household system
CN106330397B (en) method and device for realizing data interaction by ZigBee and Modbus RTU (remote terminal Unit) protocols
US20160353395A1 (en) Wireless communication apparatus and communication method
CN105099836A (en) BLE intelligent node control method and system
CN111740960A (en) Communication method of Internet of things equipment, Internet of things equipment and storage medium
CN104951417A (en) Method for achieving USB combined device suitable for high-capacity USIM
CN106411534A (en) Embedded device and system with functions of interface recognition and wireless sharing
CN113824612B (en) Network equipment compatibility testing method, terminal equipment and storage medium
WO2021098157A1 (en) Detection method and apparatus of communication chip, and device and medium
CN103716357A (en) Mobile information synchronization method and apparatus, and mobile communication terminal
CN105959040A (en) Method and device for dynamically adjusting BLE Bluetooth connection interval

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20230929