WO2018223892A1 - Bluetooth connection method, bluetooth apparatus, and bluetooth connection system - Google Patents

Bluetooth connection method, bluetooth apparatus, and bluetooth connection system Download PDF

Info

Publication number
WO2018223892A1
WO2018223892A1 PCT/CN2018/089295 CN2018089295W WO2018223892A1 WO 2018223892 A1 WO2018223892 A1 WO 2018223892A1 CN 2018089295 W CN2018089295 W CN 2018089295W WO 2018223892 A1 WO2018223892 A1 WO 2018223892A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
information
identity
slave device
sent
Prior art date
Application number
PCT/CN2018/089295
Other languages
French (fr)
Chinese (zh)
Inventor
任文
吴公羽
郑延玲
许星星
Original Assignee
苏州欧普照明有限公司
欧普照明股份有限公司
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
Priority claimed from CN201720649517.2U external-priority patent/CN207399521U/en
Priority claimed from CN201710419001.3A external-priority patent/CN107197424B/en
Application filed by 苏州欧普照明有限公司, 欧普照明股份有限公司 filed Critical 苏州欧普照明有限公司
Publication of WO2018223892A1 publication Critical patent/WO2018223892A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor

Definitions

  • the present invention relates to the field of Bluetooth technology, and in particular, to a Bluetooth connection method, a Bluetooth device, and a Bluetooth connection system.
  • the smart table lamp can not only have the illumination function of the ordinary table lamp, but also can correct the posture of the user.
  • the sitting posture correction lamp generally includes two parts: a lamp part of the illumination function and a sensor capable of wearing the wrong posture recognition function. Partly, connect via Bluetooth identification.
  • the present invention provides a Bluetooth connection method, a Bluetooth device, and a Bluetooth connection system to overcome the above problems or at least partially solve the above problems.
  • a Bluetooth connection method including:
  • the master device receives at least one Bluetooth broadcast information that is sent by the device and includes the identity information.
  • the method before the master device receives the at least one Bluetooth broadcast information that includes the identity information sent by the slave device, the method further includes:
  • the method further includes:
  • the slave device When the slave device sends the Bluetooth broadcast information again, the slave device sends the Bluetooth broadcast information including the second identity identifier information to the master device for identification;
  • the second identity information is saved in a flash memory of the slave device.
  • the second identity information is a MAC physical address of the master device.
  • the first identity information is a 6-byte string.
  • the 6 bytes of data of the first identification information are all 0.
  • the second identity information and the first identity information are included in Bluetooth broadcast information sent by the BLE Bluetooth low energy chip in the slave device.
  • the master device is a sitting posture correction table lamp
  • the slave device is a wear device.
  • a Bluetooth device including a BLE chip, the BLE chip configured to:
  • Bluetooth broadcast information sent by the slave device, determining whether the identity identifier information included in the Bluetooth broadcast message matches the identity identifier information that needs to be identified; if yes, establishing a Bluetooth with the slave device connection.
  • the BLE chip is further configured to:
  • the BLE chip is further configured to:
  • the Bluetooth broadcast information sent by the slave device is received again, it is determined whether the second identifier information is included in the Bluetooth broadcast information, and if yes, a Bluetooth connection is established with the slave device.
  • the second identity information is a MAC physical address of the Bluetooth device.
  • the first identity information is a 6-byte string.
  • the first identification information is 6 bytes and the data is 0.
  • a Bluetooth device including: a BLE chip, the BLE chip configured to:
  • the Bluetooth device Transmitting, by the Bluetooth device, a Bluetooth broadcast information as a slave device, where the Bluetooth broadcast information includes identity identifier information that the master device needs to identify; and establishing a Bluetooth connection with the master device in response to the connection request sent by the master device;
  • connection request is sent when the primary device determines that the identity identification information included in the Bluetooth broadcast information is the same as the identity identification information that needs to be identified.
  • the BLE chip is further configured to:
  • Bluetooth broadcast information includes preset first identity information; and establishing a Bluetooth connection with the master device for the first time in response to the first connection request sent by the master device;
  • the first connection request is sent when the primary device detects that the Bluetooth broadcast information includes the preset first identity information.
  • the BLE chip is further configured to:
  • the Bluetooth wide information including the second identity information is transmitted.
  • the Bluetooth device further includes: a flash memory configured to save the second identity information.
  • the second identity information is a MAC physical address of the master device.
  • the first identity information is a 6-byte string.
  • the 6 bytes of data of the first identification information are all 0.
  • a Bluetooth connection system including:
  • At least one slave device configured to send Bluetooth broadcast information including identity information
  • the master device is configured to receive the Bluetooth broadcast information sent by the slave device, and determine whether the identity identifier information included in the Bluetooth broadcast information matches the identity identifier information that the master device needs to identify; if yes, the slave device The device establishes a Bluetooth connection.
  • the master device is a sitting posture correction table lamp
  • the slave device is a wear device.
  • the invention provides a Bluetooth connection method, a Bluetooth device and a Bluetooth connection system.
  • the master device automatically discovers the slave device through the Bluetooth broadcast technology, and automatically performs Bluetooth search and fast pairing connection. User participation is very convenient.
  • the Bluetooth device structure as the master device and the slave device provided by the present invention is simple and easy to implement.
  • the master device can accurately identify the slave devices that need to be matched, and quickly establish a Bluetooth connection.
  • FIG. 1 is a schematic flow chart of a Bluetooth connection method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flow chart of a Bluetooth connection method according to another embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a Bluetooth connection system according to an embodiment of the present invention.
  • FIG. 4 is a schematic view of a sitting posture correction table lamp and a wearable device according to an embodiment of the present invention.
  • a Bluetooth connection method includes:
  • Step S102 The master device receives at least one Bluetooth broadcast information that is sent by the slave device and includes identity identification information.
  • Step S104 determining whether the identity identification information included in the Bluetooth broadcast information matches the identity identification information that the primary device needs to identify;
  • Step S106 if yes, establish a Bluetooth connection with the slave device.
  • the master device After receiving the Bluetooth broadcast information sent by the slave device, the master device parses and determines whether the identity identifier information included in the Bluetooth broadcast information matches the identity identifier information that the master device needs to identify. If it matches, the master will actively establish a Bluetooth connection with the slave.
  • the Bluetooth connection method provided by the embodiment of the invention has a simple process and effectively solves the problem that the traditional interconnection between devices is complicated.
  • the Bluetooth connection method provided by the embodiment of the present invention when a Bluetooth connection is established between the master device and the slave device, the user does not need to participate, and the identification and matching of the identity information is automatically performed, thereby simplifying the connection step and saving the connection time.
  • the Bluetooth connection method provided according to the present invention can quickly identify the master device and the slave device that need to be matched and establish a Bluetooth connection.
  • the Bluetooth connection method includes:
  • Step S202 The primary device receives, for the first time, at least one Bluetooth broadcast information that is sent by the secondary device and includes identity identification information.
  • Step S204 determining whether the preset first identity identification information is included in the Bluetooth broadcast information
  • Step S206 if yes, establishing a Bluetooth connection with the slave device for the first time.
  • the first identity identification information may be defined in advance in the Bluetooth broadcast information of the slave device, and when the master device receives the Bluetooth broadcast information sent by the slave device, After the parsing is performed, if it is determined that the Bluetooth broadcast information includes the preset first identity information, the Bluetooth connection is actively established with the slave device.
  • the user connection is also unnecessary, and the connection process is simple and effective. The master device can accurately identify the slave devices that need to be connected in multiple slave devices, and quickly establish a Bluetooth connection.
  • the first identity information preset in the Bluetooth broadcast information of the slave device may be a 6-byte character string, and preferably 6 bytes of data are all 0s.
  • the first identity information may also be a string of other lengths, which is not limited by the present invention.
  • the slave device may further receive and record the second identity information sent by the master device after the step S206.
  • the slave device can save the second identity information of the master device it receives to the flash memory.
  • Flash memory is a kind of non-volatile memory that can maintain data for a long time without current supply. Its storage characteristics are equivalent to hard disks. This feature is the storage medium for flash memory of various portable digital devices. basis. Therefore, saving the second identity information of the master device to the flash can prevent the loss of information and be effectively stored.
  • the slave device may send the Bluetooth broadcast information including the second identity information to the master device identification. If the master device successfully identifies, the master device may respond to the Bluetooth connection request of the master device and the master device. The device establishes a Bluetooth connection.
  • the second identity information sent by the master device is a MAC (Media Access Control or Medium Access Control) address of the master device, and is translated into media access control, or a physical address and a hardware address, and is used to represent each of the Internet.
  • the identifier of the site expressed in hexadecimal notation, for a total of six bytes (48 bits).
  • the first three bytes are codes assigned by the RA (Registration Authority) of the IEEE (Institute of Electrical and Electronics Engineers) to different manufacturers (high 24 bits), also known as "Organizationally Unique Identifier", the last three bytes (lower 24 bits) can be assigned to the production adapter interface, called the extension identifier (uniqueness).
  • An address block can generate 224 different addresses. Therefore, it is very convenient to use the unique MAC address of the master device as its second identity information.
  • the device can be equipped with a BLE (Bluetooth Low Energy) chip, which is a low-cost, short-distance, interoperable and robust wireless technology that operates in the license-free 2.4 GHz ISM radio frequency band. It was designed from the outset as ultra-low-power (ULP) wireless technology. It uses many intelligent means to minimize power consumption.
  • Bluetooth low energy technology uses a variable connection time interval, which can be set from a few milliseconds to a few seconds depending on the application.
  • BLE technology uses a very fast connection method, it can usually be in a "non-connected" state (saving energy). At this time, both ends of the link only know each other, and only when necessary, the link is opened and then exhausted.
  • the broadcast information of the BLE chip can carry the customized information content. Therefore, the preset first identity information and the second identity information of the master device can be added to the Bluetooth broadcast information, when the slave device receives the slave device.
  • the Bluetooth broadcast information is sent, the preset first identity information or the second identity information representing the master device is analyzed, and then the slave device is connected.
  • the above Bluetooth connection method is particularly applicable to the sitting posture correction lamp and the corresponding wearing device, wherein the sitting posture correction lamp can be used as the main device, and the wear device can be used as the slave device, when the user uses the sitting posture correction table lamp, there is no need to manually Sitting posture correction table lamp and wearing device for manually starting Bluetooth to search and match, just wear wearing equipment, sitting posture correction table lamp and wearing device can quickly establish Bluetooth connection, and then sitting posture correction table lamp for sitting posture correction, easy to use, user experience effect it is good.
  • the embodiment of the present invention further provides a Bluetooth device, where the BLE chip is configured in the Bluetooth device provided by the embodiment of the present invention, and the BLE chip can be configured to receive the Bluetooth broadcast information sent by the slave device by using the Bluetooth device as a master device; Whether the identity information contained in the Bluetooth broadcast information matches the identity identification information that needs to be identified; if so, establishes a Bluetooth connection with the slave device.
  • the BLE chip may be further configured to: when the first connection is established with the slave device, receive the Bluetooth broadcast information sent by the slave device; determine whether the Bluetooth broadcast message includes the preset first identity identifier information; if yes, Establish a Bluetooth connection from the device.
  • the BLE chip may be further configured to: send the second identity information to the slave device after establishing the first Bluetooth connection with the slave device; and determine the Bluetooth broadcast message when the Bluetooth broadcast information sent by the slave device is received again. Whether the second identity information is included, and if so, establishes a Bluetooth connection with the slave.
  • the second identity information is preferably a MAC physical address of the Bluetooth device.
  • the first identity information is a 6-byte string, and preferably, the 6-byte data is 0.
  • the embodiment of the invention further provides a Bluetooth device, including a BLE chip, and the BLE chip is configured as:
  • the Bluetooth device is used as the slave device to send the Bluetooth broadcast information, and the Bluetooth broadcast information includes the identity information that the master device needs to identify; the Bluetooth connection is established with the master device in response to the connection request sent by the master device; wherein the connection request is determined by the master device.
  • the identity information contained in the Bluetooth broadcast information is sent when it is the same as the identity information that needs to be identified.
  • the BLE chip may be configured to: send Bluetooth broadcast information, where the Bluetooth broadcast information includes preset first identity information; and establish a Bluetooth connection with the master device for the first time in response to the first connection request sent by the master device; The first connection request is sent when the primary device detects that the Bluetooth broadcast information includes the preset first identity information.
  • the BLE chip is further configured to: receive the second identity information of the master device sent by the master device and save the data; and send the Bluetooth broadcast information that includes the second identity identifier information when the Bluetooth broadcast message is sent again.
  • the Bluetooth device provided by the embodiment of the present invention may further include a flash memory configured to save the second identity information of the master device.
  • the second identity information of the master device is preferably a MAC physical address of the master device, and the preset first identity identifier information is preferably a 6-byte character string, and the 6-byte data of the first identity identification information may be It is 0.
  • the embodiment of the invention further provides a Bluetooth connection system, including:
  • At least one slave device configured to send Bluetooth broadcast information including identity information
  • the master device is configured to receive the Bluetooth broadcast information sent by the slave device, determine whether the identity identifier information included in the Bluetooth broadcast message matches the identity identifier information that the master device needs to identify; if yes, establish a Bluetooth connection with the slave device.
  • the Bluetooth connection system includes one master device and three slave devices.
  • the number of master devices and slave devices may be other, and the present invention is not limited thereto.
  • the master device when the master device can accurately identify the slave device that needs to be paired during the first Bluetooth connection, the master device can also be configured to receive the Bluetooth broadcast information that includes the identity information sent by multiple slave devices for the first time. Determining whether the Bluetooth broadcast information includes the preset first identity information, and if it is determined that the Bluetooth broadcast information of the slave device includes the preset first identity information, establishing a Bluetooth connection with the slave device for the first time. .
  • the first identity information may be a 6-byte string, and further, may be a string of 6 bytes of data all zeros.
  • the first identity information may also be in other forms, which is not limited by the present invention.
  • the master device may send the second identity information to the slave device, and when the slave device transmits the Bluetooth broadcast message again, the Bluetooth broadcast message including the second side identifier information may be sent.
  • the slave device that needs to be paired can be more accurately and quickly identified, thereby establishing a Bluetooth connection.
  • the master device may include a first BLE chip configured to receive Bluetooth broadcast information sent by the slave device, and determine whether the identity identifier information included in the Bluetooth broadcast information matches the identity identifier information that needs to be identified. ; if so, establish a Bluetooth connection with the slave.
  • the first BLE chip may be further configured to: when the first connection is established with the slave device, receive the Bluetooth broadcast information sent by the slave device; determine whether the Bluetooth broadcast message includes the preset first identity identifier information; if yes, Then establish a Bluetooth connection with the slave device.
  • the first BLE chip may be further configured to send the second identity information to the slave device after establishing the first Bluetooth connection with the slave device, and determine the Bluetooth broadcast message when the Bluetooth broadcast information sent by the slave device is received again. Whether the second identity information is included, and if so, establishes a Bluetooth connection with the slave.
  • the slave device may include a second BLE chip configured to send Bluetooth broadcast information, where the Bluetooth broadcast information includes identity identification information that the master device needs to identify; and establish a Bluetooth connection with the master device in response to the connection request sent by the master device; wherein, the connection The request is sent by the host device when it is determined that the identity identification information included in the Bluetooth broadcast information is the same as the identity identification information that needs to be identified.
  • the second BLE chip is further configured to: send Bluetooth broadcast information, where the Bluetooth broadcast information includes preset first identity information; and establish a Bluetooth connection with the master device for the first time in response to the first connection request sent by the master device; The first connection request is sent when the primary device detects that the Bluetooth broadcast information includes the preset first identity information.
  • the second BLE chip may be configured to receive the second identity information of the master device sent by the master device and save the data.
  • the Bluetooth banner information including the second identity identifier information is sent.
  • the second identity information of the master device may be a MAC address unique to the master device.
  • the slave device may preferentially save the device to the flash.
  • the Bluetooth connection relationship is established by the sitting posture correction lamp and the wearable device as an example, as shown in FIG. 4 .
  • the main device is a sitting posture correction table lamp
  • the slave device is a wear device.
  • the BLE chip is provided in the sitting posture correction lamp and the wearable device. Since the broadcast data packet of the BLE chip can carry the customized data content, the 6-byte character string can be customized in the BLE chip of the wearable device in advance. And when the 6-byte string is a fixed value, for example, when 6 bytes are all 0, it means that it is connected to the sitting posture correction lamp.
  • the Bluetooth connection between the sitting posture correction table lamp and the wearable device is actually the Bluetooth connection of the BLE chip in the BLE chip pre-wearing device in the sitting posture correction table lamp. If the sitting posture correction table lamp is set as the master device and the wearable device is the slave device, the sitting posture correction table lamp and wear
  • the Bluetooth connection process of the device is as follows:
  • the sitting posture correction desk lamp receives the Bluetooth broadcast information sent by the wearable device for the first time
  • the sitting posture correction table lamp analyzes the above-mentioned Bluetooth broadcast information, and determines that the Bluetooth broadcast information includes a 6-byte character string;
  • the sitting posture correcting lamp actively initiates a Bluetooth connection request to the wearable device, and after the wearable device receives the set, it is established with the sitting posture correcting lamp.
  • the sitting posture correction lamp After the sitting posture correction lamp and the wearable device establish a Bluetooth connection, the sitting posture correction lamp saves its MAC address to the wearable device.
  • the MAC address of the sitting posture correction lamp can be saved in the flash memory of the wearable device, which can prevent information loss and effectively store.
  • the wearable device sends the Bluetooth broadcast information again, the MAC address of the sitting posture correction lamp can be added to the Bluetooth broadcast information, or the original Bluetooth broadcast information can be replaced with the MAC address of the main device;
  • the sitting posture correction table lamp After receiving the Bluetooth broadcast information sent by the wearable device, the sitting posture correction table lamp analyzes and finds that it contains its own MAC address, and then initiates a Bluetooth connection request to the wearable device, thereby establishing a Bluetooth connection with the wearable device.
  • the sitting posture correction lamp includes two parts: a lamp portion for the illumination function, a sensor portion that can be worn with the wrong sitting posture recognition function, that is, the wearable device mentioned above, and the lamp portion and the wearable device can be connected by Bluetooth recognition. If the traditional Bluetooth connection method is sampled, when the desk lamp part and the wearable device establish a Bluetooth connection, the user needs to manually search for the connection, and if multiple Bluetooth devices with the same name are searched, the user needs to try to connect in sequence.
  • the Bluetooth connection method in the process of establishing a Bluetooth connection between the sitting posture correction lamp and the wearable device, whether the Bluetooth connection is established for the first time or the Bluetooth connection is established subsequently, the sitting posture correction lamp and the wear can be realized without manual operation by the user. Automatic connection of the device.
  • the wearable device may include the identification information recognizable by the sitting posture correction lamp. After the sitting posture correction lamp recognizes that it matches the identification information that needs to be identified, a Bluetooth connection is established with the wearable device, and the device will establish a Bluetooth connection with the wearable device. Its unique MAC address is sent to the wearable device for saving.
  • the sitting posture correction lamp and the wearing device need to be connected again, after the sitting posture correction lamp receives the Bluetooth broadcast information sent by the wearable device, it parses and determines whether the MAC address included in the Bluetooth broadcast information matches the MAC address of the sitting posture correction lamp. If it matches, the wearable device is actively connected.
  • the embodiment of the present invention provides a Bluetooth connection method, a Bluetooth device, and a Bluetooth connection system.
  • the Bluetooth connection method provided by the embodiment of the present invention, an automatic pairing connection between a master and a slave device is implemented through a Bluetooth broadcast technology, and the present invention provides the main connection.
  • the Bluetooth device structure of the device and the slave device is simple and easy to implement, especially when there are many master devices and slave devices.
  • the Bluetooth connection method provided by the present invention when the Bluetooth connection is established for the first time, the master device can parse the Bluetooth broadcast information sent by the slave device.
  • the master device can accurately identify the slave devices that need to be matched and quickly establish a Bluetooth connection.
  • the sitting posture correction table lamp before the user wears the wearing device, the sitting posture correction lamp and the wearing device have automatically established a Bluetooth connection, and the Bluetooth connection process is transparent with respect to the user, and the user only needs to correct the table lamp when using the sitting posture. You can use the wearable device to recognize the sitting position and it is very convenient to use.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Provided are a Bluetooth connection method, a Bluetooth apparatus, and a Bluetooth connection system. The Bluetooth connection method comprises: receiving, by a master apparatus, Bluetooth broadcast information containing identifier information and transmitted by at least one slave apparatus; determining whether the identifier information contained in the Bluetooth broadcast information matches identifier information to be identified by the master apparatus; and if so, establishing a Bluetooth connection with the slave apparatus. The Bluetooth connection method of the present invention employs Bluetooth broadcast technology to realize automatic communication between a master apparatus and a slave apparatus, and performs automatic matching on the basis of identifier information to establish a Bluetooth connection without requiring manual operation of a user, thereby enhancing convenience.

