CN113838275B - Bluetooth batch pairing method, display device and readable storage medium - Google Patents
Bluetooth batch pairing method, display device and readable storage medium Download PDFInfo
- Publication number
- CN113838275B CN113838275B CN202111285764.6A CN202111285764A CN113838275B CN 113838275 B CN113838275 B CN 113838275B CN 202111285764 A CN202111285764 A CN 202111285764A CN 113838275 B CN113838275 B CN 113838275B
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- bluetooth remote
- remote controller
- target
- display device
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C17/00—Arrangements for transmitting signals characterised by the use of a wireless electrical link
- G08C17/02—Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
- H04B5/40—Near-field transmission systems, e.g. inductive or capacitive transmission systems characterised by components specially adapted for near-field transmission
- H04B5/48—Transceivers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Selective Calling Equipment (AREA)
Abstract
Description
技术领域technical field
本发明涉及显示设备技术领域,尤其涉及一种蓝牙批量配对方法、显示设备及计算机可读存储介质。The invention relates to the technical field of display devices, in particular to a Bluetooth batch pairing method, a display device and a computer-readable storage medium.
背景技术Background technique
随着电视机行业的发展,出现了与电视机配套使用的蓝牙遥控器,蓝牙遥控器与传统的红外遥控器相比,具有穿透能力强、抗干扰能力强等优点,且可以360度无死角操控电视机,因此蓝牙遥控器受到了用户的青睐。With the development of the TV industry, there has been a Bluetooth remote control that is used in conjunction with the TV. Compared with the traditional infrared remote control, the Bluetooth remote control has the advantages of strong penetrating ability and strong anti-interference ability. The dead angle controls the TV, so the bluetooth remote control is favored by users.
为了避免用户购买电视机后还需要先对蓝牙遥控器和电视机做适配才能使用电视机,影响用户的体验,电视机在出货前会将蓝牙遥控器与电视机提前做适配,再随电视机一起出货。但由于生产线上是流水作业,同时进行多台电视机和蓝牙遥控器的匹配有可能会造成电视机配错蓝牙遥控器,目前生产作业员是通过单台电视机逐一进行匹配,这样虽能避免配错的问题,但适配效率很低,影响生产效率。In order to prevent the user from having to adapt the Bluetooth remote control to the TV before using the TV after purchasing the TV, which will affect the user experience, the Bluetooth remote control will be adapted to the TV before the TV is shipped, and then Ships with TV. However, due to the assembly line operation on the production line, matching multiple TVs and Bluetooth remote controls at the same time may cause TVs to be matched with wrong Bluetooth remote controls. Currently, production operators use a single TV to match one by one. Although this can avoid The problem of mismatching, but the adaptation efficiency is very low, which affects production efficiency.
发明内容Contents of the invention
本发明的主要目的在于提供一种蓝牙批量配对方法、显示设备及计算机可读存储介质,旨在解决现有技术中电视机在出厂前,生产线上将电视机与蓝牙遥控器做适配时,适配效率低,影响生产效率的问题。The main purpose of the present invention is to provide a Bluetooth batch pairing method, a display device, and a computer-readable storage medium, aiming at solving the problem of adapting the TV and the Bluetooth remote controller on the production line before the TV leaves the factory in the prior art. The adaptation efficiency is low, which affects the production efficiency.
为实现上述目的,本发明实施例提供一种蓝牙批量配对方法,所述蓝牙批量配对方法应用于显示设备的生产线上,所述生产线包括多个显示设备与多个蓝牙遥控器,所述蓝牙批量配对方法包括:In order to achieve the above object, the embodiment of the present invention provides a Bluetooth batch pairing method, the Bluetooth batch pairing method is applied to the production line of the display device, the production line includes a plurality of display devices and a plurality of Bluetooth remote controllers, the Bluetooth batch pairing method Pairing methods include:
当所述显示设备开机后,启动蓝牙扫描功能,并检测扫描到的各蓝牙遥控器的蓝牙信号强度;After the display device is turned on, start the bluetooth scanning function, and detect the bluetooth signal strength of each bluetooth remote controller scanned;
根据检测到的多个蓝牙遥控器的蓝牙信号强度,在多个蓝牙遥控器中确定目标蓝牙遥控器;Determine the target Bluetooth remote controller among the multiple Bluetooth remote controllers according to the detected Bluetooth signal strengths of the multiple Bluetooth remote controllers;
向所述目标蓝牙遥控器发送连接请求,所述连接请求携带目标蓝牙遥控器的第一功率档位差值;Sending a connection request to the target Bluetooth remote controller, the connection request carrying the first power level difference of the target Bluetooth remote controller;
接收目标蓝牙遥控器基于连接请求反馈的第一响应消息,所述第一响应消息携带显示设备的第二功率档位差值;Receiving the first response message fed back by the target Bluetooth remote controller based on the connection request, the first response message carrying the second power level difference of the display device;
根据所述第二功率档位差值确定显示设备的第一目标发射功率;determining a first target transmission power of the display device according to the second power level difference;
根据所述第一目标发射功率向所述目标蓝牙遥控器发送配对请求,以完成显示设备与目标蓝牙遥控器之间的蓝牙配对。Sending a pairing request to the target Bluetooth remote controller according to the first target transmission power, so as to complete the Bluetooth pairing between the display device and the target Bluetooth remote controller.
可选地,所述启动蓝牙扫描功能的步骤之前包括:Optionally, before the step of starting the bluetooth scanning function, the step includes:
判断显示设备是否存在已配对的蓝牙遥控器;Determine whether there is a paired Bluetooth remote control on the display device;
若存在已配对的蓝牙遥控器,则在预置的显示界面显示已配对的蓝牙遥控器的地址信息;If there is a paired Bluetooth remote controller, the address information of the paired Bluetooth remote controller will be displayed on the preset display interface;
若不存在已配对的蓝牙遥控器,则执行所述启动蓝牙扫描功能。If there is no paired bluetooth remote controller, execute the described function of starting the bluetooth scan.
可选地,所述若存在已配对的蓝牙遥控器,则在显示界面显示已配对的蓝牙遥控器的地址信息的步骤之后包括:Optionally, if there is a paired Bluetooth remote controller, after the step of displaying the address information of the paired Bluetooth remote controller on the display interface, it includes:
检测预设时间段内是否收到重新配对指令;Detect whether a re-pairing instruction is received within a preset time period;
若预设时间段内收到重新配对指令,则执行所述启动蓝牙扫描功能;If a re-pairing instruction is received within a preset time period, the Bluetooth scanning function is executed;
若预设时间段内未收到重新配对指令,则在显示界面继续显示已配对的蓝牙遥控器的地址信息。If no re-pairing instruction is received within the preset time period, the address information of the paired Bluetooth remote controller will continue to be displayed on the display interface.
可选地,所述根据检测到的多个蓝牙遥控器的蓝牙信号强度,在多个蓝牙遥控器中确定目标蓝牙遥控器的步骤包括:Optionally, the step of determining the target Bluetooth remote controller among the multiple Bluetooth remote controllers according to the detected Bluetooth signal strengths of the multiple Bluetooth remote controllers includes:
根据检测到的多个蓝牙遥控器的蓝牙信号强度,将蓝牙信号强度最强的蓝牙遥控器作为备选蓝牙遥控器;According to the detected Bluetooth signal strengths of multiple Bluetooth remote controllers, the Bluetooth remote controller with the strongest Bluetooth signal strength is used as an alternative Bluetooth remote controller;
将所述备选蓝牙遥控器的蓝牙信号强度与预设阈值进行比较;Comparing the Bluetooth signal strength of the optional Bluetooth remote controller with a preset threshold;
若所述备选蓝牙遥控器的蓝牙信号强度大于或等于预设阈值,将所述备选蓝牙遥控器作为目标蓝牙遥控器。If the Bluetooth signal strength of the candidate Bluetooth remote controller is greater than or equal to a preset threshold, the candidate Bluetooth remote controller is used as a target Bluetooth remote controller.
可选地,所述若所述备选蓝牙遥控器的蓝牙信号强度大于或等于预设阈值,将所述备选蓝牙遥控器作为目标蓝牙遥控器的步骤之前还包括:Optionally, if the Bluetooth signal strength of the candidate Bluetooth remote control is greater than or equal to a preset threshold, before the step of using the candidate Bluetooth remote control as the target Bluetooth remote control, the step further includes:
若所述备选蓝牙遥控器的蓝牙信号强度大于或等于预设阈值,根据备选蓝牙遥控器的蓝牙信号强度,计算备选蓝牙遥控器与显示设备的配对距离;If the Bluetooth signal strength of the optional Bluetooth remote controller is greater than or equal to a preset threshold, calculate the pairing distance between the optional Bluetooth remote controller and the display device according to the Bluetooth signal strength of the optional Bluetooth remote controller;
判断所述配对距离是否小于预设距离;judging whether the pairing distance is less than a preset distance;
若所述配对距离小于预设距离,则将所述备选蓝牙遥控器作为目标蓝牙遥控器。If the pairing distance is less than the preset distance, the candidate Bluetooth remote controller is used as the target Bluetooth remote controller.
可选地,所述向所述目标蓝牙遥控器发送连接请求的步骤之前包括:Optionally, before the step of sending a connection request to the target Bluetooth remote controller includes:
根据目标蓝牙遥控器的蓝牙信号强度,确定目标蓝牙遥控器的第一功率档位差值;Determine the first power level difference of the target Bluetooth remote controller according to the Bluetooth signal strength of the target Bluetooth remote controller;
根据所述目标蓝牙遥控器的第一功率档位差值生成连接请求。A connection request is generated according to the first power level difference of the target Bluetooth remote controller.
可选地,所述根据目标蓝牙遥控器的蓝牙信号强度,确定目标蓝牙遥控器的第一功率档位差值的步骤包括:Optionally, the step of determining the first power level difference of the target Bluetooth remote controller according to the Bluetooth signal strength of the target Bluetooth remote controller includes:
根据目标蓝牙遥控器的蓝牙信号强度以及预设功率信息报告表,确定目标蓝牙遥控器的第一初始功率档位;Determine the first initial power level of the target Bluetooth remote controller according to the Bluetooth signal strength of the target Bluetooth remote controller and the preset power information report table;
根据所述第一初始功率档位以及预设目标功率档位确定目标蓝牙遥控器的第一功率档位差值。The first power level difference of the target Bluetooth remote controller is determined according to the first initial power level and the preset target power level.
可选地,所述根据所述第二功率档位差值确定显示设备的第一目标发射功率的步骤包括:Optionally, the step of determining the first target transmit power of the display device according to the second power level difference includes:
根据所述第二功率档位差值以及预设相邻档位之间的发射功率差值确定调整功率;determining the adjusted power according to the second power gear difference and the transmit power difference between preset adjacent gears;
根据当前发射功率值以及调整功率确定显示设备的第一目标发射功率。The first target transmit power of the display device is determined according to the current transmit power value and the adjusted power.
此外,本发明还提供一种显示设备,所述显示设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述的蓝牙批量配对方法的步骤。In addition, the present invention also provides a display device, which includes: a memory, a processor, and a computer program stored in the memory and operable on the processor, the computer program being executed by the processor During execution, the steps of the above-mentioned Bluetooth batch pairing method are realized.
此外,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述的蓝牙批量配对方法的步骤。In addition, the present invention also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above Bluetooth batch pairing method are implemented.
本发明在显示设备开机后,启动蓝牙扫描功能,并检测扫描到的蓝牙遥控器的蓝牙信号强度;根据检测到的多个蓝牙遥控器的蓝牙信号强度,在多个蓝牙遥控器中确定目标蓝牙遥控器;向目标蓝牙遥控器发送带有第一功率档位差值的连接请求,并接收目标蓝牙遥控器基于连接请求反馈的第一响应消息,第一响应消息中携带有第二功率档位差值,显示设备根据第二功率档位差值确定第一目标发射功率,并以第一目标发射功率向目标蓝牙遥控器发送配对请求,完成之后的配对过程。通过在显示设备端设置信号强度检测机制和判断机制,显示设备可以自动选择与之配对的目标蓝牙遥控器,并在建立连接后以降低后的第一目标发射功率向目标蓝牙遥控器发送配对请求,完成后面的配对过程,减少了配对过程中对其他显示设备和蓝牙遥控器配对的干扰,从而使得生产线上可以同时进行多台显示设备与多台蓝牙遥控器的配对,而不会出现配错的问题,适配效率高,提高了生产效率。After the display device is powered on, the present invention starts the Bluetooth scanning function, and detects the Bluetooth signal strength of the scanned Bluetooth remote controllers; and determines the target Bluetooth among multiple Bluetooth remote controllers according to the detected Bluetooth signal strengths of multiple Bluetooth remote controllers. Remote control; send a connection request with the first power level difference to the target Bluetooth remote control, and receive the first response message fed back by the target Bluetooth remote control based on the connection request, the first response message carries the second power level difference, the display device determines the first target transmit power according to the difference of the second power level, and sends a pairing request to the target Bluetooth remote controller with the first target transmit power, and completes the subsequent pairing process. By setting the signal strength detection mechanism and judgment mechanism on the display device side, the display device can automatically select the target Bluetooth remote control to be paired with it, and send a pairing request to the target Bluetooth remote control with the reduced first target transmission power after the connection is established , to complete the following pairing process, which reduces the interference on the pairing of other display devices and Bluetooth remote controls during the pairing process, so that multiple display devices can be paired with multiple Bluetooth remote controls at the same time on the production line without mismatching problems, high adaptation efficiency, and improved production efficiency.
附图说明Description of drawings
图1为本发明实施例方案涉及的硬件运行环境的显示设备结构示意图;FIG. 1 is a schematic structural diagram of a display device of a hardware operating environment involved in the solution of an embodiment of the present invention;
图2为本发明蓝牙批量配对方法一实施例的流程示意图;Fig. 2 is a schematic flow chart of an embodiment of the Bluetooth batch pairing method of the present invention;
图3为图2中步骤A20的细化流程示意图。FIG. 3 is a schematic diagram of a detailed flow chart of step A20 in FIG. 2 .
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身没有特定的意义。因此,“模块”、“部件”或“单元”可以混合地使用。In the following description, use of suffixes such as 'module', 'part' or 'unit' for denoting elements is only for facilitating description of the present invention and has no specific meaning by itself. Therefore, 'module', 'part' or 'unit' may be used in combination.
参照图1,显示设备可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。Referring to FIG. 1 , the display device may include: a
可选地,显示设备还可以包括摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块等等。其中,传感器比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏的亮度。Optionally, the display device may further include a camera, an RF (Radio Frequency, radio frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Among them, sensors such as light sensors, motion sensors and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light.
本领域技术人员可以理解,图1中示出的显示设备结构并不构成对显示设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure of the display device shown in FIG. 1 is not limited to the display device, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及计算机程序。As shown in FIG. 1 , the
在图1所示的显示设备中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的计算机程序,并执行以下操作:In the display device shown in Fig. 1, the
当所述显示设备开机后,启动蓝牙扫描功能,并检测扫描到的各蓝牙遥控器的蓝牙信号强度;After the display device is turned on, start the bluetooth scanning function, and detect the bluetooth signal strength of each bluetooth remote controller scanned;
根据检测到的多个蓝牙遥控器的蓝牙信号强度,在多个蓝牙遥控器中确定目标蓝牙遥控器;Determine the target Bluetooth remote controller among the multiple Bluetooth remote controllers according to the detected Bluetooth signal strengths of the multiple Bluetooth remote controllers;
向所述目标蓝牙遥控器发送连接请求,所述连接请求携带目标蓝牙遥控器的第一功率档位差值;Sending a connection request to the target Bluetooth remote controller, the connection request carrying the first power level difference of the target Bluetooth remote controller;
接收目标蓝牙遥控器基于连接请求反馈的第一响应消息,所述第一响应消息携带显示设备的第二功率档位差值;Receiving the first response message fed back by the target Bluetooth remote controller based on the connection request, the first response message carrying the second power level difference of the display device;
根据所述第二功率档位差值确定显示设备的第一目标发射功率;determining a first target transmission power of the display device according to the second power level difference;
根据所述第一目标发射功率向所述目标蓝牙遥控器发送配对请求,以完成显示设备与目标蓝牙遥控器之间的蓝牙配对。Sending a pairing request to the target Bluetooth remote controller according to the first target transmission power, so as to complete the Bluetooth pairing between the display device and the target Bluetooth remote controller.
进一步地,所述启动蓝牙扫描功能的步骤之前,处理器1001可以调用存储器1005中存储的计算机程序,还执行以下操作:Further, before the step of starting the Bluetooth scanning function, the
判断显示设备是否存在已配对的蓝牙遥控器;Determine whether there is a paired Bluetooth remote control on the display device;
若存在已配对的蓝牙遥控器,则在预置的显示界面显示已配对的蓝牙遥控器的地址信息;If there is a paired Bluetooth remote controller, the address information of the paired Bluetooth remote controller will be displayed on the preset display interface;
若不存在已配对的蓝牙遥控器,则执行所述启动蓝牙扫描功能。If there is no paired bluetooth remote controller, execute the described function of starting the bluetooth scan.
进一步地,所述若存在已配对的蓝牙遥控器,则在显示界面显示已配对的蓝牙遥控器的地址信息的步骤之后包括:Further, if there is a paired Bluetooth remote controller, after the step of displaying the address information of the paired Bluetooth remote controller on the display interface, it includes:
检测预设时间段内是否收到重新配对指令;Detect whether a re-pairing instruction is received within a preset time period;
若预设时间段内收到重新配对指令,则执行所述启动蓝牙扫描功能;If a re-pairing instruction is received within a preset time period, the Bluetooth scanning function is executed;
若预设时间段内未收到重新配对指令,则继续在显示界面显示已配对的蓝牙遥控器的地址信息。If no re-pairing instruction is received within the preset time period, the address information of the paired Bluetooth remote controller will continue to be displayed on the display interface.
进一步地,所述根据检测到的多个蓝牙遥控器的蓝牙信号强度,在多个蓝牙遥控器中确定目标蓝牙遥控器的步骤包括:Further, the step of determining the target Bluetooth remote controller among the multiple Bluetooth remote controllers according to the detected Bluetooth signal strengths of the multiple Bluetooth remote controllers includes:
根据检测到的多个蓝牙遥控器的蓝牙信号强度,将蓝牙信号强度最强的蓝牙遥控器作为备选蓝牙遥控器;According to the detected Bluetooth signal strengths of multiple Bluetooth remote controllers, the Bluetooth remote controller with the strongest Bluetooth signal strength is used as an alternative Bluetooth remote controller;
将所述备选蓝牙遥控器的蓝牙信号强度与预设阈值进行比较;Comparing the Bluetooth signal strength of the optional Bluetooth remote controller with a preset threshold;
若所述备选蓝牙遥控器的蓝牙信号强度大于或等于预设阈值,将所述备选蓝牙遥控器作为目标蓝牙遥控器。If the Bluetooth signal strength of the candidate Bluetooth remote controller is greater than or equal to a preset threshold, the candidate Bluetooth remote controller is used as a target Bluetooth remote controller.
进一步地,所述若所述备选蓝牙遥控器的蓝牙信号强度大于或等于预设阈值,将所述备选蓝牙遥控器作为目标蓝牙遥控器的步骤之前还包括:Further, if the Bluetooth signal strength of the candidate Bluetooth remote control is greater than or equal to a preset threshold, before the step of using the candidate Bluetooth remote control as the target Bluetooth remote control, the step further includes:
若所述备选蓝牙遥控器的蓝牙信号强度大于或等于预设阈值,根据备选蓝牙遥控器的蓝牙信号强度,计算备选蓝牙遥控器与显示设备的配对距离;If the Bluetooth signal strength of the optional Bluetooth remote controller is greater than or equal to a preset threshold, calculate the pairing distance between the optional Bluetooth remote controller and the display device according to the Bluetooth signal strength of the optional Bluetooth remote controller;
判断所述配对距离是否小于预设距离;judging whether the pairing distance is less than a preset distance;
若所述配对距离小于预设距离,则将所述备选蓝牙遥控器作为目标蓝牙遥控器。If the pairing distance is less than the preset distance, the candidate Bluetooth remote controller is used as the target Bluetooth remote controller.
进一步地,所述向所述目标蓝牙遥控器发送连接请求的步骤之前包括:Further, before the step of sending a connection request to the target Bluetooth remote controller includes:
根据目标蓝牙遥控器的蓝牙信号强度,确定目标蓝牙遥控器的第一功率档位差值;Determine the first power level difference of the target Bluetooth remote controller according to the Bluetooth signal strength of the target Bluetooth remote controller;
根据所述目标蓝牙遥控器的第一功率档位差值生成连接请求。A connection request is generated according to the first power level difference of the target Bluetooth remote controller.
进一步地,所述根据目标蓝牙遥控器的蓝牙信号强度,确定目标蓝牙遥控器的第一功率档位差值的步骤包括:Further, the step of determining the first power level difference of the target Bluetooth remote controller according to the Bluetooth signal strength of the target Bluetooth remote controller includes:
根据目标蓝牙遥控器的蓝牙信号强度以及预设功率信息报告表,确定目标蓝牙遥控器的第一初始功率档位;Determine the first initial power level of the target Bluetooth remote controller according to the Bluetooth signal strength of the target Bluetooth remote controller and the preset power information report table;
根据所述第一初始功率档位以及预设目标功率档位确定目标蓝牙遥控器的第一功率档位差值。The first power level difference of the target Bluetooth remote controller is determined according to the first initial power level and the preset target power level.
进一步地,所述根据所述第二功率档位差值确定显示设备的第一目标发射功率的步骤包括:Further, the step of determining the first target transmit power of the display device according to the second power level difference includes:
根据所述第二功率档位差值以及预设相邻档位之间的发射功率差值确定调整功率;determining the adjusted power according to the second power gear difference and the transmit power difference between preset adjacent gears;
根据当前发射功率值以及调整功率确定显示设备的第一目标发射功率。The first target transmit power of the display device is determined according to the current transmit power value and the adjusted power.
本发明还提供一种蓝牙批量配对方法,本发明的执行主体是显示设备,生产线上多组显示设备和蓝牙遥控器可以进行并行配对,各个显示设备均能独立运行本发明蓝牙批量配对方法各实施例,以下针对单个显示设备和蓝牙遥控器的配对过程进行阐述。The present invention also provides a Bluetooth batch pairing method. The execution subject of the present invention is a display device. Multiple groups of display devices and Bluetooth remote controllers on the production line can be paired in parallel, and each display device can independently operate the Bluetooth batch pairing method of the present invention. For example, the following describes the pairing process between a single display device and a Bluetooth remote control.
参照图2,本发明蓝牙批量配对方法包括:Referring to Fig. 2, the bluetooth batch pairing method of the present invention comprises:
步骤A10,当所述显示设备开机后,启动蓝牙扫描功能,并检测扫描到的各蓝牙遥控器的蓝牙信号强度;Step A10, when the display device is turned on, start the bluetooth scanning function, and detect the bluetooth signal strength of each bluetooth remote controller scanned;
在生产线上,显示设备开机后,会自动进入工程模式,并自动进入蓝牙适配界面,并判断显示设备是否存在已配对的蓝牙遥控器;若显示设备之前配对过蓝牙遥控器,则在蓝牙适配界面显示配对过的历史蓝牙遥控器的地址信息,所述地址信息是指蓝牙遥控器的MAC(Media Access Control Address,媒体存取控制位址)地址,并检测预设时间段内是否收到重新配对指令,预设时间段可以是10秒、20秒等,若预设时间段内未收到重新配对指令,则继续在蓝牙适配界面显示已配对的蓝牙遥控器的地址信息,若预设时间段内收到重新配对指令,则启动蓝牙扫描功能;若显示设备之前没有与蓝牙遥控器进行过配对,则启动蓝牙扫描功能,由于生产线上是多台显示设备和多个蓝牙遥控器同时进行配对,所以在启动蓝牙扫描功能后,显示设备能够检测到多个蓝牙遥控器的蓝牙信号。On the production line, after the display device is turned on, it will automatically enter the engineering mode and automatically enter the Bluetooth adaptation interface, and judge whether the display device has a paired Bluetooth remote control; The matching interface displays the address information of the historical bluetooth remote control that has been paired. The address information refers to the MAC (Media Access Control Address) address of the bluetooth remote control, and detects whether it has received the For the re-pairing command, the preset time period can be 10 seconds, 20 seconds, etc. If the re-pairing command is not received within the preset time period, the address information of the paired Bluetooth remote controller will continue to be displayed on the Bluetooth adaptation interface. If the re-pairing command is received within the set time period, the Bluetooth scanning function will be activated; if the display device has not been paired with the Bluetooth remote control before, the Bluetooth scanning function will be activated. Since there are multiple display devices and multiple Bluetooth remote controls on the production line at the same time Perform pairing, so after starting the Bluetooth scanning function, the display device can detect the Bluetooth signals of multiple Bluetooth remote controls.
可选地,蓝牙遥控器在首次通电后,会检测寄存器中是否保存有历史配对信息,若存在历史配对信息,则由生产作业员识别是否需要重新配对,如果检测到生产作业员按下蓝牙遥控器上的指定按键触发的重新配对指令,则通过广播包的形式发送beacon帧,beacon帧中包含蓝牙遥控器的MAC(Media Access Control Address,媒体存取控制位址)地址信息,使蓝牙遥控器处于能被扫描到的状态,如果没有历史配对信息,不需要作业人员按下蓝牙遥控器的指定按键,直接通过广播包的形式发送beacon帧。Optionally, after the Bluetooth remote control is powered on for the first time, it will detect whether there is historical pairing information stored in the register. If there is historical pairing information, the production operator will identify whether it needs to be paired again. If it is detected that the production operator presses the Bluetooth remote control The re-pairing command triggered by the specified button on the device sends a beacon frame in the form of a broadcast packet. The beacon frame contains the MAC (Media Access Control Address, Media Access Control Address) address information of the Bluetooth remote control, so that the Bluetooth remote control In the state that can be scanned, if there is no historical pairing information, the operator does not need to press the designated button of the Bluetooth remote control, and directly sends the beacon frame in the form of a broadcast packet.
通过在蓝牙遥控器的MCU(Microcontroller Unit,微控制单元)中预置匹配程序,在蓝牙遥控器首次通电后无需生产作业员按下指定按键,直接广播发送beacon帧以使蓝牙遥控器处于能被扫描到的状态,简化了生产作业人员的操作,提高了配对效率。By presetting the matching program in the MCU (Microcontroller Unit, micro control unit) of the Bluetooth remote control, after the Bluetooth remote control is powered on for the first time, there is no need for the production operator to press the designated button, and the beacon frame is directly broadcast to make the Bluetooth remote control in a state where it can be used. The scanned status simplifies the operation of production workers and improves the matching efficiency.
步骤A20,根据检测到的多个蓝牙遥控器的蓝牙信号强度,在多个蓝牙遥控器中确定目标蓝牙遥控器;Step A20, according to the detected Bluetooth signal strength of multiple Bluetooth remote controllers, determine the target Bluetooth remote controller among the multiple Bluetooth remote controllers;
需要说明的是,生产线上将多台显示设备与多台蓝牙遥控器同时进行适配时,生产作业人员需要将与显示设备配对的目标蓝牙遥控器放在距离显示设备的蓝牙模块最近的位置,即需要将与显示设备配对的目标蓝牙遥控器放在距离该显示设备最近的位置,这样显示设备检测到的蓝牙信号强度最强的蓝牙遥控器,就是距离显示设备最近的蓝牙遥控器,即需与显示设备配对的目标蓝牙遥控器,即根据检测到的多个蓝牙遥控器的蓝牙信号强度,将蓝牙信号强度最强的蓝牙遥控器作为目标蓝牙遥控器。It should be noted that when multiple display devices and multiple Bluetooth remote controllers are simultaneously adapted on the production line, the production operator needs to place the target Bluetooth remote controller paired with the display device at the nearest position to the Bluetooth module of the display device. That is, the target Bluetooth remote control paired with the display device needs to be placed at the nearest position to the display device, so that the Bluetooth remote control with the strongest Bluetooth signal strength detected by the display device is the Bluetooth remote control closest to the display device. The target Bluetooth remote controller paired with the display device, that is, according to the detected Bluetooth signal strengths of multiple Bluetooth remote controllers, the Bluetooth remote controller with the strongest Bluetooth signal strength is used as the target Bluetooth remote controller.
步骤A30,向所述目标蓝牙遥控器发送连接请求,所述连接请求携带目标蓝牙遥控器的第一功率档位差值;Step A30, sending a connection request to the target Bluetooth remote controller, the connection request carrying the first power level difference of the target Bluetooth remote controller;
可理解的是,在显示设备中有预设RPI(report power information,功率信息报告)表,表中有预设RPI档位编号和对应的RSSI(Received Signal Strength Indication,接收的信号强度)值范围,并预设相邻档位之间的发射功率差值,根据目标蓝牙遥控器的蓝牙信号强度RSSI值、预设RPI表以及预设目标功率档位,即可确定目标蓝牙遥控器的第一功率档位差值。It is understandable that there is a preset RPI (report power information, power information report) table in the display device, and there are preset RPI gear numbers and corresponding RSSI (Received Signal Strength Indication, received signal strength) value ranges in the table , and preset the transmission power difference between adjacent gears, according to the Bluetooth signal strength RSSI value of the target Bluetooth remote controller, the preset RPI table and the preset target power gear, the first position of the target Bluetooth remote controller can be determined. power level difference.
可选地,所述向所述目标蓝牙遥控器发送连接请求的步骤之前包括:Optionally, before the step of sending a connection request to the target Bluetooth remote controller includes:
步骤B1,根据目标蓝牙遥控器的蓝牙信号强度,确定目标蓝牙遥控器的第一功率档位差值;Step B1, according to the Bluetooth signal strength of the target Bluetooth remote control, determine the first power level difference of the target Bluetooth remote control;
可理解的是,目标蓝牙遥控器的蓝牙信号强度,即目标蓝牙遥控器的RSSI值,根据目标蓝牙遥控器的RSSI值、预设的RPI表以及预设目标功率档位,即可确定目标蓝牙遥控器的第一功率档位差值。It is understandable that the Bluetooth signal strength of the target Bluetooth remote control, that is, the RSSI value of the target Bluetooth remote control, can be determined according to the RSSI value of the target Bluetooth remote control, the preset RPI table, and the preset target power level. The difference value of the first power level of the remote control.
步骤B2,根据所述目标蓝牙遥控器的第一功率档位差值生成连接请求。Step B2, generating a connection request according to the first power level difference of the target Bluetooth remote controller.
在确定目标蓝牙遥控器的第一功率档位差值后,即可生成携带目标蓝牙遥控器的第一功率档位差值的连接请求。After the first power level difference of the target Bluetooth remote controller is determined, a connection request carrying the first power level difference of the target Bluetooth remote controller can be generated.
显示设备根据确定的目标蓝牙遥控器的第一功率档位差值生成连接请求,并向目标蓝牙遥控器发送连接请求,以与目标蓝牙遥控器建立连接,并通过在连接请求中携带第一功率档位差值,请求目标蓝牙遥控器降低发射功率,以免干扰到其他显示设备与蓝牙遥控器的配对。The display device generates a connection request according to the determined first power level difference of the target Bluetooth remote controller, and sends a connection request to the target Bluetooth remote controller to establish a connection with the target Bluetooth remote controller, and carries the first power level in the connection request Gear difference, request the target Bluetooth remote control to reduce the transmission power, so as not to interfere with the pairing of other display devices with the Bluetooth remote control.
可选地,所述根据目标蓝牙遥控器的蓝牙信号强度,确定目标蓝牙遥控器的第一功率档位差值的步骤包括:Optionally, the step of determining the first power level difference of the target Bluetooth remote controller according to the Bluetooth signal strength of the target Bluetooth remote controller includes:
步骤C1,根据目标蓝牙遥控器的蓝牙信号强度以及预设功率信息报告表,确定目标蓝牙遥控器的第一初始功率档位;Step C1, according to the Bluetooth signal strength of the target Bluetooth remote controller and the preset power information report table, determine the first initial power level of the target Bluetooth remote controller;
步骤C2,根据所述第一初始功率档位以及预设目标功率档位确定目标蓝牙遥控器的第一功率档位差值。Step C2, determining the first power level difference of the target Bluetooth remote controller according to the first initial power level and the preset target power level.
需要说明的是,在显示设备中有预设RPI表,表中有设置RPI档位编号和对应的RSSI值范围,并预设相邻档位之间的发射功率差值,根据目标蓝牙遥控器的蓝牙信号强度RSSI值以及预设功率信息报告表,即可确定目标蓝牙遥控器的第一初始功率档位,例如,参照下表1-1,表1-1中的RSSI具体范围值只是举例,并不构成对RPI表的限制,实际中可根据生产线上的信号情况设置其他范围值。It should be noted that there is a preset RPI table in the display device. In the table, the RPI gear number and the corresponding RSSI value range are set, and the transmit power difference between adjacent gears is preset. According to the target Bluetooth remote control The Bluetooth signal strength RSSI value and the preset power information report table can determine the first initial power level of the target Bluetooth remote control. For example, refer to the following table 1-1. The specific range value of RSSI in table 1-1 is just an example , does not constitute a restriction on the RPI table. In practice, other range values can be set according to the signal conditions on the production line.
参照下表1-1,根据接收到的目标蓝牙遥控器的蓝牙信号强度,假如接收到的目标蓝牙遥控器的RSSI值处于-66~-62dBm之间,则对应的RPI档位编号为5,即第一初始功率档位为5,显示设备需要目标蓝牙遥控器降低发射功率,使显示设备接收到的目标蓝牙遥控器的RSSI值处于蓝牙适配的最低接收范围,例如最低接收范围为-87~-82dBm,则对应的档位为1,即预设目标功率档位为1,则计算出目标蓝牙遥控器的第一功率档位差值为5-1=4。Referring to the following table 1-1, according to the received Bluetooth signal strength of the target Bluetooth remote control, if the received RSSI value of the target Bluetooth remote control is between -66~-62dBm, the corresponding RPI gear number is 5, That is, the first initial power level is 5, and the display device needs the target Bluetooth remote controller to reduce the transmission power so that the RSSI value of the target Bluetooth remote controller received by the display device is within the lowest receiving range of Bluetooth adaptation, for example, the lowest receiving range is -87 ~-82dBm, then the corresponding gear is 1, that is, the preset target power gear is 1, then the first power gear difference of the target Bluetooth remote controller is calculated as 5-1=4.
表1-1 RPI功率信息报告表Table 1-1 RPI power information report form
步骤A40,接收目标蓝牙遥控器基于连接请求反馈的第一响应消息,所述第一响应消息携带显示设备的第二功率档位差值;Step A40, receiving the first response message fed back by the target Bluetooth remote controller based on the connection request, the first response message carrying the second power level difference of the display device;
可理解的是,目标蓝牙遥控器中也有预设RPI表,并预设相邻档位之间的发射功率差值,目标蓝牙遥控器中的RPI表以及相邻档位之间的发射功率差值,与显示设备中的RPI表以及相邻档位之间的发射功率差值是一样的。It is understandable that the target Bluetooth remote controller also has a preset RPI table, and presets the transmission power difference between adjacent gears, the RPI table in the target Bluetooth remote controller and the transmission power difference between adjacent gears The value is the same as the RPI meter in the display device and the transmit power difference between adjacent gears.
目标蓝牙遥控器在接收到显示设备发送的连接请求后,同样地,会根据显示设备的蓝牙信号强度RSSI值,确定显示设备的第二功率档位差值,目标蓝牙遥控器计算第二功率档位差值的方法与显示设备计算第一功率档位差值的方法是一样的,即首先根据接收到的显示设备的蓝牙信号强度RSSI值以及预设RPI表,确定显示设备的第二初始功率档位,根据第二初始功率档位以及预设目标功率档位确定显示设备的第二功率档位差值,同时,目标蓝牙遥控器会根据连接请求中的第一功率档位差值,确定目标发射功率值,例如,假设相邻档位之间的发射功率差值是1dBm,第一功率档位差值是4,则确定目标蓝牙遥控器的调整功率为4*1=4dBm,则根据当前发射功率值,假如当前发射功率值是8dBm,则可确定目标蓝牙遥控器的目标发射功率值为8-4=4dBm,目标蓝牙遥控器则以降低后的目标发射功率值4dBm向显示设备发送携带第二功率档位差值的第一响应消息,同时后续的配对过程中,都以该降低后的目标发射功率值向显示设备发送响应消息。After the target Bluetooth remote control receives the connection request sent by the display device, it will also determine the second power level difference of the display device according to the Bluetooth signal strength RSSI value of the display device, and the target Bluetooth remote control calculates the second power level The method of the difference value is the same as the method of calculating the difference value of the first power level of the display device, that is, firstly, the second initial power of the display device is determined according to the received Bluetooth signal strength RSSI value of the display device and the preset RPI table gear, according to the second initial power gear and the preset target power gear to determine the second power gear difference of the display device, and at the same time, the target Bluetooth remote controller will determine according to the first power gear difference in the connection request The target transmission power value, for example, assuming that the transmission power difference between adjacent gears is 1dBm, and the first power gear difference is 4, then it is determined that the adjusted power of the target Bluetooth remote control is 4*1=4dBm, then according to The current transmission power value, if the current transmission power value is 8dBm, then it can be determined that the target transmission power value of the target Bluetooth remote controller is 8-4=4dBm, and the target Bluetooth remote controller then sends a message to the display device with the reduced target transmission power value of 4dBm The first response message carries the difference value of the second power level, and at the same time, in the subsequent pairing process, the response message is sent to the display device with the reduced target transmit power value.
通过在进行配对的前期,向目标蓝牙遥控器发送降低功率的连接请求,之后在后续的配对过程中目标蓝牙遥控器均以降低后的目标发射功率值向显示设备发送响应消息,从而可以减少对其他显示设备和蓝牙遥控器配对的干扰,进一步提高了生产线上显示设备与蓝牙遥控器配对的准确性。In the early stage of pairing, the target Bluetooth remote controller sends a connection request with reduced power to the target Bluetooth remote controller, and then in the subsequent pairing process, the target Bluetooth remote controller sends a response message to the display device with the reduced target transmission power value, thereby reducing the need for pairing. The interference of pairing between other display devices and Bluetooth remote controls further improves the accuracy of pairing between display devices and Bluetooth remote controls on the production line.
步骤A50,根据所述第二功率档位差值确定显示设备的第一目标发射功率;Step A50, determining the first target transmission power of the display device according to the second power level difference;
可选地,所述根据所述第二功率档位差值确定显示设备的第一目标发射功率的步骤包括:Optionally, the step of determining the first target transmit power of the display device according to the second power level difference includes:
步骤D1,根据所述第二功率档位差值以及预设相邻档位之间的发射功率差值确定调整功率;Step D1, determining the adjusted power according to the second power gear difference and the transmit power difference between preset adjacent gears;
可理解的是,显示设备在接收到目标蓝牙遥控器发送的第一响应消息后,根据第一响应消息中的第二功率档位差值以及预设相邻档位之间发射功率差值,即可确定显示设备的调整功率;例如,第二功率档位差值是3,相邻档位之间的发射功率差值是1dBm,则调整功率为3*1=3dBm。It can be understood that after the display device receives the first response message sent by the target Bluetooth remote controller, according to the second power level difference in the first response message and the transmission power difference between preset adjacent gears, That is, the adjusted power of the display device can be determined; for example, if the second power level difference is 3, and the transmission power difference between adjacent levels is 1dBm, then the adjusted power is 3*1=3dBm.
步骤D2,根据当前发射功率值以及调整功率确定显示设备的第一目标发射功率。Step D2, determining a first target transmit power of the display device according to the current transmit power value and the adjusted power.
可理解的是,根据当前发射功率值以及调整功率即可确定显示设备的第一目标发射功率,例如,当前发射功率值是8dBm,调整功率为3dBm,则可确定显示设备的第一目标发射功率为8-3=5dBm。It can be understood that the first target transmit power of the display device can be determined according to the current transmit power value and the adjusted power, for example, the current transmit power value is 8dBm, and the adjusted power is 3dBm, then the first target transmit power of the display device can be determined It is 8-3=5dBm.
通过在进行配对的前期,显示设备根据目标蓝牙遥控器发送的功率档位差值降低发射功率,在后续的配对过程中显示设备均以降低后的目标发射功率值向目标蓝牙遥控器发送请求和响应消息,从而可以减少对其他显示设备和蓝牙遥控器配对的干扰,进一步提高了生产线上显示设备与蓝牙遥控器配对的准确性。In the early stage of pairing, the display device reduces the transmission power according to the power level difference sent by the target Bluetooth remote control, and in the subsequent pairing process, the display device sends a request and Respond to the message, thereby reducing the interference on the pairing of other display devices and the Bluetooth remote controller, and further improving the accuracy of pairing between the display device and the Bluetooth remote controller on the production line.
步骤A60,根据所述第一目标发射功率向所述目标蓝牙遥控器发送配对请求,以完成显示设备与目标蓝牙遥控器之间的蓝牙配对。Step A60, sending a pairing request to the target Bluetooth remote controller according to the first target transmission power, so as to complete the Bluetooth pairing between the display device and the target Bluetooth remote controller.
需要说明的是,在确定第一目标发射功率后,显示设备则以第一目标发射功率值向目标蓝牙遥控器发送配对请求,且在后续的配对过程中,显示设备都以该降低后的第一目标发射功率值向目标蓝牙遥控器发送请求和响应消息,以完成后续的配对,从而可以减少对其他显示设备和蓝牙遥控器配对的干扰,进一步提高了生产线上显示设备与蓝牙遥控器配对的准确性。It should be noted that after the first target transmit power is determined, the display device sends a pairing request to the target Bluetooth remote controller with the first target transmit power value, and in the subsequent pairing process, the display device uses the reduced first target transmit power value. A target transmission power value sends request and response messages to the target Bluetooth remote controller to complete the subsequent pairing, which can reduce the interference on the pairing of other display devices and Bluetooth remote controllers, and further improve the pairing of display devices and Bluetooth remote controllers on the production line. accuracy.
本发明在显示设备开机后,启动蓝牙扫描功能,并检测扫描到的蓝牙遥控器的蓝牙信号强度;根据检测到的多个蓝牙遥控器的蓝牙信号强度,在多个蓝牙遥控器中确定目标蓝牙遥控器;向目标蓝牙遥控器发送带有第一功率档位差值的连接请求,并接收目标蓝牙遥控器基于连接请求反馈的第一响应消息,第一响应消息中携带有第二功率档位差值,显示设备根据第二功率档位差值确定第一目标发射功率,并以第一目标发射功率向目标蓝牙遥控器发送配对请求,完成之后的配对过程。通过在显示设备端设置信号强度检测机制和判断机制,显示设备可以自动选择与之配对的目标蓝牙遥控器,并在建立连接后以降低后的第一目标发射功率向目标蓝牙遥控器发送配对请求,完成后面的配对过程,减少了配对过程中对其他显示设备和蓝牙遥控器配对的干扰,从而使得生产线上可以同时进行多台显示设备与多台蓝牙遥控器的配对,而不会出现配错的问题,适配效率高,提高了生产效率。After the display device is powered on, the present invention starts the Bluetooth scanning function, and detects the Bluetooth signal strength of the scanned Bluetooth remote controllers; and determines the target Bluetooth among multiple Bluetooth remote controllers according to the detected Bluetooth signal strengths of multiple Bluetooth remote controllers. Remote control; send a connection request with the first power level difference to the target Bluetooth remote control, and receive the first response message fed back by the target Bluetooth remote control based on the connection request, the first response message carries the second power level difference, the display device determines the first target transmit power according to the difference of the second power level, and sends a pairing request to the target Bluetooth remote controller with the first target transmit power, and completes the subsequent pairing process. By setting the signal strength detection mechanism and judgment mechanism on the display device side, the display device can automatically select the target Bluetooth remote control to be paired with it, and send a pairing request to the target Bluetooth remote control with the reduced first target transmission power after the connection is established , to complete the following pairing process, which reduces the interference on the pairing of other display devices and Bluetooth remote controls during the pairing process, so that multiple display devices can be paired with multiple Bluetooth remote controls at the same time on the production line without mismatching problems, high adaptation efficiency, and improved production efficiency.
可选地,在步骤A20中,所述根据检测到的多个蓝牙遥控器的蓝牙信号强度,在多个蓝牙遥控器中确定目标蓝牙遥控器的步骤包括:Optionally, in step A20, the step of determining the target Bluetooth remote controller among the multiple Bluetooth remote controllers according to the detected Bluetooth signal strengths of the multiple Bluetooth remote controllers includes:
步骤A21,根据检测到的多个蓝牙遥控器的蓝牙信号强度,将蓝牙信号强度最强的蓝牙遥控器作为备选蓝牙遥控器;Step A21, according to the detected Bluetooth signal strengths of multiple Bluetooth remote controllers, use the Bluetooth remote controller with the strongest Bluetooth signal strength as an alternative Bluetooth remote controller;
可理解的是,由于是多台显示设备和多台蓝牙遥控器同时进行适配,所以显示设备扫描到的蓝牙遥控器可能存在多个,显示设备可以对收到的蓝牙遥控器发送的beacon帧进行解析,获取蓝牙遥控器的MAC地址和RSSI(Received Signal Strength Indication,接收的信号强度)值,不同的蓝牙遥控器由于与显示设备的距离不同,使得不同蓝牙遥控器的RSSI值不同,根据获取的多个蓝牙遥控器的RSSI值,即可确定蓝牙信号强度最强的蓝牙遥控器,将它作为备选蓝牙遥控器。It is understandable that since multiple display devices and multiple Bluetooth remote controls are adapted at the same time, there may be multiple Bluetooth remote controls scanned by the display device, and the display device can receive beacon frames sent by the Bluetooth remote control. Analyze and obtain the MAC address and RSSI (Received Signal Strength Indication) value of the Bluetooth remote controller. Different Bluetooth remote controllers have different RSSI values due to the different distances from the display device. According to the obtained RSSI values of multiple Bluetooth remote controllers can determine the Bluetooth remote controller with the strongest Bluetooth signal strength, and use it as a candidate Bluetooth remote controller.
步骤A22,将所述备选蓝牙遥控器的蓝牙信号强度与预设阈值进行比较;Step A22, comparing the Bluetooth signal strength of the candidate Bluetooth remote controller with a preset threshold;
步骤A23,若所述备选蓝牙遥控器的蓝牙信号强度大于或等于预设阈值,将所述备选蓝牙遥控器作为目标蓝牙遥控器。Step A23, if the Bluetooth signal strength of the candidate Bluetooth remote controller is greater than or equal to a preset threshold, use the candidate Bluetooth remote controller as a target Bluetooth remote controller.
需要说明的是,确定蓝牙信号强度最强的备选蓝牙遥控器后,将备选蓝牙遥控器的RSSI值与预设阈值进行比较,以判断蓝牙信号最强的蓝牙遥控器是否存在故障,优选预设阈值为-30dbm~-40dbm,若备选蓝牙遥控器的蓝牙信号强度大于或等于预设阈值,则说明备选蓝牙遥控器不存在故障,则将备选蓝牙遥控器作为待配对的目标蓝牙遥控器,若备选蓝牙遥控器的蓝牙信号强度小于预设阈值,则说明备选蓝牙遥控器存在故障,则继续进行蓝牙扫描。It should be noted that after determining the candidate Bluetooth remote controller with the strongest Bluetooth signal strength, the RSSI value of the candidate Bluetooth remote controller is compared with the preset threshold to determine whether the Bluetooth remote controller with the strongest Bluetooth signal is faulty. The preset threshold is -30dbm~-40dbm. If the Bluetooth signal strength of the alternative Bluetooth remote control is greater than or equal to the preset threshold, it means that there is no fault with the alternative Bluetooth remote control, and the alternative Bluetooth remote control will be used as the target to be paired For the Bluetooth remote controller, if the Bluetooth signal strength of the alternative Bluetooth remote controller is less than the preset threshold, it means that there is a fault in the alternative Bluetooth remote controller, and the Bluetooth scan is continued.
通过在显示设备端设置信号强度检测机制和判断机制,使得无需生产作业人员选择待配对的目标蓝牙遥控器,显示设备可以自动根据多个蓝牙遥控器的蓝牙信号强度,选择出信号强度最强的蓝牙遥控器作为备选蓝牙遥控器,简化了生产作业员的操作,也能避免同时进行多台显示设备和多台蓝牙遥控器配对出现配错的情况,选出备选蓝牙遥控器之后,通过设置预设阈值,将备选蓝牙遥控器的信号强度与预设阈值进行比较,可排除存在故障的蓝牙遥控器,避免与存在故障的蓝牙遥控器进行配对。By setting the signal strength detection mechanism and judgment mechanism on the display device side, it is not necessary for production workers to select the target Bluetooth remote control to be paired, and the display device can automatically select the one with the strongest signal strength according to the Bluetooth signal strength of multiple Bluetooth remote controls. As an alternative Bluetooth remote control, the Bluetooth remote control simplifies the operation of the production operator, and can also avoid the situation of pairing multiple display devices with multiple Bluetooth remote controls at the same time. Set a preset threshold and compare the signal strength of the alternative Bluetooth remote controller with the preset threshold to eliminate the faulty Bluetooth remote controller and avoid pairing with the faulty Bluetooth remote controller.
进一步地,所述若所述备选蓝牙遥控器的蓝牙信号强度大于或等于预设阈值,将所述备选蓝牙遥控器作为目标蓝牙遥控器的步骤之前还包括:Further, if the Bluetooth signal strength of the candidate Bluetooth remote control is greater than or equal to a preset threshold, before the step of using the candidate Bluetooth remote control as the target Bluetooth remote control, the step further includes:
步骤E1,若所述备选蓝牙遥控器的蓝牙信号强度大于或等于预设阈值,根据备选蓝牙遥控器的信号强度,计算备选蓝牙遥控器与显示设备的配对距离;Step E1, if the Bluetooth signal strength of the candidate Bluetooth remote controller is greater than or equal to a preset threshold, calculate the pairing distance between the candidate Bluetooth remote controller and the display device according to the signal strength of the candidate Bluetooth remote controller;
步骤E2,判断所述配对距离是否小于预设距离;Step E2, judging whether the pairing distance is less than a preset distance;
步骤E3,若所述配对距离小于预设距离,则将所述备选蓝牙遥控器作为目标蓝牙遥控器。Step E3, if the pairing distance is less than the preset distance, then use the candidate Bluetooth remote controller as the target Bluetooth remote controller.
需要说明的是,当距离显示设备最近的蓝牙遥控器存在故障时,此时显示设备检测到的蓝牙信号强度最强的蓝牙遥控器可能不是距离显示设备最近的那个蓝牙遥控器,可能是旁边的那个蓝牙遥控器。It should be noted that when the Bluetooth remote controller closest to the display device is faulty, the Bluetooth remote controller with the strongest Bluetooth signal strength detected by the display device may not be the one closest to the display device, but may be the one next to it. That bluetooth remote.
当显示设备确定蓝牙信号最强的备选蓝牙遥控器之后,根据备选蓝牙遥控器的蓝牙信号强度,可计算出备选蓝牙遥控器与显示设备的配对距离,并判断所述配对距离与预设距离的大小,预设距离可根据生产线上进行适配时显示设备与目标蓝牙遥控器之间的距离情况进行设置;当计算出的备选蓝牙遥控器与显示设备的配对距离小于预设距离时,说明检测到的备选蓝牙遥控器是与显示设备距离最近的蓝牙遥控器,则将备选蓝牙遥控器作为目标蓝牙遥控器;当计算出的备选蓝牙遥控器与显示设备的配对距离大于或等于预设距离时,说明显示设备扫描到的备选蓝牙遥控器不是距离显示设备最近的那个蓝牙遥控器,是显示设备旁边的那个蓝牙遥控器,不能与之进行配对,则继续进行蓝牙扫描。After the display device determines the candidate Bluetooth remote controller with the strongest Bluetooth signal, the pairing distance between the candidate Bluetooth remote controller and the display device can be calculated according to the Bluetooth signal strength of the candidate Bluetooth remote controller, and the distance between the paired distance and the preset Bluetooth remote controller can be judged. The size of the set distance, the preset distance can be set according to the distance between the display device and the target Bluetooth remote control during the adaptation on the production line; when the calculated pairing distance between the alternative Bluetooth remote control and the display device is less than the preset distance When , it means that the detected candidate Bluetooth remote control is the Bluetooth remote control closest to the display device, and the candidate Bluetooth remote control is used as the target Bluetooth remote control; when the calculated pairing distance between the candidate Bluetooth remote control and the display device is When the distance is greater than or equal to the preset distance, it means that the Bluetooth remote controller scanned by the display device is not the Bluetooth remote controller closest to the display device, but the Bluetooth remote controller next to the display device, and it cannot be paired with it, then proceed to Bluetooth scanning.
通过计算备选蓝牙遥控器与显示设备之间的配对距离,并判断该配对距离是否小于预设距离,若所述距离小于预设距离,则将备选蓝牙遥控器作为目标蓝牙遥控器,与之进行配对,从而在距离显示设备最近的蓝牙遥控器存在故障时,避免显示设备与旁边的蓝牙遥控器进行配对,提高了适配的准确性。By calculating the pairing distance between the optional Bluetooth remote controller and the display device, and judging whether the pairing distance is smaller than the preset distance, if the distance is smaller than the preset distance, then using the alternate Bluetooth remote controller as the target Bluetooth remote controller, and pairing, so that when the Bluetooth remote controller closest to the display device is faulty, the display device is prevented from being paired with the Bluetooth remote controller next to it, and the accuracy of adaptation is improved.
进一步地,本发明实施例还提出一种显示设备,所述显示设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述蓝牙批量配对方法的各实施例的步骤。Furthermore, an embodiment of the present invention also proposes a display device, the display device includes: a memory, a processor, and a computer program stored in the memory and operable on the processor, the computer program being executed by the The steps of each embodiment of the above-mentioned Bluetooth batch pairing method are realized when the processor executes.
此外,本发明实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述蓝牙批量配对方法的各实施例的步骤。In addition, an embodiment of the present invention also proposes a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of each embodiment of the above-mentioned Bluetooth batch pairing method are implemented. .
本发明中显示设备和计算机可读存储介质的具体实施方式的拓展内容与上述蓝牙批量配对方法各实施例基本相同,在此不做累述。The expanded content of the specific implementation of the display device and the computer-readable storage medium in the present invention is basically the same as the embodiments of the above-mentioned Bluetooth batch pairing method, and will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,这些均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive. Those of ordinary skill in the art will Under the enlightenment of the present invention, many forms can also be made without departing from the gist of the present invention and the protection scope of the claims, and these all belong to the protection of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111285764.6A CN113838275B (en) | 2021-11-01 | 2021-11-01 | Bluetooth batch pairing method, display device and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111285764.6A CN113838275B (en) | 2021-11-01 | 2021-11-01 | Bluetooth batch pairing method, display device and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113838275A CN113838275A (en) | 2021-12-24 |
CN113838275B true CN113838275B (en) | 2022-12-02 |
Family
ID=78966731
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111285764.6A Active CN113838275B (en) | 2021-11-01 | 2021-11-01 | Bluetooth batch pairing method, display device and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113838275B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115226082A (en) * | 2022-04-13 | 2022-10-21 | 长城汽车股份有限公司 | Bluetooth pairing method and device, vehicle and storage medium |
CN117201660B (en) * | 2022-05-31 | 2024-08-16 | 广州星际悦动股份有限公司 | Device pairing method, system, device, display device and storage medium based on oral cleaning interaction system |
CN114822006B (en) * | 2022-06-30 | 2022-09-16 | 西蒙电气(中国)有限公司 | Method for realizing pairing of multiple devices and multiple remote controllers on single switch loop |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008121291A (en) * | 2006-11-13 | 2008-05-29 | Calsonic Kansei Corp | Remote control system for vehicle |
CN103873960A (en) * | 2014-04-08 | 2014-06-18 | 江苏惠通集团有限责任公司 | Wireless device, control device and pairing method of wireless device and control device |
CN104902435A (en) * | 2015-04-21 | 2015-09-09 | 北京云迹科技有限公司 | Mobile terminal, and mobile terminal and Bluetooth wristband binding method and device |
CN109688568A (en) * | 2017-07-04 | 2019-04-26 | 广东长虹电子有限公司 | Method for controlling Bluetooth pairing distance between television and remote controller |
CN109756878A (en) * | 2018-12-26 | 2019-05-14 | 与德科技有限公司 | A kind of Bluetooth pairing methods and equipment |
CN109862549A (en) * | 2019-03-28 | 2019-06-07 | 南昌黑鲨科技有限公司 | Bluetooth connection method and device, readable storage medium and mobile device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9008658B2 (en) * | 2012-06-06 | 2015-04-14 | Welch Allyn, Inc. | Using near-field communication both for out-of-band pairing and physiological data transfer |
-
2021
- 2021-11-01 CN CN202111285764.6A patent/CN113838275B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008121291A (en) * | 2006-11-13 | 2008-05-29 | Calsonic Kansei Corp | Remote control system for vehicle |
CN103873960A (en) * | 2014-04-08 | 2014-06-18 | 江苏惠通集团有限责任公司 | Wireless device, control device and pairing method of wireless device and control device |
CN104902435A (en) * | 2015-04-21 | 2015-09-09 | 北京云迹科技有限公司 | Mobile terminal, and mobile terminal and Bluetooth wristband binding method and device |
CN109688568A (en) * | 2017-07-04 | 2019-04-26 | 广东长虹电子有限公司 | Method for controlling Bluetooth pairing distance between television and remote controller |
CN109756878A (en) * | 2018-12-26 | 2019-05-14 | 与德科技有限公司 | A kind of Bluetooth pairing methods and equipment |
CN109862549A (en) * | 2019-03-28 | 2019-06-07 | 南昌黑鲨科技有限公司 | Bluetooth connection method and device, readable storage medium and mobile device |
Also Published As
Publication number | Publication date |
---|---|
CN113838275A (en) | 2021-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113838275B (en) | Bluetooth batch pairing method, display device and readable storage medium | |
CN112020048B (en) | Bluetooth device pairing method, device and storage medium | |
CN105338402B (en) | Method and device for Bluetooth connection | |
EP3533742B1 (en) | A personal mobile terminal and a method of requesting elevator service | |
CN110996405B (en) | Earphone connection method, terminal, earphone box and computer readable storage medium | |
CN113490218B (en) | Pairing method, pairing device, bluetooth remote controller, intelligent device and storage medium | |
US20150081859A1 (en) | Method, apparatus and system for connecting devices to a network | |
CN103997358A (en) | Method, device and system for pairing Bluetooth remote control unit and controlled devices | |
JP2006109094A (en) | Remote controller, remote control system, and remote control method | |
JP6545897B2 (en) | Intelligent terminal remote control device functionalization control system and control method | |
CN110062366A (en) | Bluetooth pairing abnormality eliminating method, equipment, storage medium and device | |
CN111885571A (en) | Bluetooth device pairing method, device and storage medium | |
CN106681774B (en) | Software upgrading method of Bluetooth loudspeaker and intelligent terminal | |
CN104144380A (en) | Wireless terminal pairing method and device based on range information | |
CN112469099A (en) | Networking control method, networking control device, electronic equipment and storage medium | |
CN111246594A (en) | Terminal equipment, communication system and communication connection method | |
CN105721916A (en) | Master device, slave device and pairing method of master device and slave device | |
CN111091829B (en) | Voice control method and device and electronic equipment | |
KR101766248B1 (en) | Display system, display device and control method thereof | |
JP7140719B2 (en) | Measuring device and measuring method | |
KR101166383B1 (en) | Communication system using Zigbee and channel selection method thereof | |
US20230345560A1 (en) | Wireless communication device and wireless communication method | |
KR101165824B1 (en) | RF Communication System and Control Method thereof | |
CN107426813B (en) | Network information display method and device | |
JP6612080B2 (en) | Portable operation device and program |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |