CN113518314A - Quick connection method for low-power-consumption Bluetooth and low-power-consumption Bluetooth communication system - Google Patents

Quick connection method for low-power-consumption Bluetooth and low-power-consumption Bluetooth communication system Download PDF

Info

Publication number
CN113518314A
CN113518314A CN202111076967.4A CN202111076967A CN113518314A CN 113518314 A CN113518314 A CN 113518314A CN 202111076967 A CN202111076967 A CN 202111076967A CN 113518314 A CN113518314 A CN 113518314A
Authority
CN
China
Prior art keywords
time
slave
timestamp
broadcast
master
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111076967.4A
Other languages
Chinese (zh)
Other versions
CN113518314B (en
Inventor
王超
陈平
靳宗明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi Yongxin Technology Co ltd
Original Assignee
Beijing Yongxin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Yongxin Technology Co ltd filed Critical Beijing Yongxin Technology Co ltd
Priority to CN202111076967.4A priority Critical patent/CN113518314B/en
Publication of CN113518314A publication Critical patent/CN113518314A/en
Application granted granted Critical
Publication of CN113518314B publication Critical patent/CN113518314B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The embodiment of the disclosure provides a quick connection method for low-power-consumption Bluetooth and a low-power-consumption Bluetooth communication system, wherein the method is used for establishing connection between a host and a plurality of slaves, and comprises the steps of receiving broadcast packets from the slaves, wherein the broadcast packets comprise identifications of the slaves; acquiring a timestamp of receiving the broadcast packet, wherein the timestamp indicates the time of receiving the broadcast packet; and acquiring a slave sequence for establishing connection with the master according to the time stamp and the broadcast interval time of the slave. By the processing scheme, the slave machine address which can establish connection most quickly can be screened out for connection, and the communication efficiency of the host machine in unit time is greatly improved.

Description

Quick connection method for low-power-consumption Bluetooth and low-power-consumption Bluetooth communication system
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a fast connection method for bluetooth low energy and a bluetooth low energy communication system.
Background
Bluetooth is a short-distance wireless communication technology, and can realize data exchange between fixed equipment and mobile equipment. BR/EDR bluetooth before bluetooth 3.0 is generally referred to as legacy bluetooth, and ble (bluetooth low energy) bluetooth under the bluetooth 4.0 specification is referred to as bluetooth low energy.
The bluetooth communication means that two bluetooth modules or bluetooth devices communicate with each other, one of the two parties performing data communication is a master and the other is a slave. The host can search the peripheral equipment and select the slave machines to be connected for connection, the host needs to know the information of the Bluetooth address, the pairing password and the like of the other party, and after the pairing is completed, the host can directly initiate a call. The slave machine can only be searched by the host machine, but can not be actively searched, and after the slave machine is connected with the host machine, the slave machine can also transmit and receive data with the host machine.
At present, based on the technology of low-power-consumption Bluetooth communication, the single data transmission amount is 1 KB-500 KB, and in order to realize low power consumption, the broadcasting interval of a host is set to be 1-4 seconds. Under the condition that a single host computer has a plurality of slave computers, connection communication is mostly carried out in a mode of establishing connection in sequence after scanning in the market, and at present, the traditional mode excessively consumes time resources and does not utilize the maximum data communication bandwidth of the host computer in unit time with the maximum efficiency.
Disclosure of Invention
In view of the above, embodiments of the present disclosure provide a fast connection method for bluetooth low energy and a bluetooth low energy communication system, which at least partially solve the problems in the prior art.
In a first aspect, an embodiment of the present disclosure provides a fast connection method for bluetooth low energy, where the method is used for a master to establish a connection with multiple slaves, and the method includes:
receiving broadcast packets from the plurality of slaves, wherein the broadcast packets contain an identification of the slave;
acquiring a timestamp of receiving the broadcast packet, wherein the timestamp indicates the time of receiving the broadcast packet; and
and acquiring the sequence of the slave machines connected with the host machine according to the time stamp and the broadcasting interval time of the slave machines.
According to a specific implementation manner of the embodiment of the present disclosure, before the step of receiving the broadcast packets from the plurality of slaves, the method further includes:
an address filter table is obtained that indicates an identification of a slave that is to receive data from the master.
According to a specific implementation manner of the embodiment of the present disclosure, the identifier of the slave includes one or more of the following: MAC address, name, user agent UA, equipment IMEI number.
According to a specific implementation manner of the embodiment of the present disclosure, the step of obtaining the timestamp of the received broadcast packet includes:
acquiring a broadcast packet sent by a slave machine contained in the address filtering table according to the address filtering table and the broadcast packet; and
and acquiring the time stamp of the broadcast packet, wherein the broadcast packet is the broadcast packet sent by the slave machine contained in the address filtering table.
According to a specific implementation manner of the embodiment of the present disclosure, the obtaining a slave sequence connected to the master according to the timestamp and the broadcast interval time of the slave includes:
the time stamp and the broadcast interval time of the slave are subjected to surplus to obtain the time stamp surplus time of the corresponding slave;
surplus is taken between the current time and the broadcast interval time of the slave machine to obtain surplus time of the current time; and
and acquiring the sequence of the slave machines connected with the host machine according to the timestamp surplus time and the current time surplus time.
According to a specific implementation manner of the embodiment of the present disclosure, the obtaining a slave device sequence connected to the master device according to the timestamp spare time and the current time spare time includes:
acquiring an absolute value of a distance between the timestamp surplus time and the current time surplus time; and
and establishing connection with the host according to the magnitude sequence of the absolute values.
According to a specific implementation manner of the embodiment of the present disclosure, the obtaining a slave device sequence connected to the master device according to the timestamp spare time and the current time spare time includes:
acquiring the time stamp remaining time on the right side of the current time remaining time;
acquiring the time stamp remaining time on the left side of the current time remaining time;
sequentially connecting slave machines corresponding to the timestamp remaining time on the right side of the current time remaining time; and
and sequentially connecting the slave machines corresponding to the timestamp remaining time on the left side of the current time remaining time.
According to a specific implementation manner of the embodiment of the present disclosure, before the step of obtaining a slave sequence for establishing connection with the master according to the timestamp and the broadcast interval time of the slave, the method further includes receiving a communication MAC table, where the communication MAC table indicates a slave identifier to be currently connected with the master, and the obtaining the slave sequence for establishing connection with the master according to the timestamp and the broadcast interval time of the slave includes:
and acquiring the sequence of the slave machines connected with the host machine according to the time stamps of the slave machines in the communication MAC table and the broadcasting interval time of the slave machines.
According to a specific implementation manner of the embodiment of the disclosure, the master receives broadcast packets from the plurality of slaves in an idle state and acquires timestamps of the received broadcast packets, and acquires a slave sequence of establishing connection with the master according to the timestamps and broadcast interval time of the slaves in an operating state, wherein the idle state indicates a time period when the master does not send data to the slaves, and the operating state indicates a time period when the master sends data to the slaves.
In a second aspect, an embodiment of the present disclosure provides a bluetooth low energy communication system, which includes a master and a plurality of slaves
The master receiving broadcast packets from the plurality of slaves, wherein the broadcast packets contain an identification of the slave;
the host acquires a timestamp of receiving the broadcast packet, wherein the timestamp indicates the time of receiving the broadcast packet; and is
And the master machine establishes connection with the plurality of slave machines according to the time stamps and the broadcasting interval time of the slave machines.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the fast connect method for bluetooth low energy in any of the implementations of the first aspect or the first aspect.
In a fourth aspect, the disclosed embodiments also provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the fast connection method for bluetooth low energy in the foregoing first aspect or any implementation manner of the first aspect.
In a fifth aspect, the embodiments of the present disclosure also provide a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, which, when executed by a computer, cause the computer to perform the fast connection method for bluetooth low energy in the foregoing first aspect or any implementation manner of the first aspect.
The quick connection method for the low-power Bluetooth is used for establishing connection between a master machine and a plurality of slave machines, and comprises the steps of receiving broadcast packets from the slave machines, wherein the broadcast packets contain identifications of the slave machines; acquiring a timestamp of receiving the broadcast packet, wherein the timestamp indicates the time of receiving the broadcast packet; and acquiring a slave sequence for establishing connection with the master according to the time stamp and the broadcast interval time of the slave. By the processing scheme, the slave machine address which can establish connection most quickly can be screened out for connection, and the communication efficiency of the host machine in unit time is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a process for establishing a connection between a master and a slave of a Bluetooth device;
fig. 2 is a schematic diagram of a fast connection method for bluetooth low energy according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of mapping a timestamp of a broadcast packet to a broadcast interval time of a slave according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of another fast connection method for bluetooth low energy according to an embodiment of the present disclosure;
fig. 5 is a flowchart for acquiring a timestamp of a received broadcast packet according to an embodiment of the present disclosure;
fig. 6 is a flowchart for acquiring a connection sequence according to a timestamp and a broadcast interval time according to an embodiment of the present disclosure;
fig. 7 is a flowchart of another connection sequence according to timestamps and broadcast interval times provided by an embodiment of the present disclosure;
fig. 8 is a schematic diagram of obtaining a timestamp surplus time and a current time surplus time according to an embodiment of the present disclosure;
fig. 9 is a flowchart of another connection sequence according to timestamps and broadcast interval times provided by an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of a bluetooth low energy communication system according to an embodiment of the present disclosure; and is
Fig. 11 is a schematic view of an electronic device provided in an embodiment of the present disclosure.
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The embodiments of the present disclosure are described below with specific examples, and other advantages and effects of the present disclosure will be readily apparent to those skilled in the art from the disclosure in the specification. It is to be understood that the described embodiments are merely illustrative of some, and not restrictive, of the embodiments of the disclosure. The disclosure may be embodied or carried out in various other specific embodiments, and various modifications and changes may be made in the details within the description without departing from the spirit of the disclosure. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present disclosure, and the drawings only show the components related to the present disclosure rather than the number, shape and size of the components in actual implementation, and the type, amount and ratio of the components in actual implementation may be changed arbitrarily, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
First, referring to fig. 1, a process of establishing a connection between a master and a slave of a bluetooth device in a general case will be described, which mainly includes:
s101: the slave periodically sends broadcast and the master scans.
S102: the master receives the broadcast sent by the slave.
S103: after the host receives the broadcast sent by the slave for a preset time, the host sends a connection request to the slave, wherein the connection request contains the data to be sent.
For the low power consumption bluetooth communication technology, the broadcast interval of the slave is 1 to 4 seconds, and the bluetooth connection establishment mechanism is that after the master sends a connection request, the slave can only open a receiving window after a preset time, which results in an idle state during the time when the slave does not open the receiving window when the master sends the connection request to the slave.
The method for fast connection of bluetooth low energy provided by the embodiments of the present disclosure may be used in a situation where a host and a plurality of slaves establish connection, for example, in a case of an electronic price tag, a plurality of electronic price tags as slaves may be required to establish connection with a mobile phone as the host.
Specifically, as shown in fig. 2, the method of the embodiment of the present invention includes:
s201: receiving a broadcast packet from the plurality of slaves, wherein the broadcast packet contains an identification of the slave.
In general, in order to establish a connection with a master, a slave periodically transmits broadcast data, i.e., a broadcast packet, to the surrounding space, wherein the broadcast packet includes data for identifying the slave, such as a MAC address of the slave. It should be understood that the identity of the slave may also contain other representations than a MAC address, such as a device fingerprint like the name of the device, the device user agent UA, the device IMEI number, etc.
For example, in the context of electronic price tags, an electronic price tag that is a slave may be periodically broadcast in seeking to establish contact with the master.
S102: obtaining a timestamp of receiving the broadcast packet, the timestamp indicating a time of receiving the broadcast packet.
In the embodiment of the present invention, unlike the process of establishing a connection shown in fig. 1, after the master receives a broadcast packet sent from the slave, a timestamp of receiving the broadcast packet, that is, a time of receiving the broadcast, is obtained.
S103: and acquiring the sequence of the slave machines connected with the host machine according to the time stamp and the broadcasting interval time of the slave machines.
Unlike the conventional connection establishment in order, in the embodiment of the present invention, the connection order of the slaves is determined according to the time stamp of the received broadcast packet and the broadcast interval time of the slaves.
Specifically, for example, the connection order of the slaves may be determined according to the interval of the time stamps, and for example, the slave that first receives the broadcast packet may be determined as the first connected slave, and then the slave having the smallest interval of the time stamps with the first connected slave may be determined as the second connected slave, and so on.
In one embodiment, the time stamp of the received broadcast packet may be mapped to the broadcast interval time of the slave, and the connection with the master is established according to the order mapped on the broadcast interval time of the slave. For example, broadcast interval 1 second, slave 1 timestamp: 54746ms, slave 2 timestamp: 34366ms, slave 3 timestamp: in this case, 2897ms, as shown in fig. 3, since the time of the slave 1 in the slave broadcasting interval time is 746ms, the time of the slave 2 in the slave broadcasting interval time is 366ms, and the time of the slave 3 in the slave broadcasting interval time is 897ms, it is possible to establish a connection in the order of the master 2, the master 1, and the master 3 when establishing a connection.
It is understood that the slave sequence for establishing connection with the master may be obtained based on the timestamp and the broadcast interval time of the slave in other manners, and the connection sequence established based on the timestamp and the broadcast interval time of the slave may increase the communication efficiency of the master per unit time compared with the conventional manner for establishing connection in sequence.
Further, as shown in fig. 4, according to a specific implementation manner of the embodiment of the present disclosure, before the step of receiving the broadcast packets from the plurality of slaves, the method further includes:
s401: an address filter table is obtained that indicates an identification of a slave that is to receive data from the master.
In addition, steps S402-S404 correspond to steps S201-S203 in fig. 2, and are not described herein again.
In a scenario such as an electronic tag, for example, in a case of modifying a price of the electronic tag, a slave that needs to be connected to a host such as a mobile phone is determined, and in this case, an address filter table is obtained by pre-examining, that is, an identifier of the slave that is to receive data from the host is obtained in advance, so that it is possible to establish connection only for the slave that needs to receive data from the host in a subsequent connection establishment process without consuming time to establish connection with other unrelated devices, and thus it is possible to improve connection efficiency.
In this embodiment, the address filter table may be, for example, a lookup table, and may be stored in a database of the host. And the look-up table may include at least an identification of the slave, such as its name, MAC address, etc., so that the slave is identified by the identification.
The address filter table may be edited, for example, by adding or subtracting slaves.
As shown in fig. 5, according to a specific implementation manner of the embodiment of the present disclosure, the step of obtaining the timestamp of the received broadcast packet includes:
s501: and acquiring the broadcast packet sent by the slave machine contained in the address filtering table according to the address filtering table and the broadcast packet.
That is to say, in the process of acquiring the timestamp by the master, broadcast packets sent by multiple slave devices may be acquired, in the embodiment of the present disclosure, in order to reduce the time consumed for establishing a connection, an address filtering table is set, in this case, only broadcast packets sent by slaves existing in the address filtering table are acquired, so that the number of broadcast packets acquired by the master can be reduced, and the requirement for bandwidth can be reduced.
S502: and acquiring the time stamp of the broadcast packet, wherein the broadcast packet is the broadcast packet sent by the slave machine contained in the address filtering table.
In the case where the broadcast packet transmitted from the slave included in the address filter table is acquired from the address filter table, the time stamp at which the broadcast packet is acquired is recorded, so that the number of acquired time stamps can be reduced and the acquired time stamp can be made more effective, i.e., the broadcast packet transmitted from the slave is not included therein, which is invalid.
As shown in fig. 6, according to a specific implementation manner of the embodiment of the present disclosure, the acquiring a slave sequence connected to the master according to the timestamp and a broadcast interval time of the slave includes:
s601: and the time stamp and the broadcast interval time of the slave are subjected to surplus to obtain the time stamp surplus time of the corresponding slave.
For example, the broadcast interval time is 1 second, the slave 1 timestamp: 54746ms, slave 2 timestamp: 34366ms, slave 3 timestamp: 2897ms, the timestamp remaining time for slave 1 is 746ms, the timestamp remaining time for slave 2 is 366ms, and the timestamp remaining time for slave 3 is 897 ms. It can be seen that the term "remainder" is simply the remainder of the division of the timestamp by the broadcast interval time.
S602: and surplus the current time and the broadcast interval time of the slave machine to obtain the surplus time of the current time.
For example, the current time is 44568ms, in which case the remaining time of the current time is 568ms, and the remaining time of the current time may be different at different time points.
S603: and acquiring the sequence of the slave machines connected with the host machine according to the timestamp surplus time and the current time surplus time.
As shown in fig. 7, in a specific implementation manner, the obtaining a slave device sequence connected to the master device according to the timestamp spare time and the current time spare time includes:
s701: and acquiring the distance between the time left after the timestamp and the time left after the current time.
S702: and establishing connection with the host according to the magnitude sequence of the absolute values.
Fig. 8 shows that the broadcast interval time is 1 second, slave 1 timestamp: 54746ms, slave 2 timestamp: 34366ms, slave 3 timestamp: 2897ms, current time: 44568ms, the position of each remainder time in the broadcast interval time. In this case, the distance between the time left from the timestamp of the slave 1 and the current time left from the current time is 178ms, the distance between the time left from the timestamp of the slave 2 and the current time left from the current time is 768ms, and the distance between the time left from the timestamp of the slave 3 and the current time left from the current time is 329ms, and in this case, for example, the connections may be established in the order of the distances from small to large, that is, in the order of the slave 1, the slave 3, and the slave 2.
As can be seen from the above, the distance here refers to the interval along the broadcasting interval time sequence, not the absolute distance. Specifically, when the timestamp surplus time is after the current time surplus time:
distance = timestamp left time-current time left time
And when the timestamp surplus time is before the current time surplus time:
distance = broadcast interval time- (current time remainder time-timestamp remainder time).
As shown in fig. 9, according to a specific implementation manner of the embodiment of the present disclosure, the acquiring a slave sequence connected to the master according to the timestamp spare time and the current time spare time includes:
s901: and acquiring the time stamp remaining time on the right side of the current time remaining time.
S902: and acquiring the time stamp remaining time on the left side of the current time remaining time.
S903: and sequentially connecting slave machines corresponding to the time stamp remaining time on the right side of the current time remaining time.
S904: and sequentially connecting the slave machines corresponding to the timestamp remaining time on the left side of the current time remaining time.
Still referring to fig. 8, in this case, the time stamp left time to the right of the current time left time is the time stamp left time of the slaves 1 and 3, and the time stamp left time to the left of the current time left time is the time stamp left time of the slave 2, in which case the slaves 1 and 3 are connected first, and then the slave 2 is connected.
This connection method may take a slightly longer time to establish a connection than the method described with reference to fig. 7, but still saves connection time compared to the conventional method.
According to a specific implementation manner of the embodiment of the present disclosure, before the step of obtaining the slave sequence for establishing connection with the master according to the timestamp and the broadcast interval time of the slave, the method further includes receiving a communication MAC table, where the communication MAC table indicates a slave identifier to be currently connected with the master.
In the context of e.g. electronic price tags, the address filter table contains e.g. the addresses (identities) of all electronic price tags, but in the case of changing an electronic price tag it may only be necessary to change the price of part of the electronic price tag, in which case only the slaves in the communication MAC table are connected by setting up the communication MAC table.
In this case, the acquiring the slave sequence for establishing connection with the master according to the time stamp and the broadcast interval time of the slave includes acquiring the slave sequence for establishing connection with the master according to the time stamp of the slave in the communication MAC table and the broadcast interval time of the slave. That is, a connection is established only with the slave in the communication MAC table, thereby facilitating modification of data of a part of the slaves.
In addition, in the embodiment of the present disclosure, the master receives broadcast packets from the plurality of slaves in an idle state and acquires timestamps of the reception of the broadcast packets, and acquires a slave sequence in which a connection is established with the master according to the timestamps and broadcast intervals of the slaves in an operating state, wherein the idle state indicates a period in which the master does not transmit data to the slaves, and the operating state indicates a period in which the master transmits data to the slaves.
In addition, corresponding to the above method embodiment, referring to fig. 10, the embodiment of the present disclosure further provides a bluetooth low energy communication system 1000, where the system 1000 includes a master 1001 and a plurality of slaves 1002, where
The master 1001 receives broadcast packets from the plurality of slaves 1002, wherein the broadcast packets contain the identity of the slaves 1002;
the host 1001 acquires a timestamp of receiving the broadcast packet, the timestamp indicating a time when the broadcast packet was received; and is
The master 1001 establishes connections with the plurality of slaves 1002 according to the time stamps and the broadcast interval times of the slaves 1002.
The system shown in fig. 10 may correspondingly execute the content in the above method embodiment, and details of the part not described in detail in this embodiment refer to the content described in the above method embodiment, which is not described again here.
Referring to fig. 11, an embodiment of the present disclosure also provides an electronic device 1100, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the fast connect method for bluetooth low energy in the aforementioned method embodiments.
The disclosed embodiments also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the fast connection method for bluetooth low energy in the aforementioned method embodiments.
The disclosed embodiments also provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the fast connection method for bluetooth low energy in the aforementioned method embodiments.
Referring now to FIG. 11, shown is a schematic diagram of an electronic device 1100 suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 11 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 11, the electronic device 1100 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 1101 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 1102 or a program loaded from a storage means 1108 into a Random Access Memory (RAM) 1103. In the RAM 1103, various programs and data necessary for the operation of the electronic device 1100 are also stored. The processing device 1101, the ROM 1102, and the RAM 1103 are connected to each other by a bus 1104. An input/output (I/O) interface 1105 is also connected to bus 1104.
Generally, the following devices may be connected to the I/O interface 1105: input devices 1106 including, for example, a touch screen, touch pad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1107 including, for example, Liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices 1108, including, for example, magnetic tape, hard disk, etc.; and a communication device 1109. The communication means 1109 may allow the electronic device 1100 to communicate wirelessly or wiredly with other devices to exchange data. While shown with various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication device 1109, or installed from the storage device 1108, or installed from the ROM 1102. The computer program, when executed by the processing device 1101, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (12)

1. A fast connection method for bluetooth low energy, the method being used for a master to establish a connection with a plurality of slaves, the method comprising:
receiving broadcast packets from the plurality of slaves, wherein the broadcast packets contain an identification of the slave;
acquiring a timestamp of receiving the broadcast packet, wherein the timestamp indicates the time of receiving the broadcast packet; and
and acquiring the sequence of the slave machines connected with the host machine according to the time stamp and the broadcasting interval time of the slave machines.
2. The fast connection method for bluetooth low energy according to claim 1, characterized in that before the step of receiving broadcast packets from the plurality of slaves, the method further comprises:
an address filter table is obtained that indicates an identification of a slave that is to receive data from the master.
3. The fast connection method for bluetooth low energy according to claim 2, characterized in that the identity of the slave comprises one or more of the following: MAC address, name, user agent UA, equipment IMEI number.
4. The fast connection method for bluetooth low energy according to claim 2, wherein the step of obtaining the timestamp of the reception of the broadcast packet comprises:
acquiring a broadcast packet sent by a slave machine contained in the address filtering table according to the address filtering table and the broadcast packet; and
and acquiring the time stamp of the broadcast packet, wherein the broadcast packet is the broadcast packet sent by the slave machine contained in the address filtering table.
5. The fast connection method for bluetooth low energy according to any of claims 1-4, wherein the obtaining a slave sequence for establishing a connection with the master according to the timestamp and a broadcast interval time of the slave comprises:
the time stamp and the broadcast interval time of the slave are subjected to surplus to obtain the time stamp surplus time of the corresponding slave;
surplus is taken between the current time and the broadcast interval time of the slave machine to obtain surplus time of the current time; and
and acquiring the sequence of the slave machines connected with the host machine according to the timestamp surplus time and the current time surplus time.
6. The fast connection method for bluetooth low energy according to claim 5, wherein the obtaining the slave sequence for establishing connection with the master according to the timestamp spare time and the current time spare time comprises:
acquiring an absolute value of a distance between the timestamp surplus time and the current time surplus time; and
and establishing connection with the host according to the magnitude sequence of the absolute values.
7. The fast connection method for bluetooth low energy according to claim 5, wherein the obtaining the slave sequence for establishing connection with the master according to the timestamp spare time and the current time spare time comprises:
acquiring the time stamp remaining time on the right side of the current time remaining time;
acquiring the time stamp remaining time on the left side of the current time remaining time;
sequentially connecting slave machines corresponding to the timestamp remaining time on the right side of the current time remaining time; and
and sequentially connecting the slave machines corresponding to the timestamp remaining time on the left side of the current time remaining time.
8. The fast connection method for bluetooth low energy according to claim 1, wherein, before the step of obtaining a slave sequence for establishing connection with the master according to the timestamp and the broadcast interval time of the slave, the method further comprises receiving a communication MAC table, wherein the communication MAC table indicates a slave id to be currently established with the master, and the obtaining a slave sequence for establishing connection with the master according to the timestamp and the broadcast interval time of the slave comprises:
and acquiring the sequence of the slave machines connected with the host machine according to the time stamps of the slave machines in the communication MAC table and the broadcasting interval time of the slave machines.
9. The fast connection method for bluetooth low energy according to claim 1, wherein the master receives broadcast packets from the plurality of slaves in an idle state and acquires timestamps of the reception of the broadcast packets, and acquires a slave sequence for establishing connection with the master according to the timestamps and a broadcast interval time of the slaves in an operating state, wherein the idle state indicates a period of time during which the master does not transmit data to the slaves, and the operating state indicates a period of time during which the master transmits data to the slaves.
10. A low power consumption Bluetooth communication system is characterized in that the system comprises a master machine and a plurality of slave machines, wherein
The master receiving broadcast packets from the plurality of slaves, wherein the broadcast packets contain an identification of the slave;
the host acquires a timestamp of receiving the broadcast packet, wherein the timestamp indicates the time of receiving the broadcast packet; and is
And the master machine establishes connection with the plurality of slave machines according to the time stamps and the broadcasting interval time of the slave machines.
11. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the fast connect method for bluetooth low energy as claimed in any one of the preceding claims 1-9.
12. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the fast connect method for bluetooth low energy of any of the preceding claims 1-9.
CN202111076967.4A 2021-09-15 2021-09-15 Quick connection method for low-power-consumption Bluetooth and low-power-consumption Bluetooth communication system Active CN113518314B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111076967.4A CN113518314B (en) 2021-09-15 2021-09-15 Quick connection method for low-power-consumption Bluetooth and low-power-consumption Bluetooth communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111076967.4A CN113518314B (en) 2021-09-15 2021-09-15 Quick connection method for low-power-consumption Bluetooth and low-power-consumption Bluetooth communication system

Publications (2)

Publication Number Publication Date
CN113518314A true CN113518314A (en) 2021-10-19
CN113518314B CN113518314B (en) 2021-12-17

Family

ID=78063381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111076967.4A Active CN113518314B (en) 2021-09-15 2021-09-15 Quick connection method for low-power-consumption Bluetooth and low-power-consumption Bluetooth communication system

Country Status (1)

Country Link
CN (1) CN113518314B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554622A (en) * 2022-03-24 2022-05-27 深圳市欧瑞博科技股份有限公司 Bluetooth connection method, Bluetooth connection device and Bluetooth equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104254138A (en) * 2013-06-25 2014-12-31 深圳市易普森科技有限公司 Bluetooth queuing method
CN105785756A (en) * 2016-05-05 2016-07-20 安徽华米信息科技有限公司 Timing method, device and system
US20170094452A1 (en) * 2015-09-30 2017-03-30 Kyocera Corporation Wireless communication device and processor
CN206672211U (en) * 2017-03-02 2017-11-24 福建师范大学 A kind of bank queuing management device based on Bluetooth of mobile phone communication
WO2019183258A1 (en) * 2018-03-21 2019-09-26 Link Labs, Inc. Ble networking systems and methods providing central and peripheral role reversal according to network provisioned timing therefor
CN111314860A (en) * 2020-01-17 2020-06-19 多点(深圳)数字科技有限公司 Shopping cart checking method based on Bluetooth technology
CN111683354A (en) * 2020-05-11 2020-09-18 杭州寰星电子科技有限公司 One-master multi-slave event scheduling method and device in low-power-consumption Bluetooth connection
CN112004146A (en) * 2020-08-18 2020-11-27 深圳创维-Rgb电子有限公司 Audio playing method and system, television and storage medium
CN112040466A (en) * 2020-09-10 2020-12-04 成都拟合未来科技有限公司 Method, control terminal and system for controlling Bluetooth equipment to be networked
CN113242537A (en) * 2021-04-30 2021-08-10 特斯联科技集团有限公司 Infrared image transmission method based on Bluetooth intelligent networking

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104254138A (en) * 2013-06-25 2014-12-31 深圳市易普森科技有限公司 Bluetooth queuing method
US20170094452A1 (en) * 2015-09-30 2017-03-30 Kyocera Corporation Wireless communication device and processor
CN105785756A (en) * 2016-05-05 2016-07-20 安徽华米信息科技有限公司 Timing method, device and system
CN206672211U (en) * 2017-03-02 2017-11-24 福建师范大学 A kind of bank queuing management device based on Bluetooth of mobile phone communication
WO2019183258A1 (en) * 2018-03-21 2019-09-26 Link Labs, Inc. Ble networking systems and methods providing central and peripheral role reversal according to network provisioned timing therefor
CN111314860A (en) * 2020-01-17 2020-06-19 多点(深圳)数字科技有限公司 Shopping cart checking method based on Bluetooth technology
CN111683354A (en) * 2020-05-11 2020-09-18 杭州寰星电子科技有限公司 One-master multi-slave event scheduling method and device in low-power-consumption Bluetooth connection
CN112004146A (en) * 2020-08-18 2020-11-27 深圳创维-Rgb电子有限公司 Audio playing method and system, television and storage medium
CN112040466A (en) * 2020-09-10 2020-12-04 成都拟合未来科技有限公司 Method, control terminal and system for controlling Bluetooth equipment to be networked
CN113242537A (en) * 2021-04-30 2021-08-10 特斯联科技集团有限公司 Infrared image transmission method based on Bluetooth intelligent networking

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554622A (en) * 2022-03-24 2022-05-27 深圳市欧瑞博科技股份有限公司 Bluetooth connection method, Bluetooth connection device and Bluetooth equipment

Also Published As

Publication number Publication date
CN113518314B (en) 2021-12-17

Similar Documents

Publication Publication Date Title
US11611863B2 (en) Method and apparatus for low energy discovery
CN104683422B (en) Data transmission method and device
CN109271327B (en) Memory management method and device
JP6274584B2 (en) Advertisement processing method and apparatus
CN111368519B (en) Method, device, equipment and storage medium for editing online form
KR20120046547A (en) The method of determining group owner in peer to peer network and the device thereof
CN113507517A (en) Screen projection equipment discovery method and device, electronic equipment and storage medium
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN113162836B (en) Virtual local area network communication method and device, cloud server, medium and electronic equipment
CN103634336A (en) File collaborative download system, apparatus and method
CN111209306A (en) Business logic judgment method and device, electronic equipment and storage medium
CN112689012A (en) Cross-network proxy communication method and device
CN110336592B (en) Data transmission method suitable for Bluetooth card reader, electronic equipment and storage medium
CN113518314B (en) Quick connection method for low-power-consumption Bluetooth and low-power-consumption Bluetooth communication system
CN114422436A (en) Gateway, gateway control method, gateway control device, electronic equipment and storage medium
CN112306685A (en) Task isolation method and device, electronic equipment and computer readable medium
CN109195226B (en) Data transmission method and device, electronic equipment and computer readable storage medium
CN115225586B (en) Data packet transmitting method, device, equipment and computer readable storage medium
CN114374614A (en) Network topology configuration method and device
WO2019196586A1 (en) Signal transmission method, related device, and system
CN113157365B (en) Program running method, program running device, electronic equipment and computer readable medium
CN114884852B (en) Node interaction and protocol identification method, device, equipment and computer medium
CN114006880B (en) Method and device for acquiring message receipt, electronic equipment and storage medium
CN115309410B (en) Edge cluster application publishing method and device of edge computing scene and electronic equipment
CN115248642B (en) Information interaction method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 55A12, No. 5, Wisdom Road, Huishan Economic Development Zone, Wuxi, Jiangsu 214000

Patentee after: Wuxi Yongxin Technology Co.,Ltd.

Address before: No. 2901, 29th floor, block B, Tsinghua Tongfang science and technology building, No. 1 courtyard, Wangzhuang Road, Haidian District, Beijing 100083

Patentee before: Beijing Yongxin Technology Co.,Ltd.