Pairing control method, system and pairing control device based on Bluetooth remote control

By building a BLE scan environment model and analyzing pairing protocol data, analyzing response strategies, planning communication channels, mapping user interaction data into BLE instruction flow, and optimizing instruction sending strategies, the problem of pairing complexity of traditional Bluetooth remote controls is solved, and efficient Convenient device pairing improves user experience.

CN118781781BActive Publication Date: 2024-11-22深圳毕加索电子有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411253367.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2024-11-22
Estimated Expiration
2044-09-09

AI Technical Summary

Technical Problem

The pairing process of traditional Bluetooth remote controls is complicated, especially when the device has no touch screen or the screen is not activated, the user cannot perform the necessary pairing operations, resulting in the device functions being unavailable and affecting the user experience.

Method used

By obtaining BLE scan data, building a BLE scan environment model, filtering devices to be paired, analyzing pairing protocol data, analyzing response strategies, planning communication channels, mapping user interaction data to BLE instruction flow, and optimizing instruction sending strategies to achieve automation and intelligence pairing process.

Benefits of technology

It improves the pairing success rate and efficiency, reduces user operation complexity, and improves user experience, especially on devices without touch screens or inactive screens, which significantly improves operational convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118781781B_ABST
    Figure CN118781781B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of signal transmission technology, and in particular to a pairing control method, system and pairing control device based on a Bluetooth remote control. The method comprises the following steps: obtaining BLE scanning data through a Bluetooth remote control, generating a BLE scanning environment model, and filtering the BLE broadcast data to be paired according to the model. Parsing the pairing protocol data, formulating a BLE response strategy, and transmitting the strategy to the remote control to perform the pairing task. Analyzing the topology of the BLE communication network, planning the communication channel, and generating corresponding data. Acquiring the remote control interaction data, parsing the user input, and mapping it to a BLE command stream. Selecting a low-latency BLE channel, integrating the command sending strategy, and transmitting it to the remote control. Evaluating the feedback of the paired device, correcting the command stream, and finally selecting the optimized command sending strategy, and transmitting it to the remote control for execution. The present invention is based on data mining and can effectively improve the efficiency of Bluetooth remote control pairing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of signal transmission, and in particular to a pairing control method, system and pairing control device based on a Bluetooth remote controller. Background Art

[0002] In modern wireless communication technology, Bluetooth technology is widely used in wireless control and data exchange of various devices due to its low power consumption and short-range wireless transmission characteristics. As a typical application of Bluetooth technology, Bluetooth remote control can wirelessly control devices such as TVs, stereos, and computers, improving the user's convenience and experience. However, the pairing process of traditional Bluetooth remote controls is complicated, especially on the device side, the pairing needs to be confirmed by clicking on the screen, which causes many inconveniences. Specifically, many modern devices, especially TVs and monitors, do not have a touch screen or the screen is not activated, so users cannot perform the necessary pairing operations, which leads to the problem that the device's functions are not available when used for the first time, seriously affecting the user experience. The traditional pairing mechanism can be successfully completed on devices with touch screens, but on devices without touch function or unactivated screens, this process becomes extremely cumbersome or even impossible to achieve. This phenomenon not only affects the user's convenience of operation, but also causes some device functions to be unable to be realized when used for the first time. Summary of the invention

[0003] Based on this, it is necessary for the present invention to provide a pairing control method, system and pairing control device based on a Bluetooth remote controller to solve at least one of the above technical problems.

[0004] To achieve the above object, a pairing control method based on a Bluetooth remote controller comprises the following steps:

[0005] Step S1: obtaining BLE scan data through a Bluetooth remote control, and digitizing the BLE scan environment according to the BLE scan data, thereby obtaining a BLE scan environment model; screening the BLE scan data for BLE pairing devices through the BLE scan environment model, thereby obtaining BLE broadcast data to be paired;

[0006] Step S2: performing pairing protocol analysis on the BLE broadcast data to be paired, thereby obtaining BLE pairing protocol data; performing BLE response strategy analysis according to the BLE pairing protocol data, thereby obtaining a BLE response strategy, and transmitting the BLE response strategy to the Bluetooth remote control to perform the Bluetooth pairing task;

[0007] Step S3: performing a BLE communication network topology analysis according to the BLE response strategy and the BLE scanning environment model, thereby obtaining the BLE communication network topology, and performing BLE communication channel planning according to the BLE communication network topology, thereby obtaining BLE communication channel data;

[0008] Step S4: obtaining the Bluetooth remote control interaction data, and performing user interaction analysis according to the Bluetooth remote control interaction data, thereby obtaining the user input interaction data; performing BLE command mapping on the user input interaction data, thereby obtaining the BLE command stream to be sent;

[0009] Step S5: selecting a low-latency BLE communication channel for the BLE communication channel data according to the BLE instruction stream to be sent, thereby obtaining low-latency BLE channel data; integrating the BLE instruction sending strategy for the low-latency BLE channel data and the BLE instruction stream to be sent, thereby obtaining the BLE instruction sending strategy, and transmitting the BLE instruction sending strategy to the Bluetooth remote control to execute the instruction sending task;

[0010] Step S6: Acquire paired device feedback data, and perform BLE command validity evaluation on the paired device feedback data according to the BLE command stream to be sent, thereby obtaining paired device command validity data; perform BLE command correction according to the paired device command validity data, thereby obtaining an optimized BLE command stream to be sent;

[0011] Step S7: Select a BLE instruction sending strategy for the BLE instruction sending strategy according to the optimized BLE instruction stream to be sent, thereby obtaining a BLE optimized instruction sending strategy, and transmitting the BLE optimized instruction sending strategy to the Bluetooth remote control to execute the instruction sending task.

[0012] The present invention can more accurately understand the wireless signal status of the pairing environment by acquiring BLE scanning data and constructing a BLE scanning environment model, thereby increasing the probability of successful pairing. The BLE scanning environment model helps identify other wireless signal sources in the environment, thereby avoiding interference and improving the pairing efficiency of the Bluetooth remote control. The BLE broadcast data to be paired is screened according to the scanning environment model, so that the pairing process is more targeted and effective, and unnecessary pairing attempts are avoided. Parsing BLE pairing protocol data and analyzing BLE response strategies can simplify the pairing process, so that the remote control can automatically adapt to the pairing requirements of different devices and reduce the complexity of manual operation by users. Analyzing the BLE response strategy and transmitting it to the Bluetooth remote control helps to improve the response speed and accuracy of the pairing process and enhance the user experience. Channel planning based on the BLE communication network topology can ensure that the best communication channel is selected during the pairing process, thereby improving the communication quality and stability. By rationally planning the BLE communication channel, the delay of signal transmission is reduced, making the pairing process smoother and more efficient. Parsing user interaction data and performing BLE command mapping enables the Bluetooth remote control to accurately identify the user's operation intention and improve the intuitiveness and convenience of user operation. Command mapping is performed on user input to ensure that the sent BLE command stream meets actual needs and reduces the possibility of misoperation. Low-latency BLE communication channels are selected for data transmission to ensure the timeliness and effectiveness of command sending and improve the response speed of the pairing process. Integrating the BLE command sending strategy into the Bluetooth remote control can more intelligently control the sending of commands and avoid unnecessary repeated or erroneous sending. By evaluating the feedback data of the paired device, the sent BLE command stream is corrected to ensure the effectiveness of the command and reduce the number of pairing failures. The optimized BLE command stream can better meet the needs of the paired device, thereby improving the pairing success rate and pairing quality. The most effective command sending strategy is selected according to the optimized BLE command stream to ensure that the pairing process is as efficient and smooth as possible. Optimizing the command sending strategy can reduce user waiting time and operation steps, making the pairing process faster and easier, and significantly improving the user experience. In summary, the specific beneficial effects of each step are to improve the pairing efficiency and accuracy of the Bluetooth remote control, reduce the complexity of user operations, and optimize the overall pairing experience. Through these steps, the Bluetooth remote control can pair devices more intelligently and efficiently, especially on devices without a touch screen or with an inactive screen, significantly improving user convenience.

[0013] Optionally, step S1 specifically includes:

[0014] Step S11: obtaining BLE scanning data through a Bluetooth remote controller, and extracting scanning device UUID data from the BLE scanning data, thereby obtaining scanning device UUID data;

[0015] Step S12: classifying the BLE scan data into device types according to the scan device UUID data, thereby obtaining single-service UUID device scan data and multi-service UUID device scan data;

[0016] Step S13: performing device location estimation on the single-service UUID device scanning data and the multi-service UUID device scanning data respectively, thereby obtaining single-service device location data and multi-service device location data;

[0017] Step S14: integrating the signal strength distribution of the BLE scan data to obtain signal strength distribution data, and constructing a Bluetooth signal environment model according to the signal strength distribution data;

