A multi-Bluetooth connection data transmission method and system

Through multi-Bluetooth connection data transmission methods and systems, the problem of smoke meter detection equipment requiring specific port docking is solved, and efficient Bluetooth interconnection and data transmission between devices is realized, which improves work efficiency and reduces device power consumption.

CN114980056BActive Publication Date: 2025-06-13SAVABOON INTELLIGENT TECH(QINGDAO) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210545398.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-19
Publication Date
2025-06-13
Estimated Expiration
2042-05-19

AI Technical Summary

Technical Problem

Existing smoke meter detection equipment requires specific port docking. If the equipment does not have a corresponding port, it requires a special data transfer interface. Packet loss, data loss, data delay and other problems are prone to occur during the transfer process.

Method used

Through multi-Bluetooth connection data transmission methods and systems, Bluetooth interconnection between devices is realized, and pairing modules, sorting modules, judgment modules, detection modules and transmission modules are used to perform device pairing, information sorting, transmission type judgment and data transmission to solve the problems of device connection and data transmission.

Benefits of technology

Device pairing is realized through broadcasting, reducing processing latency and device power consumption, improving data transmission speed and work efficiency, and solving problems such as packet loss and delay in device connection and data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114980056B_ABST
    Figure CN114980056B_ABST
Patent Text Reader

Abstract

The present invention provides a multi-Bluetooth connection data transmission method and system, belonging to the technical field of Bluetooth transmission. The multi-Bluetooth connection data transmission method includes the following steps: S1, receiving requests for pairing from multiple inspection device ends, and configuring a unique pairing sequence code for the device ends that are successfully paired; wherein, if the pairing result is successful, obtaining the device information of the device ends; S2, obtaining a priority list according to the device information and the priority sorting rule; S3, receiving the parameter adjustment data from the server and judging the transmission type generated by the device end to be transmitted; S4, detecting the connection status of the device end to be transmitted to obtain a detection result; during the data transmission process, sorting the device information of each device end, and performing transmissions of different transmission types according to the number of device ends, thereby accelerating the data transmission speed and improving the work efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of Bluetooth transmission, and specifically, relates to a multi-Bluetooth connection data transmission method and system. Background Art

[0002] With the rapid development of modern industry and the continuous development of chip technology, serial ports and USB connection ports of industrial equipment electronic components are widely used in the real environment, greatly improving the working efficiency of people using machines, facilitating different operations on multiple devices, realizing the interaction between people and devices, real-time monitoring, and one-to-one correspondence.

[0003] Existing detection devices for smoke meters require specific port docking. For example, serial port connection requires a special serial cable. If the device does not have the corresponding port, a special data transfer interface and transfer cable are needed to achieve data connection and communication. Problems such as packet loss, data loss, and data delay are likely to occur during the transfer process; various transfer lines are too long, too large in volume to be convenient for movement, prone to aging, high power consumption, and inconvenient for later maintenance and management. Summary of the Invention

[0004] Embodiments of the present invention provide a multi-Bluetooth connection data transmission method and system, aiming to solve the problem that existing detection devices for smoke meters require specific port docking. If the device does not have the corresponding port, a special data transfer interface and transfer cable are needed to achieve data connection and communication. Problems such as packet loss, data loss, and data delay are likely to occur during the transfer process.

[0005] In view of the above problems, the technical solution proposed by the present invention is:

[0006] In a first aspect, a multi-Bluetooth connection data transmission method includes the following steps:

[0007] S1, receiving pairing requests from multiple device ends, and configuring a unique pairing sequence code for the device ends that succeed in pairing; wherein, if the pairing result is successful, obtaining the device information of the device end;

[0008] S2, obtaining a priority list according to the priority sorting rule based on the device information;

[0009] S3, receiving the parameter adjustment data from the server and determining the transmission type generated by the device end to be transmitted;

[0010] S4, detecting the connection status of the device end to be transmitted to obtain a detection result;

