WO2019101153A1 - 基于蓝牙网格协议的户外通信方法、移动终端及存储介质 - Google Patents

基于蓝牙网格协议的户外通信方法、移动终端及存储介质 Download PDF

Info

Publication number
WO2019101153A1
WO2019101153A1 PCT/CN2018/117095 CN2018117095W WO2019101153A1 WO 2019101153 A1 WO2019101153 A1 WO 2019101153A1 CN 2018117095 W CN2018117095 W CN 2018117095W WO 2019101153 A1 WO2019101153 A1 WO 2019101153A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
node
data packet
bluetooth
bluetooth mesh
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.)
Ceased
Application number
PCT/CN2018/117095
Other languages
English (en)
French (fr)
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.)
JRD Communication Shenzhen Ltd
Original Assignee
JRD Communication Shenzhen Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by JRD Communication Shenzhen Ltd filed Critical JRD Communication Shenzhen Ltd
Publication of WO2019101153A1 publication Critical patent/WO2019101153A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • 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 present invention relates to the field of mobile terminal technologies, and in particular, to an outdoor communication method, a mobile terminal, and a storage medium based on a Bluetooth mesh protocol.
  • Embodiments of the present invention provide an outdoor communication method, a mobile terminal, and a storage medium based on a Bluetooth mesh protocol, which are designed to automatically set a message format based on a Bluetooth Grid protocol of a mobile terminal, and automatically set up a network by means of broadcast and scanning.
  • the problem of communication between users in a harsh outdoor environment is convenient to carry and reduce power consumption, which brings convenience to the user.
  • an embodiment of the present invention provides an outdoor communication method based on a Bluetooth mesh protocol, where the method includes:
  • Bluetooth mesh network is automatically formed, and a node type corresponding to each mobile terminal in the Bluetooth mesh network is determined;
  • the receiving end After receiving and acquiring the message data packet, the receiving end performs message early warning processing and distance determination processing to complete information interaction of multiple mobile terminals.
  • the Bluetooth communication protocol-based outdoor communication method wherein the node type comprises: a common node, a relay node, a partner node, and a low power consumption node.
  • the Bluetooth communication protocol-based outdoor communication method wherein the message data packet is message data of a custom operation code field, the message data packet includes: a content field of the operation code, and a word of the operation code The section length field, the content field of the packet, and the byte length field of the packet.
  • the Bluetooth communication protocol-based outdoor communication method wherein the content of the operation code comprises a latitude and longitude value field, a Chinese-English message field, and an emergency call message field.
  • the Bluetooth communication protocol-based outdoor communication method wherein the receiving end receives and acquires the message data packet, and performs message early warning processing and distance determination processing, and completing information interaction of the plurality of mobile terminals includes:
  • the node at the receiving end stores the GPS latitude and longitude information of the transmitting end, and updates in real time;
  • the first distance between the self node and the nearest node is calculated, and the first distance is compared with a preset threshold to determine whether there is a risk of leaving the team.
  • the outdoor communication method based on the Bluetooth Grid protocol, wherein the comparing the first distance with the preset threshold, determining whether there is a risk of leaving the team specifically includes:
  • the mobile terminal When it is determined that there is a risk of leaving the team, the mobile terminal issues a warning signal.
  • the Bluetooth communication protocol-based outdoor communication method wherein the receiving end receives and acquires the message data packet, performs message early warning processing and distance determination processing, and completes information interaction of multiple mobile terminals.
  • the receiving end receives and acquires the message data packet, performs message early warning processing and distance determination processing, and completes information interaction of multiple mobile terminals.
  • the node at the receiving end views or replies to the corresponding message.
  • the Bluetooth communication protocol-based outdoor communication method wherein the receiving end receives and acquires the message data packet, performs message early warning processing and distance determination processing, and completes information interaction of multiple mobile terminals.
  • the receiving end receives and acquires the message data packet, performs message early warning processing and distance determination processing, and completes information interaction of multiple mobile terminals.
  • the node at the receiving end receives an emergency call signal for prompting the rescue.
  • an embodiment of the present invention provides a mobile terminal, including a Bluetooth, a processor, and a memory connected to the processor, where the memory stores a program of an outdoor communication method based on a Bluetooth mesh protocol, where the The program of the outdoor communication method of the Bluetooth mesh protocol is executed by the processor for implementing the following steps:
  • Bluetooth mesh network is automatically formed, and a node type corresponding to each mobile terminal in the Bluetooth mesh network is determined;
  • the receiving end After receiving and acquiring the message data packet, the receiving end performs message early warning processing and distance determination processing to complete information interaction of multiple mobile terminals.
  • the step of automatically forming a Bluetooth mesh network includes:
  • the broadcast will be broadcasted through the broadcast bearer mode, and the device will be activated without being activated.
  • the Bluetooth mesh protocol will be activated and the Bluetooth mesh protocol defines the PDU broadcast signaling. Then, an invitation is sent to the activated mobile terminal, and the activated mobile terminal replies and obtains the unicast address after successfully obtaining the network ID and the successful authentication, and then automatically joins the Bluetooth mesh network and becomes a node.
  • the receiving end receives and acquires the message data packet, performing the message alert processing and the distance determining process, and completing the information interaction of the multiple mobile terminals, including:
  • the node at the receiving end stores the GPS latitude and longitude information of the transmitting end, and updates in real time;
  • the first distance between the self node and the nearest node is calculated, and the first distance is compared with a preset threshold to determine whether there is a risk of leaving the team.
  • the mobile terminal When it is determined that there is a risk of leaving the team, the mobile terminal issues a warning signal.
  • the receiving end receives and acquires the message data packet, performing the message warning processing and the distance determining process, and completing the information interaction of the multiple mobile terminals, including:
  • the node at the receiving end views or replies to the corresponding message.
  • the receiving end receives and acquires the message data packet, performs message early warning processing and distance determination processing, and completes information interaction of multiple mobile terminals, including:
  • the node at the receiving end receives an emergency call signal for prompting the rescue.
  • an embodiment of the present invention provides a storage medium, where the storage medium stores a program of an outdoor communication method based on a Bluetooth mesh protocol, and the program of the outdoor communication method based on the Bluetooth mesh protocol is processed by a processor. Execution is used to implement the following steps:
  • Bluetooth mesh network is automatically formed, and a node type corresponding to each mobile terminal in the Bluetooth mesh network is determined;
  • the receiving end After receiving and acquiring the message data packet, the receiving end performs message early warning processing and distance determination processing to complete information interaction of multiple mobile terminals.
  • the step of automatically forming a Bluetooth mesh network includes:
  • the broadcast will be broadcasted through the broadcast bearer mode, and the device will be activated without being activated.
  • the Bluetooth mesh protocol will be activated and the Bluetooth mesh protocol defines the PDU broadcast signaling. Then, an invitation is sent to the activated mobile terminal, and the activated mobile terminal replies and obtains the unicast address after successfully obtaining the network ID and the successful authentication, and then automatically joins the Bluetooth mesh network and becomes a node.
  • the storage medium After the receiving end receives and acquires the message data packet, performing the message warning processing and the distance determining process, and completing the information interaction of the multiple mobile terminals, including:
  • the node at the receiving end stores the GPS latitude and longitude information of the transmitting end, and updates in real time;
  • the first distance between the self node and the nearest node is calculated, and the first distance is compared with a preset threshold to determine whether there is a risk of leaving the team.
  • the mobile terminal When it is determined that there is a risk of leaving the team, the mobile terminal issues a warning signal.
  • the storage medium After the receiving end receives and acquires the message data packet, performing the message warning processing and the distance determining process, and completing the information interaction of the multiple mobile terminals, including:
  • the node at the receiving end views or replies to the corresponding message.
  • the receiving end receives and acquires the message data packet, and performs a message alert processing and a distance determining process to complete information interaction of multiple mobile terminals, including:
  • the node at the receiving end receives an emergency call signal for prompting the rescue.
  • the invention discloses an outdoor communication method, a mobile terminal and a storage medium based on a Bluetooth mesh protocol, the method comprising: automatically setting up a Bluetooth mesh network when simultaneously opening Bluetooth of a plurality of mobile terminals, and determining that each mobile terminal is a node type corresponding to the Bluetooth mesh network; selecting any node of the Bluetooth mesh network as a sending end to send a message data packet to other nodes as receiving ends every preset time; the receiving end receives and acquires the message After the data packet, the message early warning processing and the distance judgment processing are performed, and the information interaction of the plurality of mobile terminals is completed.
  • the invention is based on the Bluetooth Grid protocol of the mobile terminal, and the customized message format is automatically set up by means of broadcasting and scanning to solve the problem that the users cannot communicate in the outdoor harsh environment, and at the same time, it is convenient to carry and reduces power consumption, and brings the user Convenient.
  • FIG. 1 is a schematic diagram of a typical topology of a Bluetooth mesh network according to an embodiment of the present invention.
  • FIG. 2 is a structural diagram of a Bluetooth mesh protocol according to an embodiment of the present invention.
  • FIG. 3 is a flow chart of a preferred embodiment of an outdoor communication method based on the Bluetooth mesh protocol provided by the present invention.
  • FIG. 4 is a functional block diagram of a preferred embodiment of a mobile terminal provided by the present invention.
  • FIG. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • the Bluetooth Low Energy (BLE) protocol is a communication protocol that uses a simple layered protocol architecture mode and has a low data transmission rate. It defines the normal data transmission and reception process of the communication parties according to the common communication standard. .
  • BLE Bluetooth Low Energy
  • the invention adopts the Bluetooth version 5.0 BLE protocol.
  • the Bluetooth Mesh protocol is based on the Bluetooth Low Energy (BLE) protocol and is a wireless communication network technology. In simple terms, the use of Bluetooth mesh networks relies on Bluetooth low energy.
  • the low-power Bluetooth technology forms a "one-to-one" relationship and a "one-to-many” topology relationship between the terminal and the terminal.
  • the Bluetooth mesh technology makes the terminal and the terminal establish a "many-to-many" network topology relationship, so that multiple terminals (ie, nodes) form a Bluetooth mesh network with a topology.
  • a node refers to a terminal/device in a Bluetooth mesh network, such as a smart phone or a tablet.
  • a terminal/device outside the Bluetooth mesh network is called an unconfigured terminal/device.
  • the configurator invites an unconfigured terminal/device to join the network, so that the unconfigured device becomes a node.
  • the nodes in the network can also leave the network and become unconfigured terminals/devices, that is, the Bluetooth mesh network function is turned off. Because of the many-to-many topology relationship of Bluetooth mesh technology, there are more message delivery paths. Therefore, when one or more nodes in the network fail or leave the network, it does not affect the normal operation of the entire network.
  • the types of nodes are divided into relay nodes, partner nodes, low-power nodes, proxy nodes, and common nodes:
  • Relay node a node with the ability to receive and forward messages, so that the message can be hopped multiple times between devices, and the transmission distance can exceed the range of direct radio transmission between the two devices, thereby covering the entire network;
  • Partner node a node that sends and receives messages to a low-power node
  • Low-power node establishes a partnership with the partner node, that is, the messaging of the low-power node is completed by the partner node, and is used to reduce the power consumption by limiting the number of times the message is monitored;
  • Proxy node A node with the ability to receive and forward messages is the key to making non-mesh low-power Bluetooth devices a member of the Bluetooth mesh network;
  • Ordinary node A node that does not have the above-mentioned node capabilities, but has a node that basically transmits and receives messages.
  • FIG. 1 is a typical topology of a Bluetooth mesh network.
  • a circle represents a node.
  • the labels A, B, C, and D are common nodes, and the label Q is a relay node, and the label is P.
  • Nodes, labeled K, are low-power nodes; they process messages by passing packets from one node to another until the packet reaches its destination.
  • Each node can serve as an access terminal or a transmitting terminal; for example, the mechanism for B to send a message to K can be described as: B is transmitted to P through the relay node of Q, and P is stored as a partner node of K for K to store the message, when K When P is asked if there is a new message, P sends the message to K, and finally K receives the message of B, which completes the delivery of the message between the nodes.
  • Other nodes can also deliver messages. If the above paths stop working due to hardware failure or interference, the packets are automatically changed to pass through an alternate path.
  • the hierarchical structure of the Bluetooth Grid Protocol includes a bearer layer, a network layer, a lower transport layer, an upper transport layer, an access layer, a base model layer, and a model layer.
  • the 7-layer protocol is based on the BLE core protocol.
  • the construction is up and up, and the technique of the present invention does not involve improvements in the base model layer and the model layer.
  • Bearer layer defines how the network layer messages are transmitted between nodes; the bearer layer has two types of bearers, namely broadcast bearers and GATT (Generic Attributes) bearers; one node can support multiple bearer modes, and the present invention
  • the improvement is that all nodes only support broadcast bearers; the improvement of the type of PDU (Protocol Data Unit) corresponding to the broadcast bearer is that only non-connectable non-scannable non-directional broadcast signaling is involved (all nodes do not listen to the scanning side and the connection initiator).
  • [Request] that is, the communication between two nodes of the Bluetooth mesh network in the present invention is performed by one node broadcasting and another node scanning, and no two nodes are connected to each other; the data format is as shown in the table.
  • AD Type indicates the type of the message segment, fixed to 0x2A, 1 byte
  • AD Data indicates the content of the message segment, the PDU of the network layer, up to 29 bytes
  • the value of Length indicates the AD Type and The number of bytes of AD Data, 1 byte.
  • Network layer used to decrypt and authenticate messages from the bearer layer, and then transmit the message to the lower transport layer through the network layer;
  • Table 2 shows the improved network layer data format of the present invention; wherein IVI represents the minimum effective IV index Bit, 1 bit; NID represents the network ID, 7 bits; CTL represents the message type (access message and control message) of the lower transport layer, the value is 0 or 1, and the length is 1 bit.
  • the improvement of the present invention is that the CTL value is 0.
  • TTL It is an access message; the role of TTL is to limit the number of times of message relay, 7 bits; SEQ means serial number, length is 24 bits; SRC means source address, unicast address, length is 16 bits; DST means destination address, length is 16 Bit; TransportPDU indicates the message of the lower transport layer, the maximum length is 128 bits; NetMIC indicates the network layer message integrity check. Since the CTL value of the present invention is 0, the length corresponding to the NetMIC is 32 bits.
  • Lower transport layer for transceiving messages with the upper transport layer, the messages are divided into unsegmented messages and segmented messages; the improvement of the present invention is to use a segmented message mechanism when the upper transport layer message is greater than 15 bytes The lower transport layer segments and reassembles the message, and then transmits the data in sequence.
  • the data format corresponding to the segmentation message is as shown in Table 3.
  • the SEG value is 1, indicating a segmentation message, and the length is 1 bit; the AKF indicates the application layer key identifier, and the length is 1 bit; the AID identifies the application layer key ID, the length is 6 bits; the SZMIC value is 0, the length 1 bit, indicating that the length of TransMIC in the upper transport layer message is 4 bytes; SeqZero indicates the least significant bit of SeqAuth, 13 bits; SeqO indicates the segment number of segment m; SegN indicates the maximum segment number of the upper transport layer; and Segment m indicates The transport layer message on the mth segment, except that the length of the transport layer message on the last segment may be less than 12 bytes, the length of the transport layer message on each of the remaining segments is 12 bytes.
  • Upper transport layer used to transmit the message of the access layer to the upper transport layer; its data format is shown in Table 4; wherein Encrypted Access Payload represents the encrypted access layer message; TransMIC represents the integrity of the access layer message. Check that the improvement is that the defined TransMIC has a length of 4 bytes (corresponding to the SZMIC value of the lower transport layer is 0).
  • Access layer used for the interface between the application layer and the upper transport layer.
  • the data format is shown in Table 5, which is the data format of the message finally received by each node.
  • Opcode represents the opcode, and the improvement is that the defined length is 1 byte and customize its value;
  • Pacameters means application layer parameters, up to 379 bytes in length.
  • FIG. 3 is a flow chart of a preferred embodiment of the outdoor communication method based on the Bluetooth mesh protocol of the present invention. As shown in FIG. 3, an outdoor communication method based on the Bluetooth mesh protocol includes the following steps:
  • Step S100 When Bluetooth of a plurality of mobile terminals is simultaneously enabled, a Bluetooth mesh network is automatically formed, and a node type corresponding to each mobile terminal in the Bluetooth mesh network is determined.
  • the process of automatically setting up a Bluetooth mesh network is specifically: for example, an outdoor team, when all the mobile terminals of the team members simultaneously enable the Bluetooth function, the broadcast bearer mode is issued at this time.
  • Broadcast declare that it is a device that has not been configured to start up, can be started, and (or discovered by broadcast) start a Bluetooth mesh protocol called "Startup Configuration Protocol", and then the Bluetooth mesh protocol defines the PDU broadcast signaling and is then
  • the activated mobile terminal sends an invitation, and the activated mobile terminal replies and obtains a unicast address (unique address) through the network ID and successful authentication, and then automatically joins the Bluetooth mesh network and becomes a node, that is, a Bluetooth mesh network.
  • a member can communicate with other activated mobile terminals.
  • each mobile terminal will randomly have a network role (ie, node type): normal node, relay node, partner node, and low-power node; a low-power node can only establish a partnership with one partner node.
  • a network role ie, node type
  • normal node, relay node, partner node, and low-power node a low-power node can only establish a partnership with one partner node.
  • the partner node can establish a partnership with multiple low-power nodes, in order to reduce the impact of the low-power node leaving the network due to the failure of the partner node or leaving the network, specifying a partner node can only be associated with a low power consumption.
  • the node establishes a partnership.
  • the distance between each node is 40 meters.
  • the mobile terminal supports the Bluetooth mesh protocol. If the protocol cannot be successfully configured, the node cannot interact with the node in the Bluetooth mesh network. Of course, if the mobile terminal device supports the conversion to the proxy node mode. Successfully launched, can also become a member of the Bluetooth mesh network.
  • Step S200 Select any node of the Bluetooth mesh network as the transmitting end to send a message data packet to other nodes that are receiving ends every preset time.
  • each node in the network can serve as a sending end to send a message data packet to other nodes as receiving ends at a preset time (period, such as every 10 minutes);
  • the data packet is message data of a custom operation code (Opcode) field, and the message data packet includes: a content Value field of the operation code Opcode, a byte length field of the operation code Opcode (fixed to 1), and a data content Parameter Content field.
  • the byte length field of the data parameters (maximum 379 bytes), the specific form is shown in Table 6.
  • the content value of the customized opcode Opcode includes 0x07, 0x08, and 0x09, and the corresponding Contents Value of the data packet is a latitude and longitude value, a Chinese-English message, and an emergency call message.
  • the latitude and longitude values include longitude values and latitude values.
  • Step S300 the receiving end receives and acquires the message data packet, performs message early warning processing and distance determination processing, and completes information interaction of multiple mobile terminals.
  • the receiving end after receiving and acquiring the message data packet, the receiving end performs message early warning processing and distance determination processing, and completes information interaction of multiple mobile terminals into three situations:
  • the node at the receiving end receives the GPS latitude and longitude position of the transmitting end, such as the capital Beijing, the location is east longitude 116.46, north latitude 39.92, corresponding message format Table 7.
  • the content length of the corresponding longitude and latitude is 4 bytes.
  • the receiving end After receiving the latitude and longitude value message in Table 7, the receiving end calculates the first distance (GPS positioning display) between the self node and the nearest node (such as a relative), and compares the first distance with a preset threshold to determine whether there is a separation.
  • first distance GPS positioning display
  • the nearest node such as a relative
  • the first distance is greater than a preset threshold (such as 40 meters), and the risk of leaving the team is determined;
  • the mobile terminal When it is judged that there is a risk of leaving the team, the mobile terminal will give a warning signal of sound and vibration to remind the risk of leaving the team.
  • each receiving end stores the GPS latitude and longitude information of the transmitting end and the distance information with itself, and updates in real time, as shown in Table 8.
  • the calculation of the distance from itself includes the distance k between the receiving end and the node of the transmitting end.
  • the distance between each member of the team can be clearly understood, the distance from the team organizer can be clearly understood, the safety hazard of each member's outdoor harsh environment can be reduced, and the player is greatly guaranteed. Safe and easy for organizers to manage and control.
  • the Opcode content field of the message data packet is the Chinese-English message 0x08 field
  • the data format received by the node of the receiving end is as shown in Table 9, and the user can view or reply to the corresponding message after receiving the message; It enables communication in the absence of a network in a harsh environment.
  • the message that is not sent to itself cannot be viewed or replied, which ensures the security and privacy of the information; that is, the two sides of the mutual information are one-to-one; of course, If it is a group message, it will not be listed.
  • the Opcode content field of the operation packet of the message data packet is an emergency call message 0x09 field and is null
  • an emergency occurs at the transmitting end, a one-key call mechanism is activated, and an emergency call signal is sent to other nodes, and the data thereof is sent.
  • the format is as shown in Table 10, and the node at the receiving end receives the emergency call signal and takes corresponding rescue measures.
  • the Bluetooth mesh network can automatically detect whether there is a mobile terminal off the network to maximize the security of outdoor activities.
  • the program may be stored in a computer readable storage medium, which, when executed, may include the processes of the various method embodiments as described above.
  • the storage medium described therein may be a memory, a magnetic disk, an optical disk, or the like.
  • the embodiment of the present invention further provides a mobile terminal.
  • the mobile terminal in the embodiment of the present invention may be a mobile phone (or a tablet), where the mobile terminal in this embodiment includes a processor 10 and a Bluetooth 30 (FIG. Not shown), and a memory 20 connected to the processor 10;
  • the memory 20 stores a program of an outdoor communication method based on a Bluetooth mesh protocol, and the program of the outdoor communication method based on the Bluetooth mesh protocol is used by the processor 10 to implement outdoor communication based on the Bluetooth mesh protocol.
  • the method is specifically as described above.
  • the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip for running program code or processing data stored in the memory 20.
  • CPU central processing unit
  • microprocessor or other data processing chip for running program code or processing data stored in the memory 20.
  • program code for performing an outdoor communication method based on the Bluetooth mesh protocol, and the like.
  • a storage medium storing a program of an outdoor communication method based on a Bluetooth mesh protocol, the program of the outdoor communication method based on the Bluetooth mesh protocol being used by the processor 10 to implement the Bluetooth-based network
  • the outdoor communication method of the grid protocol as described above.
  • the program may be stored in a computer readable storage medium, and the storage medium may include: Read Only Memory (ROM), Random Access Memory (RAM), disk or optical disk.
  • ROM Read Only Memory
  • RAM Random Access Memory
  • the present invention is based on the Bluetooth Grid protocol of the mobile terminal, and the customized message format is automatically networked by means of broadcast and scanning to solve the problem that users cannot communicate in an outdoor harsh environment, and at the same time, it is convenient to carry and reduces power consumption. , free communication, bringing convenience to users.
  • FIG. 5 is a block diagram showing a specific structure of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal may be used to implement the Bluetooth communication protocol-based outdoor communication method provided in the foregoing embodiment.
  • the mobile terminal 1200 can be a smartphone or a tablet.
  • the mobile terminal 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one shown) computer-readable storage medium, an input unit 130, and a display unit. 140, sensor 150, audio circuit 160, transmission module 170, including processor 180 having one or more processing cores (only one shown) and power supply 190 and the like.
  • RF Radio Frequency
  • the structure of the mobile terminal 1200 shown in FIG. 5 does not constitute a limitation of the mobile terminal 1200, and may include more or less components than those illustrated, or combine some components, or different components. Arrangement. among them:
  • the RF circuit 110 is configured to receive and transmit electromagnetic waves, and realize mutual conversion between electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices.
  • the RF circuit 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, a memory, and the like.
  • SIM Subscriber Identity Module
  • the RF circuit 110 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices over a wireless network.
  • the wireless network described above may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the above wireless network can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), and wideband code.
  • GSM Global System for Mobile Communication
  • EDGE Enhanced Data GSM Environment
  • WCDMA Wideband Code Division Multiple Access
  • CDMA Code Division Access
  • TDMA Time Division Multiple Access
  • Wi-Fi Wireless Fidelity
  • VoIP Voice over Internet Protocol
  • Wi-Max Worldwide Interoperability for Microwave Access
  • Wi-Max Worldwide Interoperability for Microwave Access
  • Wi-Max Worldwide Interoperability for Microwave Access
  • the memory 120 can be used to store software programs and modules, such as the program instructions/modules corresponding to the Bluetooth communication protocol-based outdoor communication method in the above embodiment, and the processor 180 executes each by running a software program and a module stored in the memory 120.
  • a functional application and data processing that is, the function of implementing outdoor communication based on the Bluetooth mesh protocol.
  • Memory 120 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 120 can further include memory remotely located relative to processor 180, which can be connected to mobile terminal 1200 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the input unit 130 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 130 can include touch-sensitive surface 131 as well as other input devices 132.
  • Touch-sensitive surface 131 also referred to as a touch display or trackpad, can collect touch operations on or near the user (such as a user using a finger, stylus, etc., on any suitable object or accessory on touch-sensitive surface 131 or The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program.
  • the touch-sensitive surface 131 can include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 180 is provided and can receive commands from the processor 180 and execute them.
  • the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 130 can also include other input devices 132.
  • other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • Display unit 140 can be used to display information entered by the user or information provided to the user and various graphical user interfaces of mobile terminal 1200, which can be comprised of graphics, text, icons, video, and any combination thereof.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141.
  • touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
  • Mobile terminal 1200 may also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the mobile terminal 1200 moves to the ear. And / or backlight.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the mobile terminal 1200 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here No longer.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the mobile terminal 1200.
  • the audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, transmitted to the mobile terminal 110 via the RF circuit 110, or outputted to the memory 120 for further processing.
  • the audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the mobile terminal 1200.
  • the mobile terminal 1200 can help the user to send and receive emails, browse web pages, access streaming media, etc. through the transmission module 170 (eg, Wi-Fi module), which provides wireless broadband Internet access to the user.
  • the transmission module 170 eg, Wi-Fi module
  • FIG. 5 shows the transmission module 170, it can be understood that it does not belong to the essential configuration of the mobile terminal 1200, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 180 is a control center of the mobile terminal 1200 that connects various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120.
  • the various functions and processing data of the mobile terminal 1200 are executed to perform overall monitoring of the mobile phone.
  • the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and For applications, etc., the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
  • the mobile terminal 1200 also includes a power source 190 (such as a battery) that powers the various components.
  • the power source can be logically coupled to the processor 180 through a power management system to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the mobile terminal 1200 may further include a camera (such as a front camera, a rear camera), a Bluetooth module, and the like, and details are not described herein.
  • the display unit of the mobile terminal is a touch screen display
  • the mobile terminal further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be one or one
  • the above processor executes one or more programs that include instructions for performing the following operations:
  • Bluetooth mesh network is automatically formed, and a node type corresponding to each mobile terminal in the Bluetooth mesh network is determined;
  • the receiving end After receiving and acquiring the message data packet, the receiving end performs message early warning processing and distance determination processing to complete information interaction of multiple mobile terminals.
  • the step of automatically forming a Bluetooth mesh network includes:
  • the broadcast will be broadcasted through the broadcast bearer mode, and the device will be activated without being activated.
  • the Bluetooth mesh protocol will be activated and the Bluetooth mesh protocol defines the PDU broadcast signaling. Then, an invitation is sent to the activated mobile terminal, and the activated mobile terminal replies and obtains the unicast address after successfully obtaining the network ID and the successful authentication, and then automatically joins the Bluetooth mesh network and becomes a node.
  • performing the message alert processing and the distance determining process to complete the information interaction of the multiple mobile terminals including:
  • the node at the receiving end stores the GPS latitude and longitude information of the transmitting end, and updates in real time;
  • the first distance between the self node and the nearest node is calculated, and the first distance is compared with a preset threshold to determine whether there is a risk of leaving the team.
  • determining whether there is a risk of leaving the team includes:
  • the mobile terminal When it is determined that there is a risk of leaving the team, the mobile terminal issues a warning signal.
  • performing the message alert processing and the distance determining process to complete the information interaction of the multiple mobile terminals including:
  • the node at the receiving end views or replies to the corresponding message.
  • the step of receiving, by the receiving end, the message data packet, performing the message alert processing and the distance determining process, and completing the information interaction of the plurality of mobile terminals includes:
  • the node at the receiving end receives an emergency call signal for prompting the rescue.

Landscapes

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

Abstract

本发明公开了基于蓝牙网格协议的户外通信方法,当同时开启多个移动终端蓝牙时,组建蓝牙网格网络,确定每个移动终端在蓝牙网格网络的节点类型;选择蓝牙网格网络任一节点作为发送端每隔预设时间向其他接收端的节点发送消息数据包;接收端接收并获取消息数据包后进行消息预警处理和距离判断处理,完成多个移动终端的信息交互。

Description

基于蓝牙网格协议的户外通信方法、移动终端及存储介质
本申请要求于2017年11月23日提交中国专利局、申请号为201711182697.9、发明名称为“基于蓝牙网格协议的户外通信方法、移动终端及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及移动终端技术领域,尤其涉及一种基于蓝牙网格协议的户外通信方法、移动终端及存储介质。
背景技术
近年来,人们对运动的热情逐渐增高,运动方式也由室内延伸到户外,城市延伸到大自然,户外旅游、户外探险、户外拓展训练,也越来越受到人们的欢迎。人们在进行户外活动的时候,特别是在荒山野岭、沙漠地带、高山、雪山、海岛等恶劣环境没有部署通信基站,人们不能使用2G/3G/4G网络进行通信,更不能使用Wi-Fi网络,因此恶劣户外环境下的通信成为一个问题。针对这一问题,人们携带对讲机进行互相通信,但由于对讲机体积大,功耗高,使用起来不太方便。
因此,现有技术还有待于改进和发展。
技术问题
本发明实施例提供一种基于蓝牙网格协议的户外通信方法、移动终端及存储介质,旨在基于移动终端的蓝牙网格协议,自定义消息格式,通过广播与扫描的方式自动组网,解决户外恶劣环境下用户间无法通信的问题,同时携带方 便且减少功耗,为用户带来了方便。
技术解决方案
本发明解决技术问题所采用的技术方案如下:
第一方面,本发明实施例提供一种基于蓝牙网格协议的户外通信方法,其中,所述方法包括:
当同时开启多个移动终端的蓝牙时,自动组建蓝牙网格网络,并确定每个移动终端在所述蓝牙网格网络对应的节点类型;
选择所述蓝牙网格网络任一节点作为发送端,每隔预设时间向其他作为接收端的节点发送消息数据包;
所述接收端接收并获取所述消息数据包后,进行消息预警处理和距离判断处理,完成多个移动终端的信息交互。
优选的,所述的基于蓝牙网格协议的户外通信方法,其中,所述节点类型包括:普通节点、接力节点、伙伴节点以及低功耗节点。
优选的,所述的基于蓝牙网格协议的户外通信方法,其中,所述消息数据包为自定义操作码字段的消息数据,所述消息数据包包括:操作码的内容字段、操作码的字节长度字段、数据包的内容字段以及数据包的字节长度字段。
优选的,所述的基于蓝牙网格协议的户外通信方法,其中,所述操作码的内容包括经纬度值字段、中英文消息字段以及紧急呼叫消息字段。
优选的,所述的基于蓝牙网格协议的户外通信方法,其中,所述接收端接收并获取所述消息数据包后进行消息预警处理和距离判断处理,完成多个移动终端的信息交互包括:
当所述消息数据包的操作码内容字段为经纬度值字段时,则所述接收端的 节点存储所述发送端的GPS经纬度信息,并实时更新;
计算自身节点与最近的节点的第一距离,并将第一距离与预设阈值比较后,判断是否有脱离队伍的风险。
优选的,所述的基于蓝牙网格协议的户外通信方法,其中,所述将第一距离与预设阈值比较后,判断是否有脱离队伍的风险具体包括:
所述第一距离大于预设阈值时,判定有脱离队伍的风险
当判断有脱离队伍的风险后,移动终端发出警示信号。
优选的,所述的基于蓝牙网格协议的户外通信方法,其中,所述接收端接收并获取所述消息数据包后进行消息预警处理和距离判断处理,完成多个移动终端的信息交互的步骤,包括:
当所述消息数据包的操作码内容字段为中英文消息字段时,则所述接收端的节点查看或回复对应消息。
优选的,所述的基于蓝牙网格协议的户外通信方法,其中,所述接收端接收并获取所述消息数据包后进行消息预警处理和距离判断处理,完成多个移动终端的信息交互的步骤,包括:
当所述消息数据包的操作码内容字段为紧急呼叫消息字段且为空值时,则所述接收端的节点接收到紧急呼叫信号,用于提示救援。
第二方面,本发明实施例提供一种移动终端,包括蓝牙、处理器,以及与所述处理器连接的存储器,所述存储器存储有基于蓝牙网格协议的户外通信方法的程序,所述基于蓝牙网格协议的户外通信方法的程序被所述处理器执行用于实现如下步骤:
当同时开启多个移动终端的蓝牙时,自动组建蓝牙网格网络,并确定每个 移动终端在所述蓝牙网格网络对应的节点类型;
选择所述蓝牙网格网络任一节点作为发送端,每隔预设时间向其他作为接收端的节点发送消息数据包;
所述接收端接收并获取所述消息数据包后,进行消息预警处理和距离判断处理,完成多个移动终端的信息交互。
在所述的移动终端中,所述自动组建蓝牙网格网络的步骤,包括:
当团队中队员的所有移动终端同时开启蓝牙功能时,将通过广播承载方式发出广播,声明自己是未经过启动配置的设备,可被启动,同时启动蓝牙mesh协议,蓝牙mesh协议定义PDU广播信令后,向被启动的移动终端发出邀请,所述被启动的移动终端回复并通过网络ID以及成功认证后获得单播地址,此时就自动加入到蓝牙mesh网络,成为了节点。
在所述的移动终端中,所述接收端接收并获取所述消息数据包后,进行消息预警处理和距离判断处理,完成多个移动终端的信息交互的步骤,包括:
当所述消息数据包的操作码内容字段为经纬度值字段时,则所述接收端的节点存储所述发送端的GPS经纬度信息,并实时更新;
计算自身节点与最近的节点的第一距离,并将第一距离与预设阈值比较后,判断是否有脱离队伍的风险。
在所述的移动终端中,所述将第一距离与预设阈值比较后,判断是否有脱离队伍的风险的步骤,具体包括:
所述第一距离大于预设阈值时判定有脱离队伍的风险;
当判断有脱离队伍的风险后,移动终端发出警示信号。
在所述的移动终端中,所述接收端接收并获取所述消息数据包后,进行消 息预警处理和距离判断处理,完成多个移动终端的信息交互的步骤,包括:
当所述消息数据包的操作码内容字段为中英文消息字段时,则所述接收端的节点查看或回复对应消息。
在所述的移动终端中,所述接收端接收并获取所述消息数据包后进行消息预警处理和距离判断处理,完成多个移动终端的信息交互的步骤,包括:
当所述消息数据包的操作码内容字段为紧急呼叫消息字段且为空值时,则所述接收端的节点接收到紧急呼叫信号,用于提示救援。
第三方面,本发明实施例提供一种存储介质,其中,所述存储介质存储有基于蓝牙网格协议的户外通信方法的程序,所述基于蓝牙网格协议的户外通信方法的程序被处理器执行用于实现如下步骤:
当同时开启多个移动终端的蓝牙时,自动组建蓝牙网格网络,并确定每个移动终端在所述蓝牙网格网络对应的节点类型;
选择所述蓝牙网格网络任一节点作为发送端,每隔预设时间向其他作为接收端的节点发送消息数据包;
所述接收端接收并获取所述消息数据包后,进行消息预警处理和距离判断处理,完成多个移动终端的信息交互。
在所述的存储介质中,所述自动组建蓝牙网格网络的步骤,包括:
当团队中队员的所有移动终端同时开启蓝牙功能时,将通过广播承载方式发出广播,声明自己是未经过启动配置的设备,可被启动,同时启动蓝牙mesh协议,蓝牙mesh协议定义PDU广播信令后,向被启动的移动终端发出邀请,所述被启动的移动终端回复并通过网络ID以及成功认证后获得单播地址,此时就自动加入到蓝牙mesh网络,成为了节点。
在所述的存储介质中,所述接收端接收并获取所述消息数据包后,进行消息预警处理和距离判断处理,完成多个移动终端的信息交互的步骤,包括:
当所述消息数据包的操作码内容字段为经纬度值字段时,则所述接收端的节点存储所述发送端的GPS经纬度信息,并实时更新;
计算自身节点与最近的节点的第一距离,并将第一距离与预设阈值比较后,判断是否有脱离队伍的风险。
在所述的存储介质中,所述将第一距离与预设阈值比较后,判断是否有脱离队伍的风险的步骤,具体包括:
所述第一距离大于预设阈值时判定有脱离队伍的风险;
当判断有脱离队伍的风险后,移动终端发出警示信号。
在所述的存储介质中,所述接收端接收并获取所述消息数据包后,进行消息预警处理和距离判断处理,完成多个移动终端的信息交互的步骤,包括:
当所述消息数据包的操作码内容字段为中英文消息字段时,则所述接收端的节点查看或回复对应消息。
在所述的存储介质中,所述接收端接收并获取所述消息数据包后进行消息预警处理和距离判断处理,完成多个移动终端的信息交互的步骤,包括:
当所述消息数据包的操作码内容字段为紧急呼叫消息字段且为空值时,则所述接收端的节点接收到紧急呼叫信号,用于提示救援。
有益效果
本发明公开了基于蓝牙网格协议的户外通信方法、移动终端及存储介质,所述方法包括:当同时开启多个移动终端的蓝牙时,自动组建蓝牙网格网络,并确定每个移动终端在所述蓝牙网格网络对应的节点类型;选择所述蓝牙网格 网络任一节点作为发送端每隔预设时间向其他作为接收端的节点发送消息数据包;所述接收端接收并获取所述消息数据包后进行消息预警处理和距离判断处理,完成多个移动终端的信息交互。本发明基于移动终端的蓝牙网格协议,自定义消息格式,通过广播与扫描的方式自动组网,解决户外恶劣环境下用户间无法通信的问题,同时携带方便且减少功耗,为用户带来了方便。
附图说明
图1是本发明实施例提供的蓝牙网格网络的一个典型拓扑结构图。
图2是本发明实施例提供的蓝牙网格协议的结构图。
图3是本发明提供的基于蓝牙网格协议的户外通信方法的较佳实施例的流程图。
图4是本发明提供的移动终端较佳实施例功能原理框图。
图5是本发明实施例提供的移动终端的具体结构示意图。
本发明的实施方式
为使本发明的目的、技术方案及优点更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
为了更好的理解本发明,先对本发明的术语作详细的说明。
低功耗蓝牙(Bluetooth Low Energy,BLE)协议是一种采用简单的分层协议架构模式的对数据传输速率要求不高的通信协议,是定义了通信双方按照共同的通信标准进行正常数据收发过程。其版本有多种,比如蓝牙4.2版本的BLE协议、蓝牙5.0版本的BLE协议。本发明采用的是蓝牙5.0版本的BLE 协议。
蓝牙网格(Bluetooth Mesh)协议是基于低功耗蓝牙(Bluetooth Low Energy,BLE)协议发展而来,是一种无线通信网络技术。简单来说,蓝牙mesh网络的使用且依赖于低功耗蓝牙。低功耗蓝牙技术使得终端与终端之间形成“一对一”关系和“一对多”的拓扑关系。而蓝牙mesh技术使得终端与终端建立的是“多对多(many-to-many)”的网络拓扑关系,这样多个终端(即节点)就组成了具有拓扑结构的蓝牙网格网络。
节点(Node)是指在蓝牙网格网络里的终端/设备,比如智能手机、平板等,在蓝牙网格网络外的终端/设备称为未配置的终端/设备。当未配置的终端/设备向配置者广播,配置者会邀请未配置的终端/设备加入到该网络,使得未配置的设备成为节点。当然,网络中的节点也可以离开网络,成为未配置的终端/设备,也就是关闭了蓝牙网格网络功能。因为蓝牙mesh技术的多对多拓扑关系,具有较多的消息传递路径,因此当网络中的一个或多个节点出现故障或者离开网络时,并不会影响整体网络的正常运行。节点的类型分为接力节点、伙伴节点、低功耗节点、代理节点和普通节点:
接力节点:具有接收和转发消息能力的节点,使得消息在设备之间实现多次跳跃,传送距离可超过两台设备之间直接进行无线电传输的范围,从而覆盖整个网络;
伙伴节点:为低功耗节点收发消息的节点;
低功耗节点:与伙伴节点建立伙伴关系,即低功耗节点的消息收发通过伙伴节点来完成,用于通过限制监听消息的次数来降低功耗;
代理节点:具有接收和转发消息能力的节点,是使得非mesh低功耗蓝牙 设备成为蓝牙mesh网络成员的关键;
普通节点:不具备上述节点能力的节点,但是具有基本收发消息能力的节点。
以下通过一具体实施例详细说明上述节点间消息的传递过程:
请参阅图1,图1为蓝牙网格网络的一个典型拓扑结构,圆形代表节点;其中,标号为A、B、C、D是普通节点,标号为Q是接力节点,标号为P是伙伴节点,标号为K是低功耗节点;它们处理消息的方式是把信息包从一个节点传递到另一个节点,直到信息包到达目的地。每个节点均可作为接入终端或发送终端;例如,B向K发送消息的机制可以描述为:B通过Q的接力节点传到P,P作为K的伙伴节点为K存储该消息,当K向P询问是否有新消息时,P将该消息发送给K,最终K接收到了B的消息,这就完成了节点间消息的传递。其他节点同样可以进行消息的传递,若上述路径由于硬件故障或干扰而停止工作,则会自动改变信息包的路由,使它们穿过一条替代路径。
为了更进一步理解本发明,对蓝牙网格协议的层次结构以及各层次结构数据的封装(即节点间传递消息的数据格式)以及改进进行详细说明如下。
蓝牙网格协议的层次结构,如图2所示,包括承载层、网络层、下传输层、上传输层、接入层、基础模型层以及模型层共7层协议,是在BLE核心协议基础上向上搭建的,且本发明的技术不涉及基础模型层和模型层的改进。
下面将具体介绍本发明的技术涉及的上述5层协议。
承载层:定义了网络层的消息如何在节点之间传输;承载层共有2种承载者,即广播承载和GATT(通用属性,Generic Attributes)承载;一个节点可支持多种承载方式,而本发明改进在于所有节点只支持广播承载;广播承载对 应的PDU(Protocol Data Unit,协议数据单元)类型的改进在于只涉及不可连接不可扫描非定向广播信令(所有节点不监听扫描方和连接发起方的请求);也就是说,本发明中蓝牙网格网络的两个节点之间的通信,是通过一个节点广播,另外一个节点扫描的方式进行的,无需两个节点彼此连接;其数据格式如表1所示,其中,AD Type表示消息段的类型,固定为0x2A,1字节;AD Data表示消息段的内容、网络层的PDU,最多29字节;Length(长度)的值表示AD Type和AD Data的字节数,1字节。
Field Length AD Type AD Data
Value   0x2A Network PDU
Size/Bytes 1 1 29
表1
网络层:用于对来自承载层的消息进行解密和认证,然后通过网络层将消息传输到下传输层;表2表示本发明改进后的网络层数据格式;其中,IVI表示IV指数的最低有效位,1位;NID表示网络ID,7位;CTL表示下传输层的消息类型(接入消息和控制消息),值为0或1,长度为1位,本发明改进在于CTL值为0,是接入消息;TTL的作用是限制消息接力的次数,7位;SEQ表示序列号,长度为24位;SRC表示源地址、单播地址,长度为16位;DST表示目的地址,长度为16位;TransportPDU表示下传输层的消息,最大长度为128位;NetMIC表示网络层消息完整性检查,因本发明CTL值为0,则NetMIC对应的长度是32位。
Field IVI NID CTL TTL SEQ SRC DST TransportPDU NetMIC
Size/bits 1 7 1 7 24 16 16 8~128 32
表2
下传输层:用于与上传输层进行消息的收发,所述消息分为未分段消息和分段消息;本发明改进在于使用分段消息机制,当上传输层消息大于15字节以上时,下传输层对该消息进行分段和重组,然后依次传输,分段消息对应的数据格式如表3所示。其中,SEG的值为1,表示分段消息,长度为1位;AKF表示应用层秘钥标识,长度为1位;AID标识应用层秘钥ID,长度为6位;SZMIC值为0,长度为1位,表示上传输层消息中TransMIC的长度为4字节;SeqZero表示SeqAuth的最低有效位,13位;SeqO表示段m的段号;SegN表示上传输层的最大段号;Segment m表示第m段上传输层消息,除了最后一段上传输层消息的长度可能小于12字节,其余每一段上传输层消息的长度都是12字节。
Field SEG AKF AID SZMIC SeqZero SegO SegN Segment m
Size/bits 1 1 6 1 13 5 5 8~96
表3
上传输层:用于将接入层的消息传输到上传输层;其数据格式如表4所示;其中,Encrypted Access Payload表示经过加密的接入层消息;TransMIC表示接入层消息的完整性检查,改进在于定义的TransMIC的长度为4字节(对应下传输层的SZMIC值为0)。
Field Encrypted Access Payload TransMIC
Size/Bytes 1~380 4
表4
接入层:用于应用层与上传输层的接口,其数据格式如表5所示,也就是 每一个节点最终接收到的消息的数据格式;其中,Opcode表示操作码,改进在于定义长度为1字节且自定义其值;Pacameters表示应用层参数,长度最大为379字节。
Field Opcode Parameters
Size/Bytes 1 0~379
表5
进一步说明的是,本发明表5消息数据格式简化了定义,减少了运算的复杂度,加快传输。
实施例一
本发明结合上述蓝牙网格协议特点,提供了一种基于蓝牙网格协议的户外通信方法。请参见图3,图3是本发明基于蓝牙网格协议的户外通信方法的较佳实施例的流程图。如图3所示,一种基于蓝牙网格协议的户外通信方法,包括以下步骤:
步骤S100,当同时开启多个移动终端的蓝牙时,自动组建蓝牙网格网络,并确定每个移动终端在所述蓝牙网格网络对应的节点类型。
在本发明实施例中,所述自动组建蓝牙网格网络(组网)的过程具体为:比如户外团队,当团队中队员的所有移动终端同时开启蓝牙功能时,此时将通过广播承载方式发出广播,声明自己是未经过启动配置的设备,可被启动,同时(或以广播方式被发现)启动称为“启动配置协议”的蓝牙mesh协议,然后蓝牙mesh协议定义PDU广播信令后向被启动的移动终端发出邀请,所述被启动的移动终端回复并通过网络ID以及成功认证后获得单播地址(唯一地址),此时就自动加入到蓝牙mesh网络,成为了节点,即蓝牙mesh网络的一员, 可与其他被启动的移动终端进行通信。
当组网成功后,每一个移动终端将随机拥有一个网络角色(即节点类型):普通节点、接力节点、伙伴节点以及低功耗节点;一个低功耗节点只能与一个伙伴节点建立伙伴关系(但伙伴节点可与多个低功耗节点建立伙伴关系),为了减少由于伙伴节点出现故障或离开网络引发低功耗节点离开网络造成的影响,规定一个伙伴节点也只能与一个低功耗节点建立伙伴关系。
进一步的,节点与节点进行通信时,距离越近,信号越强,传输越快,一般每两个节点距离为40米。
需要说明的是,步骤S100实现的前提是移动终端支持蓝牙mesh协议,若该协议不能成功配置,则不能与蓝牙mesh网络中的节点进行交互;当然,若移动终端设备支持通过转换为代理节点方式成功启动,也能成为蓝牙mesh网络中的一员。
步骤S200,选择所述蓝牙网格网络任一节点作为发送端每隔预设时间向其他作为接收端的节点发送消息数据包。
本发明实施例中,组网成功后,网络中的每一个节点均可作为发送端每隔预设时间(周期性,如每10分钟)向其他作为接收端的节点发送消息数据包;所述消息数据包为自定义操作码(Opcode)字段的消息数据,所述消息数据包包括:操作码Opcode的内容Value字段、操作码Opcode的字节长度字段(固定为1)、数据包Parameters内容Value字段以及数据包Parameters的字节长度字段(最大为379字节),具体形式如表6。
Field Opcode Parameters
Value 0x07/0x08/0x09 经纬度值/中英文消息/紧急呼叫消息
Size/Bytes 1 0~379
表6
其中,自定义的操作码Opcode的内容Value包括0x07,0x08以及0x09,分别对应的数据包Parameters内容Value为经纬度值、中英文消息以及紧急呼叫消息。所述经纬度值包括经度值和纬度值。
步骤S300,所述接收端接收并获取所述消息数据包后进行消息预警处理和距离判断处理,完成多个移动终端的信息交互。
本发明实施例中,所述接收端接收并获取所述消息数据包后进行消息预警处理和距离判断处理,完成多个移动终端的信息交互具体分为3种情形:
(一)
当所述消息数据包的操作码Opcode内容字段为经纬度值0x07字段时,则所述接收端的节点接收的是发送端的GPS经纬度位置,比如首都北京,位置为东经116.46,北纬39.92,对应消息格式如表7。其中,对应的经度和纬度的内容字节长度都是4字节。
Figure PCTCN2018117095-appb-000001
表7
接收端接收到上述表7中经纬度值消息后,计算自身节点与最近的节点 (比如亲人)的第一距离(GPS定位显示),并将第一距离与预设阈值比较后,判断是否有脱离队伍的风险:
所述第一距离大于预设阈值(比如40米),判定有脱离队伍的风险;
当判断有脱离队伍的风险后,移动终端将发出声音和振动的警示信号提醒有脱离队伍的风险。
进一步的,每个接收端接收到上述消息后将存储发送端的GPS经纬度信息以及与自身距离信息,并实时更新,如表8所示。
单播地址(智能手机) 经度 纬度 与自身的距离
智能手机1 经度1 纬度1 距离1
智能手机k 经度k 纬度k 距离k
距离自己最近的智能手机i 经度i 纬度i 第一距离
组织者的智能手机j 经度j 纬度j 第二距离
表8
进一步的,与自身的距离的计算还包括接收端与发送端的节点的距离k。
进一步的,通过经纬度信息距离计算和预警,能够清楚得了解团队中每一个成员的距离,更清楚地知道与团队组织者距离,降低每位成员户外恶劣环境的安全隐患,同时很大程度保证队员安全,也便于组织者管理和控制。
(二)
当所述消息数据包的操作码Opcode内容字段为中英文消息0x08字段时,则所述接收端的节点接收到的数据格式如表9所示,用户接收到后可以进行查看或回复对应消息;这样使得在恶劣环境没有网络情况下,也能进行通信。
Field Opcode Parameters
Value 0x08 中英文消息
Size/Bytes 1 0~379
表9
进一步的,作为接力节点和伙伴节点的角色,将不能查看或回复不是发送给自己的消息,这保证了信息的安全以及私密性;也就是说互通信息的双方是一对一的关系;当然,若是群发信息的话,则不再此列。
(三)
当所述消息数据包的操作码Opcode内容字段为紧急呼叫消息0x09字段且为空值时,则发送端发生了紧急情况,启动了一键呼叫机制,向其他节点发送了紧急呼叫信号,其数据格式如表10所示,而所述接收端的节点接收到所述紧急呼叫信号后采取相应的救援措施。
Field Opcode Parameters
Value 0x09
Size/Bytes 1 0
表10
进一步的,除上述情况外,一旦节点出现故障或者离开网络时,网络中的其他节点就收不到该节点的任何消息,此时也是能判断出该节点脱离了网络,也将进行预警处理;也就是说,蓝牙mesh网络能自动检测是否有移动终端脱离网络,最大程度地保障户外活动的安全性。
当然,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过基于蓝牙网格协议的户外通信方法的程序来指令相关硬件 (如处理器等)来完成,所述的程序可存储于一计算机可读取的存储介质中,所述程序在执行时可包括如上述各方法实施例的流程。其中所述的存储介质可为存储器、磁碟、光盘等。
实施例二
本发明实施例还提供了一种移动终端,如图4所示,本发明实施例的移动终端可以为手机(或者平板),其中,本实施例的移动终端包括处理器10,蓝牙30(图中未标示)、以及与所述处理器10连接的存储器20;
所述存储器20存储有基于蓝牙网格协议的户外通信方法的程序,所述基于蓝牙网格协议的户外通信方法的程序被所述处理器10执行时用于实现基于蓝牙网格协议的户外通信方法,具体如上所述。
所述处理器10在一些实施例中,可以是一中央处理器(Central Processing Unit,CPU),微处理器或其他数据处理芯片,用于运行所述存储器20中存储的程序代码或处理数据,例如执行基于蓝牙网格协议的户外通信方法的程序等。
实施例三
一种存储介质,所述存储介质存储有基于蓝牙网格协议的户外通信方法的程序,所述基于蓝牙网格协议的户外通信方法的程序被处理器10执行时用于实现所述基于蓝牙网格协议的户外通信方法;具体如上所述。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。
综上所述,本发明基于移动终端的蓝牙网格协议,自定义消息格式,通过广播与扫描的方式自动组网,解决户外恶劣环境下用户间无法通信的问题,同时携带方便且减少功耗,免费通信,为用户带来了方便。
图5示出了本发明实施例提供的移动终端的具体结构框图,该移动终端可以用于实施上述实施例中提供的基于蓝牙网格协议的户外通信方法。该移动终端1200可以为智能手机或平板电脑。
如图5所示,移动终端1200可以包括RF(Radio Frequency,射频)电路110、包括有一个或一个以上(图中仅示出一个)计算机可读存储介质的存储器120、输入单元130、显示单元140、传感器150、音频电路160、传输模块170、包括有一个或者一个以上(图中仅示出一个)处理核心的处理器180以及电源190等部件。本领域技术人员可以理解,图5中示出的移动终端1200结构并不构成对移动终端1200的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:
RF电路110用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。RF电路110可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。RF电路110可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication,GSM)、增强型移动通信技术(Enhanced Data GSM Environment,EDGE),宽带码分多址技术(Wideband Code Division Multiple Access,WCDMA),码分多址技术(Code Division Access,CDMA)、时分多址技术(Time Division Multiple Access,TDMA),无线保真技术(Wireless Fidelity,Wi-Fi)(如美国电气和电子工程师协会标准IEEE802.11a,IEEE 802.11b,IEEE802.11g和/或IEEE 802.11n)、网络电话(Voice over Internet Protocol,VoIP)、全球微波互联接入(Worldwide Interoperability for  Microwave Access,Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。
存储器120可用于存储软件程序以及模块,如上述实施例中基于蓝牙网格协议的户外通信方法对应的程序指令/模块,处理器180通过运行存储在存储器120内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现基于蓝牙网格协议的户外通信的功能。存储器120可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器120可进一步包括相对于处理器180远程设置的存储器,这些远程存储器可以通过网络连接至移动终端1200。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
输入单元130可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元130可包括触敏表面131以及其他输入设备132。触敏表面131,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面131上或在触敏表面131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面131。除了触敏表面131,输入单元130还可以包括其他输入设备132。具体地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元140可用于显示由用户输入的信息或提供给用户的信息以及移动终端1200的各种图形用户接口,这些图形用户接口可以由图形、文本、图 标、视频和其任意组合来构成。显示单元140可包括显示面板141,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。进一步的,触敏表面131可覆盖显示面板141,当触敏表面131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图5中,触敏表面131与显示面板141是作为两个独立的部件来实现输入和输出功能,但是在某些实施例中,可以将触敏表面131与显示面板141集成而实现输入和输出功能。
移动终端1200还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在移动终端1200移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于移动终端1200还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路160、扬声器161,传声器162可提供用户与移动终端1200之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一移动终端,或者将音频数据输出至存储器120以便进一步处理。音频电路160还可能包括耳塞插孔,以提供外设耳机与移动终端1200的通信。
移动终端1200通过传输模块170(例如Wi-Fi模块)可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。 虽然图5示出了传输模块170,但是可以理解的是,其并不属于移动终端1200的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器180是移动终端1200的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行移动终端1200的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理核心;在一些实施例中,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。
移动终端1200还包括给各个部件供电的电源190(比如电池),在一些实施例中,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源190还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
尽管未示出,移动终端1200还可以包括摄像头(如前置摄像头、后置摄像头)、蓝牙模块等,在此不再赘述。具体在本实施例中,移动终端的显示单元是触摸屏显示器,移动终端还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行述一个或者一个以上程序包含用于进行以下操作的指令:
当同时开启多个移动终端的蓝牙时,自动组建蓝牙网格网络,并确定每个移动终端在所述蓝牙网格网络对应的节点类型;
选择所述蓝牙网格网络任一节点作为发送端,每隔预设时间向其他作为接收端的节点发送消息数据包;
所述接收端接收并获取所述消息数据包后,进行消息预警处理和距离判断 处理,完成多个移动终端的信息交互。
在一些实施例中,所述自动组建蓝牙网格网络的步骤,包括:
当团队中队员的所有移动终端同时开启蓝牙功能时,将通过广播承载方式发出广播,声明自己是未经过启动配置的设备,可被启动,同时启动蓝牙mesh协议,蓝牙mesh协议定义PDU广播信令后,向被启动的移动终端发出邀请,所述被启动的移动终端回复并通过网络ID以及成功认证后获得单播地址,此时就自动加入到蓝牙mesh网络,成为了节点。
在一些实施例中,所述接收端接收并获取所述消息数据包后,进行消息预警处理和距离判断处理,完成多个移动终端的信息交互的步骤,包括:
当所述消息数据包的操作码内容字段为经纬度值字段时,则所述接收端的节点存储所述发送端的GPS经纬度信息,并实时更新;
计算自身节点与最近的节点的第一距离,并将第一距离与预设阈值比较后,判断是否有脱离队伍的风险。
在一些实施例中,所述将第一距离与预设阈值比较后,判断是否有脱离队伍的风险的步骤,具体包括:
所述第一距离大于预设阈值时判定有脱离队伍的风险;
当判断有脱离队伍的风险后,移动终端发出警示信号。
在一些实施例中,所述接收端接收并获取所述消息数据包后,进行消息预警处理和距离判断处理,完成多个移动终端的信息交互的步骤,包括:
当所述消息数据包的操作码内容字段为中英文消息字段时,则所述接收端的节点查看或回复对应消息。
在一些实施例中,所述接收端接收并获取所述消息数据包后进行消息预警 处理和距离判断处理,完成多个移动终端的信息交互的步骤,包括:
当所述消息数据包的操作码内容字段为紧急呼叫消息字段且为空值时,则所述接收端的节点接收到紧急呼叫信号,用于提示救援。
应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。

Claims (20)

  1. 一种基于蓝牙网格协议的户外通信方法,其中,所述基于蓝牙网格协议的户外通信方法包括:
    当同时开启多个移动终端的蓝牙时,自动组建蓝牙网格网络,并确定每个移动终端在所述蓝牙网格网络对应的节点类型;
    选择所述蓝牙网格网络任一节点作为发送端,每隔预设时间向其他作为接收端的节点发送消息数据包;
    所述接收端接收并获取所述消息数据包后,进行消息预警处理和距离判断处理,完成多个移动终端的信息交互。
  2. 根据权利要求1所述的基于蓝牙网格协议的户外通信方法,其中,所述节点类型包括:普通节点、接力节点、伙伴节点以及低功耗节点。
  3. 根据权利要求1所述的基于蓝牙网格协议的户外通信方法,其中,所述消息数据包为自定义操作码字段的消息数据,所述消息数据包包括:操作码的内容字段、操作码的字节长度字段、数据包的内容字段以及数据包的字节长度字段。
  4. 根据权利要求3所述的基于蓝牙网格协议的户外通信方法,其中,所述操作码的内容包括经纬度值字段、中英文消息字段以及紧急呼叫消息字段。
  5. 根据权利要求4所述的基于蓝牙网格协议的户外通信方法,其中,所述接收端接收并获取所述消息数据包后,进行消息预警处理和距离判断处理,完成多个移动终端的信息交互的步骤,包括:
    当所述消息数据包的操作码内容字段为经纬度值字段时,则所述接收端的节点存储所述发送端的GPS经纬度信息,并实时更新;
    计算自身节点与最近的节点的第一距离,并将第一距离与预设阈值比较后,判断是否有脱离队伍的风险。
  6. 根据权利要求5所述的基于蓝牙网格协议的户外通信方法,其中,所述将第一距离与预设阈值比较后,判断是否有脱离队伍的风险具体包括:
    所述第一距离大于预设阈值时判定有脱离队伍的风险;
    当判断有脱离队伍的风险后,移动终端发出警示信号。
  7. 根据权利要求4所述的基于蓝牙网格协议的户外通信方法,其中,所述接收端接收并获取所述消息数据包后,进行消息预警处理和距离判断处理,完成多个移动终端的信息交互的步骤,包括:
    当所述消息数据包的操作码内容字段为中英文消息字段时,则所述接收端的节点查看或回复对应消息。
  8. 根据权利要求4所述的基于蓝牙网格协议的户外通信方法,其中,所述接收端接收并获取所述消息数据包后进行消息预警处理和距离判断处理,完成多个移动终端的信息交互的步骤,包括:
    当所述消息数据包的操作码内容字段为紧急呼叫消息字段且为空值时,则所述接收端的节点接收到紧急呼叫信号,用于提示救援。
  9. 一种移动终端,其中,包括蓝牙、处理器,以及与所述处理器连接的存储器,所述存储器存储有基于蓝牙网格协议的户外通信方法的程序,所述基于蓝牙网格协议的户外通信方法的程序被所述处理器执行用于实现如下步骤:
    当同时开启多个移动终端的蓝牙时,自动组建蓝牙网格网络,并确定每个移动终端在所述蓝牙网格网络对应的节点类型;
    选择所述蓝牙网格网络任一节点作为发送端,每隔预设时间向其他作为接 收端的节点发送消息数据包;
    所述接收端接收并获取所述消息数据包后,进行消息预警处理和距离判断处理,完成多个移动终端的信息交互。
  10. 根据权利要求9所述的移动终端,其中,所述自动组建蓝牙网格网络的步骤,包括:
    当团队中队员的所有移动终端同时开启蓝牙功能时,将通过广播承载方式发出广播,声明自己是未经过启动配置的设备,可被启动,同时启动蓝牙mesh协议,蓝牙mesh协议定义PDU广播信令后,向被启动的移动终端发出邀请,所述被启动的移动终端回复并通过网络ID以及成功认证后获得单播地址,此时就自动加入到蓝牙mesh网络,成为了节点。
  11. 根据权利要求9所述的移动终端,其中,所述接收端接收并获取所述消息数据包后,进行消息预警处理和距离判断处理,完成多个移动终端的信息交互的步骤,包括:
    当所述消息数据包的操作码内容字段为经纬度值字段时,则所述接收端的节点存储所述发送端的GPS经纬度信息,并实时更新;
    计算自身节点与最近的节点的第一距离,并将第一距离与预设阈值比较后,判断是否有脱离队伍的风险。
  12. 根据权利要求11所述的移动终端,其中,所述将第一距离与预设阈值比较后,判断是否有脱离队伍的风险的步骤,具体包括:
    所述第一距离大于预设阈值时判定有脱离队伍的风险;
    当判断有脱离队伍的风险后,移动终端发出警示信号。
  13. 根据权利要求9所述的移动终端,其中,所述接收端接收并获取所述 消息数据包后,进行消息预警处理和距离判断处理,完成多个移动终端的信息交互的步骤,包括:
    当所述消息数据包的操作码内容字段为中英文消息字段时,则所述接收端的节点查看或回复对应消息。
  14. 根据权利要求9所述的移动终端,其中,所述接收端接收并获取所述消息数据包后进行消息预警处理和距离判断处理,完成多个移动终端的信息交互的步骤,包括:
    当所述消息数据包的操作码内容字段为紧急呼叫消息字段且为空值时,则所述接收端的节点接收到紧急呼叫信号,用于提示救援。
  15. 一种存储介质,其中,所述存储介质存储有基于蓝牙网格协议的户外通信方法的程序,所述基于蓝牙网格协议的户外通信方法的程序被处理器执行用于实现如下步骤:
    当同时开启多个移动终端的蓝牙时,自动组建蓝牙网格网络,并确定每个移动终端在所述蓝牙网格网络对应的节点类型;
    选择所述蓝牙网格网络任一节点作为发送端,每隔预设时间向其他作为接收端的节点发送消息数据包;
    所述接收端接收并获取所述消息数据包后,进行消息预警处理和距离判断处理,完成多个移动终端的信息交互。
  16. 根据权利要求15所述的存储介质,其中,所述自动组建蓝牙网格网络的步骤,包括:
    当团队中队员的所有移动终端同时开启蓝牙功能时,将通过广播承载方式发出广播,声明自己是未经过启动配置的设备,可被启动,同时启动蓝牙mesh 协议,蓝牙mesh协议定义PDU广播信令后,向被启动的移动终端发出邀请,所述被启动的移动终端回复并通过网络ID以及成功认证后获得单播地址,此时就自动加入到蓝牙mesh网络,成为了节点。
  17. 根据权利要求15所述的存储介质,其中,所述接收端接收并获取所述消息数据包后,进行消息预警处理和距离判断处理,完成多个移动终端的信息交互的步骤,包括:
    当所述消息数据包的操作码内容字段为经纬度值字段时,则所述接收端的节点存储所述发送端的GPS经纬度信息,并实时更新;
    计算自身节点与最近的节点的第一距离,并将第一距离与预设阈值比较后,判断是否有脱离队伍的风险。
  18. 根据权利要求17所述的存储介质,其中,所述将第一距离与预设阈值比较后,判断是否有脱离队伍的风险的步骤,具体包括:
    所述第一距离大于预设阈值时判定有脱离队伍的风险;
    当判断有脱离队伍的风险后,移动终端发出警示信号。
  19. 根据权利要求15所述的存储介质,其中,所述接收端接收并获取所述消息数据包后,进行消息预警处理和距离判断处理,完成多个移动终端的信息交互的步骤,包括:
    当所述消息数据包的操作码内容字段为中英文消息字段时,则所述接收端的节点查看或回复对应消息。
  20. 根据权利要求15所述的存储介质,其中,所述接收端接收并获取所述消息数据包后进行消息预警处理和距离判断处理,完成多个移动终端的信息交互的步骤,包括:
    当所述消息数据包的操作码内容字段为紧急呼叫消息字段且为空值时,则所述接收端的节点接收到紧急呼叫信号,用于提示救援。
PCT/CN2018/117095 2017-11-23 2018-11-23 基于蓝牙网格协议的户外通信方法、移动终端及存储介质 Ceased WO2019101153A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711182697.9A CN107846674B (zh) 2017-11-23 2017-11-23 基于蓝牙网格协议的户外通信方法、移动终端及存储介质
CN201711182697.9 2017-11-23

Publications (1)

Publication Number Publication Date
WO2019101153A1 true WO2019101153A1 (zh) 2019-05-31

Family

ID=61679941

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/117095 Ceased WO2019101153A1 (zh) 2017-11-23 2018-11-23 基于蓝牙网格协议的户外通信方法、移动终端及存储介质

Country Status (2)

Country Link
CN (1) CN107846674B (zh)
WO (1) WO2019101153A1 (zh)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753157A (zh) * 2019-10-11 2020-02-04 张柏林 终端预警方法、系统、终端及可读存储介质
CN111340529A (zh) * 2020-02-14 2020-06-26 Oppo广东移动通信有限公司 抽奖方法、抽奖装置、存储介质与电子设备
CN111818515A (zh) * 2020-05-21 2020-10-23 上海橙群微电子有限公司 无线网络组建方法及无线网络系统、节点、可读存储介质
CN111932855A (zh) * 2020-07-29 2020-11-13 重庆城市管理职业学院 基于蓝牙温度监控锅炉控制系统、方法、存储介质、终端
CN112672331A (zh) * 2020-12-11 2021-04-16 深圳成谷智能科技有限公司 一种蓝牙Mesh组网方法、通信方法、通信系统及通信设备
CN113163381A (zh) * 2021-04-16 2021-07-23 横店集团得邦照明股份有限公司 一种支持快速配网的智能灯及其实现方法
CN113192651A (zh) * 2021-04-07 2021-07-30 Tcl通讯(宁波)有限公司 一种医用数据处理方法、装置、智能终端及存储介质
CN113259949A (zh) * 2020-02-11 2021-08-13 阿里巴巴集团控股有限公司 网络配置系统及方法、电子设备、网络配置系统的组建方法及设备
CN113259919A (zh) * 2021-05-12 2021-08-13 宁夏隆基宁光仪表股份有限公司 一种光伏组件数据通信方法、系统以及光伏组件装置
CN113411789A (zh) * 2020-03-16 2021-09-17 瑞昱半导体股份有限公司 具有控制权分享机制的蓝牙网格网络系统及其控制方法
CN113411788A (zh) * 2020-03-16 2021-09-17 瑞昱半导体股份有限公司 具有未配网通信机制的蓝牙网格网络系统及其通信方法
CN113438633A (zh) * 2021-06-18 2021-09-24 深圳松诺技术有限公司 通信数据处理方法、终端和计算机可读存储介质
CN113784287A (zh) * 2021-09-26 2021-12-10 努比亚技术有限公司 一种紧急求救方法、设备及计算机可读存储介质
CN114124868A (zh) * 2021-11-23 2022-03-01 北京百度网讯科技有限公司 一种即时通讯方法、装置、系统、设备以及存储介质
CN114980058A (zh) * 2022-07-29 2022-08-30 北京奇岱松科技有限公司 一种网关设备以及网关监控方法、装置和存储介质
CN115175300A (zh) * 2022-08-17 2022-10-11 上海磐启微电子有限公司 一种蓝牙自组网系统的时钟校准方法
CN116017302A (zh) * 2022-12-14 2023-04-25 深圳市新兴达科技发展有限公司 一种智能定位及管理统计的装置及系统
CN116233766A (zh) * 2023-03-03 2023-06-06 深圳木芯科技有限公司 基于电子测量仪的数据传输系统、方法及电子测量仪
CN116684829A (zh) * 2023-06-30 2023-09-01 北京紫光展锐通信技术有限公司 信息传输方法及装置、计算机可读存储介质

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107846674B (zh) * 2017-11-23 2021-09-14 Tcl移动通信科技(宁波)有限公司 基于蓝牙网格协议的户外通信方法、移动终端及存储介质
EP3893529B1 (en) * 2018-12-26 2024-06-19 Huawei Technologies Co., Ltd. Communication method based on bluetooth low energy
CN109673014B (zh) * 2019-01-25 2022-07-15 欧普照明股份有限公司 一种网络结合方法
CN109819427B (zh) * 2019-03-06 2021-01-26 乐鑫信息科技(上海)股份有限公司 用于蓝牙Mesh网络启动配置的方法
US11252636B2 (en) 2019-05-16 2022-02-15 Delta Electronics, Inc. System and method for establishing bluetooth mesh network
CN113411790A (zh) * 2020-03-16 2021-09-17 瑞昱半导体股份有限公司 低功耗的蓝牙网格网络系统及其通信方法
CN111770061A (zh) * 2020-06-02 2020-10-13 西安极蜂天下信息科技有限公司 会议演示方法、装置及系统
CN117176791A (zh) * 2022-05-26 2023-12-05 青岛海尔科技有限公司 推送信息的发送方法和装置、存储介质及电子装置
CN116189381A (zh) * 2023-03-07 2023-05-30 光控特斯联(上海)信息科技有限公司 一种团队旅行安全保护装置及方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130260790A1 (en) * 2012-04-02 2013-10-03 Storewards Ltd. Method and system for providing location identification
CN103745565A (zh) * 2014-01-21 2014-04-23 上海镭芯微电子有限公司 无线自组网团组管理系统
CN105813099A (zh) * 2016-04-20 2016-07-27 西安电子科技大学 基于LoRa自组网的户外无线通信系统
CN106817779A (zh) * 2017-01-13 2017-06-09 深圳市龙腾飞通讯装备技术有限公司 户外无线救援手表自组网系统
CN107846674A (zh) * 2017-11-23 2018-03-27 Tcl移动通信科技(宁波)有限公司 基于蓝牙网格协议的户外通信方法、移动终端及存储介质

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8150421B2 (en) * 2005-12-30 2012-04-03 Trueposition, Inc. User plane uplink time difference of arrival (U-TDOA)
CN204795553U (zh) * 2015-08-17 2015-11-18 深圳帮派音响有限公司 一种智能救援户外背包蓝牙音箱
CN105430182A (zh) * 2015-11-10 2016-03-23 西安狂生电子科技有限公司 基于app和通讯设备的户外局域网通讯系统
CN105575041A (zh) * 2015-12-18 2016-05-11 湖北工业大学 一种户外实时定位通讯系统
CN105872951A (zh) * 2016-03-29 2016-08-17 重庆甲虫网络科技有限公司 救援装置及设有该装置的低带宽远距离通讯的户外通讯与定位救援系统
CN106297187A (zh) * 2016-09-21 2017-01-04 上海良相智能化工程有限公司 外出押解系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130260790A1 (en) * 2012-04-02 2013-10-03 Storewards Ltd. Method and system for providing location identification
CN103745565A (zh) * 2014-01-21 2014-04-23 上海镭芯微电子有限公司 无线自组网团组管理系统
CN105813099A (zh) * 2016-04-20 2016-07-27 西安电子科技大学 基于LoRa自组网的户外无线通信系统
CN106817779A (zh) * 2017-01-13 2017-06-09 深圳市龙腾飞通讯装备技术有限公司 户外无线救援手表自组网系统
CN107846674A (zh) * 2017-11-23 2018-03-27 Tcl移动通信科技(宁波)有限公司 基于蓝牙网格协议的户外通信方法、移动终端及存储介质

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753157B (zh) * 2019-10-11 2022-05-03 张柏林 终端预警方法、系统、终端及可读存储介质
CN110753157A (zh) * 2019-10-11 2020-02-04 张柏林 终端预警方法、系统、终端及可读存储介质
CN113259949A (zh) * 2020-02-11 2021-08-13 阿里巴巴集团控股有限公司 网络配置系统及方法、电子设备、网络配置系统的组建方法及设备
CN113259949B (zh) * 2020-02-11 2023-05-26 阿里巴巴集团控股有限公司 网络配置系统及方法、电子设备、网络配置系统的组建方法及设备
CN111340529A (zh) * 2020-02-14 2020-06-26 Oppo广东移动通信有限公司 抽奖方法、抽奖装置、存储介质与电子设备
CN111340529B (zh) * 2020-02-14 2023-10-13 Oppo广东移动通信有限公司 抽奖方法、抽奖装置、存储介质与电子设备
CN113411789A (zh) * 2020-03-16 2021-09-17 瑞昱半导体股份有限公司 具有控制权分享机制的蓝牙网格网络系统及其控制方法
CN113411788A (zh) * 2020-03-16 2021-09-17 瑞昱半导体股份有限公司 具有未配网通信机制的蓝牙网格网络系统及其通信方法
CN111818515A (zh) * 2020-05-21 2020-10-23 上海橙群微电子有限公司 无线网络组建方法及无线网络系统、节点、可读存储介质
CN111932855A (zh) * 2020-07-29 2020-11-13 重庆城市管理职业学院 基于蓝牙温度监控锅炉控制系统、方法、存储介质、终端
CN112672331A (zh) * 2020-12-11 2021-04-16 深圳成谷智能科技有限公司 一种蓝牙Mesh组网方法、通信方法、通信系统及通信设备
CN113192651A (zh) * 2021-04-07 2021-07-30 Tcl通讯(宁波)有限公司 一种医用数据处理方法、装置、智能终端及存储介质
CN113192651B (zh) * 2021-04-07 2023-07-21 Tcl通讯(宁波)有限公司 一种医用数据处理方法、装置、智能终端及存储介质
CN113163381B (zh) * 2021-04-16 2024-04-12 横店集团得邦照明股份有限公司 一种支持快速配网的智能灯及其实现方法
CN113163381A (zh) * 2021-04-16 2021-07-23 横店集团得邦照明股份有限公司 一种支持快速配网的智能灯及其实现方法
CN113259919A (zh) * 2021-05-12 2021-08-13 宁夏隆基宁光仪表股份有限公司 一种光伏组件数据通信方法、系统以及光伏组件装置
CN113438633A (zh) * 2021-06-18 2021-09-24 深圳松诺技术有限公司 通信数据处理方法、终端和计算机可读存储介质
CN113784287A (zh) * 2021-09-26 2021-12-10 努比亚技术有限公司 一种紧急求救方法、设备及计算机可读存储介质
CN114124868B (zh) * 2021-11-23 2023-07-14 北京百度网讯科技有限公司 一种即时通讯方法、装置、系统、设备以及存储介质
CN114124868A (zh) * 2021-11-23 2022-03-01 北京百度网讯科技有限公司 一种即时通讯方法、装置、系统、设备以及存储介质
CN114980058A (zh) * 2022-07-29 2022-08-30 北京奇岱松科技有限公司 一种网关设备以及网关监控方法、装置和存储介质
CN115175300A (zh) * 2022-08-17 2022-10-11 上海磐启微电子有限公司 一种蓝牙自组网系统的时钟校准方法
CN115175300B (zh) * 2022-08-17 2023-10-31 上海磐启微电子有限公司 一种蓝牙自组网系统的时钟校准方法
CN116017302A (zh) * 2022-12-14 2023-04-25 深圳市新兴达科技发展有限公司 一种智能定位及管理统计的装置及系统
CN116233766A (zh) * 2023-03-03 2023-06-06 深圳木芯科技有限公司 基于电子测量仪的数据传输系统、方法及电子测量仪
CN116684829A (zh) * 2023-06-30 2023-09-01 北京紫光展锐通信技术有限公司 信息传输方法及装置、计算机可读存储介质

Also Published As

Publication number Publication date
CN107846674A (zh) 2018-03-27
CN107846674B (zh) 2021-09-14

Similar Documents

Publication Publication Date Title
WO2019101153A1 (zh) 基于蓝牙网格协议的户外通信方法、移动终端及存储介质
US12317112B2 (en) Measurement method, measurement configuration method, terminal and network device
US20220248484A1 (en) Relay connection establishment method and device
WO2018121148A1 (zh) 一种通信资源选择方法,手持智能终端及接入设备
WO2019137337A1 (zh) 小区选择方法、终端及网络设备
US12010612B2 (en) Method for controlling network access and communications device
CN113067793B (zh) 多播业务的传输方法、传输处理方法及相关设备
CN113068135B (zh) 多播业务处理方法、多播业务配置方法及相关设备
CN112584334B (zh) 一种乱序递交功能指示方法、控制方法及相关设备
KR102596801B1 (ko) Pc5 링크 확립 방법, 장비 및 시스템
WO2021012928A1 (zh) 载波聚合参数配置方法、设备及系统
CN111182580B (zh) 业务传输方法、终端和网络侧设备
WO2020088585A1 (zh) 副链路连接建立、资源分配方法、终端及网络侧设备
CN111836210B (zh) 多媒体多播广播业务的配置方法、终端和网络侧设备
WO2020199919A1 (zh) 上报方法、配置方法、终端和网络设备
WO2020224659A1 (zh) 信息上报方法、信息接收方法、终端和网络控制实体
CN106331302B (zh) 一种添加联系人的方法及设备
CN111836379A (zh) 辅助信息上报方法、配置方法、终端和网络侧设备
CN114501449B (zh) 信息查询的方法、装置、电子设备及存储介质
WO2018028062A1 (zh) 组播业务传输方法、终端、基站和通信系统
CN113543166A (zh) 一种状态通知方法、设备及系统
CN107071751A (zh) 一种基于移动终端架构的消息拦截方法以及移动终端
CN113163343A (zh) 一种计数方法、设备及系统

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: 18881307

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: 18881307

Country of ref document: EP

Kind code of ref document: A1