Description

蓝牙连接方法、蓝牙设备及蓝牙连接系统Bluetooth connection method, Bluetooth device and Bluetooth connection system 技术领域Technical field
本发明涉及蓝牙技术领域,特别是涉及一种蓝牙连接方法、蓝牙设备及蓝牙连接系统。The present invention relates to the field of Bluetooth technology, and in particular, to a Bluetooth connection method, a Bluetooth device, and a Bluetooth connection system.
背景技术Background technique
随着科学技术的不断发展,各种电子设备层出不穷,例如智能手机、智能台灯等。尤其是智能台灯,除了可以具有普通台灯的照明功能之外,还可以对用户的坐姿进行提醒矫正,坐姿矫正台灯一般包括两部分:照明功能的台灯部分和可以佩戴的具有错误坐姿识别功能的传感器部分,通过蓝牙识别进行连接。With the continuous development of science and technology, various electronic devices are emerging, such as smart phones and smart table lamps. In particular, the smart table lamp can not only have the illumination function of the ordinary table lamp, but also can correct the posture of the user. The sitting posture correction lamp generally includes two parts: a lamp part of the illumination function and a sensor capable of wearing the wrong posture recognition function. Partly, connect via Bluetooth identification.
而在两个设备之间建立蓝牙连接时,有的需要用户手动搜索建立连接,而且如果搜索到多个同名的蓝牙设备时,用户就需要依次尝试进行连接,而无法直接识别出哪个是需要连接的设备,不仅繁琐且使用不方便。When a Bluetooth connection is established between two devices, some users need to manually search for a connection, and if multiple Bluetooth devices with the same name are searched, the user needs to try to connect in sequence, and cannot directly identify which one needs to be connected. The equipment is not only cumbersome but also inconvenient to use.
发明内容Summary of the invention
本发明提供了一种蓝牙连接方法、蓝牙设备及蓝牙连接系统以克服上述问题或者至少部分地解决上述问题。The present invention provides a Bluetooth connection method, a Bluetooth device, and a Bluetooth connection system to overcome the above problems or at least partially solve the above problems.
根据本发明的一个方面,提供了一种蓝牙连接方法,包括:According to an aspect of the present invention, a Bluetooth connection method is provided, including:
主设备接收至少一个从设备发送的包含有身份标识信息的蓝牙广播信息;The master device receives at least one Bluetooth broadcast information that is sent by the device and includes the identity information.
判断所述蓝牙广播信息中所包含的身份标识信息是否与所述主设备需要识别的身份标识信息匹配;若是,则与所述从设备建立蓝牙连接。Determining whether the identity information included in the Bluetooth broadcast information matches the identity information that the master device needs to identify; if yes, establishing a Bluetooth connection with the slave device.
可选地,主设备接收至少一个从设备发送的包括身份标识信息的蓝牙广播信息之前,还包括:Optionally, before the master device receives the at least one Bluetooth broadcast information that includes the identity information sent by the slave device, the method further includes:
所述主设备首次接收至少一个从设备发送的包含有身份标识信息的蓝牙广播信息;Receiving, by the master device for the first time, at least one Bluetooth broadcast information that is sent by the device and containing the identity information;
判断所述蓝牙广播信息中是否包含预设的第一身份标识信息;Determining whether the Bluetooth broadcast information includes preset first identity identification information;
若是,则与所述从设备首次建立蓝牙连接。If yes, the Bluetooth connection is first established with the slave device.
可选地,与所述从设备首次建立蓝牙连接之后,还包括:Optionally, after establishing the Bluetooth connection with the slave device for the first time, the method further includes:
所述从设备接收并记录所述主设备发送的第二身身份识信息;Receiving and recording, by the slave device, second body identity information sent by the master device;
所述从设备再次发送蓝牙广播信息时,所述从设备发送包含有所述第二身份标识信息的蓝牙广播信息至所述主设备识别;When the slave device sends the Bluetooth broadcast information again, the slave device sends the Bluetooth broadcast information including the second identity identifier information to the master device for identification;
响应于所述主设备的蓝牙连接请求与所述主设备建立蓝牙连接。Establishing a Bluetooth connection with the master device in response to the Bluetooth connection request of the master device.
可选地,所述第二身份标识信息保存在所述从设备的flash闪存中。Optionally, the second identity information is saved in a flash memory of the slave device.
可选地,所述第二身份标识信息为所述主设备的MAC物理地址。Optionally, the second identity information is a MAC physical address of the master device.
可选地,所述第一身份标识信息为6个字节的字符串。Optionally, the first identity information is a 6-byte string.
可选地,所述第一身份识别信息的6个字节的数据都是0。Optionally, the 6 bytes of data of the first identification information are all 0.
可选地,所述第二身份标识信息和所述第一身份标识信息包含在所述从设备中的BLE蓝牙低能耗芯片发送的蓝牙广播信息中。Optionally, the second identity information and the first identity information are included in Bluetooth broadcast information sent by the BLE Bluetooth low energy chip in the slave device.
可选地,所述主设备为坐姿矫正台灯,所述从设备为穿戴设备。Optionally, the master device is a sitting posture correction table lamp, and the slave device is a wear device.
根据本发明的另一个方面,提供了一种蓝牙设备,包括BLE芯片,所述BLE芯片配置为:According to another aspect of the present invention, a Bluetooth device is provided, including a BLE chip, the BLE chip configured to:
以所述蓝牙设备作为主设备接收从设备发送的蓝牙广播信息;判断所述蓝牙广播信息中所包含的身份标识信息是否与需要识别的身份标识信息匹配;若是,则与所述从设备建立蓝牙连接。Receiving, by the Bluetooth device as a master device, Bluetooth broadcast information sent by the slave device, determining whether the identity identifier information included in the Bluetooth broadcast message matches the identity identifier information that needs to be identified; if yes, establishing a Bluetooth with the slave device connection.
可选地,所述BLE芯片还配置为:Optionally, the BLE chip is further configured to:
当与所述从设备首次建立蓝牙连接时,接收所述从设备发送的蓝牙广播信息;判断所述蓝牙广播信息中是否包含预设的第一身份标识信息;若是,则与所述从设备建立蓝牙连接。Receiving a Bluetooth connection information sent by the slave device when the first time establishing a Bluetooth connection with the slave device; determining whether the Bluetooth broadcast message includes preset first identity identification information; if yes, establishing with the slave device Bluetooth connection.
可选地,所述BLE芯片还配置为:Optionally, the BLE chip is further configured to:
与所述从设备建立首次蓝牙连接后,将第二身份标识信息发送至所述从设备保存;After establishing the first Bluetooth connection with the slave device, sending the second identity information to the slave device for saving;
当再次接收所述从设备发送的蓝牙广播信息时,判断所述蓝牙广播信息中是否包含所述第二身份标识信息,若是,则与所述从设备建立蓝牙连接。When the Bluetooth broadcast information sent by the slave device is received again, it is determined whether the second identifier information is included in the Bluetooth broadcast information, and if yes, a Bluetooth connection is established with the slave device.
可选地,所述第二身份标识信息为所述蓝牙设备的MAC物理地址。Optionally, the second identity information is a MAC physical address of the Bluetooth device.
可选地,所述第一身份标识信息为6个字节的字符串。Optionally, the first identity information is a 6-byte string.
可选地,所述第一身份识别信息为6个字节的数据都是0。Optionally, the first identification information is 6 bytes and the data is 0.
根据本发明的再一个方面,提供了一种蓝牙设备,包括:BLE芯片,所述BLE芯片配置为:According to still another aspect of the present invention, a Bluetooth device is provided, including: a BLE chip, the BLE chip configured to:
以所述蓝牙设备作为从设备发送蓝牙广播信息,所述蓝牙广播信息中包含有主设备需要识别的身份标识信息;响应于所述主设备发送的连接请求与所述主设备建立蓝牙连接;Transmitting, by the Bluetooth device, a Bluetooth broadcast information as a slave device, where the Bluetooth broadcast information includes identity identifier information that the master device needs to identify; and establishing a Bluetooth connection with the master device in response to the connection request sent by the master device;
其中,所述连接请求为所述主设备判断所述蓝牙广播信息中包含的身份标识信息与其需要识别的身份标识信息相同时发送的。The connection request is sent when the primary device determines that the identity identification information included in the Bluetooth broadcast information is the same as the identity identification information that needs to be identified.
可选地,所述BLE芯片还配置为:Optionally, the BLE chip is further configured to:
发送蓝牙广播信息,所述蓝牙广播信息中包含有预设的第一身份标识信息;响应于所述主设备发送的首次连接请求与所述主设备首次建立蓝牙连接;Sending Bluetooth broadcast information, where the Bluetooth broadcast information includes preset first identity information; and establishing a Bluetooth connection with the master device for the first time in response to the first connection request sent by the master device;
其中,所述首次连接请求为所述主设备检测到所述蓝牙广播信息中包含所述预设的第一身份标识信息时发送的。The first connection request is sent when the primary device detects that the Bluetooth broadcast information includes the preset first identity information.
可选地,所述BLE芯片还配置为:Optionally, the BLE chip is further configured to:
接收所述主设备发送的所述主设备的第二身份标识信息并保存;Receiving second identity information of the primary device sent by the primary device and saving the information;
再次发送蓝牙广播信息时,发送包含有所述第二身份标识信息的蓝牙广信息。When the Bluetooth broadcast information is sent again, the Bluetooth wide information including the second identity information is transmitted.
可选地,上述蓝牙设备还包括:flash闪存,配置为保存所述第二身份标识信息。Optionally, the Bluetooth device further includes: a flash memory configured to save the second identity information.
可选地,所述第二身份标识信息为所述主设备的MAC物理地址。Optionally, the second identity information is a MAC physical address of the master device.
可选地,所述第一身份标识信息为6个字节的字符串。Optionally, the first identity information is a 6-byte string.
可选地,所述第一身份识别信息的6个字节的数据都是0。Optionally, the 6 bytes of data of the first identification information are all 0.
根据本发明的再一个方面,提供了一种蓝牙连接系统,包括:According to still another aspect of the present invention, a Bluetooth connection system is provided, including:
至少一个从设备,配置为发送包含有身份标识信息的蓝牙广播信息;At least one slave device configured to send Bluetooth broadcast information including identity information;
主设备,配置为接收所述从设备发送的蓝牙广播信息,判断所述蓝牙广播信息中所包含的身份标识信息是否与所述主设备需要识别的身份标识信息匹配;若是,则与所述从设备建立蓝牙连接。The master device is configured to receive the Bluetooth broadcast information sent by the slave device, and determine whether the identity identifier information included in the Bluetooth broadcast information matches the identity identifier information that the master device needs to identify; if yes, the slave device The device establishes a Bluetooth connection.
可选地,所述主设备为坐姿矫正台灯,所述从设备为穿戴设备。Optionally, the master device is a sitting posture correction table lamp, and the slave device is a wear device.
本发明提供了一种蓝牙连接方法、蓝牙设备及蓝牙连接系统,根据本发明提供的蓝牙连接方法,通过蓝牙广播技术实现主设备自动发现从设备,并自动进行蓝牙搜索并快速配对连接,不需要用户参与, 非常方便。而且本发明提供的作为主设备、从设备的蓝牙设备结构简单易实现。尤其是在蓝牙连接系统中有很多主设备和从设备的时候,根据本发明提供的蓝牙连接方法,主设备可以准确识别出需要匹配的从设备,并快速建立蓝牙连接。The invention provides a Bluetooth connection method, a Bluetooth device and a Bluetooth connection system. According to the Bluetooth connection method provided by the present invention, the master device automatically discovers the slave device through the Bluetooth broadcast technology, and automatically performs Bluetooth search and fast pairing connection. User participation is very convenient. Moreover, the Bluetooth device structure as the master device and the slave device provided by the present invention is simple and easy to implement. In particular, when there are many master devices and slave devices in the Bluetooth connection system, according to the Bluetooth connection method provided by the present invention, the master device can accurately identify the slave devices that need to be matched, and quickly establish a Bluetooth connection.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, and the above-described and other objects, features and advantages of the present invention can be more clearly understood. Specific embodiments of the invention are set forth below.
根据下文结合附图对本发明具体实施例的详细描述,本领域技术人员将会更加明了本发明的上述以及其他目的、优点和特征。The above as well as other objects, advantages and features of the present invention will become apparent to those skilled in the <
附图说明DRAWINGS
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those skilled in the art from a The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting. Throughout the drawings, the same reference numerals are used to refer to the same parts. In the drawing:
图1是根据本发明一个实施例的蓝牙连接方法流程示意图;1 is a schematic flow chart of a Bluetooth connection method according to an embodiment of the present invention;
图2是根据本发明另一个实施例的蓝牙连接方法流程示意图;2 is a schematic flow chart of a Bluetooth connection method according to another embodiment of the present invention;
图3是根据本发明实施例的蓝牙连接系统示意图;以及3 is a schematic diagram of a Bluetooth connection system according to an embodiment of the present invention;
图4是根据本发明实施例的坐姿矫正台灯与穿戴设备示意图。4 is a schematic view of a sitting posture correction table lamp and a wearable device according to an embodiment of the present invention.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the embodiments of the present invention have been shown in the drawings, the embodiments Rather, these embodiments are provided so that this disclosure will be more fully understood and the scope of the disclosure will be fully disclosed.
本发明一个实施例提供了一种蓝牙连接方法,如图1所示,根据本发明一个实施例提供的蓝牙连接方法包括:An embodiment of the present invention provides a Bluetooth connection method. As shown in FIG. 1 , a Bluetooth connection method according to an embodiment of the present invention includes:
步骤S102,主设备接收至少一个从设备发送的包含有身份标识信息的蓝牙广播信息;Step S102: The master device receives at least one Bluetooth broadcast information that is sent by the slave device and includes identity identification information.
步骤S104,判断蓝牙广播信息中所包含的身份标识信息是否与主 设备需要识别的身份标识信息匹配;Step S104, determining whether the identity identification information included in the Bluetooth broadcast information matches the identity identification information that the primary device needs to identify;
步骤S106,若是,则与从设备建立蓝牙连接。Step S106, if yes, establish a Bluetooth connection with the slave device.
根据本发明实施例提供的蓝牙连接方法,主设备接收到从设备发送的蓝牙广播信息后,会进行解析并判断蓝牙广播信息中包含的身份标识信息是否与主设备需要识别的身份标识信息匹配,如果匹配的话,主设备就会主动与从设备建立蓝牙连接。本发明实施例提供的蓝牙连接方法流程简单,有效地解决了传统的设备之间互联的操作复杂的问题。根据本发明实施例提供的蓝牙连接方法,主设备与从设备之间建立蓝牙连接时,不需要用户参与,自动进行身份标识信息的识别与匹配,在简化连接步骤的同时节省连接时间。尤其是有很多主设备和从设备的时候,根据本发明提供的蓝牙连接方法可以快速的将需要匹配的主设备和从设备进行识别并建立蓝牙连接。According to the Bluetooth connection method provided by the embodiment of the present invention, after receiving the Bluetooth broadcast information sent by the slave device, the master device parses and determines whether the identity identifier information included in the Bluetooth broadcast information matches the identity identifier information that the master device needs to identify. If it matches, the master will actively establish a Bluetooth connection with the slave. The Bluetooth connection method provided by the embodiment of the invention has a simple process and effectively solves the problem that the traditional interconnection between devices is complicated. According to the Bluetooth connection method provided by the embodiment of the present invention, when a Bluetooth connection is established between the master device and the slave device, the user does not need to participate, and the identification and matching of the identity information is automatically performed, thereby simplifying the connection step and saving the connection time. In particular, when there are many master devices and slave devices, the Bluetooth connection method provided according to the present invention can quickly identify the master device and the slave device that need to be matched and establish a Bluetooth connection.
一般来说,主设备与设备的首次蓝牙连接是需要进行准确识别的。本发明另一实施例提供了一种蓝牙连接方法,适用于主设备和从设备之间首次建立蓝牙连接关系,如图2所示,根据本发明另一实施例提供的蓝牙连接方法包括:In general, the first Bluetooth connection between the primary device and the device needs to be accurately identified. Another embodiment of the present invention provides a Bluetooth connection method, which is applicable to a first time establishing a Bluetooth connection between a master device and a slave device. As shown in FIG. 2, the Bluetooth connection method according to another embodiment of the present invention includes:
步骤S202,主设备首次接收至少一个从设备发送的包含有身份标识信息的蓝牙广播信息;Step S202: The primary device receives, for the first time, at least one Bluetooth broadcast information that is sent by the secondary device and includes identity identification information.
步骤S204,判断蓝牙广播信息中是否包含预设的第一身份标识信息;Step S204, determining whether the preset first identity identification information is included in the Bluetooth broadcast information;
步骤S206,若是,则与从设备首次建立蓝牙连接。Step S206, if yes, establishing a Bluetooth connection with the slave device for the first time.
根据本实施例提供的蓝牙连接方法,主设备和从设备首次建立蓝牙连接时,可以预先在从设备的蓝牙广播信息中定义第一身份标识信息,当主设备接收到从设备发送的蓝牙广播信息并对其进行解析后,如果判断该蓝牙广播信息中包含有预设的第一身份标识信息,则主动与从设备建立蓝牙连接。在本发明实施例提供的蓝牙连接方法中,同样无需用户参与,连接过程简单有效,主设备可以在多个从设备中准确识别出需要连接的从设备,且快速建立蓝牙连接。According to the Bluetooth connection method provided by the embodiment, when the master device and the slave device establish a Bluetooth connection for the first time, the first identity identification information may be defined in advance in the Bluetooth broadcast information of the slave device, and when the master device receives the Bluetooth broadcast information sent by the slave device, After the parsing is performed, if it is determined that the Bluetooth broadcast information includes the preset first identity information, the Bluetooth connection is actively established with the slave device. In the Bluetooth connection method provided by the embodiment of the present invention, the user connection is also unnecessary, and the connection process is simple and effective. The master device can accurately identify the slave devices that need to be connected in multiple slave devices, and quickly establish a Bluetooth connection.
在从设备的蓝牙广播信息中预设的第一身份标识信息可以是6个字节的字符串,优选为6个字节的数据都是0。当然,第一身份标识信息还可以其他长度的字符串,本发明不做限定。The first identity information preset in the Bluetooth broadcast information of the slave device may be a 6-byte character string, and preferably 6 bytes of data are all 0s. Of course, the first identity information may also be a string of other lengths, which is not limited by the present invention.
为了后续更快速的主设备和从设备之间建立蓝牙连接关系,在上 述步骤S206之后,从设备还可以接收并记录主设备发送的第二身份标识信息。优选地,从设备可以将其接收到的主设备的第二身份标识信息保存到flash闪存中。In order to establish a Bluetooth connection relationship between the master device and the slave device, the slave device may further receive and record the second identity information sent by the master device after the step S206. Preferably, the slave device can save the second identity information of the master device it receives to the flash memory.
闪存则是一种非易失性内存,在没有电流供应的条件下也能够长久地保持数据,其存储特性相当于硬盘,这项特性正是闪存得以成为各类便携型数字设备的存储介质的基础。因此,将主设备的第二身份标识信息保存至flash中可以防止信息的丢失,进行有效地存储。Flash memory is a kind of non-volatile memory that can maintain data for a long time without current supply. Its storage characteristics are equivalent to hard disks. This feature is the storage medium for flash memory of various portable digital devices. basis. Therefore, saving the second identity information of the master device to the flash can prevent the loss of information and be effectively stored.
而当从设备再次发送蓝牙广播信息时,从设备可以发送包含有第二身份标识信息的蓝牙广播信息至主设备识别,如果主设备识别成功后,就可以响应于主设备的蓝牙连接请求与主设备建立蓝牙连接。When the slave device sends the Bluetooth broadcast information again, the slave device may send the Bluetooth broadcast information including the second identity information to the master device identification. If the master device successfully identifies, the master device may respond to the Bluetooth connection request of the master device and the master device. The device establishes a Bluetooth connection.
优选地,主设备发送的第二身份标识信息为主设备的MAC(Media Access Control或者Medium Access Control)地址,意译为媒体访问控制,或称为物理地址、硬件地址,用来表示互联网上每一个站点的标识符,采用十六进制数表示,共六个字节(48位)。其中,前三个字节是由IEEE(Institute of Electrical and Electronics Engineers,电气和电子工程师协会)的RA(Registration Authority,注册管理机构)负责给不同厂家分配的代码(高位24位),也称为“编制上唯一的标识符”(Organizationally Unique Identifier),后三个字节(低位24位)可自行指派给生产的适配器接口,称为扩展标识符(唯一性)。一个地址块可以生成224个不同的地址。因此,将主设备的具备唯一性的MAC地址作为其第二身份标识信息是非常方便的。Preferably, the second identity information sent by the master device is a MAC (Media Access Control or Medium Access Control) address of the master device, and is translated into media access control, or a physical address and a hardware address, and is used to represent each of the Internet. The identifier of the site, expressed in hexadecimal notation, for a total of six bytes (48 bits). The first three bytes are codes assigned by the RA (Registration Authority) of the IEEE (Institute of Electrical and Electronics Engineers) to different manufacturers (high 24 bits), also known as "Organizationally Unique Identifier", the last three bytes (lower 24 bits) can be assigned to the production adapter interface, called the extension identifier (uniqueness). An address block can generate 224 different addresses. Therefore, it is very convenient to use the unique MAC address of the master device as its second identity information.
从设备中可以设置有BLE(Bluetooth Low Energy,蓝牙低能耗)芯片,BLE技术是低成本、短距离、可互操作的鲁棒性无线技术,工作在免许可的2.4GHz ISM射频频段。它从一开始就设计为超低功耗(ULP,ultra-low-power)无线技术。它利用许多智能手段最大限度地降低功耗。蓝牙低能耗技术采用可变连接时间间隔,这个间隔根据具体应用可以设置为几毫秒到几秒不等。另外,因为BLE技术采用非常快速的连接方式,因此平时可以处于“非连接”状态(节省能源),此时链路两端相互间只是知晓对方,只有在必要时才开启链路,然后在尽可能短的时间内关闭链路。在BLE芯片的广播信息里面可以携带自定义信息内容,因此,可以将预设的第一身份标识信息和主设备的第二身份标识信息添加至蓝牙广播信息中,当由主设备接收到从设备发 送的蓝牙广播信息时,就会分析识别出其中的预设的第一身份标识信息或代表主设备的第二身份标识信息,进而连接从设备。The device can be equipped with a BLE (Bluetooth Low Energy) chip, which is a low-cost, short-distance, interoperable and robust wireless technology that operates in the license-free 2.4 GHz ISM radio frequency band. It was designed from the outset as ultra-low-power (ULP) wireless technology. It uses many intelligent means to minimize power consumption. Bluetooth low energy technology uses a variable connection time interval, which can be set from a few milliseconds to a few seconds depending on the application. In addition, because BLE technology uses a very fast connection method, it can usually be in a "non-connected" state (saving energy). At this time, both ends of the link only know each other, and only when necessary, the link is opened and then exhausted. It is possible to close the link in a short time. The broadcast information of the BLE chip can carry the customized information content. Therefore, the preset first identity information and the second identity information of the master device can be added to the Bluetooth broadcast information, when the slave device receives the slave device. When the Bluetooth broadcast information is sent, the preset first identity information or the second identity information representing the master device is analyzed, and then the slave device is connected.
在实施过程中,上述蓝牙连接方法尤其可以适用于坐姿矫正台灯以及相应地穿戴设备,其中,坐姿矫正台灯可以作为主设备,穿戴设备可以作为从设备,当用户使用坐姿矫正台灯时,无需手动将坐姿矫正台灯和穿戴设备进行手动启动蓝牙进行搜索匹配,只需佩戴穿戴设备,坐姿矫正台灯和穿戴设备的就可以快速建立起蓝牙连接,进而由坐姿矫正台灯进行坐姿矫正,使用方便,用户体验效果好。In the implementation process, the above Bluetooth connection method is particularly applicable to the sitting posture correction lamp and the corresponding wearing device, wherein the sitting posture correction lamp can be used as the main device, and the wear device can be used as the slave device, when the user uses the sitting posture correction table lamp, there is no need to manually Sitting posture correction table lamp and wearing device for manually starting Bluetooth to search and match, just wear wearing equipment, sitting posture correction table lamp and wearing device can quickly establish Bluetooth connection, and then sitting posture correction table lamp for sitting posture correction, easy to use, user experience effect it is good.
本发明实施例还提供了一种蓝牙设备,在本发明实施例提供的蓝牙设备中设置有BLE芯片,且该BLE芯片可以配置为以蓝牙设备作为主设备接收从设备发送的蓝牙广播信息;判断蓝牙广播信息中所包含的身份标识信息是否与需要识别的身份标识信息匹配;若是,则与从设备建立蓝牙连接。The embodiment of the present invention further provides a Bluetooth device, where the BLE chip is configured in the Bluetooth device provided by the embodiment of the present invention, and the BLE chip can be configured to receive the Bluetooth broadcast information sent by the slave device by using the Bluetooth device as a master device; Whether the identity information contained in the Bluetooth broadcast information matches the identity identification information that needs to be identified; if so, establishes a Bluetooth connection with the slave device.
进一步地,上述BLE芯片还可以配置为:当与从设备首次建立蓝牙连接时,接收从设备发送的蓝牙广播信息;判断蓝牙广播信息中是否包含预设的第一身份标识信息;若是,则与从设备建立蓝牙连接。Further, the BLE chip may be further configured to: when the first connection is established with the slave device, receive the Bluetooth broadcast information sent by the slave device; determine whether the Bluetooth broadcast message includes the preset first identity identifier information; if yes, Establish a Bluetooth connection from the device.
可选地,BLE芯片还可以配置为:与从设备建立首次蓝牙连接后,将第二身份标识信息发送至从设备保存;当再次接收从设备发送的蓝牙广播信息时,判断该蓝牙广播信息中是否包含第二身份标识信息,若是,则与从设备建立蓝牙连接。Optionally, the BLE chip may be further configured to: send the second identity information to the slave device after establishing the first Bluetooth connection with the slave device; and determine the Bluetooth broadcast message when the Bluetooth broadcast information sent by the slave device is received again. Whether the second identity information is included, and if so, establishes a Bluetooth connection with the slave.
其中,第二身份标识信息优选为蓝牙设备的MAC物理地址。第一身份标识信息为6个字节的字符串,优选地,6个字节的数据都是0。The second identity information is preferably a MAC physical address of the Bluetooth device. The first identity information is a 6-byte string, and preferably, the 6-byte data is 0.
本发明实施例还提供了一种蓝牙设备,包括BLE芯片,BLE芯片配置为:The embodiment of the invention further provides a Bluetooth device, including a BLE chip, and the BLE chip is configured as:
以蓝牙设备作为从设备发送蓝牙广播信息,蓝牙广播信息中包含有主设备需要识别的身份标识信息;响应于主设备发送的连接请求与主设备建立蓝牙连接;其中,上述连接请求为主设备判断蓝牙广播信息中包含的身份标识信息与其需要识别的身份标识信息相同时发送的。The Bluetooth device is used as the slave device to send the Bluetooth broadcast information, and the Bluetooth broadcast information includes the identity information that the master device needs to identify; the Bluetooth connection is established with the master device in response to the connection request sent by the master device; wherein the connection request is determined by the master device The identity information contained in the Bluetooth broadcast information is sent when it is the same as the identity information that needs to be identified.
进一步地,BLE芯片还可以配置为:发送蓝牙广播信息,该蓝牙广播信息中包含有预设的第一身份标识信息;响应于主设备发送的首次连接请求与主设备首次建立蓝牙连接;其中,首次连接请求为主设 备检测到蓝牙广播信息中包含预设的第一身份标识信息时发送的。Further, the BLE chip may be configured to: send Bluetooth broadcast information, where the Bluetooth broadcast information includes preset first identity information; and establish a Bluetooth connection with the master device for the first time in response to the first connection request sent by the master device; The first connection request is sent when the primary device detects that the Bluetooth broadcast information includes the preset first identity information.
可选地,BLE芯片还可以配置为:接收主设备发送的主设备的第二身份标识信息并保存;再次发送蓝牙广播信息时,发送包含有第二身份标识信息的蓝牙广信息。Optionally, the BLE chip is further configured to: receive the second identity information of the master device sent by the master device and save the data; and send the Bluetooth broadcast information that includes the second identity identifier information when the Bluetooth broadcast message is sent again.
在本发明实施例提供的蓝牙设备中,还可以包括flash闪存,配置为保存主设备的第二身份标识信息。主设备的第二身份标识信息优选为主设备的MAC物理地址,预设的第一身份标识信息优选为6个字节的字符串,而第一身份识别信息的6个字节的数据可以都是0。The Bluetooth device provided by the embodiment of the present invention may further include a flash memory configured to save the second identity information of the master device. The second identity information of the master device is preferably a MAC physical address of the master device, and the preset first identity identifier information is preferably a 6-byte character string, and the 6-byte data of the first identity identification information may be It is 0.
本发明实施例还提供了一种蓝牙连接系统,包括:The embodiment of the invention further provides a Bluetooth connection system, including:
至少一个从设备,配置为发送包含有身份标识信息的蓝牙广播信息;At least one slave device configured to send Bluetooth broadcast information including identity information;
主设备,配置为接收从设备发送的蓝牙广播信息,判断该蓝牙广播信息中所包含的身份标识信息是否与主设备需要识别的身份标识信息匹配;若是,则与从设备建立蓝牙连接。The master device is configured to receive the Bluetooth broadcast information sent by the slave device, determine whether the identity identifier information included in the Bluetooth broadcast message matches the identity identifier information that the master device needs to identify; if yes, establish a Bluetooth connection with the slave device.
如图3所示,蓝牙连接系统中包含了一个主设备和三个从设备,在实际应用中,主设备与从设备的数量还可以为其他,本发明不做限定。As shown in FIG. 3, the Bluetooth connection system includes one master device and three slave devices. In actual applications, the number of master devices and slave devices may be other, and the present invention is not limited thereto.
在本发明实施例中,为了主设备能够在首次蓝牙连接时精准识别出需要配对的从设备,主设备还可以配置为首次接收多个从设备发送的包含有身份标识信息的蓝牙广播信息时,判断上述蓝牙广播信息中是否包含有预设的第一身份标识信息,如果判断出有一个从设备的蓝牙广播信息中包含有预设的第一身份标识信息,则与该从设备首次建立蓝牙连接。In the embodiment of the present invention, when the master device can accurately identify the slave device that needs to be paired during the first Bluetooth connection, the master device can also be configured to receive the Bluetooth broadcast information that includes the identity information sent by multiple slave devices for the first time. Determining whether the Bluetooth broadcast information includes the preset first identity information, and if it is determined that the Bluetooth broadcast information of the slave device includes the preset first identity information, establishing a Bluetooth connection with the slave device for the first time. .
第一身份标识信息可以是6个字节的字符串,进一步地,可以是6个字节数据全为0的字符串。当然,第一身份标识信息还可以设置其他形式,本发明不做限定。The first identity information may be a 6-byte string, and further, may be a string of 6 bytes of data all zeros. Of course, the first identity information may also be in other forms, which is not limited by the present invention.
当主设备和从设备首次建立蓝牙连接之后,主设备可以将其第二身份标识信息发送至从设备保存,当从设备再次发送蓝牙广播信息时,可以发送包含有第二身边标识信息的蓝牙广播信息,当从设备接收到该蓝牙广播信息后,就可以更加准确并快速识别出需要配对连接的从设备,进而建立蓝牙连接。After the master device and the slave device establish a Bluetooth connection for the first time, the master device may send the second identity information to the slave device, and when the slave device transmits the Bluetooth broadcast message again, the Bluetooth broadcast message including the second side identifier information may be sent. After receiving the Bluetooth broadcast information from the device, the slave device that needs to be paired can be more accurately and quickly identified, thereby establishing a Bluetooth connection.
在本发明实施例中,主设备中可以包括第一BLE芯片,配置为以 接收从设备发送的蓝牙广播信息;判断上述蓝牙广播信息中所包含的身份标识信息是否与需要识别的身份标识信息匹配;若是,则与从设备建立蓝牙连接。In the embodiment of the present invention, the master device may include a first BLE chip configured to receive Bluetooth broadcast information sent by the slave device, and determine whether the identity identifier information included in the Bluetooth broadcast information matches the identity identifier information that needs to be identified. ; if so, establish a Bluetooth connection with the slave.
可选地,第一BLE芯片还可以配置为,当与从设备首次建立蓝牙连接时,接收从设备发送的蓝牙广播信息;判断蓝牙广播信息中是否包含预设的第一身份标识信息;若是,则与从设备建立蓝牙连接。Optionally, the first BLE chip may be further configured to: when the first connection is established with the slave device, receive the Bluetooth broadcast information sent by the slave device; determine whether the Bluetooth broadcast message includes the preset first identity identifier information; if yes, Then establish a Bluetooth connection with the slave device.
进一步地,第一BLE芯片还可以配置为,与从设备建立首次蓝牙连接后,将第二身份标识信息发送至从设备保存;当再次接收从设备发送的蓝牙广播信息时,判断蓝牙广播信息中是否包含第二身份标识信息,若是,则与从设备建立蓝牙连接。Further, the first BLE chip may be further configured to send the second identity information to the slave device after establishing the first Bluetooth connection with the slave device, and determine the Bluetooth broadcast message when the Bluetooth broadcast information sent by the slave device is received again. Whether the second identity information is included, and if so, establishes a Bluetooth connection with the slave.
从设备中可以包括第二BLE芯片,配置为发送蓝牙广播信息,蓝牙广播信息中包含有主设备需要识别的身份标识信息;响应于主设备发送的连接请求与主设备建立蓝牙连接;其中,连接请求为主设备判断蓝牙广播信息中包含的身份标识信息与其需要识别的身份标识信息相同时发送的。The slave device may include a second BLE chip configured to send Bluetooth broadcast information, where the Bluetooth broadcast information includes identity identification information that the master device needs to identify; and establish a Bluetooth connection with the master device in response to the connection request sent by the master device; wherein, the connection The request is sent by the host device when it is determined that the identity identification information included in the Bluetooth broadcast information is the same as the identity identification information that needs to be identified.
可选地,第二BLE芯片还可以配置为:发送蓝牙广播信息,蓝牙广播信息中包含有预设的第一身份标识信息;响应于主设备发送的首次连接请求与主设备首次建立蓝牙连接;其中,首次连接请求为主设备检测到蓝牙广播信息中包含预设的第一身份标识信息时发送的。Optionally, the second BLE chip is further configured to: send Bluetooth broadcast information, where the Bluetooth broadcast information includes preset first identity information; and establish a Bluetooth connection with the master device for the first time in response to the first connection request sent by the master device; The first connection request is sent when the primary device detects that the Bluetooth broadcast information includes the preset first identity information.
进一步地,第二BLE芯片还可以配置为,接收主设备发送的主设备的第二身份标识信息并保存;再次发送蓝牙广播信息时,发送包含有第二身份标识信息的蓝牙广信息。Further, the second BLE chip may be configured to receive the second identity information of the master device sent by the master device and save the data. When the Bluetooth broadcast message is sent again, the Bluetooth banner information including the second identity identifier information is sent.
优选地,主设备的第二身份标识信息可以是主设备具备唯一性的MAC地址,从设备接收到主设备的MAC地址后,可以优先将其保存至flash中。Preferably, the second identity information of the master device may be a MAC address unique to the master device. After receiving the MAC address of the master device, the slave device may preferentially save the device to the flash.
下面通过一个优选的实施例对上述实施例进行说明,以坐姿矫正台灯和穿戴设备建立蓝牙连接关系为例,如图4所示。其中,主设备为坐姿矫正台灯,从设备为穿戴设备。The above embodiment is described by way of a preferred embodiment, and the Bluetooth connection relationship is established by the sitting posture correction lamp and the wearable device as an example, as shown in FIG. 4 . Among them, the main device is a sitting posture correction table lamp, and the slave device is a wear device.
坐姿矫正台灯和穿戴设备中均设置有BLE芯片,由于BLE芯片的广播数据包中可以携带自定义的数据内容,因此,可以预先在穿戴设备的BLE芯片中自定义6个字节的字符串,并且当该6个字节的字符串为一固定值,如6个字节为全0时,则表示与坐姿矫正台灯连接。The BLE chip is provided in the sitting posture correction lamp and the wearable device. Since the broadcast data packet of the BLE chip can carry the customized data content, the 6-byte character string can be customized in the BLE chip of the wearable device in advance. And when the 6-byte string is a fixed value, for example, when 6 bytes are all 0, it means that it is connected to the sitting posture correction lamp.
坐姿矫正台灯与穿戴设备的蓝牙连接其实就是坐姿矫正台灯中BLE芯片预穿戴设备中的BLE芯片的蓝牙连接,如果将坐姿矫正台灯设置为主设备,穿戴设备为从设备,则坐姿矫正台灯和穿戴设备的蓝牙连接过程如下:The Bluetooth connection between the sitting posture correction table lamp and the wearable device is actually the Bluetooth connection of the BLE chip in the BLE chip pre-wearing device in the sitting posture correction table lamp. If the sitting posture correction table lamp is set as the master device and the wearable device is the slave device, the sitting posture correction table lamp and wear The Bluetooth connection process of the device is as follows:
1.坐姿矫正台灯首次接收穿戴设备发送的蓝牙广播信息;1. The sitting posture correction desk lamp receives the Bluetooth broadcast information sent by the wearable device for the first time;
2.坐姿矫正台灯解析上述蓝牙广播信息,判断上述蓝牙广播信息中包含有6个字节字符串;2. The sitting posture correction table lamp analyzes the above-mentioned Bluetooth broadcast information, and determines that the Bluetooth broadcast information includes a 6-byte character string;
3.如果,上述蓝牙广播信息中包含有6个字节的字符串的数据都是0,则坐姿矫正台灯主动向穿戴设备发起建立蓝牙连接请求,穿戴设备接收之后,就与坐姿矫正台灯建立了首次蓝牙连接;3. If the data of the 6-byte character string in the above-mentioned Bluetooth broadcast information is 0, the sitting posture correcting lamp actively initiates a Bluetooth connection request to the wearable device, and after the wearable device receives the set, it is established with the sitting posture correcting lamp. First Bluetooth connection;
4.坐姿矫正台灯与穿戴设备建立好蓝牙连接之后,坐姿矫正台灯将其MAC地址发送穿戴设备保存。4. After the sitting posture correction lamp and the wearable device establish a Bluetooth connection, the sitting posture correction lamp saves its MAC address to the wearable device.
其中,坐姿矫正台灯的MAC地址可以保存到穿戴设备的flash闪存中,可以防止信息的丢失,有效地存储。The MAC address of the sitting posture correction lamp can be saved in the flash memory of the wearable device, which can prevent information loss and effectively store.
5.当穿戴设备再次发送蓝牙广播信息时,可以将坐姿矫正台灯的MAC地址添加到蓝牙广播信息中,或者将原有的蓝牙广播信息替换为主设备的MAC地址;5. When the wearable device sends the Bluetooth broadcast information again, the MAC address of the sitting posture correction lamp can be added to the Bluetooth broadcast information, or the original Bluetooth broadcast information can be replaced with the MAC address of the main device;
6.坐姿矫正台灯接收到穿戴设备发送的蓝牙广播信息后,对其进行解析,发现其中包含有自身的MAC地址时,就会主动向穿戴设备发起蓝牙连接请求,进而与穿戴设备建立蓝牙连接。6. After receiving the Bluetooth broadcast information sent by the wearable device, the sitting posture correction table lamp analyzes and finds that it contains its own MAC address, and then initiates a Bluetooth connection request to the wearable device, thereby establishing a Bluetooth connection with the wearable device.
一般情况下,坐姿矫正台灯包括两部分:照明功能的台灯部分,可以佩戴的具有错误坐姿识别功能的传感器部分即上文提及的穿戴设备,台灯部分和穿戴设备可通过蓝牙识别进行连接。如果采样传统的蓝牙连接方法,台灯部分和穿戴设备建立蓝牙连接时,需要用户手动搜索建立连接,而且如果搜索到多个同名的蓝牙设备时,用户就需要依次尝试进行连接。而根据本发明实施例提供的蓝牙连接方法,坐姿矫正台灯和穿戴设备建立蓝牙连接的过程中,无论是首次建立蓝牙连接还是后续建立蓝牙连接,均无需用户手动操作就可以实现坐姿矫正台灯和穿戴设备的自动连接。首次连接时,穿戴设备中会包含有坐姿矫正台灯可识别的身份标识信息,坐姿矫正台灯识别到之后发现其为需要识别的身份标识信息匹配,那么就会与穿戴设备建立蓝牙连接,并且会将其唯一的MAC地址发送至穿戴设备保存。如果坐姿矫正台灯 和穿戴设备需再次连接,则坐姿矫正台灯接收穿戴设备发送的蓝牙广播信息之后,就会解析并判断该蓝牙广播信息中所包含的MAC地址是否与坐姿矫正台灯的MAC地址匹配,如果匹配,则主动连接穿戴设备。In general, the sitting posture correction lamp includes two parts: a lamp portion for the illumination function, a sensor portion that can be worn with the wrong sitting posture recognition function, that is, the wearable device mentioned above, and the lamp portion and the wearable device can be connected by Bluetooth recognition. If the traditional Bluetooth connection method is sampled, when the desk lamp part and the wearable device establish a Bluetooth connection, the user needs to manually search for the connection, and if multiple Bluetooth devices with the same name are searched, the user needs to try to connect in sequence. According to the Bluetooth connection method provided by the embodiment of the present invention, in the process of establishing a Bluetooth connection between the sitting posture correction lamp and the wearable device, whether the Bluetooth connection is established for the first time or the Bluetooth connection is established subsequently, the sitting posture correction lamp and the wear can be realized without manual operation by the user. Automatic connection of the device. When the first connection is made, the wearable device may include the identification information recognizable by the sitting posture correction lamp. After the sitting posture correction lamp recognizes that it matches the identification information that needs to be identified, a Bluetooth connection is established with the wearable device, and the device will establish a Bluetooth connection with the wearable device. Its unique MAC address is sent to the wearable device for saving. If the sitting posture correction lamp and the wearing device need to be connected again, after the sitting posture correction lamp receives the Bluetooth broadcast information sent by the wearable device, it parses and determines whether the MAC address included in the Bluetooth broadcast information matches the MAC address of the sitting posture correction lamp. If it matches, the wearable device is actively connected.
本发明实施例提供了一种蓝牙连接方法、蓝牙设备及蓝牙连接系统,根据本发明实施例提供的蓝牙连接方法,通过蓝牙广播技术实现主从设备的自动配对连接,而且本发明提供的作为主设备、从设备的蓝牙设备结构简单易实现,尤其是有很多主设备和从设备的时候,根据本发明提供的蓝牙连接方法,首次建立蓝牙连接时,主设备可以解析从设备发送的蓝牙广播信息是否与需要识别的预设字节的字符串匹配,如果是的话就与从设备建立首次蓝牙连接,再将其MAC地址发送至从设备,由从设备保存后添加至下次发送的蓝牙广播信息中,以便与主设备再次连接时可以更加快速识别并连接。通过设备两个具备代表性的身边标识信息,主设备可以精准识别出需要匹配的从设备,并快速建立蓝牙连接。尤其是对于坐姿矫正台灯,用户在佩戴好穿戴设备之前,坐姿矫正台灯与穿戴设备就已经自动建立了蓝牙连接,蓝牙连接过程相对于用户是透明的,用户在使用该坐姿矫正台灯的时候只需要佩戴好穿戴设备就可以进行坐姿识别了,使用非常方便。The embodiment of the present invention provides a Bluetooth connection method, a Bluetooth device, and a Bluetooth connection system. According to the Bluetooth connection method provided by the embodiment of the present invention, an automatic pairing connection between a master and a slave device is implemented through a Bluetooth broadcast technology, and the present invention provides the main connection. The Bluetooth device structure of the device and the slave device is simple and easy to implement, especially when there are many master devices and slave devices. According to the Bluetooth connection method provided by the present invention, when the Bluetooth connection is established for the first time, the master device can parse the Bluetooth broadcast information sent by the slave device. Whether it matches the string of the preset byte that needs to be recognized, if yes, establishes the first Bluetooth connection with the slave device, and then sends its MAC address to the slave device, and the slave device saves and adds it to the Bluetooth broadcast information sent next time. Medium to identify and connect more quickly when connected to the primary device. Through the two representative identification information of the device, the master device can accurately identify the slave devices that need to be matched and quickly establish a Bluetooth connection. Especially for the sitting posture correction table lamp, before the user wears the wearing device, the sitting posture correction lamp and the wearing device have automatically established a Bluetooth connection, and the Bluetooth connection process is transparent with respect to the user, and the user only needs to correct the table lamp when using the sitting posture. You can use the wearable device to recognize the sitting position and it is very convenient to use.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, the various features of the invention are sometimes grouped together into a single embodiment, in the above description of the exemplary embodiments of the invention, Figure, or a description of it. However, the method disclosed is not to be interpreted as reflecting the intention that the claimed invention requires more features than those recited in the claims. Rather, as the following claims reflect, inventive aspects reside in less than all features of the single embodiments disclosed herein. Therefore, the claims following the specific embodiments are hereby explicitly incorporated into the embodiments, and each of the claims as a separate embodiment of the invention.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施 例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features that are included in other embodiments and not in other features, combinations of features of different embodiments are intended to be within the scope of the present invention. Different embodiments are formed and formed. For example, in the claims, any one of the claimed embodiments can be used in any combination.
至此,本领域技术人员应认识到,虽然本文已详尽示出和描述了本发明的多个示例性实施例,但是,在不脱离本发明精神和范围的情况下,仍可根据本发明公开的内容直接确定或推导出符合本发明原理的许多其他变型或修改。因此,本发明的范围应被理解和认定为覆盖了所有这些其他变型或修改。In this regard, it will be appreciated by those skilled in the <RTIgt;the</RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; The content directly determines or derives many other variations or modifications consistent with the principles of the invention. Therefore, the scope of the invention should be understood and construed as covering all such other modifications or modifications.

