CN110351695B - Bidirectional communication method, control method and device, communication system and storage medium - Google Patents

Bidirectional communication method, control method and device, communication system and storage medium Download PDF

Info

Publication number
CN110351695B
CN110351695B CN201910733887.8A CN201910733887A CN110351695B CN 110351695 B CN110351695 B CN 110351695B CN 201910733887 A CN201910733887 A CN 201910733887A CN 110351695 B CN110351695 B CN 110351695B
Authority
CN
China
Prior art keywords
gateway
target
tag device
data
tag
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910733887.8A
Other languages
Chinese (zh)
Other versions
CN110351695A (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.)
Beijing Hezheng Medical Technology Co ltd
Xiangya Hospital of Central South University
Original Assignee
Beijing Hezheng Medical Technology Co ltd
Xiangya Hospital of Central South University
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 Hezheng Medical Technology Co ltd, Xiangya Hospital of Central South University filed Critical Beijing Hezheng Medical Technology Co ltd
Priority to CN201910733887.8A priority Critical patent/CN110351695B/en
Publication of CN110351695A publication Critical patent/CN110351695A/en
Application granted granted Critical
Publication of CN110351695B publication Critical patent/CN110351695B/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/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0235Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a power saving command
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • 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)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a bidirectional communication method, a control method and a control device, a communication system and a storage medium. The bidirectional communication control method comprises the following steps: when communication data to be sent containing a target tag device ID are obtained, tag device data sent by a gateway are obtained, and the tag device data are obtained by the gateway based on original data broadcasted by scanned tag devices; determining target label equipment according to the ID of the target label equipment; determining a target gateway according to target label equipment and label equipment data; sending communication data to the target gateway; and when the situation that the original data broadcast by the target label equipment is scanned again by the target gateway is monitored, sending a connection instruction to the target gateway so as to enable the target gateway and the target label equipment to establish a connection channel for data interaction. By the method, the standby time of the label device in bidirectional communication can be prolonged on the premise of not changing the built-in battery of the label device.

Description

