WO2019184455A1 - Information transmission method and apparatus, device and storage medium - Google Patents

Information transmission method and apparatus, device and storage medium Download PDF

Info

Publication number
WO2019184455A1
WO2019184455A1 PCT/CN2018/120721 CN2018120721W WO2019184455A1 WO 2019184455 A1 WO2019184455 A1 WO 2019184455A1 CN 2018120721 W CN2018120721 W CN 2018120721W WO 2019184455 A1 WO2019184455 A1 WO 2019184455A1
Authority
WO
WIPO (PCT)
Prior art keywords
node device
interval
information
cache
node
Prior art date
Application number
PCT/CN2018/120721
Other languages
French (fr)
Chinese (zh)
Inventor
萧维廷
文振兴
Original Assignee
青岛海信电器股份有限公司
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 青岛海信电器股份有限公司 filed Critical 青岛海信电器股份有限公司
Publication of WO2019184455A1 publication Critical patent/WO2019184455A1/en

Links

Images

Classifications

    • 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/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • H04W52/028Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof switching on or off only a part of the equipment circuit blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • H04W28/14Flow control between communication endpoints using intermediate storage
    • 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/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/28Discontinuous transmission [DTX]; Discontinuous reception [DRX]
    • 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
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • 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

Definitions

  • the embodiments of the present invention relate to the field of communications technologies, and in particular, to an information transmission method, apparatus, device, and storage medium.
  • the embodiment of the present invention provides an information transmission method, device, device, and storage medium, which are used to improve the timeliness of information transmission in a Bluetooth networking.
  • An embodiment of the present application provides an information transmission method, including:
  • the first node device sends a friend request frame to the second node device before entering the sleep state, where the friend request frame includes a minimum wake interval and a maximum wake interval after the first node device enters a sleep state;
  • the first node device Receiving, by the first node device, a friend grant frame returned by the second node device, and establishing a friendship relationship with the second node device, so that after the first node device enters the sleep state, the first node
  • the information of the two-node device cache target reaching the first node device, where the friend grant frame includes a target wake-up interval, where the target wake-up interval is greater than or equal to the minimum wake-up interval, less than or equal to the maximum wake-up interval;
  • the first node device After entering the sleep state, the first node device wakes up once at the target wake-up interval, and performs information interaction with the second node device.
  • the friend request frame further includes a first cache timeout period, where the first cache timeout time is requested by the first node device to the second node device, and the information that the target reaches the first node is The maximum storage time in the second node.
  • the friend grant frame further includes a second cache timeout period, when the information of the target reaching the first node device is stored in the second node device for more than the second cache timeout period.
  • the second node device deletes the information.
  • the second cache timeout is an integer multiple of the target wakeup interval.
  • the method further includes:
  • the first node device sends a sleep notification frame to the second node device when the user enters the sleep state, so that the second node device starts to cache the information of the target reaching the first node device after receiving the sleep notification frame. And transmitting the cached information to the first node device by the target wake-up interval.
  • the first node device after the first node device enters the sleep state, it wakes up once the target wake-up interval, and performs information interaction with the second node device, including:
  • the first node device wakes up, and receives a cache information notification frame sent by the second node device when the target wake-up interval arrives, where the cache information notification frame includes the first node.
  • the unicast address of the device and the identifier indicating whether or not there is cache information
  • the first node device receives the cache information.
  • An embodiment of the present application provides an electronic device including a Bluetooth component, a memory, and a processor, wherein the memory stores computer instructions, and the processor is configured to execute the computer instruction to cause the electronic device to perform the above The method of the first aspect.
  • An embodiment of the present application provides a computer readable non-volatile storage medium comprising instructions that, when executed on the computer, implement the method of the first aspect described above.
  • FIG. 2 is a schematic structural diagram of a sleep notification frame provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a cache information notification frame according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a friend request frame according to an embodiment of the present application.
  • FIG. 5b is a schematic structural diagram of a friend grant frame according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an information transmission apparatus according to an embodiment of the present application.
  • a low power node In order to achieve power saving function, the low power node turns off the antenna receiving function. Before entering sleep, a suitable friend node will be searched for by a specific process. When the two parties establish a friendship relationship, the friend node will help cache all the Bluetooth networks within the time period when the low-power node enters the sleep state. The destination is the information of the low-power node. When the low-power node returns to the normal working state, the low-power node will request all the information of the help cache to the friend node, thereby achieving the requirement of sleep power saving and ensuring The correctness of information transmission.
  • the wake-up time of the low-power node is uncontrollable, and when the information cached by the friend node can be transmitted to the low-power node cannot be determined, and the timeliness of the network control information cannot be ensured.
  • FIG. 1 is a flowchart of an information transmission method according to an embodiment of the present application. As shown in FIG. 1, the method includes the following steps:
  • Step 101 The first node device sends a friend request frame to the second node device before entering the sleep state, where the friend request frame includes a minimum wake interval and a maximum wake interval after the first node device enters a sleep state.
  • the Bluetooth network in this embodiment refers to a wireless mesh network that uses a Bluetooth device as a network node.
  • the Bluetooth network is used as an example.
  • the first node device and the second node device in this embodiment may be specifically included.
  • Bluetooth device in the Bluetooth network Specifically, the first node device may be specifically a Bluetooth low energy device in the Bluetooth networking, and the second node device may be specifically a Bluetooth device serving as a friend node in the Bluetooth networking.
  • the second node device may specifically refer to a Bluetooth device as a friend node, and may also refer to multiple Bluetooth devices as friend nodes, that is, the first node device described in this embodiment enters a sleep state.
  • the sending of the friend request frame to the second node device includes: the first node device transmitting the friend request frame to one or more friend nodes.
  • the friend request frame involved in the embodiment adds two fields on the basis of the friend request frame of the existing Bluetooth network, and the two fields respectively fill in the support of the first node device after entering the sleep state.
  • Minimum wakeup interval and maximum wakeup interval For example, the minimum wake-up interval is 50 minutes and the maximum wake-up interval is 100 minutes, indicating that the first node device can wake up once in the interval of 50-100 minutes.
  • the second node device receives the friend request frame sent by the first node device, determining a time between the minimum wake interval and the maximum wake interval as the target wake interval according to the self cache capability, and carrying the target wake interval at the friend
  • the grant frame is sent to the first node device.
  • the target wake-up interval may also be equal to the minimum wake-up interval or the maximum wake-up interval as long as the minimum wake-up interval to the maximum wake-up interval is not exceeded.
  • the second node device may comprehensively determine the value of the target wake-up interval by considering the minimum wake-up interval, the maximum wake-up interval, the current remaining cache space, and the number of low-power Bluetooth devices with which a friendship relationship has been established.
  • the method for determining the target wake-up interval for the second node device is not limited in this embodiment.
  • Step 102 The first node device receives a friend grant frame returned by the second node device, and establishes a friendship relationship with the second node device, so that after the first node device enters the sleep state,
  • the second node device caches information that the target reaches the first node device, where the friend grant frame includes a target wake-up interval, where the target wake-up interval is greater than or equal to the minimum wake-up interval, less than or equal to the maximum Wake up interval.
  • the second node device in the embodiment may include one or more Bluetooth devices as friend nodes
  • the first node device receives the second node device.
  • the friend After the friend grants the frame, the friend establishes a friendship relationship with the second node device according to the friend grant frame, and after entering the sleep state, periodically wakes up from the sleep state according to the target wake-up interval carried in the friend grant frame, for example, when the target When the wake-up interval is 70 minutes, the first node device wakes up every 70 minutes.
  • a second node device includes a plurality of Bluetooth devices as friend nodes
  • the first node device receives a friend grant frame returned from a plurality of friend nodes in the second node device, selecting a friend node from the plurality of friend nodes
  • a friend node including the target wake-up interval may be selected to establish a friendship relationship with the friend node corresponding to the frame.
  • the second node device enters the information that the first node device enters the sleep start buffer destination to reach the first node device, and sends the information to the first node device each time the first node device wakes up.
  • the processing manner of this embodiment includes at least one of the following:
  • the first node device adds information of when it enters a sleep state in the friend request frame when transmitting the friend request frame to the second node device.
  • FIG. 2 is a schematic structural diagram of a sleep notification frame provided by an embodiment of the present application.
  • the sleep notification frame includes a unicast address field and a sleep status field.
  • Add a unicast address in the unicast address field and add a value indicating that the sleep state is entered in the sleep status field.
  • the second node device After receiving the sleep notification frame, the second node device starts to cache the target to reach the first node device. The information, and the interval target wake-up interval, sends the cached information to the first node device.
  • Step 103 After entering the sleep state, the first node device wakes up once at the target wake-up interval, and performs information interaction with the second node device.
  • the manner of information interaction with the second node device each time the first node device wakes up includes the following:
  • the cache information notification frame is sent to the first node device, and the unicast address of the first node device is used in the cache information notification frame, and is used to indicate whether there is a cache.
  • the identification of the information To inform the first node device whether there is cache information. If so, the first node device receives the cache information sent to him by the second node, and if not, re-enters the sleep state.
  • the format of the cache information notification frame may be specifically in the form shown in FIG. 3. In the field of the cache status in FIG. 3, an identifier for indicating whether or not there is cache information is filled in.
  • Figure 3 is merely illustrative and not a unique limitation of the cache information notification frame.
  • the first node device sends a notification message to the second node device to notify the second node device that it has awake from the awake state, and further, the second node device performs the first A similar process is implemented.
  • the embodiment is applicable to the Bluetooth networking.
  • the second node device Before the first node device in the Bluetooth networking enters the sleep state, the second node device is requested to establish a friendship relationship by sending a friend request frame to the second node device, and is in the friend request frame.
  • the minimum awake interval and the maximum awake interval supported by the first node device after entering the sleep state when the first node device receives the friend grant frame returned by the second node device, the first node device establishes a relationship with the second node device.
  • the second node device caches information that the target in the Bluetooth network reaches the first node device, and after the first node device enters the sleep state, according to the second node device
  • the returned friend grants the target wake-up interval carried in the frame, periodically wakes up from the sleep state, and performs information interaction with the second node device each time it wakes up.
  • the second node device can according to the minimum wakeup interval, the maximum wakeup interval, and The capability of the first node to determine the target wake-up interval from the minimum wake-up interval to the maximum wake-up interval, so that the target node wake-up interval is carried in the friend grant frame and sent to the first node device, so that the first node device can According to the target wake-up interval, the user wakes up from the sleep state periodically, and performs information interaction with the second node device, so that the information cached in the second node device can be sent to the first node device in time, thereby improving the Bluetooth networking. Timeliness of information transmission.
  • FIG. 4 is a flowchart of an information transmission method according to an embodiment of the present application. As shown in FIG. 4, on the basis of the embodiment of FIG. 1, the method includes the following steps:
  • Step 401 The first node device sends a friend request frame to the second node device before entering the sleep state, where the friend request frame includes a minimum wake interval, a maximum wake interval, and a first time after the first node device enters a sleep state. a cache timeout period, wherein the first cache timeout period is a maximum storage time of information of the target reaching the first node in the second node that is requested by the first node device to the second node device.
  • Step 402 The first node device receives a friend grant frame returned by the second node device, and establishes a friendship relationship with the second node device, where the friend grant frame includes a target wakeup interval and a second cache timeout. Time, when the information that the target reaches the first node device is stored in the second node device exceeds the second cache timeout period, the second node device deletes the information.
  • Step 403 After entering the sleep state, the first node device wakes up once at the target wake-up interval, and performs information interaction with the second node device.
  • FIG. 5a is a schematic structural diagram of a friend request frame provided by an embodiment of the present application
  • FIG. 5b is a schematic structural diagram of a friend grant frame provided by an embodiment of the present application, as shown in FIG. 5a and FIG. 5b.
  • the friend request frame when the first node device sends the friend request frame to the second node device, the friend request frame includes a minimum wakeup interval, a maximum wakeup interval, and a first cache timeout period, and the second node device is based on the first
  • the field of the evaluation grant frame includes the target wake-up interval and the second cache timeout period, so that the first node device periodically wakes up according to the target wake-up interval, and Notifying the first node device that when the information of the target reaching the first node device is stored in the second node device exceeds the second cache timeout period, the second node device deletes the information.
  • the friend grant frame shown in FIG. 5b further include other fields (not shown in FIG. 5a and FIG. 5b), and the content and structure corresponding to the fields are
  • the content and structure of the data column commonly used in the art are the same, and will not be described in this embodiment for the sake of simplicity.
  • the first cache timeout period and the second cache timeout time may be the same or different.
  • the second cache timeout period is implemented by the second node device according to its own cache capability (the second node device determines its own cache capability and FIG. 1). For example, it is determined that, in some embodiments, when the cache capability of the second node device itself exceeds the first cache timeout period, the second cache timeout period may be set equal to the first cache timeout period.
  • the setting of the second buffer timeout period can also be set according to specific needs, which is not limited in this embodiment.
  • the second cache timeout period is specifically configured as an integer multiple of the target wakeup interval.
  • the first cache timeout time requested by the first node device is an optimal selection, and if the second node device can meet the requirement of the first cache time, the data can be guaranteed to the maximum extent. If the second node device is not satisfied, the second node device can only be used to select the other time. Therefore, in this embodiment, the first cache timeout period is carried in the friend request frame, thereby ensuring that the data is not lost. .
  • the second node device timeouts the cache information in the second cache. The time period is saved. If the first node device recovers from the abnormal cause during the second cache timeout period, the cache information is sent to the first node device, and the cache information is deleted, if the second cache timeout period is reached. Upon arrival, the cache information is still not transmitted to the first node device, and the cache information is deleted.
  • an abnormal power failure such as a sudden power failure or a sleep wakeup process abnormality
  • the embodiment of the present application negotiates the timeout period of the cache information, so that the target arrives at the first node even if the first node device cannot receive the cache information notification frame sent by the second node device due to abnormal conditions such as sudden power failure, abnormal wake-up process, and the like.
  • the information of the device can also be cached in the second node device within the negotiated second cache timeout period. Only when the second cache timeout period arrives, and the first node device still fails to recover from the abnormal cause, The cache information is deleted in the two-node device, thereby improving the reliability of information transmission in the Bluetooth networking.
  • FIG. 6 is a schematic structural diagram of an information transmission apparatus according to an embodiment of the present application. As shown in FIG. 6, the apparatus includes:
  • the first sending module 11 is configured to send a friend request frame to the second node device before the first node device enters a sleep state, where the friend request frame includes a minimum wake-up interval after the first node device enters a sleep state, and Maximum wake-up interval;
  • the first receiving module 12 is configured to receive a friend grant frame returned by the second node device
  • the establishing module 13 is configured to establish a friendship relationship between the first node device and the second node device, so that after the first node device enters the sleep state, the second node device caches a target arrival
  • the waking module 14 is configured to wake up the first node device by the target wake-up interval after the first node device enters the sleep state, so that the first node device and the second node device Perform information interaction.
  • the device further comprises:
  • a second sending module configured to send a sleep notification frame to the second node device when the first node device enters a sleep state, so that the second node device starts to cache the target arrival after receiving the sleep notification frame And the information of the first node device is sent to the first node device by the target wake-up interval.
  • the device further comprises:
  • a second receiving module configured to: when the target wake-up interval arrives, when the first node device wakes up, receive a cache information notification frame sent by the second node device when the target wake-up interval arrives, the cache information
  • the notification frame includes a unicast address of the first node device, and an identifier indicating whether or not there is cache information
  • the third receiving module is configured to receive the cache information when the identifier corresponding to the cached information is included in the cache information notification frame.
  • the information transmission apparatus provided in this embodiment can be used to perform the method of the embodiment of FIG. 1 , and the execution manner and the beneficial effects are similar, and details are not described herein again.
  • the embodiment of the present application further provides an information transmission device, where the friend request frame further includes a first cache timeout period, where the first cache timeout period is the first node device direction.
  • the friend grant frame further includes a second cache timeout period, when the information of the target reaching the first node device is stored in the second node device for more than the second cache timeout period.
  • the second node device deletes the information.
  • the second cache timeout is an integer multiple of the target wakeup interval.
  • the information transmission apparatus provided in this embodiment can be used to perform the method in the embodiment of FIG. 4, and the execution manner and the beneficial effects are similar, and details are not described herein again.
  • An embodiment of the present application further provides an electronic device, including: a processor;
  • Bluetooth component for establishing a Bluetooth network with other Bluetooth devices
  • the processor is configured to execute the computer instructions to cause the electronic device to perform the technical solution of the foregoing method embodiments.
  • the embodiment of the present application further provides a computer readable non-volatile storage medium, including instructions, when the instruction is run on the computer, the computer can implement the technical solution of the foregoing method embodiment.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM).
  • Each functional unit in the embodiment of the present application may be integrated into one processing module, or may be physically existed separately for each unit, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as separate products, may also be stored in a computer readable storage medium.
  • the storage medium mentioned above may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

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

Abstract

An information transmission method and apparatus, a device, and a storage medium. The method comprises: prior to entering a sleep state, a first node device sending a friendship request frame to a second node device, the friendship request frame including a minimum wakeup interval and a maximum wakeup interval after the first node device enters a sleep state (101); the first node device receiving a friendship grant frame returned by the second node device, and establishing a friendship relationship with the second node device, so that after the first node device enters the sleep state, the second node device buffers information concerning a target arriving at the first node device, the friendship grant frame comprising a target wakeup interval, the target wakeup interval being equal to or greater than the minimum wakeup interval and less than or equal to the maximum wakeup interval (102); the first node device, after entering the sleep state, being awakened once at the target wakeup interval, and performing information interaction with the second node device (103). The method can improve the timeliness of information transmission in Bluetooth networking.

Description

信息传输方法、装置、设备及存储介质Information transmission method, device, device and storage medium 技术领域Technical field
本申请实施例涉及通信技术领域,尤其涉及一种信息传输方法、装置、设备及存储介质。The embodiments of the present invention relate to the field of communications technologies, and in particular, to an information transmission method, apparatus, device, and storage medium.
背景技术Background technique
在蓝牙组网的最新规范化的协议中,定义了多点对多点的网络拓扑架构和以广播为基础的信息传递方式,突破了传统蓝牙主从式架构无法实现多点对多点信息传递的限制,易于建立大范围的网络互连架构,相当适应于物联网应用的需求。In the latest standardized protocol of Bluetooth networking, a multi-point to multi-point network topology and a broadcast-based information transmission method are defined, which breaks through the traditional Bluetooth master-slave architecture and cannot achieve multi-point to multi-point information transmission. Restrictions make it easy to build a wide range of network interconnect architectures that are well suited to the needs of IoT applications.
发明内容Summary of the invention
本申请实施例提供一种信息传输方法、装置、设备及存储介质,用以提高蓝牙组网中信息传输的时效性。The embodiment of the present invention provides an information transmission method, device, device, and storage medium, which are used to improve the timeliness of information transmission in a Bluetooth networking.
本申请实施方式提供一种信息传输方法,包括:An embodiment of the present application provides an information transmission method, including:
第一节点设备在进入睡眠状态之前向第二节点设备发送朋友请求帧,所述朋友请求帧中包括所述第一节点设备进入睡眠状态后的最小唤醒间隔和最大唤醒间隔;The first node device sends a friend request frame to the second node device before entering the sleep state, where the friend request frame includes a minimum wake interval and a maximum wake interval after the first node device enters a sleep state;
所述第一节点设备接收所述第二节点设备返回的朋友授予帧,并与所述第二节点设备建立友谊关系,以使在所述第一节点设备进入所述睡眠状态后,所述第二节点设备缓存目标到达所述第一节点设备的信息,其中所述朋友授予帧中包括目标唤醒间隔,所述目标唤醒间隔大于或等于所述最小唤醒间隔,小于或等于所述最大唤醒间隔;Receiving, by the first node device, a friend grant frame returned by the second node device, and establishing a friendship relationship with the second node device, so that after the first node device enters the sleep state, the first node The information of the two-node device cache target reaching the first node device, where the friend grant frame includes a target wake-up interval, where the target wake-up interval is greater than or equal to the minimum wake-up interval, less than or equal to the maximum wake-up interval;
所述第一节点设备在进入所述睡眠状态后,间隔所述目标唤醒间隔唤醒一次,并与所述第二节点设备进行信息交互。After entering the sleep state, the first node device wakes up once at the target wake-up interval, and performs information interaction with the second node device.
在一些实施方式中,所述朋友请求帧中还包括第一缓存超时时间,所述第一缓存超时时间为第一节点设备向第二节点设备请求的,目标到达所述第 一节点的信息在所述第二节点中的最大存储时间。In some implementations, the friend request frame further includes a first cache timeout period, where the first cache timeout time is requested by the first node device to the second node device, and the information that the target reaches the first node is The maximum storage time in the second node.
在一些实施方式中,所述朋友授予帧中还包括第二缓存超时时间,当目标到达所述第一节点设备的信息在所述第二节点设备中存储的时间超过所述第二缓存超时时间时,所述第二节点设备删除所述信息。In some embodiments, the friend grant frame further includes a second cache timeout period, when the information of the target reaching the first node device is stored in the second node device for more than the second cache timeout period. The second node device deletes the information.
在一些实施方式中,所述第二缓存超时时间是所述目标唤醒间隔的整数倍。In some embodiments, the second cache timeout is an integer multiple of the target wakeup interval.
在一些实施方式中,所述方法还包括:In some embodiments, the method further includes:
所述第一节点设备在进入睡眠状态时,向所述第二节点设备发送睡眠通知帧,以使第二节点设备在接收到所述睡眠通知帧后开始缓存目标到达第一节点设备的信息,并间隔所述目标唤醒间隔将缓存的所述信息发送给所述第一节点设备。The first node device sends a sleep notification frame to the second node device when the user enters the sleep state, so that the second node device starts to cache the information of the target reaching the first node device after receiving the sleep notification frame. And transmitting the cached information to the first node device by the target wake-up interval.
在一些实施方式中,所述第一节点设备在进入所述睡眠状态后,间隔所述目标唤醒间隔唤醒一次,并与所述第二节点设备进行信息交互,包括:In some embodiments, after the first node device enters the sleep state, it wakes up once the target wake-up interval, and performs information interaction with the second node device, including:
在所述目标唤醒间隔到达时,所述第一节点设备唤醒,并接收所述第二节点设备在所述目标唤醒间隔到达时发送的缓存信息通知帧,所述缓存信息通知帧包括第一节点设备的单播地址,以及表示有无缓存信息的标识;When the target wake-up interval arrives, the first node device wakes up, and receives a cache information notification frame sent by the second node device when the target wake-up interval arrives, where the cache information notification frame includes the first node. The unicast address of the device and the identifier indicating whether or not there is cache information;
若所述缓存信息通知帧中包括对应于有缓存信息的标识,则所述第一节点设备接收所述缓存信息。And if the cache information notification frame includes an identifier corresponding to the cached information, the first node device receives the cache information.
本申请实施方式提供一种电子设备,包括蓝牙组件、存储器和处理器,其中,所述存储器,存储有计算机指令,所述处理器,配置为执行所述计算机指令以使所述电子设备执行上述第一方面的方法。An embodiment of the present application provides an electronic device including a Bluetooth component, a memory, and a processor, wherein the memory stores computer instructions, and the processor is configured to execute the computer instruction to cause the electronic device to perform the above The method of the first aspect.
本申请实施方式提供一种计算机可读非易失性存储介质,包括指令,当所述指令在所述计算机上运行时,所述计算机可以实现上述第一方面所述的方法。An embodiment of the present application provides a computer readable non-volatile storage medium comprising instructions that, when executed on the computer, implement the method of the first aspect described above.
附图说明DRAWINGS
为了更清楚地说明本申请实施例的技术方案,下面将对实施方式描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性 的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application, Those skilled in the art can also obtain other drawings based on these drawings without paying for creative labor.
图1是本申请实施例提供的一种信息传输方法的流程图;1 is a flowchart of an information transmission method provided by an embodiment of the present application;
图2是本申请实施例提供的一种睡眠通知帧的结构示意图;2 is a schematic structural diagram of a sleep notification frame provided by an embodiment of the present application;
图3是本申请实施例提供的一种缓存信息通知帧的结构示意图;3 is a schematic structural diagram of a cache information notification frame according to an embodiment of the present application;
图4是本申请实施例提供的一种信息传输方法的流程图;4 is a flowchart of an information transmission method according to an embodiment of the present application;
图5a是本申请实施例提供的一种朋友请求帧的结构示意图;FIG. 5 is a schematic structural diagram of a friend request frame according to an embodiment of the present application; FIG.
图5b是本申请实施例提供的一种朋友授予帧的结构示意图;FIG. 5b is a schematic structural diagram of a friend grant frame according to an embodiment of the present application;
图6是本申请实施例提供的一种信息传输装置的结构示意图。FIG. 6 is a schematic structural diagram of an information transmission apparatus according to an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. 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 obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
本申请的说明书和权利要求书的术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤的过程或结构的装置不必限于清楚地列出的那些结构或步骤而是可包括没有清楚地列出的或对于这些过程或装置固有的其它步骤或结构。The terms "comprises" and "comprising" and variations of the claims and the claims of the application are intended to cover a non-exclusive inclusion, for example, a device that comprises a process or structure of a series of steps is not necessarily limited to Those structures or steps may include other steps or structures not explicitly listed or inherent to such processes or devices.
在蓝牙组网的标准中,定义了两种特殊功能的节点:低功耗节点(Low Power node)和朋友节点(Friend node),为了达到省电的功能,低功耗节点在关闭天线接收功能进入睡眠之前,会以特定的流程寻找合适的朋友节点,当双方建立友谊关系(Friendship)之后,朋友节点便会在低功耗节点进入睡眠状态的时间段内,帮忙缓存所有在蓝牙组网内目的地为该低功耗节点的信息,当低功耗节点恢复到正常工作状态时,低功耗节点会再向朋友节点要求传送其帮忙缓存的所有信息,从而达到睡眠省电的需求并保证信息传递的正确性。In the standard of the Bluetooth networking, two special function nodes are defined: a low power node and a Friend node. In order to achieve power saving function, the low power node turns off the antenna receiving function. Before entering sleep, a suitable friend node will be searched for by a specific process. When the two parties establish a friendship relationship, the friend node will help cache all the Bluetooth networks within the time period when the low-power node enters the sleep state. The destination is the information of the low-power node. When the low-power node returns to the normal working state, the low-power node will request all the information of the help cache to the friend node, thereby achieving the requirement of sleep power saving and ensuring The correctness of information transmission.
但是在这样的架构设计中,低功耗节点的唤醒时间不可控,朋友节点缓存的信息何时能够传递到低功耗节点不能够确定,无法确保网络控制信息的时效性。However, in such an architecture design, the wake-up time of the low-power node is uncontrollable, and when the information cached by the friend node can be transmitted to the low-power node cannot be determined, and the timeliness of the network control information cannot be ensured.
本申请实施例提供一种信息传输方法,能够应用于蓝牙组网中。该方法可以由一种信息传输装置来执行。参见图1,图1是本申请实施例提供的一种信息传输方法的流程图,如图1所示,该方法包括如下步骤:The embodiment of the present application provides an information transmission method, which can be applied to a Bluetooth networking. The method can be performed by an information transmission device. Referring to FIG. 1, FIG. 1 is a flowchart of an information transmission method according to an embodiment of the present application. As shown in FIG. 1, the method includes the following steps:
步骤101、第一节点设备在进入睡眠状态之前向第二节点设备发送朋友请求帧,所述朋友请求帧中包括所述第一节点设备进入睡眠状态后的最小唤醒间隔和最大唤醒间隔。Step 101: The first node device sends a friend request frame to the second node device before entering the sleep state, where the friend request frame includes a minimum wake interval and a maximum wake interval after the first node device enters a sleep state.
本实施例涉及的蓝牙组网是指以蓝牙设备为网络节点所构成的无线网格网络,以蓝牙组网为例,本实施例涉及的第一节点设备和第二节点设备可以被具体为包含在蓝牙组网中的蓝牙设备。具体的,第一节点设备可以被具体为蓝牙组网中的低功耗蓝牙设备,第二节点设备可以被具体为在蓝牙组网中充当朋友节点的蓝牙设备。在本实施例中第二节点设备具体可以指代一个作为朋友节点的蓝牙设备,也可以指代多个作为朋友节点的蓝牙设备,即本实施例中所述的第一节点设备在进入睡眠状态之前向第二节点设备发送朋友请求帧,包括:第一节点设备向一个或多个朋友节点发送朋友请求帧。The Bluetooth network in this embodiment refers to a wireless mesh network that uses a Bluetooth device as a network node. The Bluetooth network is used as an example. The first node device and the second node device in this embodiment may be specifically included. Bluetooth device in the Bluetooth network. Specifically, the first node device may be specifically a Bluetooth low energy device in the Bluetooth networking, and the second node device may be specifically a Bluetooth device serving as a friend node in the Bluetooth networking. In this embodiment, the second node device may specifically refer to a Bluetooth device as a friend node, and may also refer to multiple Bluetooth devices as friend nodes, that is, the first node device described in this embodiment enters a sleep state. The sending of the friend request frame to the second node device includes: the first node device transmitting the friend request frame to one or more friend nodes.
本实施例所涉及的朋友请求帧在现有蓝牙组网的朋友请求帧的基础上增加了两个栏位,这两个栏位分别填写的是第一节点设备在进入睡眠状态后所支持的最小唤醒间隔和最大唤醒间隔。比如,最小唤醒间隔为50分钟,最大唤醒间隔为100分钟,表示第一节点设备可以在50-100分钟的区间内唤醒一次。当第二节点设备接收到第一节点设备发送的朋友请求帧时,根据自身缓存能力确定一个位于最小唤醒间隔和最大唤醒间隔之间的时间作为目标唤醒间隔,并将该目标唤醒间隔携带在朋友授予帧中发送给第一节点设备。当然目标唤醒间隔也可以等于最小唤醒间隔或最大唤醒间隔,只要不超出最小唤醒间隔到最大唤醒间隔的范围即可。比如,第二节点设备可以综合考虑最小唤醒间隔、最大唤醒间隔、当前剩余缓存空间,以及已经与其建立友谊关系的低功耗蓝牙设备的数量来最终确定目标唤醒间隔的数值。当然这里仅为示例说明,对于第二节点设备确定目标唤醒间隔的方法本实施例不做具体限定。The friend request frame involved in the embodiment adds two fields on the basis of the friend request frame of the existing Bluetooth network, and the two fields respectively fill in the support of the first node device after entering the sleep state. Minimum wakeup interval and maximum wakeup interval. For example, the minimum wake-up interval is 50 minutes and the maximum wake-up interval is 100 minutes, indicating that the first node device can wake up once in the interval of 50-100 minutes. When the second node device receives the friend request frame sent by the first node device, determining a time between the minimum wake interval and the maximum wake interval as the target wake interval according to the self cache capability, and carrying the target wake interval at the friend The grant frame is sent to the first node device. Of course, the target wake-up interval may also be equal to the minimum wake-up interval or the maximum wake-up interval as long as the minimum wake-up interval to the maximum wake-up interval is not exceeded. For example, the second node device may comprehensively determine the value of the target wake-up interval by considering the minimum wake-up interval, the maximum wake-up interval, the current remaining cache space, and the number of low-power Bluetooth devices with which a friendship relationship has been established. Of course, the method for determining the target wake-up interval for the second node device is not limited in this embodiment.
步骤102、所述第一节点设备接收所述第二节点设备返回的朋友授予帧,并与所述第二节点设备建立友谊关系,以使在所述第一节点设备进入所述睡 眠状态后,所述第二节点设备缓存目标到达所述第一节点设备的信息,其中所述朋友授予帧中包括目标唤醒间隔,所述目标唤醒间隔大于或等于所述最小唤醒间隔,小于或等于所述最大唤醒间隔。Step 102: The first node device receives a friend grant frame returned by the second node device, and establishes a friendship relationship with the second node device, so that after the first node device enters the sleep state, The second node device caches information that the target reaches the first node device, where the friend grant frame includes a target wake-up interval, where the target wake-up interval is greater than or equal to the minimum wake-up interval, less than or equal to the maximum Wake up interval.
由于本实施例中第二节点设备可以包括一个或多个作为朋友节点的蓝牙设备,当第二节点设备只包括一个作为朋友节点的蓝牙设备时,第一节点设备在接收到第二节点设备的朋友授予帧后,根据该朋友授予帧与该第二节点设备建立友谊关系,并在进入睡眠状态后,根据该朋友授予帧中携带的目标唤醒间隔,定期从睡眠状态中唤醒,比如,当目标唤醒间隔为70分钟时,第一节点设备每隔70分钟唤醒一次。当第二节点设备包括多个作为朋友节点的蓝牙设备,且第一节点设备接收到来自第二节点设备中的多个朋友节点返回的朋友授予帧时,从多个朋友节点中选择一个朋友节点建立友谊关系,比如可以选择与最先接收到的朋友授予帧所对应的朋友节点建立友谊关系,当然这里仅为示例说明而不是唯一限定。比如实际中也可以选择包括目标唤醒间隔最大的朋友授予帧所对应的朋友节点建立友谊关系。Since the second node device in the embodiment may include one or more Bluetooth devices as friend nodes, when the second node device includes only one Bluetooth device as a friend node, the first node device receives the second node device. After the friend grants the frame, the friend establishes a friendship relationship with the second node device according to the friend grant frame, and after entering the sleep state, periodically wakes up from the sleep state according to the target wake-up interval carried in the friend grant frame, for example, when the target When the wake-up interval is 70 minutes, the first node device wakes up every 70 minutes. When a second node device includes a plurality of Bluetooth devices as friend nodes, and the first node device receives a friend grant frame returned from a plurality of friend nodes in the second node device, selecting a friend node from the plurality of friend nodes To establish a friendship relationship, for example, you can choose to establish a friendship relationship with the friend node corresponding to the friend frame that was first received, which is of course only an example rather than a unique one. For example, in practice, a friend node including the target wake-up interval may be selected to establish a friendship relationship with the friend node corresponding to the frame.
进一步的,本实施例中第二节点设备从第一节点设备进入睡眠开始缓存目标到达第一节点设备的信息,并在第一节点设备每次唤醒时发送给第一节点设备。Further, in this embodiment, the second node device enters the information that the first node device enters the sleep start buffer destination to reach the first node device, and sends the information to the first node device each time the first node device wakes up.
在一些实施方式中,为了使得第二节点设备能够准确获知第一节点设备何时进入睡眠状态,避免第二节点设备遗漏需要缓存的信息,本实施例的处理方式至少包括如下的任意一种:In some embodiments, in order to enable the second node device to accurately know when the first node device enters the sleep state, and to prevent the second node device from missing the information that needs to be cached, the processing manner of this embodiment includes at least one of the following:
在第一种实施方式中,第一节点设备在向第二节点设备发送朋友请求帧时,在朋友请求帧中添加其何时进入睡眠状态的信息。In a first embodiment, the first node device adds information of when it enters a sleep state in the friend request frame when transmitting the friend request frame to the second node device.
在另一种实施方式中,当第一节点设备进入睡眠状态时,向第二节点设备发送睡眠通知帧,以通知第二节点设备其进入睡眠状态。示例的,图2是本申请实施例提供的一种睡眠通知帧的结构示意图,在该睡眠通知帧中包括单播地址栏位和睡眠状态栏位,当第一节点设备进入睡眠状态时,在单播地址栏位下添加自己的单播地址,在睡眠状态栏位下添加用于表示进入睡眠状态的数值,第二节点设备在收到该睡眠通知帧后,开始缓存目标达到第一节点设备的信息,并间隔目标唤醒间隔将缓存的信息发送给第一节点设备。In another embodiment, when the first node device enters a sleep state, a sleep notification frame is sent to the second node device to notify the second node device that it enters a sleep state. For example, FIG. 2 is a schematic structural diagram of a sleep notification frame provided by an embodiment of the present application. The sleep notification frame includes a unicast address field and a sleep status field. When the first node device enters a sleep state, Add a unicast address in the unicast address field, and add a value indicating that the sleep state is entered in the sleep status field. After receiving the sleep notification frame, the second node device starts to cache the target to reach the first node device. The information, and the interval target wake-up interval, sends the cached information to the first node device.
当然上述两种实施方式仅是为清楚说明而举例说明的两种可行的方式,实际场景中可以不仅是包括上述两种可行的方式。Of course, the above two implementation manners are only two feasible manners exemplified for clear description, and the actual scenario may include not only the above two feasible manners.
步骤103、所述第一节点设备在进入所述睡眠状态后,间隔所述目标唤醒间隔唤醒一次,并与所述第二节点设备进行信息交互。Step 103: After entering the sleep state, the first node device wakes up once at the target wake-up interval, and performs information interaction with the second node device.
在一些实施方式中,第一节点设备每次唤醒时与第二节点设备的信息交互方式包括如下几种:In some embodiments, the manner of information interaction with the second node device each time the first node device wakes up includes the following:
在一种实施方式中,在目标唤醒间隔到达时,主动向第一节点设备发送缓存信息通知帧,并在该缓存信息通知帧中携带第一节点设备的单播地址和用于表示有无缓存信息的标识。以通知第一节点设备是否有缓存信息。若有,则第一节点设备接收第二节点发送给他的缓存信息,若没有,则重新进入睡眠状态。示例的,所述缓存信息通知帧的格式可以被具体为图3所示的形式。图3中缓存状态的栏位下填写用于表示有无缓存信息的标识。当然图3仅为示例说明而不是对缓存信息通知帧的唯一限定。In an implementation manner, when the target wake-up interval arrives, the cache information notification frame is sent to the first node device, and the unicast address of the first node device is used in the cache information notification frame, and is used to indicate whether there is a cache. The identification of the information. To inform the first node device whether there is cache information. If so, the first node device receives the cache information sent to him by the second node, and if not, re-enters the sleep state. For example, the format of the cache information notification frame may be specifically in the form shown in FIG. 3. In the field of the cache status in FIG. 3, an identifier for indicating whether or not there is cache information is filled in. Of course, Figure 3 is merely illustrative and not a unique limitation of the cache information notification frame.
在另一种实施方式中,第一节点设备唤醒后先给第二节点设备发送通知消息,通知第二节点设备其已从唤醒状态中唤醒,进一步的,第二节点设备再执行与上述第一种实施方式相类似的过程。In another implementation manner, the first node device sends a notification message to the second node device to notify the second node device that it has awake from the awake state, and further, the second node device performs the first A similar process is implemented.
本实施例适用于蓝牙组网,蓝牙组网中的第一节点设备进入睡眠状态之前,通过向第二节点设备发送朋友请求帧来请求第二节点设备建立友谊关系,并在该朋友请求帧中携带第一节点设备进入睡眠状态后所支持的最小唤醒间隔和最大唤醒间隔,当第一节点设备接收到第二节点设备返回的朋友授予帧时,第一节点设备建立与第二节点设备之间的友谊关系,以使能够在第一节点设备进入睡眠状态时,第二节点设备缓存蓝牙组网中目标到达第一节点设备的信息,第一节点设备在进入睡眠状态后,根据第二节点设备返回的朋友授予帧中携带的目标唤醒间隔,定期从睡眠状态中唤醒,并在每次唤醒时与第二节点设备进行信息交互。由于第一节点设备在向第二节点设备发送朋友请求帧时携带了其进入睡眠状态后所支持的最小唤醒间隔和最大唤醒间隔,使得第二节点设备能够根据该最小唤醒间隔、最大唤醒间隔以及自身的能力,确定位于所述最小唤醒间隔到所述最大唤醒间隔范围内的目标唤醒间隔,从而通过将该目标唤醒间隔携带在朋友授予帧中发送给第一节点设备,使得第 一节点设备能够根据该目标唤醒间隔,定期从睡眠状态中唤醒,并与第二节点设备进行信息交互,使得在第二节点设备中缓存的信息能够及时的发送给第一节点设备,从而提高了蓝牙组网中信息传输的时效性。The embodiment is applicable to the Bluetooth networking. Before the first node device in the Bluetooth networking enters the sleep state, the second node device is requested to establish a friendship relationship by sending a friend request frame to the second node device, and is in the friend request frame. The minimum awake interval and the maximum awake interval supported by the first node device after entering the sleep state, when the first node device receives the friend grant frame returned by the second node device, the first node device establishes a relationship with the second node device. a friendship relationship, so that when the first node device enters a sleep state, the second node device caches information that the target in the Bluetooth network reaches the first node device, and after the first node device enters the sleep state, according to the second node device The returned friend grants the target wake-up interval carried in the frame, periodically wakes up from the sleep state, and performs information interaction with the second node device each time it wakes up. Since the first node device carries the minimum wakeup interval and the maximum wakeup interval supported by the first node device after sending the friend request frame to the second node device, the second node device can according to the minimum wakeup interval, the maximum wakeup interval, and The capability of the first node to determine the target wake-up interval from the minimum wake-up interval to the maximum wake-up interval, so that the target node wake-up interval is carried in the friend grant frame and sent to the first node device, so that the first node device can According to the target wake-up interval, the user wakes up from the sleep state periodically, and performs information interaction with the second node device, so that the information cached in the second node device can be sent to the first node device in time, thereby improving the Bluetooth networking. Timeliness of information transmission.
图4是本申请实施例提供的一种信息传输方法的流程图,如图4所示,在图1实施例的基础上,该方法包括如下步骤:FIG. 4 is a flowchart of an information transmission method according to an embodiment of the present application. As shown in FIG. 4, on the basis of the embodiment of FIG. 1, the method includes the following steps:
步骤401、第一节点设备在进入睡眠状态之前向第二节点设备发送朋友请求帧,所述朋友请求帧中包括所述第一节点设备进入睡眠状态后的最小唤醒间隔、最大唤醒间隔,以及第一缓存超时时间,其中,所述第一缓存超时时间为第一节点设备向第二节点设备请求的,目标到达所述第一节点的信息在所述第二节点中的最大存储时间。Step 401: The first node device sends a friend request frame to the second node device before entering the sleep state, where the friend request frame includes a minimum wake interval, a maximum wake interval, and a first time after the first node device enters a sleep state. a cache timeout period, wherein the first cache timeout period is a maximum storage time of information of the target reaching the first node in the second node that is requested by the first node device to the second node device.
步骤402、所述第一节点设备接收所述第二节点设备返回的朋友授予帧,并与所述第二节点设备建立友谊关系,其中所述朋友授予帧中包括目标唤醒间隔和第二缓存超时时间,当目标到达所述第一节点设备的信息在所述第二节点设备中存储的时间超过所述第二缓存超时时间时,所述第二节点设备删除所述信息。Step 402: The first node device receives a friend grant frame returned by the second node device, and establishes a friendship relationship with the second node device, where the friend grant frame includes a target wakeup interval and a second cache timeout. Time, when the information that the target reaches the first node device is stored in the second node device exceeds the second cache timeout period, the second node device deletes the information.
步骤403、所述第一节点设备在进入所述睡眠状态后,间隔所述目标唤醒间隔唤醒一次,并与所述第二节点设备进行信息交互。Step 403: After entering the sleep state, the first node device wakes up once at the target wake-up interval, and performs information interaction with the second node device.
示例的,图5a是本申请实施例提供的一种朋友请求帧的结构示意图,图5b是本申请实施例提供的一种朋友授予帧的结构示意图,如图5a和图5b所示,本实施例中第一节点设备在向第二节点设备发送朋友请求帧时,该朋友请求帧中包括最小唤醒间隔、最大唤醒间隔,以及第一缓存超时时间的栏位,第二节点设备在基于第一节点设备的朋友请求帧向第一节点设备发送朋友授予帧时,该评优授予帧中包括目标唤醒间隔和第二缓存超时时间的栏位,使得第一节点设备根据目标唤醒间隔定期唤醒,并且通知第一节点设备,当目标到达第一节点设备的信息在第二节点设备中存储的时间超过第二缓存超时时间时,第二节点设备删除所述信息。其中,在图5a所示的朋友请求帧,以及图5b所示的朋友授予帧中还包括其他栏位(在图5a和图5b中没有示出),该些栏位对应的内容和结构与本领域常用的数据栏的内容和结构相同,为了 叙述简便,本实施例中不再叙述。For example, FIG. 5a is a schematic structural diagram of a friend request frame provided by an embodiment of the present application, and FIG. 5b is a schematic structural diagram of a friend grant frame provided by an embodiment of the present application, as shown in FIG. 5a and FIG. 5b. In the example, when the first node device sends the friend request frame to the second node device, the friend request frame includes a minimum wakeup interval, a maximum wakeup interval, and a first cache timeout period, and the second node device is based on the first When the friend request frame of the node device sends the friend grant frame to the first node device, the field of the evaluation grant frame includes the target wake-up interval and the second cache timeout period, so that the first node device periodically wakes up according to the target wake-up interval, and Notifying the first node device that when the information of the target reaching the first node device is stored in the second node device exceeds the second cache timeout period, the second node device deletes the information. Wherein, the friend request frame shown in FIG. 5a and the friend grant frame shown in FIG. 5b further include other fields (not shown in FIG. 5a and FIG. 5b), and the content and structure corresponding to the fields are The content and structure of the data column commonly used in the art are the same, and will not be described in this embodiment for the sake of simplicity.
本实施例中第一缓存超时时间与第二缓存超时时间可能相同也可能不同,第二缓存超时时间是第二节点设备根据自身缓存能力(第二节点设备判断自身缓存能力的方式与图1实施例类似)确定的,在一些实施例中,当第二节点设备自身的缓存能力超过第一缓存超时时间时,可以设置第二缓存超时时间等于第一缓存超时时间。当然,第二缓存超时时间的设定也可以根据具体需要来进行设定,本实施例不做限定。本实施例中,第二缓存超时时间具体被配置为目标唤醒间隔的整数倍。In this embodiment, the first cache timeout period and the second cache timeout time may be the same or different. The second cache timeout period is implemented by the second node device according to its own cache capability (the second node device determines its own cache capability and FIG. 1). For example, it is determined that, in some embodiments, when the cache capability of the second node device itself exceeds the first cache timeout period, the second cache timeout period may be set equal to the first cache timeout period. Of course, the setting of the second buffer timeout period can also be set according to specific needs, which is not limited in this embodiment. In this embodiment, the second cache timeout period is specifically configured as an integer multiple of the target wakeup interval.
另外,对于第一节点设备而言,一般来说其请求的第一缓存超时时间对其是最优的选择,若第二节点设备能够满足第一缓存时间的要求,则能最大程度的保证数据不丢失,若第二节点设备不能满足,只能退而求其次,选择其他时间,因此,本实施例通过在朋友请求帧携带第一缓存超时时间,能够起到最大限度保证数据不丢失的作用。In addition, for the first node device, generally, the first cache timeout time requested by the first node device is an optimal selection, and if the second node device can meet the requirement of the first cache time, the data can be guaranteed to the maximum extent. If the second node device is not satisfied, the second node device can only be used to select the other time. Therefore, in this embodiment, the first cache timeout period is carried in the friend request frame, thereby ensuring that the data is not lost. .
实际场景中,当第一节点设备因为突然断电,睡眠唤醒流程异常等异常原因而无法接收第二节点设备发送的缓存信息通知帧时,第二节点设备对该些缓存信息在第二缓存超时时间内予以保存,在第二缓存超时时间内,若第一节点设备从异常原因中恢复,则将该些缓存信息发送给第一节点设备后删除该些缓存信息,若直到第二缓存超时时间到达,该些缓存信息仍旧不能被传输至第一节点设备,则删除该些缓存信息。In the actual scenario, when the first node device cannot receive the cache information notification frame sent by the second node device due to an abnormal power failure such as a sudden power failure or a sleep wakeup process abnormality, the second node device timeouts the cache information in the second cache. The time period is saved. If the first node device recovers from the abnormal cause during the second cache timeout period, the cache information is sent to the first node device, and the cache information is deleted, if the second cache timeout period is reached. Upon arrival, the cache information is still not transmitted to the first node device, and the cache information is deleted.
本申请实施例通过协商缓存信息的超时时间,使得即使第一节点设备因为突然断电,睡眠唤醒流程异常等异常原因而无法接收第二节点设备发送的缓存信息通知帧时,目标到达第一节点设备的信息也能够在协商确定的第二缓存超时时间内完好的缓存在第二节点设备中,只有第二缓存超时时间到达,且第一节点设备仍旧未从异常原因中恢复时,才从第二节点设备中删除该些缓存信息,从而提高了蓝牙组网中信息传输的可靠性。The embodiment of the present application negotiates the timeout period of the cache information, so that the target arrives at the first node even if the first node device cannot receive the cache information notification frame sent by the second node device due to abnormal conditions such as sudden power failure, abnormal wake-up process, and the like. The information of the device can also be cached in the second node device within the negotiated second cache timeout period. Only when the second cache timeout period arrives, and the first node device still fails to recover from the abnormal cause, The cache information is deleted in the two-node device, thereby improving the reliability of information transmission in the Bluetooth networking.
图6是本申请实施例提供的一种信息传输装置的结构示意图,如图6所示,该装置包括:FIG. 6 is a schematic structural diagram of an information transmission apparatus according to an embodiment of the present application. As shown in FIG. 6, the apparatus includes:
第一发送模块11,用于在第一节点设备在进入睡眠状态之前向第二节点 设备发送朋友请求帧,所述朋友请求帧中包括所述第一节点设备进入睡眠状态后的最小唤醒间隔和最大唤醒间隔;The first sending module 11 is configured to send a friend request frame to the second node device before the first node device enters a sleep state, where the friend request frame includes a minimum wake-up interval after the first node device enters a sleep state, and Maximum wake-up interval;
第一接收模块12,用于接收所述第二节点设备返回的朋友授予帧;The first receiving module 12 is configured to receive a friend grant frame returned by the second node device;
建立模块13,用于建立所述第一节点设备与所述第二节点设备建立友谊关系,以使在所述第一节点设备进行入所述睡眠状态后,所述第二节点设备缓存目标到达所述第一节点设备的信息,其中所述朋友授予帧中包括目标唤醒间隔,所述目标唤醒间隔大于或等于所述最小唤醒间隔,小于或等于所述最大唤醒间隔;The establishing module 13 is configured to establish a friendship relationship between the first node device and the second node device, so that after the first node device enters the sleep state, the second node device caches a target arrival The information of the first node device, where the friend grant frame includes a target wake-up interval, where the target wake-up interval is greater than or equal to the minimum wake-up interval, less than or equal to the maximum wake-up interval;
唤醒模块14,用于在所述第一节点设备进入所述睡眠状态后,间隔所述目标唤醒间隔唤醒一次所述第一节点设备,以使所述第一节点设备与所述第二节点设备进行信息交互。The waking module 14 is configured to wake up the first node device by the target wake-up interval after the first node device enters the sleep state, so that the first node device and the second node device Perform information interaction.
在一些实施方式中,所述装置还包括:In some embodiments, the device further comprises:
第二发送模块,用于在所述第一节点设备进入睡眠状态时,向所述第二节点设备发送睡眠通知帧,以使第二节点设备在接收到所述睡眠通知帧后开始缓存目标到达第一节点设备的信息,并间隔所述目标唤醒间隔将缓存的所述信息发送给所述第一节点设备。a second sending module, configured to send a sleep notification frame to the second node device when the first node device enters a sleep state, so that the second node device starts to cache the target arrival after receiving the sleep notification frame And the information of the first node device is sent to the first node device by the target wake-up interval.
在一些实施方式中,所述装置还包括:In some embodiments, the device further comprises:
第二接收模块,用于在所述目标唤醒间隔到达,所述第一节点设备唤醒时,接收所述第二节点设备在所述目标唤醒间隔到达时发送的缓存信息通知帧,所述缓存信息通知帧包括第一节点设备的单播地址,以及表示有无缓存信息的标识;a second receiving module, configured to: when the target wake-up interval arrives, when the first node device wakes up, receive a cache information notification frame sent by the second node device when the target wake-up interval arrives, the cache information The notification frame includes a unicast address of the first node device, and an identifier indicating whether or not there is cache information;
第三接收模块,用于在所述缓存信息通知帧中包括对应于有缓存信息的标识时,接收所述缓存信息。The third receiving module is configured to receive the cache information when the identifier corresponding to the cached information is included in the cache information notification frame.
本实施例提供的信息传输装置能够用于执行图1实施例的方法,其执行方式和有益效果类似,在这里不再赘述。The information transmission apparatus provided in this embodiment can be used to perform the method of the embodiment of FIG. 1 , and the execution manner and the beneficial effects are similar, and details are not described herein again.
本申请实施例还提供一种信息传输装置,该装置在图6实施例的基础上,所述朋友请求帧中还包括第一缓存超时时间,所述第一缓存超时时间为第一节点设备向第二节点设备请求的,目标到达所述第一节点的信息在所述第二 节点中的最大存储时间。The embodiment of the present application further provides an information transmission device, where the friend request frame further includes a first cache timeout period, where the first cache timeout period is the first node device direction. The maximum storage time of the information of the target reaching the first node in the second node requested by the second node device.
在一些实施方式中,所述朋友授予帧中还包括第二缓存超时时间,当目标到达所述第一节点设备的信息在所述第二节点设备中存储的时间超过所述第二缓存超时时间时,所述第二节点设备删除所述信息。In some embodiments, the friend grant frame further includes a second cache timeout period, when the information of the target reaching the first node device is stored in the second node device for more than the second cache timeout period. The second node device deletes the information.
在一些实施方式中,所述第二缓存超时时间是所述目标唤醒间隔的整数倍。In some embodiments, the second cache timeout is an integer multiple of the target wakeup interval.
本实施例提供的信息传输装置能够用于执行图4实施例的方法,其执行方式和有益效果类似,在这里不再赘述。The information transmission apparatus provided in this embodiment can be used to perform the method in the embodiment of FIG. 4, and the execution manner and the beneficial effects are similar, and details are not described herein again.
本申请实施例还提供一种电子设备,包括:处理器;An embodiment of the present application further provides an electronic device, including: a processor;
蓝牙组件,用于与其他蓝牙设备建立蓝牙网络;Bluetooth component for establishing a Bluetooth network with other Bluetooth devices;
存储器,存储有计算机指令令;a memory, stored with a computer command;
所述处理器,配置为执行所述计算机指令以使所述电子设备执行上述方法实施例的技术方案。The processor is configured to execute the computer instructions to cause the electronic device to perform the technical solution of the foregoing method embodiments.
本申请实施例还提供一种计算机可读非易失性存储介质,包括指令,当所述指令在所述计算机上运行时,所述计算机可以实现上述方法实施例的技术方案。The embodiment of the present application further provides a computer readable non-volatile storage medium, including instructions, when the instruction is run on the computer, the computer can implement the technical solution of the foregoing method embodiment.
最后需要说明的是,本领域普通技术人员可以理解上述实施例方法中的全部或者部分流程,是可以通过计算机程序来指令相关的硬件完成,所述的程序可存储于一计算机可读存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可以为磁盘、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。Finally, it should be understood that those skilled in the art can understand that all or part of the processes in the above embodiment methods can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. The program, when executed, may include the flow of an embodiment of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM).
本申请实施例中的各个功能单元可以集成在一个处理模块中,也可以是各个单元单独的物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现,并作为独立的产品销售或使用时,也可以存储在一个计算机可读存储介质中。上述提到的存 储介质可以是只读存储器、磁盘或光盘等。Each functional unit in the embodiment of the present application may be integrated into one processing module, or may be physically existed separately for each unit, or two or more units may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated modules, if implemented in the form of software functional modules and sold or used as separate products, may also be stored in a computer readable storage medium. The storage medium mentioned above may be a read only memory, a magnetic disk or an optical disk or the like.
以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。The above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that they can still implement the foregoing embodiments. The technical solutions described in the examples are modified, or some or all of the technical features are equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present application.

