CN113891265A - BLE advertisement-based instant messaging method and system - Google Patents
BLE advertisement-based instant messaging method and system Download PDFInfo
- Publication number
- CN113891265A CN113891265A CN202111180561.0A CN202111180561A CN113891265A CN 113891265 A CN113891265 A CN 113891265A CN 202111180561 A CN202111180561 A CN 202111180561A CN 113891265 A CN113891265 A CN 113891265A
- Authority
- CN
- China
- Prior art keywords
- ble
- advertisement
- transmitting
- instant messaging
- receiving
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/20—Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel
- H04W4/21—Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel for social networking applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/20—Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel
- H04W4/23—Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel for mobile advertising
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the application discloses an instant messaging method and system based on BLE advertisement, wherein the method is applied to an instant messaging device based on BLE advertisement, and the instant messaging device based on BLE advertisement comprises: a transmitting/receiving device and an input/output device; the transmitting and receiving device supports BLE function; the input-output device complies with the BLE specification; the sending and receiving device is connected with the input and output device; the method is performed by an input-output device, comprising: sending first information input by a user to a sending and receiving device; and receiving and outputting the second information of the transmitting and receiving device. According to the method, the input and output equipment supporting the BLE function and the transmitting and receiving equipment following the BLE standard are adopted, the instant messaging is realized anytime and anywhere without depending on the Internet and a central server, the BLE standard is met, the communication message is transmitted by utilizing the advertisement, the realization is simple, and the problem that the instant messaging is difficult to be carried out in the scene incapable of surfing the Internet is solved.
Description
Technical Field
The present application relates to the field of instant messaging technologies, and in particular, to an instant messaging method and system based on BLE advertisements.
Background
Instant messaging (e.g., WeChat, QQ, etc.) has become an indispensable communication tool. However, most instant communications in use today rely on mobile communication devices and the internet, and each instant communication relies on a central server. These instant communications are disabled once the device (e.g., cell phone) is unavailable (no internet service). The scene of internet access failure comprises: when disasters such as earthquake, flood, hurricane and the like occur, the power is interrupted, and the mobile communication equipment is unavailable; in large-scale activity sites and hot spot scenic spots, due to the dense personnel, the mobile communication equipment is congested and unavailable; in areas where mobile signals cannot be covered, such as mountainous areas and jungles, the mobile communication device is not available. In the above scenario, even if the devices are close in distance, they cannot communicate with each other.
At present, most of methods capable of realizing distributed instant messaging adopt an ad hoc network (ad hoc networks) technology. For example, an ad hoc network is first constructed by wireless communication technologies such as bluetooth, WiFi, ZigBee and the like, and on the basis, the broadcast and unicast communication functions between devices are realized. The use of ad hoc networks for instant messaging has some problems: the complexity is high: each device (or node) needs to run a set of complex network protocol stack, including the related protocols of link layer, network layer, transmission layer and application layer, which increases the complexity of system implementation; the degree of standardization is low: many ad hoc network protocols are self-defined and are not consistent with the existing protocol specifications, which limits the range of use; the cost is large: in order to maintain the ad hoc network, the communication overhead of each node is large, the node energy consumption is increased, and the endurance time is shortened; communication performance (such as reliability, time delay and the like) is not guaranteed.
Therefore, there is a need for a distributed, communication-even method that does not rely on the internet so as to satisfy the needs of users to send and receive information to their peripheral devices.
Disclosure of Invention
The embodiment of the application provides an instant messaging method and system based on BLE advertisement, and solves the problem that instant messaging is difficult to perform in a scene where internet surfing is impossible.
In view of this, a first aspect of the present application provides a method for instant messaging based on BLE advertisement, which is applied to an instant messaging device based on BLE advertisement, where the instant messaging device based on BLE advertisement includes: a transmitting/receiving device and an input/output device; the transmitting and receiving device supports BLE function; the input-output device complies with the BLE specification; the sending and receiving device is connected with the input and output device;
the method is performed by the input-output device and comprises:
sending first information input by a user to the sending and receiving device;
and receiving and outputting the second information of the sending and receiving device.
Preferably, the input/output device is a mobile phone or a tablet computer with a BLE function.
A second aspect of the present application provides an instant messaging method based on BLE advertisement, which is applied to an instant messaging device based on BLE advertisement, where the instant messaging device based on BLE advertisement includes: a transmitting/receiving device and an input/output device; the transmitting and receiving device supports BLE function; the input-output device complies with the BLE specification; the sending and receiving device is connected with the input and output device;
the method is executed by the sending and receiving device and comprises the following steps:
receiving third information sent by the input and output device;
embedding the third information into a BLE advertisement and transmitting the BLE advertisement to all other peripheral transmitting and receiving devices;
receiving BLE advertisements sent by all other sending and receiving devices, and extracting fourth information carried in the BLE advertisements;
and transmitting the fourth information to the input and output device for output.
Preferably, the transmitting and receiving device is a bracelet or a smart watch conforming to BLE specifications.
Preferably, the method further comprises the following steps:
sending a directional connection request to other target sending and receiving devices;
and after the directional connection request is established, only sending information to the target sending and receiving device and only receiving the information of the target sending and receiving device.
Preferably, before embedding the third information in a BLE advertisement and transmitting the BLE advertisement to all other peripheral transmitting and receiving devices, the method further includes:
determining an advertisement period set and a scanning period set used by the sending and receiving device;
the specific transmission to all other peripheral transmitting and receiving devices is:
randomly selecting one or more periods in the advertisement period set, and circularly transmitting the selected periods to other transmitting and receiving devices around the advertisement period set;
the receiving BLE advertisements sent by all other transmitting and receiving devices specifically includes:
one or more periods are randomly selected from the scanning period set, and BLE advertisements transmitted by all other transmitting and receiving devices are received circularly.
Preferably, the elements in the set of scanning periods and the set of advertisement periods satisfy a greatest common divisor:
wherein, TwThe length of a preset scanning window; r is the maximum value of the pseudo-random delay before the advertisement is sent; τ is the time length of sending an advertisement by the sending and receiving device, and δ is the time length of monitoring a channel after the sending and receiving device sends the advertisement;
the product of the largest element in the advertisement scanning period set and the largest element in the scanning period set divided by the greatest common divisor of the two does not exceed a preset maximum delay.
Preferably, when the transmitting and receiving device is a device supporting BLE 4.2, if the length of the transmitted information is greater than the maximum load that the BLE advertisement can carry, the information is transmitted in a sub-packet manner.
Preferably, when the transmitting and receiving device is a device supporting BLE 5.0, if the length of the transmitted information is greater than the maximum load that the BLE advertisement can carry, the transmitting is performed by using an extended advertisement.
A third aspect of the present application provides an instant messaging system based on BLE advertisement, including a server and an instant messaging device based on BLE advertisement, where the instant messaging device based on BLE advertisement is configured to perform the method according to the first or second aspect;
the BLE advertisement-based instant messaging device registers an account number on the server;
the server is used for managing the account number of the instant communication equipment based on the BLE advertisement.
According to the technical scheme, the embodiment of the application has the following advantages:
in an embodiment of the present application, an instant messaging method based on a BLE advertisement is provided, which is applied to an instant messaging device based on a BLE advertisement, where the instant messaging device based on the BLE advertisement includes: a transmitting/receiving device and an input/output device; the transmitting and receiving device supports BLE function; the input-output device complies with the BLE specification; the sending and receiving device is connected with the input and output device; the method is performed by an input-output device, comprising: sending first information input by a user to a sending and receiving device; and receiving and outputting the second information of the transmitting and receiving device. According to the method, the input and output equipment supporting the BLE function and the transmitting and receiving equipment following the BLE standard are adopted, the instant messaging is realized anytime and anywhere without depending on the Internet and a central server, the BLE standard is met, the communication message is transmitted by utilizing the advertisement, the realization is simple, and the problem that the instant messaging is difficult to be carried out in the scene incapable of surfing the Internet is solved.
Drawings
Figure 1 is a flow chart of a method of instant messaging based on BLE advertisement in a first embodiment of the present application;
figure 2 is a flow chart of a method of instant messaging based on BLE advertisement in a second embodiment of the present application;
figure 3 is a flowchart of a method for BLE advertisement-based instant messaging in a third embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The application designs an instant messaging method and system based on BLE advertisement, BLE (Bluetooth Low energy ) is a Bluetooth Low energy technology, is a personal area network technology designed and sold by Bluetooth technical alliance, and compared with classic Bluetooth, Bluetooth Low energy aims at remarkably reducing power consumption and cost while keeping the same communication range. The wearable device has the main characteristic of low power consumption, so that wearable devices with higher requirements on power consumption can be kept in an electric state for a long time.
A first aspect of the present application provides an instant messaging method based on BLE advertisement, which is applied to an instant messaging device based on BLE advertisement, where the instant messaging device based on BLE advertisement includes: a transmitting/receiving device and an input/output device; the transmitting and receiving device supports BLE function; the input-output device complies with the BLE specification; the sending and receiving device is connected with the input and output device; the method is performed by an input-output device.
For convenience of understanding, please refer to fig. 1, where fig. 1 is a flowchart of a method for BLE advertisement-based instant messaging according to a first embodiment of the present application, including:
101, sending first information input by a user to a sending and receiving device;
and 102, receiving and outputting the second information of the transmitting and receiving device.
It should be noted that, in a process of transmitting information, information input by the input/output device and information output by the sending/receiving device are the same information, but in a workflow of an instant messaging device, a user needs to send information and receive information, for example, the user sends "you, i call three", receives "three you, i call four", and at this time, the input information of the input/output device and the information output by the sending/receiving device are not the same information. The first information is sent to the sending and receiving device through connection, so that the sending and receiving equipment can conveniently carry the first information into the advertisement to be sent, and the sending and receiving device sends the first information along with the BLE advertisement and is visible to all other peripheral sending and receiving devices. When the sending and receiving device receives the advertisement sent by other sending and receiving devices, the second information carried in the advertisement is extracted and transmitted to the input and output device, so that the input and output device can output the information conveniently.
When the user uses the instant messaging device based on the BLE advertisement to realize the instant messaging method based on the BLE advertisement, the user needs to have one input/output device and one transmitting/receiving device, or have one instant messaging device including one input/output device and one transmitting/receiving device, or only include a device having a transmitting/receiving function (for realizing the function of the transmitting/receiving device) and an output function.
According to the instant messaging method based on the BLE advertisement, the input and output equipment supporting the BLE function and the sending and receiving equipment following the BLE specification are adopted, the instant messaging is realized anytime and anywhere without depending on the Internet and a central server, the BLE specification is met, the communication message is transmitted by the BLE advertisement, the instant messaging function is realized, the realization is simple, and the problem that the instant messaging is difficult to carry out in the scene incapable of surfing the Internet is solved.
Further, the input/output device is specifically a mobile phone or a tablet computer with a BLE function.
It can be understood that both the mobile phone and the tablet computer have input and output functions, and output information can be displayed.
A second aspect of the present application provides an instant messaging method based on BLE advertisement, which is applied to an instant messaging device based on BLE advertisement, where the instant messaging device based on BLE advertisement includes: a transmitting/receiving device and an input/output device; the transmitting and receiving device supports BLE function; the input-output device complies with the BLE specification; the sending and receiving device is connected with the input and output device; the method is performed by a transmitting and receiving device.
For convenience of understanding, please refer to fig. 2, where fig. 2 is a flowchart of a method for BLE advertisement-based instant messaging according to a second embodiment of the present application, and the method includes:
201, receiving third information sent by the input and output device;
202, embedding the third information in a BLE advertisement, and transmitting the third information to all other peripheral transmitting and receiving devices;
203, receiving BLE advertisements sent by all other sending and receiving devices, and extracting fourth information carried in the BLE advertisements;
and 204, transmitting the fourth information to the input and output device for outputting.
In the same manner as in the first embodiment, although the information transmitted by the input/output device and the information transmitted by the transmission/reception device are the same information in the single information transfer flow, the information transmitted by the input/output device and the information transmitted by the transmission/reception device are not the same information in the work flow for one instant messaging device. In the embodiment of the present application, information transmitted by the input/output device is named third information, and information output by the input/output device is named fourth information. The user inputs the third information to the input/output device, and then the third information is received by the transmitting/receiving device. The transceiver embeds the third information in a BLE advertisement, and transmits the third information to all other transceivers in the vicinity together with the BLE advertisement. When the transmitting and receiving device receives the BLE advertisement transmitted by other transmitting and receiving devices, the fourth information carried in the advertisement is extracted, and then the fourth information is transmitted to the input and output device, so that the input and output device can output the fourth information conveniently.
When the user uses the instant messaging device based on the BLE advertisement to realize the instant messaging method based on the BLE advertisement, the user needs to have one input/output device and one transmitting/receiving device, or have one instant messaging device including one input/output device and one transmitting/receiving device, or only include a device having a transmitting/receiving function (for realizing the function of the transmitting/receiving device) and an output function.
According to the instant messaging method based on the BLE advertisement, the input and output equipment supporting the BLE function and the sending and receiving equipment following the BLE specification are adopted, the instant messaging is realized anytime and anywhere without depending on the Internet and a central server, the BLE specification is met, the advertisement is used for transmitting communication messages, the realization is simple, and the problem that the instant messaging is difficult to carry out in the scene where the internet cannot be accessed is solved.
Further, the transceiver is specifically a bracelet or a smart watch conforming to BLE specifications.
It can be understood that, the transmitting and receiving device is used as a transmission device of information, and only information transmission between the device and the device needs to be realized, so that the transmitting and receiving device specifically can be a bracelet or a smart watch conforming to BLE specifications.
A third embodiment of the present application provides an instant messaging method based on BLE advertisement, please refer to fig. 3, where fig. 3 is a flowchart of a method of an instant messaging method based on BLE advertisement in the third embodiment of the present application, including:
301, receiving third information sent by the input and output device;
302, determining an advertisement period set and a scanning period set used by the sending and receiving device;
303, embedding the third information into a BLE advertisement, selecting one or more periods from the advertisement period set, and cyclically transmitting the selected period to all other peripheral transmitting and receiving devices;
304, randomly selecting one or more periods in the scanning period set, cyclically receiving BLE advertisements sent by all other sending and receiving devices, and extracting fourth information carried in the BLE advertisements;
and 305, transmitting the fourth information to the input-output device for outputting.
306, sending a directional connection request to other target sending and receiving devices;
307, when the connection request is established, only the information is transmitted to the target transceiver and only the information of the target transceiver is accepted.
It is to be understood that the embodiments of the present application are further described on the basis of the third embodiment, and therefore, the description of the same parts is omitted.
It should be noted that one user may initiate a targeted connection advertisement to another target user, if the target user accepts the connection request, both parties may establish a connection, and send/receive information through the connection, and the sent information is only visible to the other party.
Before embedding the third information in the BLE advertisement and transmitting the BLE advertisement to all other peripheral transmitting and receiving devices, the method further includes: an advertisement period set and a scanning period set used by the transmitting and receiving device are determined.
The elements in both the set of scanning periods and the set of advertising periods are multiples of 625 μ s (BLE specification requirement) and meet a greatest common divisor ofWherein, TwIs the length of the preset scanning window, and TwIs also a multiple of 625 mus; r is the maximum value of the random delay before sending an advertisement, typically 1000, in μ s; tau is the time length of sending an advertisement by the low-power Bluetooth device, delta is the time length of monitoring a channel after the low-power Bluetooth device sends the advertisement, and the low-power Bluetooth device needs to send an advertisement packet on three channels of 37, 38 and 39; the time units are all microseconds. It should be noted that the physical quantities and their meanings represented by the above symbols are correspondingly described in the bluetooth specification, and it is also known to those skilled in the art that the elements in the scanning period set and the advertisement period set are multiples of 625 μ s, but the calculation formula of the greatest common divisor d set in this application is obtained by sorting and calculating according to theoretical and empirical data.
The product of the largest element in the set of scanning periods and the largest element in the set of advertising periods divided by their greatest common divisor does not exceed a preset maximum delay L.
Preferably, the selecting one or more periods from the advertisement period set and cyclically transmitting the advertisement information to all other peripheral transmitting/receiving devices further includes:
and after the maximum delay, randomly selecting one or more periods in the advertisement period set again.
It is understood that the transceiver selects a period T from the set of scanning periodssAnd the job of receiving the advertisement is executed in a loop. The transmitting and receiving device randomly selects a period T from the advertisement period setaThe work of sending the advertisement is executed in a loop and goes throughAfter an advertisement period, a period is randomly selected from the advertisement period set. It can be understood that the transmission frequency of the advertisement period is reselected after the maximum delay, so that the condition that a plurality of transmitting and receiving devices transmit advertisements simultaneously to influence the transmitting and receiving devices to receive information can be avoided. Therefore, the advertisement period is randomly selected at intervals, and the reliability of the system can be improved. Selecting a period from the scanning period set to carry out receiving work can not be influenced, so that interval time is not required to be randomly selected again unless the sending and receiving device wants to improve real-time performance, and a smaller period value is used; or a larger period value is adopted to save energy.
It can be understood that, in the embodiment of the present application, the message can be delivered within a specified delay, the reliability is high, the method is suitable for a dense and multi-device scenario, the energy consumption of the node is low, in addition, the used advertisement period set and scanning period set ensure that the delay is bounded, and the advertisement period is randomly selected at intervals, so that the reliability of the system is improved.
Further, when the transmitting and receiving device is a device supporting BLE 4.2, if the length of the transmitted information is greater than the maximum load that the BLE advertisement can carry, the information is transmitted in a sub-packet mode.
It should be noted that for a device only supporting BLE 4.2, if the message length is greater than the maximum load (31 bytes) that an advertisement can carry, the information is sent by packetization, and the time of each data packet being advertised is L.
Further, when the transmitting and receiving device is a device supporting BLE 5.0, if the length of the transmitted information is greater than the maximum load that the BLE advertisement can carry, the extended advertisement is used for transmitting.
It should be noted that for a device supporting BLE 5.0, if the message length is greater than the maximum load that an advertisement can carry, an extended advertisement ADV _ EXT _ IND is used.
According to the BLE advertisement-based instant messaging method, the used advertisement period set and scanning period set ensure that delay is bounded, the advertisement period is randomly selected at intervals, the reliability of the system is improved, a user can broadcast to surrounding users and initiate directional connection to another target user, the reliability is high, the method is suitable for dense and multi-device scenes, and the energy consumption of nodes is low.
A third aspect of the present application provides an instant messaging system based on BLE advertisement, which includes a server and an instant messaging device based on BLE advertisement, where the instant messaging device based on BLE advertisement is configured to execute the instant messaging method based on BLE advertisement according to the first or second aspect; an account is registered on a server by the instant messaging equipment based on the BLE advertisement; the server is used for managing account numbers of the instant communication equipment based on the BLE advertisement.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The terms "first," "second," "third," "fourth," and the like in the description of the application and the above-described figures, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another device, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Claims (10)
1. A BLE advertisement-based instant messaging method is applied to a BLE advertisement-based instant messaging device, and the BLE advertisement-based instant messaging device comprises: a transmitting/receiving device and an input/output device; the transmitting and receiving device supports BLE function; the input-output device complies with the BLE specification; the sending and receiving device is connected with the input and output device;
the method is performed by the input-output device and comprises:
sending first information input by a user to the sending and receiving device;
and receiving and outputting the second information of the sending and receiving device.
2. The BLE advertisement-based instant messaging method according to claim 1, wherein the input/output device is specifically a mobile phone or a tablet computer with BLE function.
3. A BLE advertisement-based instant messaging method is applied to a BLE advertisement-based instant messaging device, and the BLE advertisement-based instant messaging device comprises: a transmitting/receiving device and an input/output device; the transmitting and receiving device supports BLE function; the input-output device complies with the BLE specification; the sending and receiving device is connected with the input and output device;
the method is executed by the sending and receiving device and comprises the following steps:
receiving third information sent by the input and output device;
embedding the third information into a BLE advertisement and transmitting the BLE advertisement to all other peripheral transmitting and receiving devices;
receiving BLE advertisements sent by all other sending and receiving devices, and extracting fourth information carried in the BLE advertisements;
and transmitting the fourth information to the input and output device for output.
4. Instant messaging method based on BLE advertising according to claim 3, wherein the transmitting and receiving device is in particular a bracelet or a smart watch complying with BLE specifications.
5. The BLE advertisement-based instant messaging method according to claim 3, further comprising:
sending a directional connection request to other target sending and receiving devices;
and after the directional connection request is established, only sending information to the target sending and receiving device and only receiving the information of the target sending and receiving device.
6. The BLE advertisement-based instant messaging method according to claim 3, wherein before embedding the third information in a BLE advertisement and transmitting the BLE advertisement to all other transmitting and receiving devices in the periphery, the method further comprises:
determining an advertisement period set and a scanning period set used by the sending and receiving device;
the specific transmission to all other peripheral transmitting and receiving devices is:
randomly selecting one or more periods in the advertisement period set, and circularly transmitting the selected periods to other transmitting and receiving devices around the advertisement period set;
the receiving BLE advertisements sent by all other transmitting and receiving devices specifically includes:
one or more periods are randomly selected from the scanning period set, and BLE advertisements transmitted by all other transmitting and receiving devices are received circularly.
7. The method of BLE advertisement-based instant messaging according to claim 6, wherein elements in the set of scanning periods and the set of advertising periods satisfy a greatest common divisor:
wherein, TwThe length of a preset scanning window; r is pseudo-random delay before sending advertisementA maximum value; τ is the time length of sending an advertisement by the sending and receiving device, and δ is the time length of monitoring a channel after the sending and receiving device sends the advertisement;
the product of the largest element in the advertisement scanning period set and the largest element in the scanning period set divided by the greatest common divisor of the two does not exceed a preset maximum delay.
8. The BLE advertisement-based instant messaging method according to claim 7, wherein the selecting one or more periods in the advertisement period set and cyclically transmitting to all other transmitting and receiving devices in the periphery further comprises:
and after the maximum delay, randomly selecting one or more periods in the advertisement period set again.
9. The method for BLE advertisement-based instant messaging according to claim 3, wherein when the transmitting and receiving device is a device supporting BLE 4.2, if the length of the transmitted information is greater than the maximum load that the BLE advertisement can carry, the information is transmitted in packets; when the transmitting and receiving device is a device supporting BLE 5.0, if the length of the transmitted information is larger than the maximum load which can be carried by the BLE advertisement, the BLE advertisement is transmitted by adopting an extended advertisement.
10. An instant messaging system based on BLE advertisement, comprising a server and an instant messaging device based on BLE advertisement, the instant messaging device based on BLE advertisement being configured to perform the method according to any one of claims 1 to 9;
the BLE advertisement-based instant messaging device registers an account number on the server;
the server is used for managing the account number of the instant communication equipment based on the BLE advertisement.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111180561.0A CN113891265B (en) | 2021-10-11 | 2021-10-11 | Instant messaging method and system based on BLE advertisement |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111180561.0A CN113891265B (en) | 2021-10-11 | 2021-10-11 | Instant messaging method and system based on BLE advertisement |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113891265A true CN113891265A (en) | 2022-01-04 |
CN113891265B CN113891265B (en) | 2023-06-02 |
Family
ID=79006005
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111180561.0A Active CN113891265B (en) | 2021-10-11 | 2021-10-11 | Instant messaging method and system based on BLE advertisement |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113891265B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3021603A1 (en) * | 2014-11-12 | 2016-05-18 | Gemalto Sa | Method of managing pairing with a wireless device |
CN106548365A (en) * | 2016-09-28 | 2017-03-29 | 杭州鸿雁智能科技有限公司 | A kind of method and device that advertisement putting is realized based on radio channel |
CN109769235A (en) * | 2019-01-11 | 2019-05-17 | 深圳十米网络科技有限公司 | A kind of business card exchange method based on Bluetooth broadcast |
CN110856129A (en) * | 2018-08-21 | 2020-02-28 | 上海博泰悦臻网络技术服务有限公司 | Information delivery method and system |
CN112601199A (en) * | 2020-11-13 | 2021-04-02 | 西安电子科技大学 | Intelligent contact sensing method, device and system based on low-power-consumption Bluetooth |
CN112969168A (en) * | 2021-02-08 | 2021-06-15 | 西安电子科技大学 | Method for avoiding maximum value of expected discovery delay of BLE equipment |
CN113469756A (en) * | 2021-09-03 | 2021-10-01 | 深圳市完美显示科技有限公司 | Advertisement putting control method and system |
-
2021
- 2021-10-11 CN CN202111180561.0A patent/CN113891265B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3021603A1 (en) * | 2014-11-12 | 2016-05-18 | Gemalto Sa | Method of managing pairing with a wireless device |
CN106548365A (en) * | 2016-09-28 | 2017-03-29 | 杭州鸿雁智能科技有限公司 | A kind of method and device that advertisement putting is realized based on radio channel |
CN110856129A (en) * | 2018-08-21 | 2020-02-28 | 上海博泰悦臻网络技术服务有限公司 | Information delivery method and system |
CN109769235A (en) * | 2019-01-11 | 2019-05-17 | 深圳十米网络科技有限公司 | A kind of business card exchange method based on Bluetooth broadcast |
CN112601199A (en) * | 2020-11-13 | 2021-04-02 | 西安电子科技大学 | Intelligent contact sensing method, device and system based on low-power-consumption Bluetooth |
CN112969168A (en) * | 2021-02-08 | 2021-06-15 | 西安电子科技大学 | Method for avoiding maximum value of expected discovery delay of BLE equipment |
CN113469756A (en) * | 2021-09-03 | 2021-10-01 | 深圳市完美显示科技有限公司 | Advertisement putting control method and system |
Also Published As
Publication number | Publication date |
---|---|
CN113891265B (en) | 2023-06-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Harris III et al. | Bluetooth low energy in dense IoT environments | |
US10045181B2 (en) | Method and apparatus for Bluetooth connection | |
EP3326391B1 (en) | Bluetooth low energy combined listen and scan window | |
CN111405684A (en) | Method for connecting to network access device, terminal and computer readable storage medium | |
CN102088792B (en) | BSS/PBSS support and schedule-free networking in 60GHz | |
CN109672708B (en) | Communication method, device and system | |
CN111182471A (en) | Secure multicast/broadcast ranging | |
CN103891260B (en) | Method and apparatus for transmitting advertisement control information | |
JP5902876B2 (en) | Device discovery method, apparatus and system | |
JP2014522166A (en) | Method and apparatus for device / service discovery and channel access control in proximity device-to-device wireless communication | |
CA2372571A1 (en) | Dynamically configurable datagram message communication system | |
CN104205776B (en) | The method and apparatus of connectivity events triggering based on application | |
CA3060010A1 (en) | D2d communication method, remote user equipment, and relay user equipment | |
CN104641693A (en) | Association in wireless network | |
CN103517266A (en) | Method for activating mobile terminal on mobile network side and mobile gateway system | |
JP2020534760A (en) | RBG division method and user terminal | |
CN104303575B (en) | System and method for reducing signaling overheads | |
TWI718281B (en) | Method and apparatus for establishing association between terminal equipment | |
CN109526039A (en) | A kind of method and apparatus sending system information | |
JP2007288312A (en) | Data collection method and data collection system using wireless lan | |
WO2018163070A1 (en) | Low energy wireless communication devices, systems, and methods | |
CN108616289A (en) | Communication device, communication means and recording medium | |
CN113891265A (en) | BLE advertisement-based instant messaging method and system | |
CN107396319B (en) | A kind of method of wireless network authentication, equipment, storage medium and terminal reclaimer | |
CN107508882B (en) | Data transmission method, related device and storage medium |
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 |