Bidirectional communication method, control method and device, communication system and storage medium
Technical Field
The present application belongs to the field of communications of ble (bluetooth Low energy) bluetooth devices, and in particular, relates to a bidirectional communication method, a control method and apparatus, a communication system, and a storage medium.
Background
For BLE bluetooth equipment, when needing to realize the two-way communication with the tag device, need to switch into the scanning mode with the broadcast mode behind the tag device broadcast information, wait for gateway equipment broadcast information. In the prior art, for the tag device, the switching between the broadcast mode and the scanning mode is determined according to the time sequence, that is, the tag device is in the broadcast mode first, and switches to the scanning mode after the broadcast mode lasts for the preset time, and switches to the broadcast mode after the scanning mode lasts for the preset time, and so on. However, since the tag device consumes more power in the scan mode, the power requirement is larger, and the built-in battery capacity of the tag device is smaller. Therefore, frequently switching the mode when the tag device performs bidirectional communication reduces the standby time of the tag device.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a bidirectional communication method, a control method and device, a communication system and a storage medium, which can improve the standby time of the tag device during bidirectional communication without changing the built-in battery of the tag device.
The embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a bidirectional communication control method, which is applied to a server, where the server communicates with a bluetooth system, where the bluetooth system includes a gateway and a tag device, and the method includes: when communication data to be sent containing a target tag device ID are obtained, tag device data sent by the gateway are obtained, and the tag device data are obtained by the gateway based on scanned original data broadcasted by the tag device; determining target label equipment according to the ID of the target label equipment; determining a target gateway according to the target label equipment and the label equipment data; sending the communication data to the target gateway; and when the situation that the original data broadcast by the target label equipment is scanned again by the target gateway is monitored, sending a connection instruction to the target gateway so that the target gateway and the target label equipment establish a connection channel for data interaction. For the target label device, the broadcasted data is transmitted to the server, and the target label device receives the communication data of the server, so that the bidirectional communication function is realized. In the process, compared with the traditional bidirectional communication, the target label device does not need to be frequently switched to the scanning mode any more, and the generation of high energy consumption is avoided, so that the standby time of the label device during bidirectional communication can be prolonged on the premise of not changing a built-in battery.
With reference to the embodiment of the first aspect, in a possible implementation manner, after the sending the connection instruction to the target gateway, the method further includes: and acquiring interactive data sent by the target label equipment through the connecting channel.
With reference to the embodiment of the first aspect, in a possible implementation manner, after the obtaining of the interaction data sent by the target tag device through the connection channel, the method further includes: and sending a disconnection instruction to the target gateway so as to enable the target gateway to disconnect the connection channel. Because the connection channel is disconnected after the bidirectional communication is completed, the target tag device 130 is not in a connected state for a long time, and the consumption of energy consumption is reduced.
With reference to the embodiment of the first aspect, in a possible implementation manner, the original data broadcast by the tag device includes a tag device ID corresponding to the tag device, and the tag device data includes a gateway ID corresponding to the gateway, a connection signal strength between the gateway and the tag device, and the original data broadcast by the tag device; the determining a target gateway according to the target tag device and the tag device data includes: screening out a gateway to be selected, wherein the ID of the tag equipment in the original data scanned by the gateway to be selected is consistent with the ID of the target tag equipment; comparing the connection signal strength in the tag device data including the target tag device ID sent by the gateway to be selected; and determining the gateway to be selected with the strongest connection signal strength as the target gateway. And when the signal strength in the tag device data generated by a certain gateway is strongest, representing that the gateway is closest to the target tag device. The gateway is used as a target gateway so as to save the time of the target label device in a scanning mode, thereby saving energy consumption and prolonging the standby time of the target label device.
With reference to the embodiment of the first aspect, in a possible implementation manner, the sending the communication data to the target gateway includes: obtaining a routing table; selecting a target path reaching the target gateway according to the routing table; and sending the communication data to the target gateway through the target path.
In a second aspect, an embodiment of the present application provides a bidirectional communication method, which is applied to a communication system, where the communication system includes a server, a gateway, and a tag device; the method comprises the following steps: the tag device broadcasts original data to the gateway; the gateway scans the original data, generates label equipment data according to the original data and sends the label equipment data to the server; the server acquires the tag device data, and determines a target tag device and a target gateway according to the ID of the target tag device when acquiring communication data to be sent, wherein the communication data comprises the ID of the target tag device; the server sends the communication data to the target gateway and issues a connection instruction to the target gateway; and when the original data broadcast by the target label equipment is scanned again, the target gateway establishes a connection channel with the target label equipment to perform data interaction.
In a third aspect, an embodiment of the present application provides a bidirectional communication control apparatus, where the bidirectional communication control apparatus communicates with a bluetooth system, where the bluetooth system includes a gateway and a tag device, and the apparatus includes: the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring tag device data sent by a gateway when communication data to be sent containing a target tag device ID is acquired, and the tag device data is obtained by the gateway based on scanned original data broadcast by the tag device; the determining module is used for determining target label equipment according to the ID of the target label equipment and determining a target gateway according to the target label equipment and the label equipment data; a sending module, configured to send the communication data to the target gateway; and the monitoring and sending module is used for sending a connection instruction to the target gateway when the situation that the original data broadcast by the target label equipment is scanned again by the target gateway is monitored, so that the target gateway and the target label equipment establish a connection channel to perform data interaction.
With reference to the third aspect, in a possible implementation manner, the obtaining module is further configured to obtain the interactive data sent by the target tag device through the connection channel.
With reference to the embodiment of the third aspect, in a possible implementation manner, the sending module is further configured to send a disconnection instruction to the target gateway, so that the target gateway disconnects the connection channel.
With reference to the third aspect, in a possible implementation manner, the original data broadcast by the tag device includes a tag device ID corresponding to the tag device, and the tag device data includes a gateway ID corresponding to the gateway, a connection signal strength between the gateway and the tag device, and the original data broadcast by the tag device; the determining module is used for screening out a gateway to be selected, and the ID of the tag device in the original data scanned by the gateway to be selected is consistent with the ID of the target tag device; comparing the connection signal strength in the tag device data including the target tag device ID sent by the gateway to be selected; and determining the gateway to be selected with the strongest connection signal strength as the target gateway.
With reference to the embodiment of the third aspect, in a possible implementation manner, the apparatus further includes a selecting module, where the obtaining module is further configured to obtain a routing table, and the selecting module is configured to select a target path to the target gateway according to the routing table; the sending module is further configured to send the communication data to the target gateway through the target path.
In a fourth aspect, an embodiment of the present application further provides a communication system, including a server, a gateway, and a tag device, where the server communicates with the gateway, and the gateway communicates with the tag device through bluetooth; the label device is used for broadcasting original data to the gateway; the gateway is used for scanning the original data, generating label equipment data according to the original data and sending the label equipment data to the server; the server is used for acquiring the tag device data and determining a target tag device and a target gateway according to the ID of the target tag device when acquiring communication data to be sent, wherein the communication data comprises the ID of the target tag device; the server is also used for sending the communication data to the target gateway and issuing a connection instruction to the target gateway; and the target gateway is used for establishing a connection channel with the target label device to perform data interaction when the original data broadcasted by the target label device is scanned again.
In a fifth aspect, embodiments of the present application further provide a storage medium, on which a computer program is stored, where the computer program is executed by a computer to perform the method provided in the foregoing first aspect and/or any possible implementation manner of the first aspect.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts. The foregoing and other objects, features and advantages of the application will be apparent from the accompanying drawings. Like reference numerals refer to like parts throughout the drawings. The drawings are not intended to be to scale as practical, emphasis instead being placed upon illustrating the subject matter of the present application.
Fig. 1 shows a schematic structural diagram of a communication system according to an embodiment of the present application.
Fig. 2 shows a flowchart of a bidirectional communication control method according to an embodiment of the present application.
Fig. 3 shows a block diagram of a bidirectional communication control device according to an embodiment of the present application.
Fig. 4 shows a flowchart of a bidirectional communication method provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that the drawback of short standby time of the tag device in the bidirectional communication of the tag device in the prior art is also the result of the practical and careful study of the applicant, and therefore, the discovery process of the aforesaid drawback and the solution proposed by the embodiments of the present application in the following description should be the contribution of the applicant to the present application in the course of the present application.
In order to solve the above-mentioned drawbacks, embodiments of the present application provide a bidirectional communication method, a control device, a communication system, and a storage medium, so that the standby time of the tag device during bidirectional communication is increased without changing a built-in battery of the tag device. The technology can be realized by adopting corresponding software, hardware and a combination of software and hardware. The following describes embodiments of the present application in detail.
First, a communication system 100 for implementing the bidirectional communication method of the embodiment of the present application is described with reference to fig. 1.
The communication system 100 may include a server 110, a gateway 120, and a tag device 130. The number of gateways 120 and tag devices 130 may be plural. The server 110 may communicate with the gateway 120, and the gateway 120 may communicate with the tag device 130 via bluetooth within a connectable range of bluetooth signals.
Wherein, tag device 130 generally refers to BLE bluetooth wearable devices such as bracelet, wrist-watch. The tag device 130 generally has broadcast, scan, and connection. Because of the large power consumed by scanning and connecting, the tag device 130 is generally in a broadcast mode for broadcasting the original data including its own tag device ID.
Gateway 120 refers to a bluetooth low energy gateway suitable for bluetooth low energy devices.
One gateway 120 may scan raw data broadcast by multiple tag devices 130 simultaneously. After the gateway 120 scans the raw data broadcast by a certain tag device 130, the bluetooth link management protocol in the bluetooth protocol stack may parse the raw data to generate the connection signal strength for communicating with the tag device 130. The gateway 120 may then generate tag device data containing the raw data, the connection signal strength between the gateway 120 and the corresponding tag device 130, and the gateway ID of the gateway 120, and send to the server 110 for use by the server 110.
A user may interact with the server 110 through the electronic device, so that the server 110 may obtain information input by the user and send the information to the gateway 120, so that the gateway 120 transmits the information to the tag device 130; or the server 110 may present the information to the user via an electronic device.
When the bidirectional communication method is performed based on the communication system 100, the tag device 130 serves to broadcast original data to the gateway; the gateway 120 is configured to scan the original data, generate tag device data according to the original data, and send the tag device data to the server 110; the server 110 is configured to obtain the tag device data, and when obtaining communication data to be sent that includes a target tag device ID, according to the target tag device ID and a target gateway; the server 110 is further configured to send the communication data to the target gateway, and issue a connection instruction to the target gateway; and the target gateway is used for establishing a connection channel with the target label equipment for data interaction when the original data broadcasted by the target label equipment is scanned again.
Of course, for the server 110 itself, when the bidirectional communication method is performed based on the communication system 100, the server 110 more plays the role of a controller to perform the bidirectional communication control method.
The server 110 may include a processor and a memory, among other things. The processor and the memory are directly or indirectly electrically connected with each other to realize the data transmission or interaction.
The memory is used for storing executable modules, for example, a program corresponding to a bidirectional communication control method appearing later or a bidirectional communication control device appearing later. Optionally, when the bidirectional communication control device is stored in the memory, the bidirectional communication control device includes at least one software functional module that can be stored in the memory in the form of software or firmware (firmware). Alternatively, the software function module included in the bidirectional communication control apparatus may be solidified in an Operating System (OS) of the server 110.
The processor is used for executing the executable module stored in the memory, and after receiving the execution instruction, the processor can execute: when communication data to be sent containing a target tag device ID are obtained, tag device data sent by the gateway are obtained, and the tag device data are obtained by the gateway based on scanned original data broadcasted by the tag device; determining target label equipment according to the ID of the target label equipment; determining a target gateway according to the target label equipment and the label equipment data; sending the communication data to the target gateway; and when the situation that the original data broadcast by the target label equipment is scanned again by the target gateway is monitored, sending a connection instruction to the target gateway so that the target gateway and the target label equipment establish a connection channel for data interaction.
The following description will be made with respect to a bidirectional communication control method provided in the present application.
Referring to fig. 2, an embodiment of the present invention provides a bidirectional communication control method applied to the server 110. The steps involved will be described below in conjunction with fig. 2.
Step S110: and when communication data to be sent containing the ID of the target tag equipment is obtained, the tag equipment data sent by the gateway is obtained.
In the embodiment of the present application, the geographic location of the gateway 120 is fixed, and the geographic location of the tag device 130 may change as the wearer moves. In addition, each gateway 120 and each tag device 130 has a unique Identification (ID).
For the tag device 130, its power consumption is on the micro-amp level when it is in the broadcast mode; when it is in scan mode, its power consumption is in milliamp level; when the device needs to be connected with other equipment, high power consumption is generated at the moment of connection, and the power consumption is reduced after the connection is finished. Therefore, in order to save power consumption and extend the standby time, the tag device 130 is generally in a broadcast mode for broadcasting the original data including the own tag device ID. Of course, other information may also be included in the raw data, including, for example, location information of the tag device 130 broadcasting the piece of raw data.
During the scanning phase, one gateway 120 may scan the raw data broadcast by different tag devices 130, for example, the raw data broadcast by tag devices 130 within the reach of bluetooth signals. It is worth noting that the bluetooth signal reach is related to distance and obstruction.
For the gateway 120, each time it scans the original data broadcasted by one tag device 130, it may generate tag device data according to the original data and its own gateway ID, and may also generate tag device data according to the original data, its own gateway ID and other data. The other data may be a connection signal strength (RSSI) between the gateway 120 receiving the raw data and the tag device 130 broadcasting the raw data, wherein the RSSI may be represented by a numerical value, and for example, a larger numerical value represents a higher connection signal strength. The bluetooth link management protocol in the bluetooth protocol stack of the gateway 120 may parse the raw data and generate the RSSI for communication with the tag device 130 broadcasting the raw data. Then, the gateway 120 obtains tag device data corresponding to the tag device 130 according to the piece of original data, the RSSI corresponding to the piece of original data, and the gateway ID of the gateway 120. Subsequently, the gateway 120 sends the tag device data to the server 110 for use by the server 110.
The server 110 may display information included in the tag device data after acquiring the tag device data. For example, when the original data includes the location information of the tag device 130 broadcasting the piece of original data, correspondingly, the tag device data sent by the gateway 120 to the server also includes the location information of the corresponding tag device 130. After receiving the tag device data corresponding to different tag devices 130, the server 110 may display the location of each tag device 130 through a display for a user to view. In this case, as an alternative embodiment, the user carrying the tag device 130 may be a patient in a hospital, and the user viewing the position of each tag device 130 may be a nurse or a doctor. As another alternative, the user carrying the tagging devices 130 may be a miner within the mine and the user viewing the location of each tagging device 130 may be a construction manager.
Of course, the above application scenarios are only examples, and it should be understood that the above examples do not limit the application scenarios in the embodiments of the present application.
In addition, when a user with management authority (for example, a doctor, a construction manager, etc. in the foregoing) needs to transmit communication data to users corresponding to a plurality of tag devices 130 or a user corresponding to one tag device 130 through the server 110, the server 110 may further obtain communication data to be transmitted input by the user with management authority, where a target tag device ID is specified in the communication data to be transmitted.
Step S120: and determining the target label equipment according to the ID of the target label equipment.
Since each piece of tag device data acquired by the server 110 includes the tag device ID corresponding to the piece of tag device data, after acquiring the target tag device ID, the server 110 may find the target tag device 130 having the tag device ID that is the same as the target tag device ID by means of matching.
Step S130: and determining a target gateway according to the target label equipment and the label equipment data.
After the target tag device 130 is determined, because the original data broadcast by one tag device 130 may be scanned by a plurality of different gateways 120, a plurality of gateways 120 that scan the original data broadcast by the target tag device 120 may also be scanned, and the server 110 may find the plurality of gateways 120 according to the tag device data including the gateway ID and the original data, and use the plurality of gateways 120 as the candidate gateways 120.
Since only one of the gateways 120 needs to be connected to the target tag device 130, one target gateway 120 needs to be determined from the candidate gateways 120.
As an alternative implementation, a target gateway 120 may be determined from the candidate gateways 120 in a random manner.
In addition, as the distance is closer, the faster the transfer speed between the bluetooth devices is, the time for information transfer can be saved, so that the time for the information receiver to be in the scanning mode can be reduced, and the energy consumption of the information receiver can be further saved. When the RSSI in the tag device data generated by a certain gateway 120 is strongest, the gateway 120 is characterized to be closest to the target tag device 130. Then, the server 110 determines the candidate gateway 120 with the strongest RSSI as the target gateway 120, so as to save the time of the target tag device 130 in the scanning mode, thereby saving energy consumption and prolonging the standby time of the target tag device 130.
In addition, the closest gateway 120 is selected for each target tag device 130, and the resources are more reasonably utilized for the entire communication system 100.
Step S140: and sending the communication data to the target gateway.
Alternatively, a routing table may be pre-stored in server 110, where the shortest path to each gateway 120 is specified. When sending the communication data to the destination gateway 120, the server 110 may first obtain the routing table, then select the shortest path to the destination gateway according to the routing table, and then send the communication data to the destination gateway 120 through the shortest path.
Step S150: and when the situation that the original data broadcast by the target label equipment is scanned again by the target gateway is monitored, sending a connection instruction to the target gateway so that the target gateway and the target label equipment establish a connection channel for data interaction.
After the server 110 sends the connection instruction to the target gateway 120, the target gateway 120 actively initiates a connection request to the target tag device 130, so that a connection channel is established between the target gateway 120 and the target tag device 130. At this point, the target tag device 130 switches to the connected mode, appearing to be awake, momentarily resulting in high power consumption, but after the connection channel is established (about 100 milliseconds are required), the power consumption returns to normal. Thereafter, the target gateway 120 sends the communication data to the target tag device 130 through the connection channel, and for the target tag device 130, the broadcasted data is transmitted to the server 110 and receives the communication data of the server 110, so as to implement the bidirectional communication function. In this process, compared to the conventional bidirectional communication, the target tag device 130 does not need to be frequently switched to the scanning mode any more, thereby avoiding high energy consumption, and thus improving the standby time of the tag device 130 during bidirectional communication without changing the built-in battery.
In addition, in the conventional bidirectional communication mode, since both the gateway 120 and the tag device 130 are constantly switching between the broadcast mode and the scanning mode, a time difference generated therebetween may cause that the tag device 130 does not receive the broadcast data through the gateway 120, and the gateway 120 does not find any broadcast data of the tag device 130 during scanning, which may result in a packet loss.
In the embodiment of the present application, a connection channel is established between the gateway 120 and the tag device 130, so that the problem of no-end waiting of the tag device 130 does not occur, and the generation of packet loss is prevented.
Of course, as an alternative implementation, after the connection channel is established, the server 110 may also obtain the interaction data sent by the target tag device 130 through the connection channel.
As an optional implementation manner, after the server 110 obtains the interactive data sent by the target tag device 130 through the connection channel, the server 110 may determine that the bidirectional communication is completed, and may further send a disconnection instruction to the target gateway 120, so that the target gateway 120 disconnects the connection channel. Because the connection channel is disconnected after the bidirectional communication is completed, the target tag device 130 is not in a connected state for a long time, and the consumption of energy consumption is reduced.
As another alternative, the target gateway 120 may actively disconnect after sending the communication data to the target tag device 120 or disconnect according to a disconnection instruction sent by the server 110 upon receiving feedback information that the sending of the communication data is completed. Wherein, the feedback information of the communication data transmission completion is fed back to the server 110 by the target gateway 120 after the communication data transmission to the target tag device 130 is completed.
According to the bidirectional communication control method provided by the embodiment of the application, when the server acquires communication data to be sent, wherein the communication data comprises a target label device ID, the label device data sent by a gateway is acquired by the gateway based on original data broadcasted by scanned label devices; determining target label equipment according to the ID of the target label equipment; determining a target gateway according to target label equipment and label equipment data; sending communication data to the target gateway; and when the situation that the original data broadcast by the target label equipment is scanned again by the target gateway is monitored, sending a connection instruction to the target gateway so as to enable the target gateway and the target label equipment to establish a connection channel for data interaction. For the target label device, the broadcasted data is transmitted to the server, and the target label device receives the communication data of the server, so that the bidirectional communication function is realized. In the process, compared with the traditional bidirectional communication, the target label device does not need to be frequently switched to the scanning mode any more, and the generation of high energy consumption is avoided, so that the standby time of the label device during bidirectional communication can be prolonged on the premise of not changing a built-in battery.
In addition, referring to fig. 3 corresponding to fig. 2, a bidirectional communication control apparatus 400 is further provided in an embodiment of the present application. The bidirectional communication control device 400 includes: the system comprises an acquisition module 410, a determination module 420, a sending module 430 and a monitoring sending module 440.
An obtaining module 410, configured to obtain tag device data sent by the gateway when communication data to be sent including a target tag device ID is obtained, where the tag device data is obtained by the gateway based on scanned original data broadcast by the tag device;
a determining module 420, configured to determine a target tag device according to the target tag device ID, and determine a target gateway according to the target tag device and the tag device data;
a sending module 430, configured to send the communication data to the target gateway;
the monitoring sending module 440 is configured to send a connection instruction to the target gateway when it is monitored that the target gateway scans the original data broadcast by the target tag device again, so that the target gateway and the target tag device establish a connection channel for data interaction.
Optionally, the obtaining module 410 is further configured to obtain the interactive data sent by the target tag device through the connection channel.
Optionally, the sending module 430 is further configured to send a disconnection instruction to the target gateway, so that the target gateway disconnects the connection channel.
Optionally, the original data broadcast by the tag device includes a tag device ID corresponding to the tag device, and the tag device data includes a gateway ID corresponding to the gateway, a connection signal strength between the gateway and the tag device, and the original data broadcast by the tag device; the determining module 420 is configured to screen out a gateway to be selected, where the tag device ID in the original data scanned by the gateway to be selected is consistent with the target tag device ID; comparing the connection signal strength in the tag device data including the target tag device ID sent by the gateway to be selected; and determining the gateway to be selected with the strongest connection signal strength as the target gateway.
Optionally, the apparatus further includes a selecting module, and the obtaining module 410 is further configured to obtain a routing table; the selection module is further configured to select a target path to the target gateway according to the routing table; the sending module 430 is further configured to send the communication data to the target gateway through the target path.
The implementation principle and the technical effect of the bidirectional communication control apparatus 400 provided in the embodiment of the present application are the same as those of the corresponding embodiments of the bidirectional communication control method, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiments for the part of the embodiments of the apparatus that is not mentioned.
In addition, an embodiment of the present application further provides a non-volatile storage medium (storage medium for short), where the storage medium stores a computer program, and the computer program is executed by a computer to perform the steps included in the bidirectional communication control method.
Referring to fig. 4, an embodiment of the present application further provides a bidirectional communication method applied to the communication system 100, which includes the following steps.
Step S210: the tag device broadcasts the original data to the gateway.
Step S220: and the gateway scans the original data, generates label equipment data according to the original data and sends the label equipment data to the server.
Step S230: and the server acquires the tag device data and determines a target tag device and a target gateway according to the ID of the target tag device when acquiring the communication data to be sent containing the ID of the target tag device.
Step S240: and the server sends the communication data to the target gateway and issues a connection instruction to the target gateway.
Step S250: and when the original data broadcast by the target label equipment is scanned again, the target gateway establishes a connection channel with the target label equipment to perform data interaction.
The implementation principle and the generated technical effect of the bidirectional communication method provided by the embodiment of the present application are the same as or similar to those of the aforementioned bidirectional communication control method, and for the sake of brief description, reference may be made to the corresponding contents in the aforementioned bidirectional communication control method embodiment for the sake of brevity.
In summary, the bidirectional communication method, the control method and the apparatus, the communication system and the storage medium according to the embodiments of the present invention provide that the bidirectional communication control method includes: when the server acquires communication data to be sent containing a target label device ID, acquiring label device data sent by a gateway, wherein the label device data is acquired by the gateway based on original data broadcasted by scanned label devices; determining target label equipment according to the ID of the target label equipment; determining a target gateway according to target label equipment and label equipment data; sending communication data to the target gateway; and when the situation that the original data broadcast by the target label equipment is scanned again by the target gateway is monitored, sending a connection instruction to the target gateway so as to enable the target gateway and the target label equipment to establish a connection channel for data interaction. For the target label device, the broadcasted data is transmitted to the server, and the target label device receives the communication data of the server, so that the bidirectional communication function is realized. In the process, compared with the traditional bidirectional communication, the target label device does not need to be frequently switched to the scanning mode any more, and the generation of high energy consumption is avoided, so that the standby time of the label device during bidirectional communication can be prolonged on the premise of not changing a built-in battery.
It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. 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.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions may be stored in a storage medium if they are implemented in the form of software function modules and sold or used as separate products. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a notebook 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 description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application.