[0018] Step S15: performing spatial position mapping on the Bluetooth signal environment model according to the single-service device location data and the multi-service device location data, thereby obtaining a BLE scanning environment model;

[0019] Step S16: screening the BLE scan data for BLE pairing devices using the BLE scan environment model, thereby obtaining the BLE broadcast data to be paired.

[0020] The present invention extracts UUIDs from BLE scan data to accurately identify the scanned devices, ensuring the pertinence and accuracy of subsequent analysis. Classifying devices by single-service UUID and multi-service UUID helps to simplify device management and positioning and improve the efficiency of data analysis. Estimating the location of different types of devices can provide more accurate device location data, which helps to improve positioning accuracy. Integrating signal strength distribution data and building an environmental model can help understand the propagation characteristics of Bluetooth signals and improve understanding of the signal environment. Mapping the signal environment model based on location data can optimize the spatial matching of the model and improve the accuracy of the BLE scanning environment. Using the environmental model to screen devices to be paired can improve the efficiency and success rate of pairing.

[0021] Optionally, step S16 is specifically:

[0022] Step S161: clustering high signal strength devices on the BLE scan data using a BLE scan environment model, thereby obtaining high signal strength device data;

[0023] Step S162: Obtain UUID data of the device to be paired, and perform device UUID screening on the BLE scan data according to the UUID data of the device to be paired, so as to obtain UUID-compliant device data;

[0024] Step S163: performing device intersection operation on the UUID matching device data and the high signal strength device data, thereby obtaining the device data to be paired;

[0025] Step S164: extract the to-be-paired device scanning broadcast data from the BLE scanning data according to the to-be-paired device data, thereby obtaining the to-be-paired BLE broadcast data.

[0026] By clustering devices with high signal strength, the present invention can give priority to devices with strong signal strength, which usually means that these devices are closer to the scanning device and have more stable signals. Clustering devices with high signal strength can reduce interference with devices with weak signals, thereby improving detection efficiency and pairing success rate. Devices with strong signals are more likely to be target devices, so the probability of misidentification and pairing failure can be reduced. UUID is a unique identifier for each BLE device. By filtering with UUID, the target device can be accurately found, avoiding interference from other devices. UUID filtering makes the pairing process more accurate, and only performs subsequent processing on the device to be paired, thereby improving the success rate of pairing. By filtering out data that UUID meets, the amount of data for subsequent processing and analysis can be reduced, and the processing speed and efficiency can be improved. By combining signal strength and UUID through intersection operation, the device to be paired can be more accurately identified, because it meets both the signal strength requirement and the UUID condition. This intersection operation improves the accuracy of device matching and reduces potential interference and misidentification. The target device can be found more effectively in a complex BLE environment, thereby optimizing the pairing process. Extracting the broadcast data of the device to be paired can obtain detailed information of the device, which helps further pairing and communication. By extracting the broadcast data related to the device to be paired, the device can be managed and operated more accurately, improving the pairing success rate. The extracted broadcast data can be used to display the pairing status in real time or provide other information about the device, thereby improving the user experience.

[0027] Optionally, step S2 specifically includes:

[0028] Step S21: parsing the BLE broadcast data to be paired, thereby obtaining the broadcast packet data to be paired;

[0029] Step S22: extracting the pairing protocol field from the pairing broadcast packet data to obtain pairing protocol field data, and performing pairing protocol parsing according to the pairing protocol field data to obtain BLE pairing protocol data;

[0030] Step S23: selecting a data security protocol according to the BLE pairing protocol data, thereby obtaining pairing security protocol data;

[0031] Step S24: integrating the BLE response strategy according to the BLE pairing protocol data and the pairing security protocol data to obtain the BLE response strategy, and transmitting the BLE response strategy to the Bluetooth remote controller to execute the Bluetooth pairing task.

[0032] The broadcast packet parsing of the present invention helps extract basic information such as device name and UUID in the BLE device broadcast, which is the basic data required for further pairing. By parsing the broadcast packet, the necessary information can be screened and extracted, reducing the complexity of data processing in subsequent steps. The parsing step ensures that all necessary broadcast data is correctly extracted to avoid missing key data. Extracting and parsing the pairing protocol field data ensures that the correct pairing protocol is used during the pairing process, which is the key to successful pairing. By parsing different pairing protocol data, the system can adapt to a variety of BLE pairing standards and increase compatibility. Correct parsing of protocol data can ensure that the pairing process follows the standard and improves the success rate and stability. Selecting an appropriate data security protocol ensures the security of data transmission during the pairing process and prevents data leakage and tampering. Selecting appropriate security measures according to the pairing protocol provides additional protection to prevent unauthorized access. Ensure the security of the pairing process and improve user trust and satisfaction with the device. Integrate the BLE response strategy to ensure that the device is paired according to the predetermined strategy, improving the coordination and reliability of the pairing. Transmit the response strategy to the Bluetooth remote control to automate the pairing task and simplify the user operation process. Through strategy integration and automation, the pairing process can be accelerated, reducing user waiting time and manual intervention.

[0033] Optionally, step S3 specifically includes:

[0034] Step S31: extracting device space features from the BLE scanning environment model to obtain device space layout data;

[0035] Step S32: integrating the device response connection relationship according to the BLE response strategy, thereby obtaining device connection relationship data;

[0036] Step S33: performing communication topology analysis according to the device connection relationship data and the device space layout data, thereby obtaining a communication network topology structure;

[0037] Step S34: integrating the response strategy of the communication network topology structure according to the BLE response strategy, thereby obtaining the BLE communication network topology structure;

[0038] Step S35: Perform BLE device channel allocation planning according to the BLE communication network topology structure, thereby obtaining BLE communication channel data.

[0039] The present invention can accurately obtain the location and layout information of the device in the physical space by extracting the spatial features of the device. This helps to improve the positioning accuracy of the BLE (Bluetooth Low Energy) device, so that it can more accurately determine the location of the device in indoor or complex environments. Understanding the spatial layout of the device can help optimize resources, reduce interference between devices, and improve the overall performance of the system. Through accurate spatial layout data, more intelligent applications can be implemented, such as location-based services or location tracking, to improve user experience and application response speed. Integrating the BLE response strategy can optimize the connection relationship between devices, ensure that the device can maintain a stable connection under different conditions, and reduce the situation of connection loss or disconnection. The integrated connection relationship data can reduce redundant connections and optimize data transmission paths, improve communication efficiency and reduce latency. Clear device connection relationship data is helpful for network management and troubleshooting, and simplifies maintenance work. By analyzing the device connection relationship and spatial layout, a more effective communication topology can be designed to reduce bottlenecks in the network and improve the efficiency of data transmission. A reasonable network topology helps to improve the redundancy and robustness of the network, ensuring that the network can still operate normally when problems occur in some devices or connections. A well-designed network topology can support future device expansion and system upgrades, ensuring that the network can adapt to different needs and scale changes. By integrating response strategies for the communication network topology, the network topology can better adapt to the dynamic changes and actual needs of BLE devices and enhance the adaptability of the network. The integration of response strategies helps to optimize the data transmission path and strategy, improve the overall performance and efficiency of the network, and can adjust strategies for different environments and application scenarios, so that the BLE network can maintain efficient and stable communication under different conditions. Reasonable channel allocation can reduce signal interference between devices and ensure that each device can communicate within the optimal frequency range. Effective channel planning can improve the efficiency of data transmission, reduce collisions and retransmissions of data packets, and thus improve the overall network performance. Channel allocation planning can support the high-density deployment of a large number of BLE devices, ensure stable operation in a densely populated environment, and enhance the system's scalability.

[0040] Optionally, step S4 specifically includes:

[0041] Step S41: obtaining Bluetooth remote controller interaction data, and performing interactive touch point feature extraction on the Bluetooth remote controller interaction data, thereby obtaining interactive touch point data;

[0042] Step S42: integrating the short-term touch point displacement distribution according to the interactive touch point data to obtain the touch point displacement distribution data, and classifying the Bluetooth remote control interaction data by user interaction according to the touch point displacement distribution data to obtain the drag interaction data and the click interaction data;

[0043] Step S43: performing interaction time statistics on the click interaction data, thereby obtaining high-value interaction time data and low-value interaction time data;

[0044] Step S44: clustering the click interaction data into long-press interaction data according to the high-value interaction time data, thereby obtaining long-press interaction data; clustering the click interaction data into single-click interaction data according to the low-value interaction time data, thereby obtaining single-click interaction data;

[0045] Step S45: performing user interaction integration on the drag interaction data, the long press interaction data, and the single click interaction data, thereby obtaining user input interaction data;

[0046] Step S46: Perform BLE command mapping on the user input interaction data to obtain a BLE command stream to be sent.