[0011] S5, transmitting the parameter adjustment data to the device end to be transmitted based on the detection result and according to the transmission type.

[0012] As a preferred technical solution of the present invention, before the step S1, a unique identifier is created for each of the device terminals.

[0013] As a preferred technical solution of the present invention, the step S1 specifically includes:

[0014] S11, receiving the request plaintexts of multiple device terminals and analyzing the request plaintexts;

[0015] S12, judging whether the unique identifier is carried in the request plaintext based on the device information; if not carried, feedback an unsuccessful pairing result, if carried, feedback a successful pairing result and obtain the device information of the device terminal, and at the same time execute the next step;

[0016] S13, generating the unique pairing sequence code according to each device terminal and sending it to the device terminal.

[0017] As a preferred technical solution of the present invention, the device information includes device location information, pairing success time, and unique identifier.

[0018] As a preferred technical solution of the present invention, the step S2 specifically includes:

[0019] S21, calculating the distance information between its own location information and the device location information;

[0020] S22, sorting each device information according to the priority sorting rule according to the distance information to obtain the priority list.

[0021] As a preferred technical solution of the present invention, the priority sorting rule is: first sort the distance information of each device information from near to far, and if the distance information is the same, then sort the pairing success times of the two device information according to the time sequence.

[0022] As a preferred technical solution of the present invention, the step S3 specifically includes:

[0023] S31, receiving the parameter adjustment data of the server and judging the device terminal to be transmitted by the detection device;

[0024] S32, generating a transmission type according to the device terminal to be transmitted.

[0025] As a preferred technical solution of the present invention, the step S4 includes:

[0026] S41. Send a tentative response data packet to the device to be transmitted. If the device to be transmitted responds, perform step S5. If the device to be transmitted does not respond, process it according to the transmission rules based on the transmission type and perform the next step.

[0027] S42. Continuously send the tentative response data packet to the device to be transmitted until the device to be transmitted is awakened.

[0028] As a preferred technical solution of the present invention, the transmission type is divided into a first type and a second type. The first type is that there are at least two devices to be transmitted, and the transmission is carried out in the order of the priority list. The second type is that there is at least one device to be transmitted, and the transmission is carried out according to the unique pairing sequence code.

[0029] In a second aspect, an embodiment of the present invention further provides a multi-Bluetooth connection data transmission system, including:

[0030] A pairing module, which is used to receive pairing requests from multiple device terminals and configure a unique pairing sequence code for the device terminals that succeed in pairing. If the pairing result is successful, obtain the device information of the device terminals.

[0031] A sorting module, which is used to obtain a priority list according to the device information and the priority sorting rules.

[0032] A judgment module, which is used to receive the parameter adjustment data of the server and judge the transmission type generated by the device to be transmitted.

[0033] A detection module, which is used to detect the connection status of the device to be transmitted and obtain a detection result.

[0034] A transmission module, which is used to transmit the parameter adjustment data to the device to be transmitted based on the detection result and according to the transmission type.

[0035] The beneficial effects of the above technical solutions provided by the embodiments of the present invention at least include:

[0036] (1) Pairing is achieved through the form of broadcasting, thereby reducing the processing waiting time, further reducing the power consumption of the device, and thus realizing device interconnection.

[0037] (2) During the data transmission process, the device information of each device terminal is sorted, and different transmission types are transmitted according to the number of device terminals, so as to accelerate the data transmission speed and improve the work efficiency.

[0038] The above description is only an overview of the technical solution of the present invention. In order to understand the technical means of the present invention more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable, the specific embodiments of the present invention are specifically given below. Description of the Drawings

[0039] Figure 1 It is a schematic structural diagram of a multi-Bluetooth connection data transmission method and system disclosed by the present invention;

[0040] Figure 2 It is a flowchart of a multi-Bluetooth connection data transmission method disclosed by the present invention;