Claims (9)

1. A bidirectional communication control method is applied to a server, the server is communicated with a Bluetooth system, the Bluetooth system comprises a gateway and a tag device, and the method comprises the following steps:
when communication data to be sent containing a target tag device ID is obtained, tag device data sent by a gateway are obtained, wherein the tag device data are obtained by the gateway based on scanned original data broadcast by the tag device, the original data broadcast by the tag device comprise the tag device ID corresponding to the tag device, the tag device data comprise the gateway ID corresponding to the gateway, the connection signal strength between the gateway and the tag device, and the original data broadcast by the tag device;
determining target label equipment according to the ID of the target label equipment;
determining a target gateway according to the target label equipment and the label equipment data;
sending the communication data to the target gateway;
when the situation that the original data broadcast by the target label equipment is scanned again by the target gateway is monitored, sending a connection instruction to the target gateway so that the target gateway and the target label equipment establish a connection channel for data interaction;
wherein the determining a target gateway according to the target tag device and the tag device data comprises:
screening out a gateway to be selected, wherein the ID of the tag equipment in the original data scanned by the gateway to be selected is consistent with the ID of the target tag equipment;
comparing the connection signal strength in the tag device data including the target tag device ID sent by the gateway to be selected;
and determining the gateway to be selected with the strongest connection signal strength as the target gateway.
2. The method of claim 1, wherein after sending the connection instruction to the target gateway, the method further comprises:
and acquiring interactive data sent by the target label equipment through the connecting channel.
3. The method of claim 2, wherein after the obtaining of the interaction data sent by the target tag device over the connection channel, the method further comprises:
and sending a disconnection instruction to the target gateway so as to enable the target gateway to disconnect the connection channel.
4. The method of claim 1, wherein the sending the communication data to the target gateway comprises:
obtaining a routing table;
selecting a target path reaching the target gateway according to the routing table;
and sending the communication data to the target gateway through the target path.
5. A bidirectional communication method is applied to a communication system, wherein the communication system comprises a server, a gateway and a tag device; the method comprises the following steps:
the tag device broadcasts original data to the gateway, wherein the original data broadcasted by the tag device comprises a tag device ID corresponding to the tag device;
the gateway scans the original data, generates tag device data according to the original data and sends the tag device data to the server, wherein the tag device data comprises a gateway ID corresponding to the gateway, the connection signal strength between the gateway and the tag device, and the original data broadcasted by the tag device;
the server acquires the tag device data, and determines a target tag device and a target gateway according to the ID of the target tag device when acquiring communication data to be sent, wherein the communication data comprises the ID of the target tag device;
the server sends the communication data to the target gateway and issues a connection instruction to the target gateway;
when the original data broadcast by the target label equipment is scanned again, the target gateway establishes a connection channel with the target label equipment to perform data interaction;
wherein the determining a target gateway according to the target tag device and the tag device data comprises:
screening out a gateway to be selected, wherein the ID of the tag equipment in the original data scanned by the gateway to be selected is consistent with the ID of the target tag equipment;
comparing the connection signal strength in the tag device data including the target tag device ID sent by the gateway to be selected;
and determining the gateway to be selected with the strongest connection signal strength as the target gateway.
6. A two-way communication control apparatus, wherein the two-way communication control apparatus communicates with a bluetooth system, the bluetooth system including a gateway and a tag device, the apparatus comprising:
an obtaining module, configured to obtain tag device data sent by a gateway when communication data to be sent containing a target tag device ID is obtained, where the tag device data is obtained by the gateway based on scanned original data broadcast by the tag device, the original data broadcast by the tag device includes a tag device ID corresponding to the tag device, the tag device data includes a gateway ID corresponding to the gateway, a connection signal strength between the gateway and the tag device, and the original data broadcast by the tag device;
the determining module is used for determining target label equipment according to the ID of the target label equipment and determining a target gateway according to the target label equipment and the label equipment data;
a sending module, configured to send the communication data to the target gateway;
the monitoring and sending module is used for sending a connection instruction to the target gateway when the original data broadcast by the target label equipment is monitored to be scanned again by the target gateway, so that the target gateway and the target label equipment establish a connection channel for data interaction;
in the determining module, the determining a target gateway according to the target tag device and the tag device data includes:
screening out a gateway to be selected, wherein the ID of the tag equipment in the original data scanned by the gateway to be selected is consistent with the ID of the target tag equipment;
comparing the connection signal strength in the tag device data including the target tag device ID sent by the gateway to be selected;
and determining the gateway to be selected with the strongest connection signal strength as the target gateway.
7. The apparatus according to claim 6, wherein the obtaining module is further configured to obtain the interaction data sent by the target tag device through the connection channel.
8. A communication system is characterized by comprising a server, a gateway and a tag device, wherein the server is communicated with the gateway, and the gateway is communicated with the tag device through Bluetooth;
the tag device is configured to broadcast original data to the gateway, where the original data broadcast by the tag device includes a tag device ID corresponding to the tag device;
the gateway is configured to scan the original data, generate tag device data according to the original data, and send the tag device data to the server, where the tag device data includes a gateway ID corresponding to the gateway, a connection signal strength between the gateway and the tag device, and the original data broadcast by the tag device;
the server is used for acquiring the tag device data and determining a target tag device and a target gateway according to the ID of the target tag device when acquiring communication data to be sent containing the ID of the target tag device;
the server is also used for sending the communication data to the target gateway and issuing a connection instruction to the target gateway;
the target gateway is used for establishing a connection channel with the target label equipment for data interaction when the original data broadcasted by the target label equipment is scanned again;
wherein the determining a target gateway according to the target tag device and the tag device data comprises:
screening out a gateway to be selected, wherein the ID of the tag equipment in the original data scanned by the gateway to be selected is consistent with the ID of the target tag equipment;
comparing the connection signal strength in the tag device data including the target tag device ID sent by the gateway to be selected;
and determining the gateway to be selected with the strongest connection signal strength as the target gateway.
9. A storage medium, having stored thereon a computer program which, when executed by a computer, performs the method of any one of claims 1-4.
CN201910733887.8A 2019-08-12 2019-08-12 Bidirectional communication method, control method and device, communication system and storage medium Active CN110351695B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910733887.8A CN110351695B (en) 2019-08-12 2019-08-12 Bidirectional communication method, control method and device, communication system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910733887.8A CN110351695B (en) 2019-08-12 2019-08-12 Bidirectional communication method, control method and device, communication system and storage medium