[0047] The present invention extracts interactive touch point features, which helps to capture the detailed interaction mode of the user when operating the remote control, and ensures the accuracy and integrity of the data. Through the integration of short-term touch point displacement distribution and user interaction classification, the interaction data can be divided into two types: drag and click, thereby improving the recognition ability of user operation behavior. Interaction time statistics can help distinguish whether the user's click behavior belongs to long press or single click, providing a reference for the time dimension for subsequent data processing. Time clustering of click interaction data can effectively distinguish long press and single click, and optimize the response and feedback of user interaction. Integrating drag, long press and single click data can fully understand the user's input behavior and enhance the system's adaptability to user operations. Mapping user input interaction data to a BLE command stream ensures that the operation of the remote control can be accurately converted into actual commands, thereby improving the system's responsiveness and user experience.

[0048] Optionally, step S46 is specifically:

[0049] Step S461: acquiring BLE command signal data, and performing signal function analysis on the BLE command signal data, thereby obtaining signal function data;

[0050] Step S462: extracting touch interaction features from the user input interaction data, thereby obtaining user touch interaction data;

[0051] Step S463: performing signal mapping association according to the user touch interaction data and the signal function data, thereby obtaining interaction signal association data;

[0052] Step S464: acquiring BLE protocol layer transmission data, and performing BLE instruction structure calculation on the BLE protocol layer transmission data, thereby obtaining BLE instruction structure data;

[0053] Step S465: mapping rules are formulated according to the interactive signal association data and the BLE command structure data, thereby obtaining mapping rules;

[0054] Step S466: Perform BLE command mapping on the user touch interaction data according to the mapping rule to obtain a BLE command set, and arrange the BLE command set by timestamp to obtain a BLE command stream to be sent.

[0055] The acquisition of BLE command signal data by the present invention is the basis for understanding the actual signal sent by the BLE device. This step ensures the accuracy and integrity of the data. By analyzing the signal data, the specific function and purpose of the signal can be clarified. This helps to understand and define the behavior and function of the BLE device, thereby providing a clear basis for subsequent processing. By extracting the touch interaction features, the user's operating habits and interaction methods can be deeply understood. This is crucial to improving user experience and designing a more intuitive interface. By extracting features from the touch interaction data, the user's complex operations can be simplified into analyzable features, which is helpful for subsequent data processing and decision making. By associating the user's touch interaction data with the signal function data, a mapping relationship between the user's operation and the device's response can be established. This helps the device to respond correctly according to the user's operation. Understanding how to map the user input to the signal function of the device can optimize the device's response mechanism, improve the device's intelligence and the fluency of user interaction. Acquiring and calculating the BLE protocol layer transmission data can help understand the structure of the BLE command, which is very important for ensuring the accuracy of data transmission and the compatibility of the protocol. By calculating the BLE command structure, it can be ensured that the data remains consistent during the transmission process, avoiding communication errors caused by protocol layer problems. By developing mapping rules based on the interaction signal association data and the BLE command structure data, it is possible to systematically define how to convert user operations into BLE commands. This is a key step in achieving efficient and accurate device control. The development of mapping rules can standardize the relationship between user operations and device commands, improving the reliability and consistency of the system. Converting user touch interaction data into a BLE command set according to the mapping rules can ensure that user operations receive the correct device response. This allows user interaction operations to be accurately executed. Arranging the timestamps of the BLE command set ensures that the commands are sent in the correct order, avoiding device malfunctions due to incorrect command sequence.

[0056] Optionally, step S6 specifically includes:

[0057] Step S61: Acquire paired device feedback data, and perform response analysis on the paired device feedback data to obtain instruction response data;

[0058] Step S62: extracting the response time and the response code of the instruction response data, thereby obtaining the instruction response time data and the instruction response code data;

[0059] Step S63: Calculate the error code ratio of the instruction response code data to obtain error code ratio data, and classify and calculate the instruction response code data according to the error code ratio data to obtain high error code ratio instruction data and low error code ratio instruction data;

[0060] Step S64: performing command response time statistical analysis on the command response time data, thereby obtaining high response time command data and low response time command data;

[0061] Step S65: performing instruction intersection operation on the high error code ratio instruction data and the high response time instruction data, thereby obtaining low validity device instruction data; performing instruction intersection operation on the low error code ratio instruction data and the low response time instruction data, thereby obtaining high validity device instruction data;

[0062] Step S66: merging the low-validity device instruction data and the high-validity device instruction data to obtain paired device instruction validity data;

[0063] Step S67: performing BLE instruction correction on the BLE instruction stream to be sent according to the paired device instruction validity data, thereby obtaining an optimized BLE instruction stream to be sent.

[0064] The present invention extracts and parses instruction response data from device feedback. This operation can help understand the device's response to a specific instruction, including successful responses and failed responses, thereby laying the foundation for subsequent analysis. Extracting response time and response code data helps quantify the device's response performance. Response time data can reveal the device's delay, while response code data can show the state of the device's response (such as success, error, etc.). This provides important information for further performance analysis. Calculating the proportion of error codes and classifying them helps identify which instructions often cause errors. This analysis can help identify potential problem areas in the system and provide a basis for subsequent improvements. Counting response times and classifying them (high response time and low response time) can help identify which instructions are executed slowly. This information helps optimize the device's response performance and improve the overall operating efficiency of the system. Through intersection operations, the error code proportion and response time data are combined for analysis to identify low-effectiveness and high-effectiveness device instructions. This helps focus on improving instructions with poor performance and optimize instructions with higher effectiveness. The data merging operation helps to comprehensively analyze the effectiveness data of all instructions to obtain an overall effectiveness evaluation. This allows for a more comprehensive understanding of the overall performance of device commands, providing a basis for the formulation of optimization strategies. Using command validity data to correct the BLE command stream can optimize the BLE command stream to be sent. The optimized command stream should increase the device pairing success rate, reduce errors and response time, and thus improve the overall communication performance and user experience of the device.

[0065] Optionally, the present invention further provides a pairing control system based on a Bluetooth remote controller, which is used to execute the pairing control method based on a Bluetooth remote controller as described above. The pairing control system based on a Bluetooth remote controller includes:

[0066] The BLE pairing device screening module is used to obtain BLE scanning data through the Bluetooth remote control, and digitize the BLE scanning environment according to the BLE scanning data, so as to obtain the BLE scanning environment model; the BLE scanning data is screened for BLE pairing devices through the BLE scanning environment model, so as to obtain the BLE broadcast data to be paired;

[0067] The BLE response strategy analysis module is used to perform pairing protocol analysis on the BLE broadcast data to be paired, so as to obtain the BLE pairing protocol data; perform BLE response strategy analysis according to the BLE pairing protocol data, so as to obtain the BLE response strategy, and transmit the BLE response strategy to the Bluetooth remote control to perform the Bluetooth pairing task;

[0068] The communication network topology structure analysis module is used to perform BLE communication network topology structure analysis according to the BLE response strategy and the BLE scanning environment model, so as to obtain the BLE communication network topology structure, and perform BLE communication channel planning according to the BLE communication network topology structure, so as to obtain BLE communication channel data;

[0069] The BLE command mapping module is used to obtain the Bluetooth remote control interaction data, and perform user interaction analysis based on the Bluetooth remote control interaction data to obtain the user input interaction data; perform BLE command mapping on the user input interaction data to obtain the BLE command stream to be sent;

[0070] A BLE command sending strategy integration module is used to select a low-latency BLE communication channel for BLE communication channel data according to the BLE command stream to be sent, so as to obtain low-latency BLE channel data; integrate the BLE command sending strategy for the low-latency BLE channel data and the BLE command stream to be sent, so as to obtain the BLE command sending strategy, and transmit the BLE command sending strategy to the Bluetooth remote control to execute the command sending task;

[0071] The pairing device command validity evaluation module is used to obtain the paired device feedback data, and perform BLE command validity evaluation on the paired device feedback data, so as to obtain the paired device command validity data; perform BLE command correction according to the paired device command validity data, so as to obtain the optimized BLE command stream to be sent;

[0072] The BLE command sending strategy selection module is used to select the BLE command sending strategy according to the optimized BLE command stream to be sent, so as to obtain the BLE optimized command sending strategy, and transmit the BLE optimized command sending strategy to the Bluetooth remote control to execute the command sending task.

[0073] The pairing control system based on the Bluetooth remote controller of the present invention can realize any pairing control method based on the Bluetooth remote controller of the present invention, and is used to combine the operation and signal transmission medium between various modules to complete the pairing control method based on the Bluetooth remote controller. The internal modules of the system cooperate with each other, thereby effectively improving the efficiency of pairing the Bluetooth remote controller.

[0074] Optionally, the present invention also provides a pairing control device, including a pairing control device main body, a power supply unit and an electrical control unit, the power supply unit is installed inside the pairing control device main body, the electrical control unit is electrically connected to the power supply unit, the electrical control unit is used to charge the pairing control device main body and control the pairing control device main body, and the electrical control unit is used to execute a pairing control method based on a Bluetooth remote control as described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments thereof made with reference to the following drawings:

[0076] Figure 1 It is a schematic flow chart of the steps of the pairing control method based on the Bluetooth remote controller of the present invention;

[0077] Figure 2 Detailed step flow diagram of step S1 in the present invention;

[0078] Figure 3 Detailed step flow diagram of step S2 in the present invention;

[0079] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0080] The technical method of the present invention is described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by technicians in this field without creative work are within the scope of protection of the present invention.

[0081] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. The functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor methods and / or microcontroller methods.

[0082] It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another unit. For example, without departing from the scope of the exemplary embodiments, the first unit may be referred to as the second unit, and similarly the second unit may be referred to as the first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items.

[0083] To achieve this, please refer to Figures 1 to 3 The present invention provides a pairing control method based on a Bluetooth remote controller, the method comprising the following steps:

[0084] Step S1: obtaining BLE scan data through a Bluetooth remote control, and digitizing the BLE scan environment according to the BLE scan data, thereby obtaining a BLE scan environment model; screening the BLE scan data for BLE pairing devices through the BLE scan environment model, thereby obtaining BLE broadcast data to be paired;

[0085] In this embodiment, the Bluetooth remote control starts the BLE scanning function through the Bluetooth interface to collect the broadcast data of the surrounding BLE devices, including the MAC address of the device, signal strength (RSSI), broadcast interval, etc. These data include the unique identifier of each device, signal strength, broadcast data, etc. Algorithms such as cluster analysis can be used to spatially locate and model the environment of the scanned BLE devices to create a digital BLE environment model, which includes the location distribution and signal strength distribution of the devices. The KMeans clustering algorithm in the scikit-learn library of Python can be used to cluster the devices by location to obtain the environment model. The scanned data is filtered through the environment model, and only the BLE device data that meets specific conditions (such as signal strength greater than -70dBm and broadcast interval less than 1 second) is retained to obtain the BLE broadcast data to be paired.

[0086] Step S2: performing pairing protocol analysis on the BLE broadcast data to be paired, thereby obtaining BLE pairing protocol data; performing BLE response strategy analysis according to the BLE pairing protocol data, thereby obtaining a BLE response strategy, and transmitting the BLE response strategy to the Bluetooth remote control to perform the Bluetooth pairing task;

[0087] In this embodiment, the pairing request in the BLE broadcast data to be paired is parsed to extract the pairing protocol data, such as the pairing request information of the device, the device capability information, and the pairing key. According to the parsed pairing protocol data, the best BLE response strategy is analyzed and determined, such as selecting "keyless pairing" or "pairing with PIN code". The determined response strategy, such as the "pairing with PIN code" strategy, is transmitted to the target BLE device through the Bluetooth remote control for pairing.

[0088] Step S3: performing a BLE communication network topology analysis according to the BLE response strategy and the BLE scanning environment model, thereby obtaining the BLE communication network topology, and performing BLE communication channel planning according to the BLE communication network topology, thereby obtaining BLE communication channel data;

[0089] In this embodiment, the BLE response strategy and scanning environment model are used to analyze the topology of the BLE communication network, such as determining the relationship between the master device and the slave device and the path of the data flow. Based on this analysis, the BLE communication channel is planned, such as selecting the channel with the best signal strength or avoiding the channel with greater interference, so as to obtain the best BLE communication channel data. For each channel, its transmission delay, bandwidth, stability and other information are recorded.

[0090] Step S4: obtaining the Bluetooth remote control interaction data, and performing user interaction analysis according to the Bluetooth remote control interaction data, thereby obtaining the user input interaction data; performing BLE command mapping on the user input interaction data, thereby obtaining the BLE command stream to be sent;

[0091] In this embodiment, the user's interaction data, such as key input or touch operation, is obtained from the Bluetooth remote control. By parsing these interaction data, the user's intention is obtained, such as turning on the device, adjusting settings, or other operations. These user intentions are mapped to corresponding BLE command streams, for example, the "turn on the device" operation is mapped to the "AT+ON" command. A BLE command stream to be sent is generated, such as "AT+ON; AT+SET=10".

[0092] Step S5: selecting a low-latency BLE communication channel for the BLE communication channel data according to the BLE instruction stream to be sent, thereby obtaining low-latency BLE channel data; integrating the BLE instruction sending strategy for the low-latency BLE channel data and the BLE instruction stream to be sent, thereby obtaining the BLE instruction sending strategy, and transmitting the BLE instruction sending strategy to the Bluetooth remote control to execute the instruction sending task;

[0093] In this embodiment, a BLE communication channel with the lowest latency is selected based on the BLE command stream to be sent and the BLE communication channel data. For example, a channel with a latency of 2ms is selected instead of a channel with a latency of 10ms. In combination with the low-latency channel data and the BLE command stream to be sent, a BLE command sending strategy is formulated, such as selecting a batch sending strategy or a batch sending strategy. The optimized command sending strategy, such as "send the setting command first, then send the start command", is transmitted to the Bluetooth remote control for execution.

[0094] Step S6: Acquire paired device feedback data, and perform BLE command validity evaluation on the paired device feedback data according to the BLE command stream to be sent, thereby obtaining paired device command validity data; perform BLE command correction according to the paired device command validity data, thereby obtaining an optimized BLE command stream to be sent;

[0095] In this embodiment, feedback data is obtained from the paired device, such as a status code or confirmation information returned by the device. These feedback data are analyzed to evaluate the validity of the command, such as checking whether an "OK" response or an error code is received. According to the command validity data, the command is corrected. For example, if it is found that the "AT+ON" command is not successfully executed, it is adjusted to "AT+ON; AT+ACK" and resent to ensure that the optimized BLE command stream is accurate.

[0096] Step S7: Select a BLE instruction sending strategy for the BLE instruction sending strategy according to the optimized BLE instruction stream to be sent, thereby obtaining a BLE optimized instruction sending strategy, and transmitting the BLE optimized instruction sending strategy to the Bluetooth remote control to execute the instruction sending task.

[0097] In this embodiment, based on the optimized BLE instruction stream to be sent, the BLE instruction sending strategy is selected, which can be combined with a machine learning algorithm (such as reinforcement learning) to select the optimal instruction sending strategy. For example, if the optimized instruction stream includes "AT+ON; AT+SET=10", and the instruction sending strategy simulation is performed through reinforcement learning or offline simulation, and it is shown that using "batch sending" can more efficiently transmit these instructions, then this strategy is selected. The optimized strategy is transmitted to the Bluetooth remote control through a configuration file or a strategy update interface to ensure that the instructions are sent according to the optimal strategy to achieve more efficient BLE communication.

[0098] Optionally, step S1 specifically includes:

[0099] Step S11: obtaining BLE scanning data through a Bluetooth remote controller, and extracting scanning device UUID data from the BLE scanning data, thereby obtaining scanning device UUID data;

[0100] In this embodiment, BLE scan data is collected by a Bluetooth remote control, and the data includes broadcast signals of multiple BLE devices. A specific parsing algorithm (such as a regular expression) is used to extract the UUID field of the device from the data packet. These UUIDs are used to uniquely identify each scanned device. For example, the UUID is extracted by parsing the service data field 0x16 in the device broadcast packet and recorded.

[0101] Step S12: classifying the BLE scan data into device types according to the scan device UUID data, thereby obtaining single-service UUID device scan data and multi-service UUID device scan data;

[0102] In this embodiment, the extracted UUIDs are classified to distinguish between single-service UUID devices and multi-service UUID devices. A single-service UUID device has only one service identified by a UUID, while a multi-service UUID device has multiple services identified by UUIDs. For example, the UUID of a single-service device is 0000180a-0000-1000-8000-00805f9b34fb, while a multi-service device contains multiple UUIDs, such as 00001801-0000-1000-8000-00805f9b34fb and 0000180a-0000-1000-8000-00805f9b34fb, and the classification is performed based on these classification data.

[0103] Step S13: performing device location estimation on the single-service UUID device scanning data and the multi-service UUID device scanning data respectively, thereby obtaining single-service device location data and multi-service device location data;

[0104] In this embodiment, a triangulation positioning algorithm based on RSSI (received signal strength indication) is used to estimate the device position in the scan data. Positioning is performed separately for single-service UUID devices and multi-service UUID devices. For example, if the RSSI value of device 1 is -60dBm and that of device 2 is -70dBm, the position is estimated by calculating the distance from the known coordinate point using the triangulation positioning method to obtain the single-service device position data and multi-service device position data.

[0105] Step S14: integrating the signal strength distribution of the BLE scan data to obtain signal strength distribution data, and constructing a Bluetooth signal environment model according to the signal strength distribution data;