[0041] Figure 3 It is a flowchart of step S1 of a multi-Bluetooth connection data transmission method disclosed by the present invention;

[0042] Figure 4 It is a flowchart of step S2 of a multi-Bluetooth connection data transmission method disclosed by the present invention;

[0043] Figure 5 It is a flowchart of step S3 of a multi-Bluetooth connection data transmission method disclosed by the present invention;

[0044] Figure 6 It is a flowchart of step S4 of a multi-Bluetooth connection data transmission method disclosed by the present invention;

[0045] Figure 7 It is a schematic structural diagram of a multi-Bluetooth connection data transmission system disclosed by the present invention.

[0046] Description of the reference numerals: 100, device end; 200, wireless router; 210, pairing module; 220, sorting module; 230, judgment module; 240, detection module; 250, transmission module; 300, server. Detailed Embodiments

[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0048] Accordingly, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts fall within the scope of protection of the present invention.

[0049] It should be noted that like reference numerals and letters denote like items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.

[0050] Embodiment 1

[0051] Referring to the attached Figures 1 to 5 As shown, the present invention provides a technical solution: a multi-Bluetooth connection data transmission method, including the following steps:

[0052] S1. Receive requests for pairing from multiple device terminals 100, and configure a unique pairing sequence code for the successfully paired device terminals 100; wherein, if the pairing result is successful, obtain the device information of the device terminals 100.

[0053] S2. According to the device information and the priority sorting rule, obtain a priority list.

[0054] S3. Receive the parameter adjustment data of the detection device and judge the transmission type generated by the device terminal 100 to be transmitted.

[0055] S4. Detect the connection status of the device terminal 100 to be transmitted, and obtain a detection result.

[0056] S5. Based on the detection result and according to the transmission type, transmit the parameter adjustment data to the device terminal 100 to be transmitted.

[0057] Specifically, the device terminal 100 can be a detection device of a smoke meter; the system of the present invention is a wireless router 200, and a Bluetooth module and a positioning module are respectively embedded in the detection device and the wireless router 200. The system of the present invention is embedded in the wireless router 200 to realize Bluetooth interconnection between the detection device and the wireless router 200, and communication interconnection between the wireless router 200 and the server 300.

[0058] Wherein, before the step S1, a unique identifier is created for each device terminal 100.

[0059] Further, the step S1 specifically includes:

[0060] S11. Receive the request plaintexts of multiple device terminals 100, and analyze the request plaintexts.

[0061] S12. Determine whether the unique identifier is carried in the request plaintext based on the device information. If not carried, feedback an unsuccessful pairing result. If carried, feedback a successful pairing result, obtain the device information of the device terminal 100, and simultaneously execute the next step.

[0062] S13. Generate the unique pairing sequence code according to each device terminal 100 and send it to the device terminal 100.

[0063] Specifically, when the device terminal 100 is installed and debugged, or when the device terminal 100 is added later, there will be a situation where multiple device terminals 100 request access. Therefore, in the form of broadcasting, the system of the present invention verifies the unique identifier to achieve pairing, thereby reducing the processing waiting time and further reducing the power consumption of the device, thus realizing device interconnection.

[0064] In a preferred embodiment of the present invention, the device information includes device location information, pairing success time, and unique identifier.

[0065] Further, the step S2 specifically includes:

[0066] S21. Calculate the distance information between the self-position information and the device position information.

[0067] S22. Sort each device information according to the priority sorting rule based on the distance information to obtain the priority list.

[0068] Specifically, in the process of obtaining the distance between the self-position information and the device position information, if the signal strength is used to calculate, when blocked by a wall, the signal strength will inevitably weaken, which will greatly reduce the accuracy of distance calculation. Therefore, in order to obtain accurate distance information, the self-position information and the device position information are obtained by the positioning module using satellite positioning technology.

[0069] In a preferred embodiment of the present invention, the priority sorting rule is: first sort the distance information of each device information from near to far. If the distance information is the same, then the pairing success times of the two device information are sorted according to the time sequence.

[0070] Further, the step S3 specifically includes:

[0071] S31. Receive the parameter adjustment data of the server 300 and determine the device terminal 100 to be transmitted by the detection device.

[0072] S32. Generate the transmission type according to the device terminal 100 to be transmitted.

[0073] Specifically, when the user needs to adjust parameters, the parameter adjustment data is sent to the system of the present invention through the server 300. According to the unique identifier carried by the parameter adjustment data, the device end 100 to be transmitted is determined through the unique identifier, and finally the transmission type can be determined according to the quantitative relationship.

[0074] Further, the step S4 includes:

[0075] S41, sending a tentative response data packet to the device end 100 to be transmitted; wherein, if the device end 100 to be transmitted responds, the step S5 is executed; if the device end 100 to be transmitted does not respond, it is processed according to the transmission rule according to the transmission type, and the next step is executed;

[0076] S42, continuously sending the tentative response data packet to the device end 100 to be transmitted until the device end 100 to be transmitted is awakened.

[0077] Specifically, in the case where the device end 100 to be transmitted does not respond, a tentative response data packet is sent to the device end 100 to be transmitted every other time period. After no response after exceeding the preset number of times, an alarm signal is sent to the server 300 to ensure the normal operation of the device. Among them, the preset number of times is 60 times.

[0078] In a preferred embodiment of the present invention, the transmission type is divided into a first type and a second type. The first type is that there are at least two device ends 100 to be transmitted, and they are transmitted in the order of the priority list. The second type is that there is at least one device end 100 to be transmitted, and it is transmitted according to the unique pairing sequence code.

[0079] Embodiment 2

[0080] The embodiment of the present invention also discloses a multi-Bluetooth connection data transmission system, as shown in the attached Figure 6 shown, including:

[0081] A pairing module 210, which is used to receive pairing requests from multiple device ends 100, and configure a unique pairing sequence code for the device ends 100 that are successfully paired; wherein, if the pairing result is successful, the device information of the device end 100 is obtained;

[0082] A sorting module 220, which is used to obtain a priority list according to the device information according to the priority sorting rule;

[0083] A judgment module 230, which is used to receive the parameter adjustment data of the detection device and judge the transmission type generated by the device end 100 to be transmitted;

[0084] A detection module 240, the detection module 240 is used to detect the connection status of the device end 100 to be transmitted and obtain a detection result;

[0085] The transmission module 250 is used to transmit the parameter adjustment data to the device end 100 to be transmitted based on the detection result and according to the transmission type.

[0086] In the above detailed description, various features are grouped together in a single embodiment to simplify the disclosure. This method of disclosure should not be interpreted as reflecting an intention that the embodiments of the claimed subject matter require more features than are clearly stated in each claim. On the contrary, as reflected in the appended claims, the invention is in a state of having less than all the features of the disclosed individual embodiments. Therefore, the appended claims are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate preferred embodiment of the invention.

[0087] Those skilled in the art will also appreciate that the various illustrative logic blocks, modules, circuits, and algorithmic steps described in conjunction with the embodiments herein can all be implemented as electronic hardware, computer software, or a combination thereof. In order to clearly illustrate the interchangeability between hardware and software, various illustrative components, blocks, modules, circuits, and steps are generally described above around their functions. Whether such functions are implemented as hardware or software depends on specific applications and the design constraints imposed on the entire system. A skilled person can implement the described functions in an alternative manner for each specific application, but such implementation decisions should not be interpreted as departing from the scope of protection of the present disclosure.

[0088] The steps of the method or algorithm described in conjunction with the embodiments herein may be directly embodied as hardware, a software module executed by a processor, or a combination thereof. The software module may be located in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a mobile disk, a CD-ROM, or any other form of storage medium well known in the art. An exemplary storage medium is connected to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium may also be an integral part of the processor. The processor and the storage medium may be located in an ASIC. The ASIC may be located in a user terminal. Of course, the processor and the storage medium may also be present in a user terminal as discrete components.