Publications (2)

Publication Number Publication Date
CN110351695A CN110351695A (en) 2019-10-18
CN110351695B true CN110351695B (en) 2022-04-29

Family

ID=68184401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910733887.8A Active CN110351695B (en) 2019-08-12 2019-08-12 Bidirectional communication method, control method and device, communication system and storage medium

Country Status (1)

Country Link
CN (1) CN110351695B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105163382A (en) * 2015-05-07 2015-12-16 中国科学院信息工程研究所 Indoor region location optimization method and system
CN106454998A (en) * 2016-09-29 2017-02-22 北京小米移动软件有限公司 Wireless local area network access method and apparatus, and terminal
CN107547521A (en) * 2017-08-02 2018-01-05 新华三技术有限公司 A kind of message transmitting method and device
CN109633535A (en) * 2019-01-21 2019-04-16 上海美迪索科电子科技有限公司 A kind of positioning system, method, apparatus and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090219170A1 (en) * 2008-02-18 2009-09-03 Clark Ryan C Wireless network inventory system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105163382A (en) * 2015-05-07 2015-12-16 中国科学院信息工程研究所 Indoor region location optimization method and system
CN106454998A (en) * 2016-09-29 2017-02-22 北京小米移动软件有限公司 Wireless local area network access method and apparatus, and terminal
CN107547521A (en) * 2017-08-02 2018-01-05 新华三技术有限公司 A kind of message transmitting method and device
CN109633535A (en) * 2019-01-21 2019-04-16 上海美迪索科电子科技有限公司 A kind of positioning system, method, apparatus and storage medium