[0106] In this embodiment, the signal strength data of all devices in the BLE scan data are integrated to draw a signal strength distribution map. The signal strength distribution data is generated using a Gaussian mixture model (GMM) or Kriging interpolation method. These methods help to infer the changes in signal strength between different locations, thereby establishing a comprehensive Bluetooth signal environment model. For example, the signal strength of each point is integrated and the distribution of signal strength is displayed using a heat map.

[0107] Step S15: performing spatial position mapping on the Bluetooth signal environment model according to the single-service device location data and the multi-service device location data, thereby obtaining a BLE scanning environment model;

[0108] In this embodiment, the location information of single-service and multi-service devices is mapped to the Bluetooth signal environment model. A spatial location map is created by combining the location of the device with the signal strength distribution data. For example, a geographic information system (GIS) tool is used to map the device location data to a signal strength distribution map to form a BLE scanning environment model that displays the signal coverage in different areas.

[0109] Step S16: screening the BLE scan data for BLE pairing devices using the BLE scan environment model, thereby obtaining the BLE broadcast data to be paired.

[0110] In this embodiment, the BLE scanning environment model is used to screen the devices to be paired. According to the signal strength and device location data in the environment model, the best paired device is filtered out. For example, by setting the signal strength threshold and device location requirements, the device broadcast data with a signal strength within a predetermined range is selected, and finally the BLE broadcast data to be paired is obtained.

[0111] Optionally, step S16 is specifically:

[0112] Step S161: clustering high signal strength devices on the BLE scan data using a BLE scan environment model, thereby obtaining high signal strength device data;

[0113] In this embodiment, the signal strength data in the BLE scanning environment model is used to perform cluster analysis on the scanned devices to identify high signal strength devices. The K-means algorithm is applied to cluster the signal strength data, and a threshold (such as -60dBm) is set to filter out devices with signal strength higher than the threshold. For example, devices with signal strength exceeding -55dBm are marked as high signal strength devices, and the specific data of these devices is obtained, including device UUID and signal strength.

[0114] Step S162: Obtain UUID data of the device to be paired, and perform device UUID screening on the BLE scan data according to the UUID data of the device to be paired, so as to obtain UUID-compliant device data;

[0115] In this embodiment, the UUID data of the intended pairing device, i.e., the UUID data of the device to be paired, is obtained from the Bluetooth remote control, and the BLE scan data is filtered based on these UUIDs. For example, if the UUID of the device to be paired is 0000180a-0000-1000-8000-00805f9b34fb, all device data with the UUID of this value in the BLE scan data are filtered. This step will obtain all data whose UUID meets the requirements of the device to be paired, including the device ID and related broadcast information.

[0116] Step S163: performing device intersection operation on the UUID matching device data and the high signal strength device data, thereby obtaining the device data to be paired;

[0117] In this embodiment, the UUID-compliant device data and the high signal strength device data are intersected to determine the final device to be paired. The two data sets are calculated using an intersection algorithm (such as a set intersection operation) to obtain device data that meets the UUID requirements and has high signal strength. For example, by comparing the device data with a UUID of 0000180a-0000-1000-8000-00805f9b34fb with the device data with a signal strength higher than -55dBm, the qualified devices are screened out, which can improve the security of device pairing.

[0118] Step S164: extract the to-be-paired device scanning broadcast data from the BLE scanning data according to the to-be-paired device data, thereby obtaining the to-be-paired BLE broadcast data.

[0119] In this embodiment, the relevant scanning broadcast data is extracted from the BLE scanning data according to the data of the device to be paired. The extraction method includes retrieving the relevant content in the broadcast data packet by the device ID. For example, the broadcast packet information, such as advertising data and service data, is extracted from the screened device to be paired, and finally a set containing the broadcast data of the device to be paired is obtained for subsequent pairing operations.

[0120] Optionally, step S2 specifically includes:

[0121] Step S21: parsing the BLE broadcast data to be paired, thereby obtaining the broadcast packet data to be paired;

[0122] In this embodiment, the BLE broadcast data to be paired is parsed to extract the broadcast packet data. Assume that the broadcast data format is a standard BLE broadcast packet, including the device name, service UUID and broadcast data. Use a parsing tool (such as the parsing library of BluetoothSIG) to parse each broadcast packet one by one, and extract relevant fields such as Advertising Data, Service UUIDs and Device Name. For example, the parsed broadcast packet data includes the device name "DeviceA" and the service UUID 0000180a-0000-1000-8000-00805f9b34fb.

[0123] Step S22: extracting the pairing protocol field from the pairing broadcast packet data to obtain pairing protocol field data, and performing pairing protocol parsing according to the pairing protocol field data to obtain BLE pairing protocol data;

[0124] In this embodiment, the pairing protocol field is extracted from the broadcast packet data to be paired. The fields in the broadcast packet are parsed to find the pairing protocol field (such as the pairing request field or the pairing response field). Taking the BLE pairing protocol as an example, the Pairing Method, Authentication and other fields in the pairing request are extracted. After parsing these fields, specific pairing protocol data is obtained, such as the pairing method is Just Works or Passkey Entry, and the required security parameters such as IO Capability and OOB Data.

[0125] Step S23: selecting a data security protocol according to the BLE pairing protocol data, thereby obtaining pairing security protocol data;

[0126] In this embodiment, a data security protocol is selected based on the BLE pairing protocol data. Assume that the pairing protocol data indicates the use of the Just Works method, which does not require the user to enter a password, so an appropriate security protocol such as No MITMProtection is selected. By evaluating the Authentication Requirements and EncryptionRequirements in the pairing protocol data, it is decided to use AES-128 encryption to ensure security.

[0127] Step S24: integrating the BLE response strategy according to the BLE pairing protocol data and the pairing security protocol data to obtain the BLE response strategy, and transmitting the BLE response strategy to the Bluetooth remote controller to execute the Bluetooth pairing task.

[0128] In this embodiment, the BLE response strategy is integrated according to the BLE pairing protocol data and the pairing security protocol data. The integrated strategy includes selecting a response type (such as Pairing Request or Pairing Response) and sending the strategy configuration to the Bluetooth remote control. The integrated response strategy (such as selecting the Just Works mode) is transmitted to the remote control, and the remote control performs the BLE pairing task, such as sending a pairing request or confirming the pairing result.

[0129] Optionally, step S3 specifically includes:

[0130] Step S31: extracting device space features from the BLE scanning environment model to obtain device space layout data;

[0131] In this embodiment, the device space feature extraction is performed on the BLE scanning environment model. Assume that multiple BLE devices are scanned in an office building environment through a BLE scanning tool. The RSSI (received signal strength indication), device ID, and location coordinates (determined by the positioning system) of these devices are extracted, and the device space layout data is generated. For example, device A (position: X=10m, Y=5m) and device B (position: X=15m, Y=10m) are scanned on a certain floor. This information will be used to further analyze the spatial distribution of the devices.

[0132] Step S32: integrating the device response connection relationship according to the BLE response strategy, thereby obtaining device connection relationship data;

[0133] In this embodiment, the device response connection relationship is integrated according to the BLE response strategy. Assume that the "Pairing Request" response strategy is applied in the pairing process between devices. The connection request and response information received by the BLE protocol stack are integrated to form device connection relationship data. For example, device A responds to the connection request of device B, establishes a pairing relationship, and records the connection status between the two devices and their pairing methods (such as Passkey Entry).

[0134] Step S33: performing communication topology analysis according to the device connection relationship data and the device space layout data, thereby obtaining a communication network topology structure;

[0135] In this embodiment, the communication topology structure analysis is performed based on the device connection relationship data and the device spatial layout data. The device connection relationship data (device A is connected to device B) and the spatial layout data (device A position X=10m, Y=5m; device B position X=15m, Y=10m) are combined using graph theory methods to analyze the communication path and network topology. The result is a graph model in which device A and device B are nodes, the connecting lines represent the communication links between devices, and the graph shows the overall communication structure of the devices.

[0136] Step S34: integrating the response strategy of the communication network topology structure according to the BLE response strategy, thereby obtaining the BLE communication network topology structure;

[0137] In this embodiment, the response strategy of the communication network topology is integrated according to the BLE response strategy. For example, devices A, B, and C in the BLE network topology diagram all participate in the integration of the response strategy, and the strategies include "data encryption" and "anti-interference". According to these strategies, the communication topology is adjusted to ensure that the communication of each device meets the strategy requirements, such as adding a data encryption node in the topology to improve the security of the overall network.

[0138] Step S35: Perform BLE device channel allocation planning according to the BLE communication network topology structure, thereby obtaining BLE communication channel data.

[0139] In this embodiment, BLE device channel allocation planning is performed according to the BLE communication network topology. The communication network topology is analyzed to determine the best communication channel for each device. For example, in a BLE network containing multiple devices, channels are allocated to minimize interference and optimize communication efficiency. Assuming that device A uses channel 37, device B uses channel 38, and device C uses channel 39, channel allocation planning ensures that each device works on its allocated channel to reduce mutual interference.