Claims (8)

  1. 一种信息传输方法,其特征在于,包括:An information transmission method, comprising:
    第一节点设备在进入睡眠状态之前向第二节点设备发送朋友请求帧,所述朋友请求帧中包括所述第一节点设备进入睡眠状态后的最小唤醒间隔和最大唤醒间隔;The first node device sends a friend request frame to the second node device before entering the sleep state, where the friend request frame includes a minimum wake interval and a maximum wake interval after the first node device enters a sleep state;
    所述第一节点设备接收所述第二节点设备返回的朋友授予帧,并与所述第二节点设备建立友谊关系,以使在所述第一节点设备进入所述睡眠状态后,所述第二节点设备缓存目标到达所述第一节点设备的信息,其中所述朋友授予帧中包括目标唤醒间隔,所述目标唤醒间隔大于或等于所述最小唤醒间隔,小于或等于所述最大唤醒间隔;Receiving, by the first node device, a friend grant frame returned by the second node device, and establishing a friendship relationship with the second node device, so that after the first node device enters the sleep state, the first node The information of the two-node device cache target reaching the first node device, where the friend grant frame includes a target wake-up interval, where the target wake-up interval is greater than or equal to the minimum wake-up interval, less than or equal to the maximum wake-up interval;
    所述第一节点设备在进入所述睡眠状态后,间隔所述目标唤醒间隔唤醒一次,并与所述第二节点设备进行信息交互。After entering the sleep state, the first node device wakes up once at the target wake-up interval, and performs information interaction with the second node device.
  2. 根据权利要求1所述的方法,其特征在于,所述朋友请求帧中还包括第一缓存超时时间,所述第一缓存超时时间为第一节点设备向第二节点设备请求的,目标到达所述第一节点的信息在所述第二节点中的最大存储时间。The method according to claim 1, wherein the friend request frame further includes a first cache timeout period, where the first cache timeout time is requested by the first node device to the second node device. The maximum storage time of the information of the first node in the second node.
  3. 根据权利要求1所述的方法,其特征在于,所述朋友授予帧中还包括第二缓存超时时间,当目标到达所述第一节点设备的信息在所述第二节点设备中存储的时间超过所述第二缓存超时时间时,所述第二节点设备删除所述信息。The method according to claim 1, wherein the friend grant frame further includes a second cache timeout period, when the information of the target reaching the first node device is stored in the second node device for more than The second node device deletes the information when the second cache timeout period.
  4. 根据权利要求要求3所述的方法,其特征在于,所述第二缓存超时时间是所述目标唤醒间隔的整数倍。The method of claim 3 wherein said second cache timeout is an integer multiple of said target wakeup interval.
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 4, wherein the method further comprises:
    所述第一节点设备在进入睡眠状态时,向所述第二节点设备发送睡眠通知帧,以使第二节点设备在接收到所述睡眠通知帧后开始缓存目标到达第一节点设备的信息,并间隔所述目标唤醒间隔将缓存的所述信息发送给所述第一节点设备。The first node device sends a sleep notification frame to the second node device when the user enters the sleep state, so that the second node device starts to cache the information of the target reaching the first node device after receiving the sleep notification frame. And transmitting the cached information to the first node device by the target wake-up interval.
  6. 根据权利要求5所述的方法,其特征在于,所述第一节点设备在进入所述睡眠状态后,间隔所述目标唤醒间隔唤醒一次,并与所述第二节点设备进 行信息交互,包括:The method according to claim 5, wherein the first node device wakes up once the target wake-up interval after entering the sleep state, and performs information interaction with the second node device, including:
    在所述目标唤醒间隔到达时,所述第一节点设备唤醒,并接收所述第二节点设备在所述目标唤醒间隔到达时发送的缓存信息通知帧,所述缓存信息通知帧包括第一节点设备的单播地址,以及表示有无缓存信息的标识;When the target wake-up interval arrives, the first node device wakes up, and receives a cache information notification frame sent by the second node device when the target wake-up interval arrives, where the cache information notification frame includes the first node. The unicast address of the device and the identifier indicating whether or not there is cache information;
    若所述缓存信息通知帧中包括对应于有缓存信息的标识,则所述第一节点设备接收所述缓存信息。And if the cache information notification frame includes an identifier corresponding to the cached information, the first node device receives the cache information.
  7. 一种电子设备,包括蓝牙组件、存储器和处理器,其中,An electronic device includes a Bluetooth component, a memory, and a processor, wherein
    所述存储器,存储有计算机指令,The memory stores computer instructions,
    所述处理器,配置为执行所述计算机指令以使所述电子设备执行上述权利要求1-6中任一项所述的方法。The processor, configured to execute the computer instructions to cause the electronic device to perform the method of any of the preceding claims 1-6.
  8. 一种计算机可读非易失性存储介质,包括指令,当所述指令在所述计算机上运行时,所述计算机可以实现上述权利要求1-6中任一项所述的方法。A computer readable non-volatile storage medium comprising instructions which, when executed on the computer, can implement the method of any of the preceding claims 1-6.