[0089] For software implementation, the techniques described in this application can be implemented by modules (e.g., procedures, functions, etc.) that perform the functions described in this application. These software codes can be stored in a memory unit and executed by a processor. The memory unit can be implemented within the processor or outside the processor. In the latter case, it is communicatively coupled to the processor via various means, which are well known in the art.

[0090] The above description includes examples of one or more embodiments. Of course, it is not possible to describe all possible combinations of components or methods for the purpose of describing the above embodiments, but those of ordinary skill in the art should recognize that the various embodiments can be further combined and arranged. Therefore, the embodiments described herein are intended to cover all such changes, modifications, and variations that fall within the scope of the appended claims. In addition, with respect to the term "comprising" used in the specification or claims, the word is intended to be construed in a manner similar to the term "including" as interpreted when "including" is used as a transitional word in a claim. Further, any use of the term "or" in the specification or claims of a patent is intended to mean "non-exclusive or".

Claims

1. A multi-Bluetooth connection data transmission method, characterized in that, applied to a wireless router, comprising the following steps: S1, receiving requests for pairing from multiple detection device ends, and configuring a unique pairing sequence code for the device ends that are successfully paired; wherein, if the pairing result of the pairing sequence code is successful, the device information of the device end is obtained; the device information includes device location information, pairing success time, and unique identifier; S2, obtaining a priority list according to the priority sorting rule based on the device information; The step S2 specifically includes: S21, calculating the distance information between its own location information and the device location information; S22, sorting each device information according to the priority sorting rule based on the distance information to obtain the priority list; The priority sorting rule is: first sort the distance information of each device information from near to far, and if the distance information is the same, then sort the pairing success times of the two device information according to the time sequence; S3, receiving the parameter adjustment data sent by the server, the parameter adjustment data carrying a unique identifier, determining the device end to be transmitted from multiple detection devices through the unique identifier, and determining the transmission type according to the quantitative relationship; S4, detecting the connection status of the device end to be transmitted to obtain a detection result; S5, transmitting the parameter adjustment data to the device end to be transmitted based on the detection result and according to the transmission type; The transmission type is divided into a first type and a second type. The first type is that there are at least two device ends to be transmitted, and they are transmitted in the order of the priority list. The second type is that there is at least one device end to be transmitted, and it is transmitted according to the unique pairing sequence code.

2. A multi-Bluetooth connection data transmission method according to claim 1, characterized in that, before the step S1, a unique identifier is created for each device end.

3. A multi-Bluetooth connection data transmission method according to claim 2, characterized in that, The step S1 specifically includes: S11, receiving the request plaintexts of multiple device ends and analyzing the request plaintexts; S12, judging whether the unique identifier is carried in the request plaintext based on the device information; if not carried, feedback an unsuccessful pairing result, if carried, feedback a successful pairing result and obtain the device information of the device end, and at the same time execute the next step; S13, generating the unique pairing sequence code for each device end and sending it to the device end.

4. A multi-Bluetooth connection data transmission method according to claim 1, characterized in that, The step S4 includes: S41, sending a tentative response data packet to the device end to be transmitted; wherein, if the device end to be transmitted responds, execute the step S5, if the device end to be transmitted does not respond, process it according to the transmission type according to the transmission rule, and execute the next step; S42, continuously sending the tentative response data packet to the device end to be transmitted until the device end to be transmitted is awakened.

5. A multi-Bluetooth connection data transmission system, comprising a wireless router and a plurality of detection devices, the system being used to execute the multi-Bluetooth connection data transmission method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Pairing method for Bluetooth devices

    CN104539320A

  • Method and device for realizing Bluetooth pairing

    CN106851540A