[0140] Optionally, step S4 specifically includes:

[0141] Step S41: obtaining Bluetooth remote controller interaction data, and performing interactive touch point feature extraction on the Bluetooth remote controller interaction data, thereby obtaining interactive touch point data;

[0142] In this embodiment, the interactive data from the Bluetooth remote control is received through the Bluetooth receiver. The interactive data includes the coordinates (X, Y) of the touch point, the touch pressure value, the touch timestamp, etc. The touch point features are extracted from the received raw data. For example, for a touch point (X=120, Y=200), its position, time interval and pressure value are extracted. The generated data is {(X=120, Y=200, timestamp=0.5s, pressure=0.8)}. All the extracted touch point data are aggregated into a data set, and the characteristic value of each touch point is recorded for subsequent analysis. Data example: {[(X=120, Y=200, timestamp=0.5s, pressure=0.8), (X=122, Y=202, timestamp=0.55s, pressure=0.8), ...]}.

[0143] Step S42: integrating the short-term touch point displacement distribution according to the interactive touch point data to obtain the touch point displacement distribution data, and classifying the Bluetooth remote control interaction data by user interaction according to the touch point displacement distribution data to obtain the drag interaction data and the click interaction data;

[0144] In this embodiment, the displacement vector of each touch point is calculated (for example, the touch point moves from (X=120, Y=200) to (X=122, Y=202)). These displacement vectors are integrated according to the time period to calculate the displacement distribution in a short period of time. When the moving distance and time of the displacement distribution data are large (such as the moving distance exceeds 10 pixels and the time is less than 1 second), it is marked as drag interaction data. If the moving distance of the displacement distribution is very small (such as less than 5 pixels) and the time is short (such as less than 0.3 seconds), it is marked as click interaction data. The drag interaction data {[(X=120, Y=200) ->(X=150, Y=250)]} and the click interaction data {[(X=120, Y=200, time=0.2s)]} are obtained.

[0145] Step S43: performing interaction time statistics on the click interaction data, thereby obtaining high-value interaction time data and low-value interaction time data;

[0146] In this embodiment, the timestamps in the click interaction data are analyzed to calculate the duration of each click. For example, if the start time of the click is 0.2 seconds and the end time is 0.5 seconds, the click duration is 0.3 seconds. Records with click durations exceeding 0.5 seconds are, for example, {[(X=100, Y=150, time=0.6s)]}. Records with click durations less than 0.5 seconds are, for example, {[(X=120,Y=200, time=0.2s)]}.

[0147] Step S44: clustering the click interaction data into long-press interaction data according to the high-value interaction time data, thereby obtaining long-press interaction data; clustering the click interaction data into single-click interaction data according to the low-value interaction time data, thereby obtaining single-click interaction data;

[0148] In this embodiment, cluster analysis is performed on high-value interaction time data, such as using the K-means algorithm to aggregate data with a click time of more than 0.5 seconds into long-press interaction data. For example, {[(X=100, Y=150, time=0.6s)]}. Cluster analysis is performed on low-value interaction time data, and data with a click time of less than 0.5 seconds is aggregated into single-click interaction data. For example, {[(X=120, Y=200, time=0.2s)]}.

[0149] Step S45: performing user interaction integration on the drag interaction data, the long press interaction data, and the single click interaction data, thereby obtaining user input interaction data;

[0150] In this embodiment, all types of interaction data (drag, long press, single click) are integrated into one data set. The integration process includes the summary of detailed records and timestamp information for each interaction type. For example, the integrated data set may be {[drag: (X=120, Y=200) ->(X=150, Y=250)], long press: (X=100, Y=150, time=0.6s), single click: (X=120, Y=200, time=0.2s)]}.

[0151] Step S46: Perform BLE command mapping on the user input interaction data to obtain a BLE command stream to be sent.

[0152] In this embodiment, each interactive behavior is mapped to a specific BLE command based on the interactive data input by the user. Assuming there are BLE commands "0x01", "0x02", and "0x03", the drag interaction is mapped to the BLE command "0x01"; the long press interaction is mapped to the BLE command "0x02"; and the single click interaction is mapped to the BLE command "0x03". The mapped commands are combined into a BLE command stream to be sent, such as {"0x01", "0x02", "0x03"}, and are ready to be sent to the target device through the BLE protocol.

[0153] Optionally, step S46 is specifically:

[0154] Step S461: acquiring BLE command signal data, and performing signal function analysis on the BLE command signal data, thereby obtaining signal function data;

[0155] In this embodiment, the original signal data is received from the BLE device through a BLE (Bluetooth Low Energy) receiver. This data is usually a wireless signal sent by a BLE device, including instruction codes, status information, and control commands. The received BLE signal data is decoded using a signal processing algorithm (such as Fourier transform). Specifically, each data packet and control information in the signal is extracted, for example, the device status, the protocol type of the transmitted data, etc. are identified. The parsed data will include the command function and status of the device. For example, the command data may include functions such as "turn on the light", "turn off the light", or "adjust the brightness", and these function data are organized into a structured form (such as JSON or XML format).

[0156] Step S462: extracting touch interaction features from the user input interaction data, thereby obtaining user touch interaction data;

[0157] In this embodiment, a touch recognition algorithm (such as dynamic time warping DTA, convolutional neural network CNN) is used to extract the features of the user's touch operation. For example, the user's sliding, clicking, double-clicking and other gestures are recognized, and the specific parameters of each gesture (such as the trajectory of the finger movement, the duration of the gesture) are recorded. The extracted touch feature data is organized into a structured format (such as a table or database record), including information such as gesture type, operation location, and operation time.

[0158] Step S463: performing signal mapping association according to the user touch interaction data and the signal function data, thereby obtaining interaction signal association data;

[0159] In this embodiment, a mapping model is constructed to associate the user's touch interaction data with the BLE signal function data. For example, through the defined mapping rules, the user's "slide gesture" is associated with the "adjust brightness" function of the BLE command. A mapping table or database is created to record the relationship between the user's touch action and the BLE command function. For example, if the user slides up on the screen, it is mapped to the BLE command "increase brightness".

[0160] Step S464: acquiring BLE protocol layer transmission data, and performing BLE instruction structure calculation on the BLE protocol layer transmission data, thereby obtaining BLE instruction structure data;

[0161] In this embodiment, the data packets of the BLE protocol layer are obtained through the BLE communication module. These data packets include header information, payload and checksum defined by the BLE protocol. These data packets are parsed to extract the structural information of the BLE instructions, such as the identifier, parameters and data type of the instructions. The BLE data packets are converted into readable instruction structure data using a protocol analysis tool or a custom parsing algorithm. The parsed instruction structure data is stored in a structured form (such as a table), including information such as instruction type, parameters and instruction encoding.

[0162] Step S465: mapping rules are formulated according to the interactive signal association data and the BLE command structure data, thereby obtaining mapping rules;

[0163] In this embodiment, specific mapping rules are formulated based on the interactive signal association data and the BLE command structure data. For example, a rule is defined to map the "slide gesture" to the "increase" operation in the BLE command "adjust brightness". These mapping rules are organized into documents or configuration files, which describe in detail the BLE command format and parameters corresponding to each touch operation. For example, a rule may include "slide up is mapped to command '01' + parameter '10'".

[0164] Step S466: Perform BLE command mapping on the user touch interaction data according to the mapping rule to obtain a BLE command set, and arrange the BLE command set by timestamp to obtain a BLE command stream to be sent.

[0165] In this embodiment, mapping rules are applied to convert the user's touch interaction data into BLE instructions. For example, the identified "swipe up" operation is converted into the BLE instruction "01" and appropriate parameters are added. Collect all converted BLE instructions and organize them into an instruction set list. Add a timestamp to each BLE instruction to ensure that the instructions are sent in the correct order. This can be achieved by recording the trigger time for each instruction. The sorted BLE instruction set is packaged into an instruction stream so that it can be sent to the BLE device for execution. For example, after all instructions are arranged in timestamp order, they are packaged into a BLE communication data packet and prepared to be sent.

[0166] Optionally, step S6 specifically includes:

[0167] Step S61: Acquire paired device feedback data, and perform response analysis on the paired device feedback data to obtain instruction response data;

[0168] In this embodiment, feedback data of the paired device is obtained through the Bluetooth protocol. Specifically, each command sent by the Bluetooth remote control (such as "turn on the light" or "adjust the temperature") will generate feedback data, which usually contains information such as response time and response status code. First, the feedback data transmitted from the paired device is read from the Bluetooth remote control, and then parsed into response data. The parsing process includes converting the original feedback data into an easy-to-process format, such as JSON or XML, and extracting key fields from it, such as response time (such as "150ms") and response code (such as "200 OK" or "500 Error").