PCT/CN2018/120721 2018-03-29 2018-12-12 Information transmission method and apparatus, device and storage medium WO2019184455A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810272506.6A CN108551668B (en) 2018-03-29 2018-03-29 Information transmission method, device, equipment and storage medium
CN201810272506.6 2018-03-29

Publications (1)

Publication Number Publication Date
WO2019184455A1 true WO2019184455A1 (en) 2019-10-03

Family

ID=63517379

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/120721 WO2019184455A1 (en) 2018-03-29 2018-12-12 Information transmission method and apparatus, device and storage medium

Country Status (2)

Country Link
CN (1) CN108551668B (en)
WO (1) WO2019184455A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108551668B (en) * 2018-03-29 2020-06-09 海信视像科技股份有限公司 Information transmission method, device, equipment and storage medium
WO2021011947A1 (en) * 2019-07-16 2021-01-21 Qualcomm Incorporated Directed forwarding information sharing between devices in a mesh network
CN111385860B (en) * 2020-03-10 2023-03-24 南通大学 Message priority based Bluetooth Mesh low-power consumption node on-demand awakening method
CN113411790A (en) * 2020-03-16 2021-09-17 瑞昱半导体股份有限公司 Low-power-consumption Bluetooth mesh network system and communication method thereof
CN112188451A (en) * 2020-11-10 2021-01-05 北京百瑞互联技术有限公司 Dormancy awakening method, device and medium for Bluetooth mesh low-power-consumption node
CN112511992A (en) * 2020-12-14 2021-03-16 北京百瑞互联技术有限公司 Method, device and medium for data interaction after dormancy awakening of Bluetooth MESH low-power-consumption node

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090010190A1 (en) * 2007-07-03 2009-01-08 Cisco Technology, Inc. Path Selection and Power Management in Mesh Networks
CN103024822A (en) * 2012-12-27 2013-04-03 中国科学院微电子研究所 Device and method for node synergy
CN106658365A (en) * 2016-11-18 2017-05-10 青岛海信移动通信技术股份有限公司 Communication method and apparatus based on low-loss Bluetooth protocol
CN106658686A (en) * 2016-12-30 2017-05-10 广东欧珀移动通信有限公司 Data forwarding method and access device
CN108551668A (en) * 2018-03-29 2018-09-18 青岛海信电器股份有限公司 Information transferring method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101395844A (en) * 2006-03-03 2009-03-25 高通股份有限公司 Standby time improvements for stations in a wireless network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090010190A1 (en) * 2007-07-03 2009-01-08 Cisco Technology, Inc. Path Selection and Power Management in Mesh Networks
CN103024822A (en) * 2012-12-27 2013-04-03 中国科学院微电子研究所 Device and method for node synergy
CN106658365A (en) * 2016-11-18 2017-05-10 青岛海信移动通信技术股份有限公司 Communication method and apparatus based on low-loss Bluetooth protocol
CN106658686A (en) * 2016-12-30 2017-05-10 广东欧珀移动通信有限公司 Data forwarding method and access device
CN108551668A (en) * 2018-03-29 2018-09-18 青岛海信电器股份有限公司 Information transferring method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN108551668A (en) 2018-09-18
CN108551668B (en) 2020-06-09