Claims (24)

  1. 一种蓝牙连接方法,包括:A Bluetooth connection method includes:
    主设备接收至少一个从设备发送的包含有身份标识信息的蓝牙广播信息;The master device receives at least one Bluetooth broadcast information that is sent by the device and includes the identity information.
    判断所述蓝牙广播信息中所包含的身份标识信息是否与所述主设备需要识别的身份标识信息匹配;Determining whether the identity identification information included in the Bluetooth broadcast information matches the identity identification information that the primary device needs to identify;
    若是,则与所述从设备建立蓝牙连接。If yes, establish a Bluetooth connection with the slave device.
  2. 根据权利要求1所述的方法,其中,主设备接收至少一个从设备发送的包括身份标识信息的蓝牙广播信息之前,还包括:The method according to claim 1, wherein before the master device receives the Bluetooth broadcast information including the identity information sent by the at least one slave device, the method further includes:
    所述主设备首次接收至少一个从设备发送的包含有身份标识信息的蓝牙广播信息;Receiving, by the master device for the first time, at least one Bluetooth broadcast information that is sent by the device and containing the identity information;
    判断所述蓝牙广播信息中是否包含预设的第一身份标识信息;Determining whether the Bluetooth broadcast information includes preset first identity identification information;
    若是,则与所述从设备首次建立蓝牙连接。If yes, the Bluetooth connection is first established with the slave device.
  3. 根据权利要求2所述的方法,其中,与所述从设备首次建立蓝牙连接之后,还包括:The method of claim 2, after the first establishment of the Bluetooth connection with the slave device, further comprising:
    所述从设备接收并记录所述主设备发送的第二身身份识信息;Receiving and recording, by the slave device, second body identity information sent by the master device;
    所述从设备再次发送蓝牙广播信息时,所述从设备发送包含有所述第二身份标识信息的蓝牙广播信息至所述主设备识别;When the slave device sends the Bluetooth broadcast information again, the slave device sends the Bluetooth broadcast information including the second identity identifier information to the master device for identification;
    响应于所述主设备的蓝牙连接请求与所述主设备建立蓝牙连接。Establishing a Bluetooth connection with the master device in response to the Bluetooth connection request of the master device.
  4. 根据权利要求3所述的方法,其中,所述第二身份标识信息保存在所述从设备的flash闪存中。The method of claim 3 wherein said second identity information is stored in a flash memory of said slave device.
  5. 根据权利要求3所述的方法,其中,所述第二身份标识信息为所述主设备的MAC物理地址。The method of claim 3, wherein the second identity information is a MAC physical address of the master device.
  6. 根据权利要求2所述的方法,其中,所述第一身份标识信息为6个字节的字符串。The method of claim 2, wherein the first identity information is a 6-byte string.
  7. 根据权利要求6所述的方法,其中,所述第一身份识别信息的6个字节的数据都是0。The method of claim 6 wherein the 6 bytes of data of the first identification information are all zeros.
  8. 根据权利要求5所述的方法,其中,所述第二身份标识信息和所述第一身份标识信息包含在所述从设备中的BLE蓝牙低能耗芯片发送的蓝牙广播信息中。The method of claim 5, wherein the second identity identification information and the first identity identification information are included in Bluetooth broadcast information transmitted by a BLE Bluetooth low energy chip in the slave device.
  9. 根据权利要求1-8任一项所述的方法,其中,所述主设备为坐 姿矫正台灯,所述从设备为穿戴设备。The method of any of claims 1-8, wherein the primary device is a sitting correction desk lamp and the slave device is a wear device.
  10. 一种蓝牙设备,包括BLE芯片,所述BLE芯片配置为:A Bluetooth device, comprising a BLE chip, the BLE chip configured to:
    以所述蓝牙设备作为主设备接收从设备发送的蓝牙广播信息;判断所述蓝牙广播信息中所包含的身份标识信息是否与需要识别的身份标识信息匹配;若是,则与所述从设备建立蓝牙连接。Receiving, by the Bluetooth device as a master device, Bluetooth broadcast information sent by the slave device, determining whether the identity identifier information included in the Bluetooth broadcast message matches the identity identifier information that needs to be identified; if yes, establishing a Bluetooth with the slave device connection.
  11. 根据权利要求10所述的设备,其中,所述BLE芯片还配置为:The device of claim 10, wherein the BLE chip is further configured to:
    当与所述从设备首次建立蓝牙连接时,接收所述从设备发送的蓝牙广播信息;判断所述蓝牙广播信息中是否包含预设的第一身份标识信息;若是,则与所述从设备建立蓝牙连接。Receiving a Bluetooth connection information sent by the slave device when the first time establishing a Bluetooth connection with the slave device; determining whether the Bluetooth broadcast message includes preset first identity identification information; if yes, establishing with the slave device Bluetooth connection.
  12. 根据权利要求11所述的设备,其中,所述BLE芯片还配置为:The device of claim 11, wherein the BLE chip is further configured to:
    与所述从设备建立首次蓝牙连接后,将第二身份标识信息发送至所述从设备保存;After establishing the first Bluetooth connection with the slave device, sending the second identity information to the slave device for saving;
    当再次接收所述从设备发送的蓝牙广播信息时,判断所述蓝牙广播信息中是否包含所述第二身份标识信息,若是,则与所述从设备建立蓝牙连接。When the Bluetooth broadcast information sent by the slave device is received again, it is determined whether the second identifier information is included in the Bluetooth broadcast information, and if yes, a Bluetooth connection is established with the slave device.
  13. 根据权利要求12所述的设备,其中,所述第二身份标识信息为所述蓝牙设备的MAC物理地址。The device of claim 12, wherein the second identity information is a MAC physical address of the Bluetooth device.
  14. 根据权利要求11所述的设备,其中,所述第一身份标识信息为6个字节的字符串。The apparatus of claim 11, wherein the first identity identification information is a 6-byte character string.
  15. 根据权利要求14所述的设备,其中,所述第一身份识别信息为6个字节的数据都是0。The apparatus according to claim 14, wherein said first identification information is 6 bytes of data which is 0.
  16. 一种蓝牙设备,包括:BLE芯片,所述BLE芯片配置为:A Bluetooth device includes: a BLE chip, and the BLE chip is configured to:
    以所述蓝牙设备作为从设备发送蓝牙广播信息,所述蓝牙广播信息中包含有主设备需要识别的身份标识信息;响应于所述主设备发送的连接请求与所述主设备建立蓝牙连接;Transmitting, by the Bluetooth device, a Bluetooth broadcast information as a slave device, where the Bluetooth broadcast information includes identity identifier information that the master device needs to identify; and establishing a Bluetooth connection with the master device in response to the connection request sent by the master device;
    其中,所述连接请求为所述主设备判断所述蓝牙广播信息中包含的身份标识信息与其需要识别的身份标识信息相同时发送的。The connection request is sent when the primary device determines that the identity identification information included in the Bluetooth broadcast information is the same as the identity identification information that needs to be identified.
  17. 根据权利要求16所述的设备,其中,所述BLE芯片还配置为:The device of claim 16, wherein the BLE chip is further configured to:
    发送蓝牙广播信息,所述蓝牙广播信息中包含有预设的第一身份标识信息;响应于所述主设备发送的首次连接请求与所述主设备首次建立蓝牙连接;Sending Bluetooth broadcast information, where the Bluetooth broadcast information includes preset first identity information; and establishing a Bluetooth connection with the master device for the first time in response to the first connection request sent by the master device;
    其中,所述首次连接请求为所述主设备检测到所述蓝牙广播信息 中包含所述预设的第一身份标识信息时发送的。The first connection request is sent when the primary device detects that the Bluetooth broadcast information includes the preset first identity information.
  18. 根据权利要求17所述的设备,其中,所述BLE芯片还配置为:The device of claim 17, wherein the BLE chip is further configured to:
    接收所述主设备发送的所述主设备的第二身份标识信息并保存;Receiving second identity information of the primary device sent by the primary device and saving the information;
    再次发送蓝牙广播信息时,发送包含有所述第二身份标识信息的蓝牙广信息。When the Bluetooth broadcast information is sent again, the Bluetooth wide information including the second identity information is transmitted.
  19. 根据权利要求18所述的设备,其中,还包括:The device of claim 18, further comprising:
    flash闪存,配置为保存所述第二身份标识信息。a flash memory configured to save the second identity information.
  20. 根据权利要求18所述的设备,其中,所述第二身份标识信息为所述主设备的MAC物理地址。The device of claim 18, wherein the second identity information is a MAC physical address of the master device.
  21. 根据权利要求17所述的设备,其中,所述第一身份标识信息为6个字节的字符串。The apparatus of claim 17, wherein the first identity identification information is a 6-byte character string.
  22. 根据权利要求21所述的设备,其中,所述第一身份识别信息的6个字节的数据都是0。The apparatus according to claim 21, wherein said 6-byte data of said first identification information is 0.
  23. 一种蓝牙连接系统,包括:A Bluetooth connection system comprising:
    至少一个从设备,配置为发送包含有身份标识信息的蓝牙广播信息;At least one slave device configured to send Bluetooth broadcast information including identity information;
    主设备,配置为接收所述从设备发送的蓝牙广播信息,判断所述蓝牙广播信息中所包含的身份标识信息是否与所述主设备需要识别的身份标识信息匹配;若是,则与所述从设备建立蓝牙连接。The master device is configured to receive the Bluetooth broadcast information sent by the slave device, and determine whether the identity identifier information included in the Bluetooth broadcast information matches the identity identifier information that the master device needs to identify; if yes, the slave device The device establishes a Bluetooth connection.
  24. 根据权利要求23所述的系统,其中,所述主设备为坐姿矫正台灯,所述从设备为穿戴设备。The system of claim 23 wherein said primary device is a sitting posture correction table lamp and said slave device is a wear device.