[0169] Step S62: extracting the response time and the response code of the instruction response data, thereby obtaining the instruction response time data and the instruction response code data;

[0170] In this embodiment, the response time and response code of each instruction are extracted from the parsed response data through regular expressions or a specific parsing library. For example, if the feedback data is in JSON format, the system can use a JSON parser to extract the "response_time" field and the "status_code" field. The extracted results will be stored in the database for subsequent statistical analysis.

[0171] Step S63: Calculate the error code ratio of the instruction response code data to obtain error code ratio data, and classify and calculate the instruction response code data according to the error code ratio data to obtain high error code ratio instruction data and low error code ratio instruction data;

[0172] In this embodiment, the error codes (such as "404 Not Found" or "500Internal Server Error") in all instruction responses are counted, and the frequency of occurrence of each error code is calculated. Then, the error code ratio of each instruction is determined by calculating the ratio of the error code occurrence (total number of error codes / total number of responses). For example, if the error code ratio of a certain instruction is 20%, the instruction is classified as a high error code ratio instruction. Instructions with an error code ratio higher than a certain threshold are marked as high error code ratio instructions, and the rest are marked as low error code ratio instructions.

[0173] Step S64: performing command response time statistical analysis on the command response time data, thereby obtaining high response time command data and low response time command data;

[0174] In this embodiment, the response time of each instruction is statistically analyzed, for example, the mean and standard deviation of the response time are calculated. By setting a threshold, instructions with a response time higher than the threshold are classified as high response time instructions, and instructions with a response time lower than the threshold are classified as low response time instructions. For example, if the average response time of a certain instruction exceeds 500 milliseconds, it is marked as a high response time instruction, otherwise it is marked as a low response time instruction.

[0175] Step S65: performing instruction intersection operation on the high error code ratio instruction data and the high response time instruction data, thereby obtaining low validity device instruction data; performing instruction intersection operation on the low error code ratio instruction data and the low response time instruction data, thereby obtaining high validity device instruction data;

[0176] In this embodiment, a set operation or a database query statement is used to perform an intersection operation on the high error code ratio instruction data and the high response time instruction data to identify those instructions that have both a high error rate and a high response time. These instructions are marked as low-effectiveness device instructions. Conversely, the low error code ratio instruction data and the low response time instruction data are intersected to identify those instructions that have both a low error rate and a low response time, and are marked as high-effectiveness device instructions.

[0177] Step S66: merging the low-validity device instruction data and the high-validity device instruction data to obtain paired device instruction validity data;

[0178] In this embodiment, data sets of device instructions marked as low validity and high validity are merged to form a comprehensive instruction validity data set. During the merging process, all relevant instructions and their validity data are integrated into a unified data table or database for further analysis and processing. The merged data set will contain the validity status (low or high) of each instruction.

[0179] Step S67: performing BLE instruction correction on the BLE instruction stream to be sent according to the paired device instruction validity data, thereby obtaining an optimized BLE instruction stream to be sent.

[0180] In this embodiment, the BLE command stream to be sent is optimized based on the obtained command validity data. Specifically, high-validity device commands are sent first, and low-validity device commands are adjusted or retried to improve their success rate. The optimization process may include rearranging the order in which commands are sent, adding a retry mechanism, or adjusting the sending strategy. Finally, an optimized BLE command stream is generated to improve the overall response efficiency and stability of the device.

[0181] Optionally, the present invention further provides a pairing control system based on a Bluetooth remote controller, which is used to execute the pairing control method based on a Bluetooth remote controller as described above. The pairing control system based on a Bluetooth remote controller includes:

[0182] The BLE pairing device screening module is used to obtain BLE scanning data through the Bluetooth remote control, and digitize the BLE scanning environment according to the BLE scanning data, so as to obtain the BLE scanning environment model; the BLE scanning data is screened for BLE pairing devices through the BLE scanning environment model, so as to obtain the BLE broadcast data to be paired;

[0183] The BLE response strategy analysis module is used to perform pairing protocol analysis on the BLE broadcast data to be paired, so as to obtain the BLE pairing protocol data; perform BLE response strategy analysis according to the BLE pairing protocol data, so as to obtain the BLE response strategy, and transmit the BLE response strategy to the Bluetooth remote control to perform the Bluetooth pairing task;

[0184] The communication network topology structure analysis module is used to perform BLE communication network topology structure analysis according to the BLE response strategy and the BLE scanning environment model, so as to obtain the BLE communication network topology structure, and perform BLE communication channel planning according to the BLE communication network topology structure, so as to obtain BLE communication channel data;

[0185] The BLE command mapping module is used to obtain the Bluetooth remote control interaction data, and perform user interaction analysis based on the Bluetooth remote control interaction data to obtain the user input interaction data; perform BLE command mapping on the user input interaction data to obtain the BLE command stream to be sent;

[0186] A BLE command sending strategy integration module is used to select a low-latency BLE communication channel for BLE communication channel data according to the BLE command stream to be sent, so as to obtain low-latency BLE channel data; integrate the BLE command sending strategy for the low-latency BLE channel data and the BLE command stream to be sent, so as to obtain the BLE command sending strategy, and transmit the BLE command sending strategy to the Bluetooth remote control to execute the command sending task;

[0187] The pairing device command validity evaluation module is used to obtain the paired device feedback data, and perform BLE command validity evaluation on the paired device feedback data, so as to obtain the paired device command validity data; perform BLE command correction according to the paired device command validity data, so as to obtain the optimized BLE command stream to be sent;

[0188] The BLE command sending strategy selection module is used to select the BLE command sending strategy according to the optimized BLE command stream to be sent, so as to obtain the BLE optimized command sending strategy, and transmit the BLE optimized command sending strategy to the Bluetooth remote control to execute the command sending task.

[0189] The pairing control system based on the Bluetooth remote controller of the present invention can realize any pairing control method based on the Bluetooth remote controller of the present invention, and is used to combine the operation and signal transmission medium between various modules to complete the pairing control method based on the Bluetooth remote controller. The internal modules of the system cooperate with each other, thereby effectively improving the efficiency of pairing the Bluetooth remote controller.

[0190] Optionally, the present invention also provides a pairing control device, including a pairing control device main body, a power supply unit and an electrical control unit, the power supply unit is installed inside the pairing control device main body, the electrical control unit is electrically connected to the power supply unit, the electrical control unit is used to charge the pairing control device main body and control the pairing control device main body, and the electrical control unit is used to execute a pairing control method based on a Bluetooth remote control as described above.

[0191] Therefore, the embodiments should be regarded as illustrative and non-restrictive from all points, and the scope of the present invention is limited by the appended claims rather than the above description, and it is therefore intended that all changes falling within the meaning and range of equivalent elements of the application documents are included in the present invention.

[0192] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.

Claims