Similar Documents

Publication Publication Date Title
WO2019184455A1 (en) Information transmission method and apparatus, device and storage medium
US9185655B2 (en) Dynamic power mode switch in a wireless ad-hoc system
WO2016106730A1 (en) Sleeping and awakening method and apparatus for master-slave network, and power-saving system for master-slave network
US20160174148A1 (en) Neighbor discovery to support sleepy nodes
US20110029659A1 (en) Method and System for Network Proxy Services for Energy Efficient Networking
US9980207B2 (en) Delayed response to requesting device
JP6226348B2 (en) Method for transmitting heartbeat message and portable terminal
US9584411B2 (en) Power save mechanism for low-power network devices
US10326613B2 (en) Method and system for processing spanning tree protocol (STP) state in a multichassis link aggregation (MLAG) domain
WO2015061957A1 (en) Service agent method, modem, and terminal
JPWO2011129086A1 (en) Communication terminal and communication method
JP7410145B2 (en) System and method for neighbor node discovery in a network
CN103906207A (en) Wireless sensor network data transmission method based on self-adaptation required awakening technology
CN105847420A (en) OPC UA sleep proxy method suitable for wireless on-site device
US11115169B2 (en) Parent node device, terminal device for wireless network and data transmission method thereof
WO2012062116A1 (en) Micro power consumption wireless communication network system and implementing method thereof
BR102012028349B1 (en) METHOD TO MANAGE MOBILE RADIO RESOURCES TO IMPROVE PACKAGE RECEPTION
US9480015B2 (en) Balancing quality of service and power saving in a direct communication link environment
CN103973466B (en) A kind of method and device waking up suspend mode link
CN104954148A (en) Control method and device of node equipment and router
TWI763136B (en) Methods for multidrop network system
KR20160130622A (en) Method for processing command in low power sensor network
US10027495B2 (en) Idle scheduling method and home network node
US20190200291A1 (en) Reducing power consumption in computing devices with wireless network interfaces

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18912532

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18912532

Country of ref document: EP

Kind code of ref document: A1