PCT/CN2018/089295 2017-06-06 2018-05-31 Bluetooth connection method, bluetooth apparatus, and bluetooth connection system WO2018223892A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201720649517.2 2017-06-06
CN201710419001.3 2017-06-06
CN201720649517.2U CN207399521U (en) 2017-06-06 2017-06-06 Bluetooth equipment and bluetooth connection system
CN201710419001.3A CN107197424B (en) 2017-06-06 2017-06-06 Bluetooth connection method, bluetooth device and Bluetooth connection system

Publications (1)

Publication Number Publication Date
WO2018223892A1 true WO2018223892A1 (en) 2018-12-13

Family

ID=64565731

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/089295 WO2018223892A1 (en) 2017-06-06 2018-05-31 Bluetooth connection method, bluetooth apparatus, and bluetooth connection system

Country Status (1)

Country Link
WO (1) WO2018223892A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110582078A (en) * 2019-08-28 2019-12-17 RealMe重庆移动通信有限公司 Bluetooth pairing method and device, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8965337B2 (en) * 2006-06-07 2015-02-24 Broadcom Corporation Method and system for discovering communication devices
US20160278016A1 (en) * 2015-03-20 2016-09-22 Google Inc. Systems and methods for localized device wakeup using bluetooth low energy communications
CN106454713A (en) * 2016-12-07 2017-02-22 飞天诚信科技股份有限公司 Method and device for pairing and synchronizing mobile equipment and Bluetooth equipment
WO2017076249A1 (en) * 2015-11-03 2017-05-11 国民技术股份有限公司 Pairing method, pairing apparatus, smart terminal, and smart card
CN107197424A (en) * 2017-06-06 2017-09-22 欧普照明股份有限公司 Bluetooth connecting method, bluetooth equipment and bluetooth connection system
CN207399521U (en) * 2017-06-06 2018-05-22 欧普照明股份有限公司 Bluetooth equipment and bluetooth connection system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8965337B2 (en) * 2006-06-07 2015-02-24 Broadcom Corporation Method and system for discovering communication devices
US20160278016A1 (en) * 2015-03-20 2016-09-22 Google Inc. Systems and methods for localized device wakeup using bluetooth low energy communications
WO2017076249A1 (en) * 2015-11-03 2017-05-11 国民技术股份有限公司 Pairing method, pairing apparatus, smart terminal, and smart card
CN106454713A (en) * 2016-12-07 2017-02-22 飞天诚信科技股份有限公司 Method and device for pairing and synchronizing mobile equipment and Bluetooth equipment
CN107197424A (en) * 2017-06-06 2017-09-22 欧普照明股份有限公司 Bluetooth connecting method, bluetooth equipment and bluetooth connection system
CN207399521U (en) * 2017-06-06 2018-05-22 欧普照明股份有限公司 Bluetooth equipment and bluetooth connection system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110582078A (en) * 2019-08-28 2019-12-17 RealMe重庆移动通信有限公司 Bluetooth pairing method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN107197424B (en) Bluetooth connection method, bluetooth device and Bluetooth connection system
JP6373834B2 (en) System and method for low overhead wireless beacon timing
CN105027594B (en) System and method for finding the equipment in neighborhood aware network
CN104919828B (en) System and method for formatting the frame in neighborhood aware network
US8848636B2 (en) Addressing schemes for wireless communication
KR102081936B1 (en) Method and device for searching for supported service through wifi direct network
US10609538B2 (en) Method and device for identifying bluetooth headset voice source
EP2991435B1 (en) Communication apparatus and control method of communication apparatus
JP6411498B2 (en) Private service identifier including hash value in the neighborhood aware network
US20170265127A1 (en) Device and method for accessing multiple networks in wireless communication system
TWI662811B (en) Data transmission method, device and system
WO2012116544A1 (en) Bluetooth connection method
CN107222372A (en) A kind of method for sending information and equipment
CN107147743B (en) Communication method of Internet of things system based on simplified Internet of things communication protocol
CN104661230A (en) Method and device for establishing wireless local area network based on near field communication
KR20160045772A (en) Method for establishing wireless local area network by mobile terminal, and mobile terminal
WO2017000915A1 (en) Multicast transmission method, information extraction method and corresponding terminal and device
US11641576B2 (en) Method and apparatus for identifying dual-mode wireless device, IOS device, and medium
CN111050306A (en) Extended connection method and extended connection system for Bluetooth device
JP2008219482A (en) Information distribution system in radio packet communication system, information distribution method and information distribution device
CN207399521U (en) Bluetooth equipment and bluetooth connection system
WO2016058166A1 (en) Method for triggering registration machine protocol interaction, access point and station point
WO2018223892A1 (en) Bluetooth connection method, bluetooth apparatus, and bluetooth connection system
KR100678942B1 (en) Wireless network device and communication method using wireless network device
WO2016117926A1 (en) Method for performing discovery in wireless communication system and device therefor

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18813684

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18813684

Country of ref document: EP

Kind code of ref document: A1