1. A pairing control method based on a Bluetooth remote controller, characterized in that: The following steps are involved: Step S1: Acquire BLE scan data through the Bluetooth remote control, and digitize the BLE scan environment according to the BLE scan data, so as to obtain a BLE scan environment model; filter the BLE scan data for BLE pairing devices through the BLE scan environment model, so as to obtain the BLE broadcast data to be paired. Step S1 is specifically as follows: Step S11: obtaining BLE scanning data through a Bluetooth remote controller, and extracting scanning device UUID data from the BLE scanning data, thereby obtaining scanning device UUID data; Step S12: classifying the BLE scan data into device types according to the scan device UUID data, thereby obtaining single-service UUID device scan data and multi-service UUID device scan data; Step S13: performing device location estimation on the single-service UUID device scanning data and the multi-service UUID device scanning data respectively, thereby obtaining single-service device location data and multi-service device location data; Step S14: integrating the signal strength distribution of the BLE scan data to obtain signal strength distribution data, and constructing a Bluetooth signal environment model according to the signal strength distribution data; Step S15: performing spatial position mapping on the Bluetooth signal environment model according to the single-service device location data and the multi-service device location data, thereby obtaining a BLE scanning environment model; Step S16: screening the BLE scan data for BLE pairing devices using the BLE scan environment model, thereby obtaining the BLE broadcast data to be paired; Step S2: performing pairing protocol analysis on the BLE broadcast data to be paired, thereby obtaining BLE pairing protocol data; Perform BLE response strategy analysis according to BLE pairing protocol data to obtain the BLE response strategy, and transmit the BLE response strategy to the Bluetooth remote control to perform the Bluetooth pairing task. Step S2 is specifically as follows: Step S21: parsing the BLE broadcast data to be paired, thereby obtaining the broadcast packet data to be paired; Step S22: extracting the pairing protocol field from the pairing broadcast packet data to obtain pairing protocol field data, and performing pairing protocol parsing according to the pairing protocol field data to obtain BLE pairing protocol data; Step S23: selecting a data security protocol according to the BLE pairing protocol data, thereby obtaining pairing security protocol data; Step S24: integrating the BLE response strategy according to the BLE pairing protocol data and the pairing security protocol data, thereby obtaining the BLE response strategy, and transmitting the BLE response strategy to the Bluetooth remote controller to perform the Bluetooth pairing task; Step S3: Perform BLE communication network topology analysis according to the BLE response strategy and the BLE scanning environment model to obtain the BLE communication network topology, and perform BLE communication channel planning according to the BLE communication network topology to obtain BLE communication channel data. Step S3 is specifically as follows: Step S31: extracting device space features from the BLE scanning environment model to obtain device space layout data; Step S32: integrating device response connection relationships according to the BLE response strategy, thereby obtaining device connection relationship data; Step S33: performing communication topology analysis according to the device connection relationship data and the device space layout data, thereby obtaining a communication network topology structure; Step S34: integrating the response strategy of the communication network topology structure according to the BLE response strategy, thereby obtaining the BLE communication network topology structure; Step S35: performing BLE device channel allocation planning according to the BLE communication network topology structure, thereby obtaining BLE communication channel data; Step S4: obtaining the Bluetooth remote control interaction data, and performing user interaction analysis according to the Bluetooth remote control interaction data, thereby obtaining the user input interaction data; performing BLE command mapping on the user input interaction data, thereby obtaining the BLE command stream to be sent; Step S5: selecting a low-latency BLE communication channel for the BLE communication channel data according to the BLE instruction stream to be sent, thereby obtaining low-latency BLE channel data; integrating the BLE instruction sending strategy for the low-latency BLE channel data and the BLE instruction stream to be sent, thereby obtaining the BLE instruction sending strategy, and transmitting the BLE instruction sending strategy to the Bluetooth remote control to execute the instruction sending task; Step S6: Acquire paired device feedback data, and perform BLE command validity evaluation on the paired device feedback data according to the BLE command stream to be sent, thereby obtaining paired device command validity data; perform BLE command correction according to the paired device command validity data, thereby obtaining an optimized BLE command stream to be sent; Step S7: Select a BLE instruction sending strategy for the BLE instruction sending strategy according to the optimized BLE instruction stream to be sent, thereby obtaining a BLE optimized instruction sending strategy, and transmitting the BLE optimized instruction sending strategy to the Bluetooth remote control to execute the instruction sending task.

2. The pairing control method based on the Bluetooth remote controller according to claim 1, characterized in that: Step S16 is specifically as follows: Step S161: clustering high signal strength devices on the BLE scan data using a BLE scan environment model, thereby obtaining high signal strength device data; Step S162: Obtain UUID data of the device to be paired, and perform device UUID screening on the BLE scan data according to the UUID data of the device to be paired, so as to obtain UUID-compliant device data; Step S163: performing device intersection operation on the UUID matching device data and the high signal strength device data, thereby obtaining the device data to be paired; Step S164: extract the to-be-paired device scanning broadcast data from the BLE scanning data according to the to-be-paired device data, thereby obtaining the to-be-paired BLE broadcast data.

3. The pairing control method based on the Bluetooth remote controller according to claim 1, characterized in that: Step S4 is specifically as follows: Step S41: obtaining Bluetooth remote controller interaction data, and performing interactive touch point feature extraction on the Bluetooth remote controller interaction data, thereby obtaining interactive touch point data; Step S42: integrating the short-term touch point displacement distribution according to the interactive touch point data to obtain the touch point displacement distribution data, and classifying the Bluetooth remote control interaction data by user interaction according to the touch point displacement distribution data to obtain the drag interaction data and the click interaction data; Step S43: performing interaction time statistics on the click interaction data, thereby obtaining high-value interaction time data and low-value interaction time data; Step S44: clustering the click interaction data into long press interaction data according to the high-value interaction time data, thereby obtaining long press interaction data; Cluster the click interaction data according to the low-amount interaction time data, so as to obtain the click interaction data; Step S45: performing user interaction integration on the drag interaction data, the long press interaction data, and the single click interaction data, thereby obtaining user input interaction data; Step S46: Perform BLE command mapping on the user input interaction data to obtain a BLE command stream to be sent.

4. The pairing control method based on the Bluetooth remote controller according to claim 3, characterized in that: Step S46 is specifically as follows: Step S461: acquiring BLE command signal data, and performing signal function analysis on the BLE command signal data, thereby obtaining signal function data; Step S462: extracting touch interaction features from the user input interaction data, thereby obtaining user touch interaction data; Step S463: performing signal mapping association according to the user touch interaction data and the signal function data, thereby obtaining interaction signal association data; Step S464: acquiring BLE protocol layer transmission data, and performing BLE instruction structure calculation on the BLE protocol layer transmission data, thereby obtaining BLE instruction structure data; Step S465: mapping rules are formulated according to the interactive signal association data and the BLE command structure data, thereby obtaining mapping rules; Step S466: Perform BLE command mapping on the user touch interaction data according to the mapping rule to obtain a BLE command set, and arrange the BLE command set by timestamp to obtain a BLE command stream to be sent.

5. The pairing control method based on the Bluetooth remote controller according to claim 1, characterized in that: Step S6 is specifically as follows: Step S61: Acquire paired device feedback data, and perform response analysis on the paired device feedback data to obtain instruction response data; Step S62: extracting the response time and the response code of the instruction response data, thereby obtaining the instruction response time data and the instruction response code data; Step S63: Calculate the error code ratio of the instruction response code data to obtain error code ratio data, and classify and calculate the instruction response code data according to the error code ratio data to obtain high error code ratio instruction data and low error code ratio instruction data; Step S64: performing command response time statistical analysis on the command response time data, thereby obtaining high response time command data and low response time command data; Step S65: performing instruction intersection operation on the high error code ratio instruction data and the high response time instruction data, thereby obtaining low validity device instruction data; performing instruction intersection operation on the low error code ratio instruction data and the low response time instruction data, thereby obtaining high validity device instruction data; Step S66: merging the low-validity device instruction data and the high-validity device instruction data to obtain paired device instruction validity data; Step S67: performing BLE instruction correction on the BLE instruction stream to be sent according to the paired device instruction validity data, thereby obtaining an optimized BLE instruction stream to be sent.

6. A pairing control system based on a Bluetooth remote controller, characterized in that: Used to execute the pairing control method based on the Bluetooth remote controller as claimed in claim 1, the pairing control system based on the Bluetooth remote controller comprises: The BLE pairing device screening module is used to obtain BLE scanning data through the Bluetooth remote control, and digitize the BLE scanning environment according to the BLE scanning data, so as to obtain the BLE scanning environment model; the BLE scanning data is screened for BLE pairing devices through the BLE scanning environment model, so as to obtain the BLE broadcast data to be paired; The BLE response strategy analysis module is used to perform pairing protocol analysis on the BLE broadcast data to be paired, so as to obtain the BLE pairing protocol data; perform BLE response strategy analysis according to the BLE pairing protocol data, so as to obtain the BLE response strategy, and transmit the BLE response strategy to the Bluetooth remote control to perform the Bluetooth pairing task; The communication network topology structure analysis module is used to perform BLE communication network topology structure analysis according to the BLE response strategy and the BLE scanning environment model, so as to obtain the BLE communication network topology structure, and perform BLE communication channel planning according to the BLE communication network topology structure, so as to obtain BLE communication channel data; The BLE command mapping module is used to obtain the Bluetooth remote control interaction data, and perform user interaction analysis based on the Bluetooth remote control interaction data to obtain the user input interaction data; perform BLE command mapping on the user input interaction data to obtain the BLE command stream to be sent; A BLE command sending strategy integration module is used to select a low-latency BLE communication channel for BLE communication channel data according to the BLE command stream to be sent, so as to obtain low-latency BLE channel data; integrate the BLE command sending strategy for the low-latency BLE channel data and the BLE command stream to be sent, so as to obtain the BLE command sending strategy, and transmit the BLE command sending strategy to the Bluetooth remote control to execute the command sending task; The pairing device command validity evaluation module is used to obtain the paired device feedback data, and perform BLE command validity evaluation on the paired device feedback data, so as to obtain the paired device command validity data; perform BLE command correction according to the paired device command validity data, so as to obtain the optimized BLE command stream to be sent; The BLE command sending strategy selection module is used to select the BLE command sending strategy according to the optimized BLE command stream to be sent, so as to obtain the BLE optimized command sending strategy, and transmit the BLE optimized command sending strategy to the Bluetooth remote control to execute the command sending task.

7. A pairing control device, characterized in that: It includes a pairing control device main body, a power supply unit and an electrical control unit. The power supply unit is installed inside the pairing control device main body. The electrical control unit is electrically connected to the power supply unit. The electrical control unit is used to charge the pairing control device main body and control the pairing control device main body. The electrical control unit is used to execute the pairing control method based on the Bluetooth remote control as described in any one of claims 1-5.