Also Published As

Publication number Publication date
CN110351695A (en) 2019-10-18

Similar Documents

Publication Publication Date Title
JP6755145B2 (en) Communication devices, their control methods and programs, and communication systems
US9066324B2 (en) Method and system for peer-to-peer communication in a communication system
CN113038566B (en) Path selection method, terminal and network equipment
US8725200B2 (en) Communication operating method for dual standby mobile terminal and dual standby mobile terminal supporting the same
CN101115259B (en) Communication system, transmission device and method thereof, and reception device and method thereof
JP2007336398A (en) Communication apparatus and control method thereof
US10848640B2 (en) Information processing apparatus, and control method for executing search processing
US20240064710A1 (en) Resource pool configuration method, resource pool using method, configuration device, and terminal
US10721688B2 (en) Power consumption control method for wearable device, and wearable device
EP3185644B1 (en) Method, device and storage medium for waking up home interconnection device
CN113301559B (en) Terminal capability reporting method and device and electronic equipment
KR20190053225A (en) Communication device, communication method, and program
CN110351695B (en) Bidirectional communication method, control method and device, communication system and storage medium
US20190380022A1 (en) Communication apparatus, method of controlling communication apparatus, and non-transitory computer-readable storage medium
KR102663265B1 (en) Electronic device and method for controlling NAN based communication thereof
CN115314173A (en) Resource pool configuration method, device, terminal and network side equipment
CN114390482A (en) Relay configuration method and device and user equipment
CN109716828B (en) Communication apparatus, communication method, and storage medium
CN111654294B (en) Antenna sharing method and device, storage medium and electronic equipment
WO2022083546A1 (en) Method and apparatus for multiplexing relay link, relay device, communication devices, and medium
CN102082948A (en) System, method and equipment for acquiring video information
CN115915108A (en) Multipath communication method, device and terminal
CN115643625A (en) Multi-path data sending method, device and equipment
JP2017050826A (en) Communication apparatus, communication method, and program
JP6554002B2 (en) Communication device, control method therefor, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Huang Weihong

Inventor after: Dong Bing

Inventor after: Hu Jianzhong

Inventor after: Yue Liqing

Inventor after: Li Yinglan

Inventor after: Xia Xuebin

Inventor after: Liu Shuo

Inventor before: Dong Bing

Inventor before: Huang Weihong

Inventor before: Hu Jianzhong

Inventor before: Yue Liqing

Inventor before: Li Yinglan

Inventor before: Xia Xuebin

Inventor before: Liu Shuo