Mobile terminal and communication method thereof, communication network architecture and communication system
By introducing common protocols and broadcast transmission channels into the communication protocol architecture of mobile terminals, data channel decisions are made according to transmission needs, data transmission delay and reliability problems in Bluetooth mesh networks are solved, and data transmission is efficient and stable.
Patent Information
- Application Number
- CN202510624338.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-14
- Publication Date
- 2025-07-29
AI Technical Summary
The data transmission delay of mobile terminal devices in existing Bluetooth mesh networks is long, and data loss may be caused by the proxy node forwarding process, affecting transmission reliability and stability.
The communication protocol architecture of mobile terminals supports common protocol transmission channels and broadcast transmission channels. By acquiring the transmission requirements of the initial message packet, the data transmission channel is made, the broadcast transmission channel or dual-channel transmission data is used to reduce delay, and the dual-channel transmission data is used to ensure reliability and stability when the transmission reliability requirements are high.
It effectively reduces the data transmission delay and ensures the reliability and stability of data transmission when high reliability is required.
Smart Images

Figure CN120390260A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and more particularly, to a mobile terminal, a communication method thereof, a communication network architecture, and a communication system. Background Art
[0002] Bluetooth technology is one of the most widely used wireless communication technologies. Among them, Bluetooth Low Energy (BLE) has now been widely adopted and is arranged on a large number of smart terminals, tablet computers, and other smart devices (such as wearable devices). The Bluetooth mesh network is a mesh network for device - to - device communication based on BLE, and it is widely used in scenarios such as smart home and smart office for device intelligent interconnection.
[0003] Currently, mobile terminal devices such as smart terminals and tablet computers can access the Bluetooth mesh network via a proxy node in the Bluetooth mesh network. This makes any data packet sent from the mobile terminal to the Bluetooth mesh network have to be forwarded through the proxy node, resulting in data delay and possibly data loss due to the forwarding process of the proxy node. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a mobile terminal, a communication method thereof, a communication network architecture, and a communication system, so that the communication protocol architecture of the mobile terminal supports a general protocol transmission channel and a broadcast transmission channel, and thus broadcast transmission channels or dual - channel transmission can be used to reduce data transmission delay, and dual - channel transmission can also be used to ensure the reliability and stability of data transmission when the requirement for transmission reliability is relatively high.
[0005] In a first aspect, an embodiment of the present invention provides a communication method for a mobile terminal, the method comprising:
[0006] Obtain an initial message packet;
[0007] Make a data transmission channel decision according to the transmission requirements of the initial message packet;
[0008] Encapsulate the initial message packet into a general protocol data packet and / or a broadcast data packet according to the decision result;
[0009] Send the general protocol data packet and / or the broadcast data packet using the corresponding data transmission channel.
[0010] Further, the transmission requirements include delay requirements, reliability requirements, and / or power consumption requirements.
[0011] Further, the making a data transmission channel decision according to the transmission requirements of the initial message packet includes:
[0012] In response to the transmission requirement characterization satisfying a predetermined transmission delay, determine the broadcast transmission channel as the target transmission channel;
[0013] In response to the transmission requirement characterization satisfying a predetermined transmission reliability, determine the general protocol transmission channel and the broadcast transmission channel as the target transmission channels.
[0014] Furthermore, the method further includes:
[0015] Receive an uplink data packet through the general protocol transmission channel.
[0016] In a second aspect, an embodiment of the present invention provides a communication network architecture of a mobile terminal. The communication network architecture of the mobile terminal includes a bearer layer, and the bearer layer includes:
[0017] A channel decision module, configured to make a data transmission channel decision according to the transmission requirement corresponding to an initial message packet and obtain a decision result;
[0018] A general protocol bearer module, configured to encapsulate the initial message packet into a general protocol data packet in response to the decision result indicating that the general protocol transmission channel needs to be used, and send the general protocol data packet through the general protocol transmission channel;
[0019] A broadcast bearer module, configured to encapsulate the initial message packet into a broadcast data packet in response to the decision result indicating that the broadcast transmission channel needs to be used, and send the broadcast data packet through the broadcast transmission channel.
[0020] Furthermore, the general protocol bearer module is configured to de-encapsulate the received uplink data packet to obtain an original uplink packet.
[0021] In a third aspect, an embodiment of the present invention provides a communication system, and the communication system includes:
[0022] A mobile terminal, the bearer layer of the communication network architecture of the mobile terminal includes a general protocol bearer module and a broadcast bearer module. The mobile terminal is configured to make a data transmission channel decision according to the transmission requirement of an initial message packet, and call the channel bearer module and / or the broadcast bearer module according to the decision result to encapsulate the initial message packet into a general protocol data packet and / or a broadcast data packet, and send the general protocol data packet and / or the broadcast data packet using the corresponding data transmission channel;
[0023] A Bluetooth mesh network, including a plurality of nodes, configured to receive the general protocol data packet and / or the broadcast data packet through at least one of the nodes.
[0024] Further, the Bluetooth mesh network includes a proxy node, and the mobile terminal is further configured to establish a communication connection with the proxy node and send the general protocol data packet to the proxy node;
[0025] The proxy node is configured to de-encapsulate the general protocol data packet, obtain the corresponding target data packet, and broadcast the target data packet.
[0026] Further, the Bluetooth mesh network includes functional nodes, and the functional nodes are configured to receive and parse the broadcast data packet and / or the target data packet. In response to itself being the target receiver, the functional nodes execute the target operation corresponding to the broadcast data packet or the target data packet, and perform a deduplication operation on the received broadcast data packet and / or the target data packet based on the message identifier obtained by parsing. In response to itself not being the target receiver, the functional nodes broadcast the received broadcast data packet and / or the target data packet.
[0027] Further, the proxy node is further configured to, in response to receiving an original uplink packet broadcast by a functional node in the Bluetooth mesh network, parse and encapsulate the original uplink packet to generate an uplink general protocol data packet corresponding to the general protocol transmission channel, and send it to the mobile terminal.
[0028] In a fourth aspect, an embodiment of the present invention provides a mobile terminal, including a memory and a processor. The mobile terminal deploys the communication network architecture as described above. The memory is used to store one or more computer program instructions, and wherein the one or more computer program instructions are executed by the processor to implement the method as described above.
[0029] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method as described above is implemented.
[0030] In a sixth aspect, an embodiment of the present invention provides a computer program product, when the computer program product runs on a computer, the computer is enabled to execute the method as described above.
[0031] In the embodiment of the present invention, the mobile terminal obtains an initial message packet, makes a decision on a data transmission channel according to the transmission requirements of the initial message packet, encapsulates the initial message packet into a general protocol data packet and / or a broadcast data packet according to the decision result, and sends the general protocol data packet and / or the broadcast data packet using the corresponding data transmission channel. Thus, this embodiment enables the communication protocol architecture of the mobile terminal to support the general protocol transmission channel and the broadcast transmission channel. Furthermore, the broadcast transmission channel or the dual-channel can be used to transmit data to reduce the data transmission delay, and the dual-channel can also be used to transmit data to ensure the reliability and stability of data transmission when the transmission reliability requirement is relatively high. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Through the following description of the embodiments of the present invention with reference to the accompanying drawings, the above and other objects, features, and advantages of the present invention will become clearer. In the drawings:
[0033] Figure 1 is a schematic diagram of the communication system according to an embodiment of the present invention;
[0034] Figure 2 is a schematic diagram of the communication network architecture of the mobile terminal according to an embodiment of the present invention;
[0035] Figure 3 is a flowchart of the communication method of the mobile terminal according to an embodiment of the present invention;
[0036] Figure 4 is a schematic diagram of the communication process of the communication system according to an embodiment of the present invention;
[0037] Figure 5 is a schematic diagram of the communication device of the mobile terminal according to an embodiment of the present invention;
[0038] Figure 6 is a schematic diagram of the mobile terminal according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0039] The following description is based on the embodiments of the present application, but the present application is not limited to these embodiments. In the following detailed description of the present application, some specific details are described in detail. Those skilled in the art can fully understand the present application without the description of these details. In order to avoid obscuring the essence of the present application, well-known methods, processes, procedures, elements, and circuits are not described in detail.
[0040] In addition, those of ordinary skill in the art should understand that the accompanying drawings provided herein are for illustrative purposes only, and the drawings are not necessarily drawn to scale.
[0041] Unless the context clearly requires otherwise, the words "including", "comprising", and the like throughout the specification of the present application should be construed in an inclusive sense rather than an exclusive or exhaustive sense; that is, they are to be interpreted as "including but not limited to".
[0042] In the description of the present application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be construed as indicating or implying relative importance. In addition, in the description of the present application, unless otherwise specified, the meaning of "a plurality" is two or more.
[0043] For the solutions described in this specification and the embodiments, if they involve personal information processing, they will all be processed on the premise of having a legal basis (such as obtaining the consent of the personal information subject, or being necessary for performing a contract, etc.), and will only be processed within the specified or agreed scope. If a user refuses to process personal information other than the necessary information required for basic functions, it will not affect the user's use of the basic functions.
[0044] Figure 1 is a schematic diagram of the communication system according to an embodiment of the present invention. As Figure 1 shown, the communication system of this embodiment includes a mobile terminal 10 and a Bluetooth mesh network 20. Among them, the mobile terminal 10 can be a smart terminal, a tablet computer, and other smart devices (for example, wearable devices), and the type of the mobile terminal 10 is not limited in this embodiment.
[0045] Further, the Bluetooth mesh network 20 includes N nodes 21 - 2N (N > 1). Among them, the N nodes 21 - 2N in the Bluetooth mesh network 20 can be devices with different functions, such as proxy nodes, relay nodes, and gateway nodes that support the Bluetooth Generic Attribute Protocol (a protocol that requires establishing a communication connection for interaction) and the Bluetooth broadcast or extended broadcast protocol. Among them, in the Bluetooth mesh network 20, broadcast packets can be sent through the Bluetooth broadcast or extended broadcast transmission channel between nodes to achieve interaction. The mobile terminal 10 can achieve interaction with the Bluetooth mesh network 20 through a proxy node. The relay node is mainly responsible for message forwarding.
[0046] Further, the mobile terminal 10 and the gateway node in the Bluetooth mesh network 20 can be used as control devices to configure and control the networked nodes, and can also start the configuration process to network the un-networked devices, so that the un-networked devices can join the Bluetooth mesh network 20.
[0047] In this embodiment, the communication network architecture (i.e., the Bluetooth protocol stack) of the mobile terminal 10 is upgraded and updated to encode its communication interface, thereby adding a Bluetooth broadcast / extended broadcast communication interface, and further enabling the mobile terminal 10 to support the Bluetooth Generic Attribute Profile (GATT) and the Bluetooth broadcast / extended broadcast protocol. Thus, the mobile terminal 10 in this embodiment can interact with the Bluetooth mesh network 20 through a GATT connection or through the Bluetooth broadcast / extended broadcast protocol. Among them, GATT requires that a Bluetooth connection be established between devices first. After the Bluetooth connection is successfully established, data can be exchanged between devices through the GATT protocol. Bluetooth broadcast / extended broadcast can broadcast data packets through the Bluetooth broadcast channel without establishing an actual connection. It should be understood that this embodiment does not limit the method of upgrading and updating the communication network architecture of the mobile terminal 10. For example, the firmware upgrade of the mobile terminal 10 can be achieved through the Bluetooth Low Energy Over-the-Air (BLE OTA) method.
[0048] Figure 2 is a schematic diagram of the communication network architecture of the mobile terminal according to an embodiment of the present invention. As Figure 2 shown, in the improved communication network architecture 30 of the mobile terminal 10 in this embodiment, there is a bearer layer 34. The bearer layer 34 is used to define the way of transmitting data.
[0049] In this embodiment, the bearer layer 34 includes a general protocol bearer module 342 and a broadcast bearer module 343. Among them, the general protocol bearer module 342 supports the GATT protocol. It establishes a communication connection with a proxy node in the Bluetooth mesh network 20 to interact with a functional node in the Bluetooth mesh network 20 through the forwarding of the proxy node, so as to control the target functional node or receive the status information reported by the target functional node through the forwarding of the proxy node, etc. The broadcast bearer module 343 supports Bluetooth broadcast and / or Bluetooth extended broadcast. It does not need to establish a connection with the nodes in the Bluetooth mesh network 20 and can achieve data transmission through broadcast packets.
[0050] In this embodiment, since the mobile terminal 10 can implement the data transmission methods corresponding to the GATT protocol and the advertising / extended advertising protocol, when interacting with the Bluetooth mesh network 20, the channel decision module 341 can select one or both of the data transmission methods to perform data transmission to meet the data transmission requirements of corresponding tasks. For example, users may have latency requirements, reliability requirements, and / or power consumption requirements, etc. for different tasks. Since when establishing a connection through the GATT protocol to implement data transmission, a proxy node is required for forwarding, the data transmission latency is relatively large. Therefore, if the transmission requirements of the current task indicate that it meets a predetermined transmission latency, that is, the timeliness requirement of data transmission is relatively high, the advertising bearer module 343 can be selected to implement data interaction with the Bluetooth mesh network 20 through the advertising transmission channel. At the same time, if the transmission requirements of the current task indicate that it meets a predetermined transmission reliability, that is, it is necessary to ensure that data is not lost as much as possible during transmission, a dual-channel (that is, the general protocol transmission channel and the advertising transmission channel) can be used to implement data interaction with the Bluetooth mesh network 20. It should be understood that this embodiment does not limit the type of task transmission requirements, nor does it limit the data transmission method selected to meet the corresponding requirement type. The requirement type and the selected data transmission method can be adapted to each other. For example, when the amount of data to be transmitted in the current task is relatively large, in order to reduce the power consumption of data transmission, one of the two transmission channels can be selected to implement data transmission, etc. This embodiment will not give further examples here.
[0051] Specifically, in the communication network architecture 30 of the mobile terminal 10, the channel decision module 341 of the bearer layer 34 is configured to obtain an initial message packet and make a data transmission channel decision based on the transmission requirements corresponding to the initial message packet, and obtain a decision result. The initial message packet may include the data content to be transmitted and a message identifier. It should be understood that this embodiment does not limit the specific structure of the initial message packet, and its corresponding fields can be set based on the corresponding protocol, and no further examples will be given here.
[0052] Further, in the communication network architecture 30 of the mobile terminal 10, the general protocol bearer module 342 of the bearer layer 34 is configured to encapsulate the initial message packet into a general protocol data packet in response to the decision result of the channel decision module 341 indicating that the general protocol transmission channel needs to be used, and send the general protocol data packet through the general protocol transmission channel. The advertising bearer module 343 of the bearer layer 34 is configured to encapsulate the initial message packet into an advertising data packet in response to the decision result indicating that the advertising transmission channel needs to be used, and send the advertising data packet through the advertising transmission channel.
[0053] Such as Figure 1As shown, taking node 22 as an example of the proxy node, when the Bluetooth function of the mobile terminal 10 is controlled to be turned on, the mobile terminal 10 scans the connection request sent by the proxy node 22 to establish a communication connection between the mobile terminal 10 and the proxy node 22. In another alternative implementation, when the Bluetooth function of the mobile terminal 10 is controlled to be turned on, the mobile terminal 10 sends a connection request so that the proxy node 22 can scan the connection request sent by the mobile terminal 10, thereby establishing a communication connection between the mobile terminal 10 and the proxy node 22. In other alternative implementations, after the Bluetooth function of the mobile terminal 10 in this embodiment is controlled to be turned on and it is determined that a general protocol transmission channel is required based on the transmission requirements of the current data transmission task, a communication connection with the proxy node 22 is established. This embodiment does not limit the timing of establishing the GATT connection, and it can be configured based on the actual application situation.
[0054] Further, after the bearer layer 34 receives the initial message packet sent by the upper-layer application, the channel decision module 341 makes a data transmission channel decision based on the transmission requirements of the current task corresponding to the initial message packet (such as latency requirements, power consumption requirements, reliability requirements, etc.) to determine which transmission channel to select to implement the data transmission task. Taking the transmission requirement of the current task as the reliability requirement as an example in this embodiment, the decision result determined by the channel decision module 341 is to use a dual-channel to transmit the corresponding data to the target node in the Bluetooth mesh network 20. Further, the general protocol bearer module 342 encapsulates the initial message packet into a general protocol data packet and sends the general protocol data packet to the proxy node 22 through the general protocol transmission channel. The broadcast bearer module 343 encapsulates the initial message packet into a broadcast data packet and sends the broadcast data packet through the broadcast transmission channel.
[0055] Further, the communication network architecture 30 of the mobile terminal 10 further includes an access layer (Upper&access layer) 31, a transport layer (Lower layer) 32, a network layer (Networklayer) 33, and a system layer (System layer) 35. Among them, the access layer 31 is used to convert the messages from the corresponding applications into the format specified by the mesh protocol, upload the received messages to the specified applications, and implement corresponding encryption, decryption, authorization, etc. functions. The network layer 33 is mainly used to define the network address type, define the input and output filters, define the encryption and authentication of network messages, etc. The transport layer 32 is used to split the too long transport layer packets into several parts and distribute them to the network layer, and then combine the short network layer packets into a long packet and send it to the transport layer. The system layer 35 includes the underlying software or hardware components that correspondingly support data transmission.
[0056] Further, the Bluetooth mesh network 20 may include one or more proxy nodes. Since the proxy node needs to de-encapsulate the received general protocol data packet (i.e., GATT data packet) and broadcast the mesh data packet obtained after de-encapsulation, the communication network structure of the proxy node also needs to support the GATT protocol and the broadcast / extended broadcast protocol. That is, the bearer layer of the communication network structure of the proxy node also includes the GATT bearer and the broadcast / extended broadcast bearer. Since it does not need to select a data transmission channel, the bearer layer of the communication network structure of the proxy node may not deploy a channel decision module. However, it should be understood that if the proxy node needs to make a channel decision, it may also deploy a similar channel decision module, and this embodiment does not limit this.
[0057] Further, the proxy node is configured to de-encapsulate the received general protocol data packet, obtain the corresponding target data packet, and broadcast the target data packet. The target data packet is a data packet of the mash protocol type. The Bluetooth mesh network 20 includes functional nodes, that is, nodes that perform corresponding functional operations. The functional node is configured to receive and parse the broadcast data packet sent by the mobile terminal 10 and / or the target data packet sent by the proxy node (or other relay nodes), execute the target operation corresponding to the broadcast data packet or the target data packet in response to itself being the target receiver, and perform a deduplication operation on the received broadcast data packet and / or target data packet based on the message identifier obtained by parsing. In response to itself not being the target receiver, broadcast the received broadcast data packet and / or the target data packet.
[0058] Taking the proxy node 22 and the target receiver as the functional node 25 as an example, the mobile terminal 10 sends corresponding data packets through the general protocol transmission channel and the broadcast transmission channel. After receiving the general protocol data packet, the proxy node 22 unpacks the general protocol data packet, obtains the target data packet of the corresponding mesh protocol type, and broadcasts the target data packet. Suppose the functional node 23 receives the broadcast data packet sent by the mobile terminal 10 through the broadcast transmission channel, parses the broadcast data packet, and the functional node 23 determines that it is not the target receiver and broadcasts the received broadcast data packet. Further, suppose the functional node 23 also receives the target data packet sent by the proxy node 22, parses the target data packet, and the functional node 23 determines that it is not the target receiver and broadcasts the received target data packet. It can be seen that the functional node 25 may receive the message packets sent by the mobile terminal 10 through multiple transmission paths. To avoid the functional node 25 repeatedly performing the same operation, corresponding deduplication operations need to be performed. Optionally, after receiving the data packet, the functional node 25 parses the data packet to obtain the message identifier of the data packet, and determines whether the operation corresponding to the data packet with the same message identifier has been performed based on the message identifier of the data packet. If it has been performed, the currently received data packet is discarded to implement the corresponding deduplication operation. It should be understood that this embodiment does not limit the specific operation process of message deduplication, as long as it can achieve message deduplication.
[0059] Further, when the nodes in the Bluetooth mesh network 20 upload data to the mobile terminal 10, to reduce the power consumption of the mobile terminal, data upload can be achieved only through the general protocol channel. Specifically, the proxy node in the Bluetooth mesh network 20 is further configured to, in response to receiving the original upload packet broadcast by the functional node in the Bluetooth mesh network, parse and encapsulate the original upload packet to generate the upload general protocol data packet corresponding to the general protocol transmission channel, and send it to the mobile terminal 10. Further, the general protocol bearer module 342 in the mobile terminal 10 is configured to unpack the received upload data packet, obtain the original upload packet of the mesh protocol type, and send the original upload packet to the corresponding application.
[0060] In other alternative implementation manners, if there are corresponding data transmission reliability requirements, a dual-channel can also be used for data upload, that is, the mobile terminal 10 can receive the upload data of the Bluetooth mesh network 20 through a dual-channel. Further, the general protocol bearer module 342 and the broadcast bearer module 343 in the mobile terminal 10 are configured to unpack the received upload data packets respectively, obtain the original upload packets of the mesh protocol type, and send the original upload packets to the corresponding applications. It should be understood that when the mobile terminal 10 receives data packets through a dual-channel, corresponding deduplication operations also need to be performed, and the specific method is similar to the above message deduplication operation method and will not be elaborated here.
[0061] In the communication system according to an embodiment of the present invention, the bearer layer of the communication network architecture of the mobile terminal includes a general protocol bearer module and a broadcast bearer module. The mobile terminal is configured to make a data transmission channel decision according to the transmission requirements of the initial message packet, and call the channel bearer module and / or the broadcast bearer module according to the decision result to encapsulate the initial message packet into a general protocol data packet and / or a broadcast data packet, and send the general protocol data packet and / or the broadcast data packet by using the corresponding data transmission channel. The Bluetooth mesh network includes multiple nodes, and is configured to receive the general protocol data packet and / or the broadcast data packet through at least one node. This embodiment enables the communication protocol architecture of the mobile terminal to support the general protocol transmission channel and the broadcast transmission channel, and thus the broadcast transmission channel or the dual-channel can be used to transmit data to reduce the data transmission delay. When the transmission reliability requirement is relatively high, the dual-channel can also be used to transmit data to ensure the reliability and stability of data transmission.
[0062] Figure 3 It is a flowchart of the communication method of the mobile terminal according to an embodiment of the present invention. The communication protocol architecture of the mobile terminal according to an embodiment of the present invention supports the general protocol transmission channel and the broadcast transmission channel. As Figure 3 shown, the communication method of the mobile terminal according to an embodiment of the present invention includes the following steps:
[0063] Step S110, obtain an initial message packet. Optionally, the initial message packet in this embodiment is the data required to be sent by the application layer, and it may include the data content and message identifier required to be sent.
[0064] Step S120, make a data transmission channel decision according to the transmission requirements of the initial message packet. Optionally, the transmission requirements include delay requirements, reliability requirements, and / or power consumption requirements.
[0065] Optionally, in this embodiment, in response to the transmission requirements indicating that a predetermined transmission delay is satisfied, the broadcast transmission channel is determined as the target transmission channel, and in response to the transmission requirements indicating that a predetermined transmission reliability is satisfied, the general protocol transmission channel and the broadcast transmission channel are determined as the target transmission channels. It should be understood that the above manner of making the data transmission channel decision is merely exemplary, and this embodiment does not limit the correspondence between the type of transmission requirements and the corresponding decision results, and it can be configured according to the actual application situation.
[0066] Step S130, encapsulate the initial message packet into a general protocol data packet and / or a broadcast data packet according to the decision result.
[0067] Step S140, send the general protocol data packet and / or the broadcast data packet by using the corresponding data transmission channel.
[0068] In an alternative implementation, if the decision result indicates that data is transmitted using a general protocol transmission channel, the initial message packet is encapsulated into a general protocol data packet and sent through the general protocol transmission channel established with the proxy node. In another alternative implementation, if the decision result indicates that data is transmitted using a broadcast transmission channel, the initial message packet is encapsulated into a broadcast data packet and broadcast using the broadcast transmission channel. In yet another alternative implementation, if the decision result indicates that data is transmitted using both a general protocol transmission channel and a broadcast transmission channel, the initial message packet is encapsulated into a general protocol data packet and a broadcast data packet. The general protocol data packet is sent through the general protocol transmission channel established with the proxy node, and the broadcast data packet is broadcast using the broadcast transmission channel.
[0069] Further, when a node in the Bluetooth mesh network uploads data to the mobile terminal, to reduce the power consumption of the mobile terminal, data upload can be implemented only through the general protocol channel. Specifically, the proxy node in the Bluetooth mesh network is further configured to, in response to receiving the original upload packet broadcast by a functional node in the Bluetooth mesh network, parse and encapsulate the original upload packet to generate an upload general protocol data packet corresponding to the general protocol transmission channel, and send it to the mobile terminal. Further, the mobile terminal receives the upload data packet through the general protocol transmission channel, de-encapsulates the received upload data packet to obtain the original upload packet of the mesh protocol type, and sends the original upload packet to the corresponding application.
[0070] In other alternative implementations, if there are corresponding data transmission reliability requirements, dual channels can also be used for data upload, that is, the mobile terminal can receive the upload data of the Bluetooth mesh network using dual channels.
[0071] In the embodiment of the present invention, the mobile terminal obtains the initial message packet, makes a decision on the data transmission channel according to the transmission requirements of the initial message packet, encapsulates the initial message packet into a general protocol data packet and / or a broadcast data packet according to the decision result, and sends the general protocol data packet and / or the broadcast data packet using the corresponding data transmission channel. Thus, this embodiment enables the communication protocol architecture of the mobile terminal to support the general protocol transmission channel and the broadcast transmission channel. Furthermore, the broadcast transmission channel or dual channels can be used to transmit data to reduce the data transmission delay. When the transmission reliability requirement is relatively high, dual channels can also be used to transmit data to ensure the reliability and stability of data transmission.
[0072] Figure 4 is a schematic diagram of the communication process of the communication system according to the embodiment of the present invention. As Figure 4As shown in the figure, after the bearer layer of the communication network architecture of the mobile terminal receives the initial message packet p1 from the target application, it determines that the initial message packet p1 needs to be transmitted via a dual-channel (GATT and broadcast) method based on the transmission requirements of the current task corresponding to the initial message packet p1 (such as latency requirements, reliability requirements, power consumption requirements, etc.). Further, the Generic Attribute Profile (GATT) Bearer encapsulates the initial message packet p1 in the GATT protocol type to generate a GATT data packet p2, and sends the GATT data packet p2 to the proxy node 41 through the general protocol transmission channel established in advance with the proxy node 41. The Broadcast / Extended Broadcast Bearer encapsulates the initial message packet p1 in the broadcast / extended broadcast protocol type to generate a broadcast type data packet p3. It should be understood that if the initial message packet p1 itself is a data packet that can be broadcast transmitted in the Bluetooth mesh network, the Broadcast / Extended Broadcast Bearer does not need to encapsulate it again. After receiving the broadcast type data packet p3 through the broadcast transmission channel, the functional node 42 parses the broadcast type data packet p3, determines that it is not the target node of the broadcast type data packet p3, and further broadcasts the data packet p3. After receiving the broadcast type data packet p3 through the broadcast transmission channel, the target node 44 parses the broadcast type data packet p3, determines that it is the target node of the broadcast type data packet p3, and based on the message identifier of the broadcast type data packet p3, determines that it has not processed a data packet with the same identifier before, and performs corresponding data processing operations on the broadcast type data packet p3.
[0073] Further, after receiving the GATT data packet p2, the proxy node 41 unpackages the GATT data packet p2. If the unpackaged data packet is a data packet that can be broadcast transmitted in the Bluetooth mesh network, the unpackaged data packet is used as the target data packet p4. If the unpackaged data packet is not a data packet that is broadcast transmitted in the Bluetooth mesh network, the unpackaged data packet is encapsulated based on the Bluetooth mesh protocol to obtain the target data packet p4. Further, after obtaining the target data packet p4, the proxy node 41 broadcasts the target data packet p4.
[0074] After receiving the target data packet p4 through the broadcast transmission channel, the functional node 43 parses the target data packet p4, determines that it is not the target node of the target data packet p4, and further broadcasts the target data packet p4. After receiving the target data packet p4 through the broadcast transmission channel, the target node 44 parses the target data packet p4, determines that it is the target node of the target data packet p4, and based on the message identifier of the target data packet p4, determines that it has processed the data packet p3 with the same identifier before, and discards the target data packet p4 to achieve message deduplication and avoid the situation where the target node 44 processes the same data packet repeatedly.
[0075] Further, when the target node 44 needs to report corresponding data to the target application, the target node 44 generates and broadcasts an original uplink packet p1'. After receiving the original uplink packet p1' through the broadcast transmission channel, the functional node 43 parses the original uplink packet p1', determines that it is not the target node of the original uplink packet p1', and further broadcasts the original uplink packet p1'. After receiving the original uplink packet p1' through the broadcast transmission channel, the proxy node 41 parses the original uplink packet p1', determines that the target node of the original uplink packet p1' is the mobile terminal, encapsulates the original uplink packet p1' using the GATT protocol to generate a GATT uplink packet p2', and sends the GATT uplink packet p2' to the bearer layer of the mobile terminal through the GATT connection established in advance with the mobile terminal. The GATT uplink packet p2' is de-encapsulated through the unified protocol bearer to obtain an uplink data packet p3' and upload it to the target application.
[0076] In this embodiment, taking the realization of data uplink using a GATT connection as an example for specific illustration, it should be understood that it can also use a broadcast channel or a dual-channel to realize data uplink, which will not be described in detail here.
[0077] In the embodiment of the present invention, the mobile terminal obtains an initial message packet, makes a decision on the data transmission channel according to the transmission requirements of the initial message packet, encapsulates the initial message packet into a general protocol data packet and / or a broadcast data packet according to the decision result, and sends the general protocol data packet and / or the broadcast data packet using the corresponding data transmission channel. Thus, this embodiment enables the communication protocol architecture of the mobile terminal to support the general protocol transmission channel and the broadcast transmission channel. Furthermore, the broadcast transmission channel or the dual-channel can be used to transmit data to reduce the data transmission delay, and the dual-channel can also be used to ensure the reliability and stability of data transmission when the transmission reliability requirement is high.
[0078] Figure 5 is a schematic diagram of the communication device of the mobile terminal in the embodiment of the present invention. As Figure 5 shown, the communication device 5 of the mobile terminal in the embodiment of the present invention includes an acquisition unit 51, a decision-making unit 52, an encapsulation unit 53, and a sending unit 54.
[0079] The acquisition unit 51 is configured to acquire an initial message packet. The decision-making unit 52 is configured to make a decision on the data transmission channel according to the transmission requirements of the initial message packet. The encapsulation unit 53 is configured to encapsulate the initial message packet into a general protocol data packet and / or a broadcast data packet according to the decision result. The sending unit 54 is configured to send the general protocol data packet and / or the broadcast data packet using the corresponding data transmission channel.
[0080] In an alternative implementation, the transmission requirements include delay requirements, reliability requirements, and / or power consumption requirements.
[0081] In an alternative implementation, the decision-making unit 52 is further configured to determine the broadcast transmission channel as the target transmission channel in response to the transmission requirement characterization satisfying a predetermined transmission delay, and determine the general protocol transmission channel and the broadcast transmission channel as the target transmission channels in response to the transmission requirement characterization satisfying a predetermined transmission reliability.
[0082] In an alternative implementation, the communication device 5 further includes a receiving unit configured to receive uplink data packets through the general protocol transmission channel.
[0083] In the embodiment of the present invention, the mobile terminal obtains an initial message packet, makes a decision on a data transmission channel according to the transmission requirement of the initial message packet, encapsulates the initial message packet into a general protocol data packet and / or a broadcast data packet according to the decision result, and sends the general protocol data packet and / or the broadcast data packet by using the corresponding data transmission channel. Thus, this embodiment enables the communication protocol architecture of the mobile terminal to support the general protocol transmission channel and the broadcast transmission channel, and further, the broadcast transmission channel or the dual-channel can be used to transmit data to reduce the data transmission delay, and the dual-channel can also be used to transmit data to ensure the reliability and stability of data transmission when the transmission reliability requirement is high.
[0084] Figure 6 It is a schematic diagram of the mobile terminal in the embodiment of the present invention. In this embodiment, the mobile terminal 6 is a smart terminal, a tablet computer, and other smart devices (such as wearable devices), etc. The mobile terminal 6 is deployed with a communication network architecture as shown in Figure 2 the embodiment shown to support data interaction with the Bluetooth mesh network through the general protocol transmission channel (i.e., GATT) and the broadcast transmission channel. Further, as shown in Figure 6 the mobile terminal 6: includes at least one processor 61; and, a memory 62 communicatively connected to at least one processor 61; and, a communication component 63 communicatively connected to the scanning device, and the communication component 63 receives and sends data under the control of the processor 61; wherein, the memory 62 stores instructions executable by at least one processor 61, and the instructions are executed by at least one processor 61 to implement the above communication method.
[0085] Specifically, the mobile terminal includes: one or more processors 61 and a memory 62, Figure 6 taking one processor 61 as an example. The processor 61 and the memory 62 can be connected through a bus or other means, Figure 6Take the bus connection as an example. As a non-volatile computer-readable storage medium, the memory 62 can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. By running the non-volatile software programs, instructions, and modules stored in the memory 62, the processor 61 executes various functional applications and data processing of the device, that is, implements the above communication method.
[0086] The memory 62 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store an option list, etc. In addition, the memory 62 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 62 may optionally include a memory remotely set relative to the processor 61, and these remote memories can be connected to external devices through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0087] One or more modules are stored in the memory 62, and when executed by one or more processors 61, they execute the communication method in any of the above method embodiments.
[0088] The above product can execute the method provided by the embodiments of the present application, and has corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in this embodiment, reference can be made to the method provided by the embodiments of the present application.
[0089] In the embodiment of the present invention, the mobile terminal obtains an initial message packet, makes a data transmission channel decision according to the transmission requirements of the initial message packet, encapsulates the initial message packet into a general protocol data packet and / or a broadcast data packet according to the decision result, and sends the general protocol data packet and / or the broadcast data packet using the corresponding data transmission channel. Thus, this embodiment enables the communication protocol architecture of the mobile terminal to support the general protocol transmission channel and the broadcast transmission channel, and then can use the broadcast transmission channel or the dual-channel to transmit data to reduce the data transmission delay. When the transmission reliability requirement is high, the dual-channel can also be used to transmit data to ensure the reliability and stability of data transmission.
[0090] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program for a computer to execute some or all of the above method embodiments.
[0091] That is, those skilled in the art can understand that all or part of the steps in implementing the methods of the above embodiments can be completed by instructing relevant hardware through a program. The program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs.
[0092] The foregoing are only the preferred embodiments of the present application and are not used to limit the present application. For those skilled in the art, various modifications and changes can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.
Claims
1. A communication method for a mobile terminal, characterized in that, The method includes: Obtain an initial message packet; Make a data transmission channel decision according to the transmission requirements of the initial message packet; Encapsulate the initial message packet into a general protocol data packet and / or a broadcast data packet according to the decision result; Send the general protocol data packet and / or the broadcast data packet using the corresponding data transmission channel.
2. The method according to claim 1, wherein The transmission requirements include delay requirements, reliability requirements, and / or power consumption requirements.
3. The method according to claim 2, wherein The making a data transmission channel decision according to the transmission requirements of the initial message packet includes: In response to the transmission requirements indicating that a predetermined transmission delay is satisfied, determine the broadcast transmission channel as the target transmission channel; In response to the transmission requirements indicating that a predetermined transmission reliability is satisfied, determine the general protocol transmission channel and the broadcast transmission channel as the target transmission channels.
4. The method according to claim 1, characterized in that, The method further includes: Receive an uplink data packet through the general protocol transmission channel.
5. A communication network architecture of a mobile terminal, characterized in that, The communication network architecture of the mobile terminal includes a bearer layer, and the bearer layer includes: A channel decision module, configured to make a data transmission channel decision according to the transmission requirements corresponding to the initial message packet and obtain a decision result; A general protocol bearer module, configured to, in response to the decision result indicating that the general protocol transmission channel needs to be used, encapsulate the initial message packet into a general protocol data packet and send the general protocol data packet through the general protocol transmission channel; A broadcast bearer module, configured to, in response to the decision result indicating that the broadcast transmission channel needs to be used, encapsulate the initial message packet into a broadcast data packet and send the broadcast data packet through the broadcast transmission channel.
6. The communication network architecture according to claim 5, wherein The general protocol bearer module is configured to de-encapsulate the received uplink data packet to obtain the original uplink packet.
7. A communication system, characterized in that, The communication system includes: A mobile terminal, the bearer layer of the communication network architecture of the mobile terminal includes a general protocol bearer module and a broadcast bearer module, and the mobile terminal is configured to make a data transmission channel decision according to the transmission requirements of the initial message packet, call the channel bearer module and / or the broadcast bearer module according to the decision result to encapsulate the initial message packet into a general protocol data packet and / or a broadcast data packet, and send the general protocol data packet and / or the broadcast data packet using the corresponding data transmission channel; A Bluetooth mesh network, including a plurality of nodes, configured to receive the general protocol data packet and / or the broadcast data packet through at least one of the nodes.
8. The communication system according to claim 7, wherein The Bluetooth mesh network includes a proxy node, and the mobile terminal is further configured to establish a communication connection with the proxy node and send the general protocol data packet to the proxy node; The proxy node is configured to de-encapsulate the general protocol data packet to obtain the corresponding target data packet and broadcast the target data packet.
9. The communication system according to claim 8, wherein The Bluetooth mesh network includes functional nodes, which are configured to receive and parse the broadcast data packet and / or the target data packet, execute the target operation corresponding to the broadcast data packet or the target data packet in response to itself being the target receiver, and perform a deduplication operation on the received broadcast data packet and / or target data packet based on the message identifier obtained by parsing. In response to itself not being the target receiver, the received broadcast data packet and / or target data packet are broadcasted.
10. The communication system according to claim 8, wherein The proxy node is further configured to, in response to receiving the original uplink packet broadcasted by a functional node in the Bluetooth mesh network, parse and encapsulate the original uplink packet to generate an uplink general protocol data packet corresponding to the general protocol transmission channel, and send it to the mobile terminal.
11. A mobile terminal, comprising a memory and a processor, characterized in that, The mobile terminal deploys a communication network architecture that supports data transmission through the general protocol transmission channel and the broadcast transmission channel. The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to any one of claims 1-4.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1-4 is implemented.
13. A computer program product, characterized in that, When the computer program product runs on a computer, the computer is caused to execute the method according to any one of claims 1-4.