A network communication method and device

By switching to ClassD mode in LoRaWAN and turning on CAD, the terminal can detect and receive downlink data frames with long preambles, solving the problem of poor real-time performance of the working mode in LoRaWAN, and meeting the needs of downlink low-latency scenarios.

CN114070533BActive Publication Date: 2024-11-15ALIBABA GROUP HOLDING LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010797410.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-10
Publication Date
2024-11-15
Estimated Expiration
2040-08-10

AI Technical Summary

Technical Problem

Some working modes in LoRaWAN have poor real-time performance and cannot meet the needs of downward low-latency scenarios, such as unlocking of smart parking and unlocking of smart home door locks.

Method used

The terminal requests to the network server to enter ClassD mode through MAC instructions and turns on CAD (Channel Activity Detection) to detect downlink data frames with preambles, realizes target working mode switching, and avoids poor real-time working modes.

Benefits of technology

It realizes the need to meet the downlink low-latency scenarios in LoRaWAN, and improves the real-time and efficiency of network transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114070533B_ABST
    Figure CN114070533B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method and device for network communication, the method comprising: the terminal sends a first instruction message to the network server through a first gateway, the first instruction message includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to the target working mode; the terminal receives a first reply message returned to the first instruction message from the network server through a second gateway; the terminal receives a first data frame from the network server through the second gateway in the target working mode, the first data frame includes a first preamble code and a first message set. Through the embodiment of the present invention, it is realized that the terminal notifies the network server to enter the target working mode, avoiding the situation where a working mode with poor real-time performance is adopted and cannot meet the downlink low latency scenario.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network technology, and in particular to a network communication method and device. Background Art

[0002] The Internet of Things (IoT) technology is the third information technology revolution after computers and the Internet. It has the characteristics of real-time and interactivity, and has been widely used in many fields such as urban management, digital home, positioning navigation, logistics management, and security systems.

[0003] LoRa (Long Range Radio) is an ultra-long-distance transmission solution based on spread spectrum technology in the Internet of Things, with the characteristics of long transmission distance, low power consumption, multiple nodes and low cost. LoRa is a physical layer modulation and demodulation technology with significant advantages of excellent receiving sensitivity (-148dBm) and ultra-long transmission distance (15km in open areas).

[0004] Different protocol stack structures can be built based on LoRa, such as star and mesh. The star structure can include LoRaWAN (LoRa Wide Area Network). LoRaWAN is a MAC layer protocol. Its main goal is to build a large-capacity, long-distance and low-power star network to meet the needs of IoT applications.

[0005] However, in LoRaWAN, due to the different working modes, some working modes have the disadvantage of poor real-time performance and cannot meet the downlink low-latency scenarios, such as unlocking the gate of smart parking and unlocking the door lock of smart home. Summary of the invention

[0006] In view of the above problems, a method and apparatus for network communication is proposed to overcome the above problems or at least partially solve the above problems, including:

[0007] A network communication method, applied to a terminal, wherein the terminal communicates with a network server via a gateway, the method comprising:

[0008] The terminal sends first instruction information to the network server through a first gateway, where the first instruction information includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to a target working mode;

[0009] The terminal receives a first reply message returned in response to the first instruction information from the network server through a second gateway;

[0010] In the target working mode, the terminal receives a first data frame from the network server through the second gateway, where the first data frame includes a first preamble code and a first message set.

[0011] Optionally, the first reply message includes target working mode configuration information, and the terminal receives a first data frame from the network server through the second gateway in the target working mode, including:

[0012] The terminal receives a first data frame from the network server through the second gateway according to the target working mode configuration information.

[0013] Optionally, before the terminal sends the first instruction information to the network server through the first gateway, the method further includes:

[0014] The terminal sends second instruction information to the network server through the first gateway, where the second instruction information is used to request target working mode configuration information from the network server;

[0015] The terminal receives a second reply message returned to the second instruction information from the network server through the second gateway, where the second reply message includes target working mode configuration information;

[0016] The terminal receiving, in the target working mode, a first data frame from the network server through the second gateway, comprising:

[0017] The terminal receives a first data frame from the network server through the second gateway according to the target working mode configuration information.

[0018] Optionally, before the terminal sends the first instruction information to the network server through the first gateway, the method further includes:

[0019] The terminal sends second instruction information to the network server through the first gateway, where the second instruction information is used to request target working mode configuration information from the network server, and the second instruction information includes first target working mode configuration information;

[0020] The terminal receives a second reply message returned to the second instruction information from the network server through the second gateway, wherein the second reply message includes confirmation information for the first target working mode configuration information or second target working mode configuration information;

[0021] The terminal receiving, in the target working mode, a first data frame from the network server through the second gateway, comprising:

[0022] The terminal receives a first data frame from the network server through the second gateway according to the first target working mode configuration information or the second target working mode configuration information.

[0023] Optionally, the first instruction information also includes detection cycle information.

[0024] Optionally, before the terminal sends the first instruction information to the network server through the first gateway, the method further includes:

[0025] The terminal sends third instruction information to the network server through the first gateway, where the third instruction information includes detection cycle information;

[0026] The terminal receives a third reply message returned in response to the third instruction information from the network server through the second gateway.

[0027] Optionally, before the terminal sends the second instruction information to the network server through the first gateway, the method further includes:

[0028] The terminal sends third instruction information to the network server through the first gateway, where the third instruction information includes detection cycle information;

[0029] The terminal receives a third reply message returned in response to the third instruction information from the network server through the second gateway.

[0030] Optionally, the target working mode identifier in the first instruction information is included in a fourth reply message, and the terminal sends the first instruction information to the network server through the first gateway, including:

[0031] The terminal receives fourth instruction information from the network server through the second gateway, where the fourth instruction information is used to inquire whether the terminal supports the target working mode;

[0032] The terminal returns a fourth reply message for the fourth instruction information to the network server through the first gateway.

[0033] Optionally, the target working mode configuration information includes at least one of the following:

[0034] Frequency information, data rate information.

[0035] A network communication method is applied to a network server, wherein the network server communicates with a terminal via a gateway, and the method comprises:

[0036] The network server receives first instruction information from the terminal through a first gateway, where the first instruction information includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to a target working mode;

[0037] The network server returns a first reply message to the terminal via the second gateway in response to the first instruction information;

[0038] In the target working mode, the network server sends a first data frame to the terminal through the second gateway, where the first data frame includes a first preamble code and a first message set.

[0039] Optionally, the first reply message includes target working mode configuration information, and the network server sends a first data frame to the terminal through the second gateway in the target working mode, including:

[0040] The network server sends a first data frame to the terminal through the second gateway according to the target working mode configuration information.

[0041] Optionally, before the network server receives the first instruction information from the terminal through the first gateway, the method further includes:

[0042] The network server receives second instruction information from the terminal through the first gateway, where the second instruction information is used to request target working mode configuration information from the network server;

[0043] The network server returns a second reply message to the terminal via the second gateway in response to the second instruction information, wherein the second reply message includes target working mode configuration information;

[0044] The network server sends a first data frame to the terminal through the second gateway in the target working mode, including:

[0045] The network server sends a first data frame to the terminal through the second gateway according to the target working mode configuration information.

[0046] Optionally, before the network server receives the first instruction information from the terminal through the first gateway, the method further includes:

[0047] The network server receives second instruction information from the terminal through the first gateway, the second instruction information is used to request target working mode configuration information from the network server, and the second instruction information includes first target working mode configuration information;

[0048] The network server returns a second reply message to the terminal via the second gateway for the second instruction information, wherein the second reply message includes confirmation information for the first target working mode configuration information or second target working mode configuration information;

[0049] The network server sends a first data frame to the terminal through the second gateway in the target working mode, including:

[0050] The network server sends a first data frame to the terminal through the second gateway according to the first target working mode configuration information or the second target working mode configuration information.

[0051] Optionally, the first instruction information also includes detection cycle information.

[0052] Optionally, before the network server receives the first instruction information from the terminal through the first gateway, the method further includes:

[0053] The network server receives third instruction information from the terminal through the first gateway, where the third instruction information includes detection cycle information;

[0054] The network server returns a third reply message to the terminal via the second gateway in response to the third instruction information.

[0055] Optionally, before the network server receives the second instruction information from the terminal through the first gateway, the method further includes:

[0056] The network server receives third instruction information from the terminal through the first gateway, where the third instruction information includes detection cycle information;

[0057] The network server returns a third reply message to the terminal via the second gateway in response to the third instruction information.

[0058] Optionally, the target working mode identifier in the first instruction information is included in a fourth reply message, and the network server receives the first instruction information from the terminal through the first gateway, including:

[0059] The network server sends fourth instruction information to the terminal through the second gateway, where the fourth instruction information is used to inquire whether the terminal supports the target working mode;

[0060] The network server receives a fourth reply message returned in response to the fourth instruction information from the terminal through the first gateway.

[0061] Optionally, the target working mode configuration information includes at least one of the following:

[0062] Frequency information, data rate information.

[0063] A network communication method, applied to a terminal, wherein the terminal communicates with a network server via a gateway, the method comprising:

[0064] In response to the unlocking operation of the user, the terminal sends a first instruction message to the network server through the first gateway, wherein the first instruction message includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to the target working mode;

[0065] The terminal receives a first reply message returned in response to the first instruction information from the network server through the second gateway;

[0066] The terminal receives a first data frame from the network server through the second gateway in the target working mode, where the first data frame includes a first preamble code and a first message set to perform an unlocking operation.

[0067] A network communication device, applied to a terminal, wherein the terminal communicates with a network server via a gateway, and the device comprises:

[0068] A first instruction information sending module, used to send first instruction information to the network server through a first gateway, wherein the first instruction information includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to a target working mode;

[0069] A first reply message receiving module, configured to receive a first reply message returned in response to the first instruction information from the network server through a second gateway;

[0070] The first data frame receiving module is used to receive a first data frame from the network server through the second gateway in the target working mode, where the first data frame includes a first preamble code and a first message set.

[0071] A network communication device is applied to a network server, wherein the network server communicates with a terminal via a gateway, and the device comprises:

[0072] A first instruction information receiving module, configured to receive first instruction information from the terminal through a first gateway, wherein the first instruction information includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to a target working mode;

[0073] A first reply message returning module, configured to return a first reply message to the terminal via a second gateway in response to the first instruction information;

[0074] The first data frame sending module is used to send a first data frame to the terminal through the second gateway in the target working mode, where the first data frame includes a first preamble code and a first message set.

[0075] An electronic device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the network communication method described above when executed by the processor.

[0076] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the network communication method described above are implemented.

[0077] The embodiments of the present invention have the following advantages:

[0078] In an embodiment of the present invention, a terminal sends first instruction information to a network server through a first gateway, the first instruction information includes a target working mode identifier, the target working mode identifier is used to instruct the terminal to switch to the target working mode, the terminal receives a first reply message returned for the first instruction information from the network server through a second gateway, and the terminal receives a first data frame from the network server through the second gateway in the target working mode, the first data frame includes a first preamble code and a first message set, thereby realizing that the terminal notifies the network server to enter the target working mode, avoiding the situation where a working mode with poor real-time performance is adopted and cannot meet the downlink low latency scenario. BRIEF DESCRIPTION OF THE DRAWINGS

[0079] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0080] Figure 1a is a flowchart of a method for network communication provided by an embodiment of the present invention;

[0081] Figure 1b is a schematic diagram of a network communication example provided by an embodiment of the present invention;

[0082] Figure 2a It is a schematic diagram of the structure of a network communication device provided by an embodiment of the present invention;

[0083] Figure 2b is a schematic diagram of another network communication example provided by an embodiment of the present invention;

[0084] Figure 3ais a flowchart of another method of network communication provided by an embodiment of the present invention;

[0085] Figure 3b is a schematic diagram of another network communication example provided by an embodiment of the present invention;

[0086] Figure 4 is a flowchart of another method of network communication provided by an embodiment of the present invention;

[0087] Figure 5 is a flowchart of another method of network communication provided by an embodiment of the present invention;

[0088] Figure 6a is a flowchart of another method of network communication provided by an embodiment of the present invention;

[0089] Figure 6b is a schematic diagram of another network communication example provided by an embodiment of the present invention;

[0090] Figure 7 is a flowchart of another method of network communication provided by an embodiment of the present invention;

[0091] Figure 8 is a flowchart of another method of network communication provided by an embodiment of the present invention;

[0092] Fig. 9 A schematic diagram of a network communication device provided by an embodiment of the present invention

[0093] Fig.10 It is a schematic diagram of the structure of another network communication device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0094] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0095] Different protocol stack structures can be built based on LoRa, such as star and mesh. The star structure can include LoRaWAN (LoRa Wide Area Network). LoRaWAN is a MAC layer protocol. Its main goal is to build a large-capacity, long-distance and low-power star network to meet the needs of IoT applications.

[0096] LoRaWAN mainly solves the problems encountered by existing technologies in IoT applications in terms of wide coverage, low power consumption, low cost, and large number of connections. Specifically:

[0097] Wide coverage: LoRa has greatly improved the receiving sensitivity by evolving CSS (chirp spread spectrum) technology and forward error correction (FEC) technology.

[0098] Low power consumption: The advantage of low power consumption of LoRaWAN device nodes compared with other technologies is mainly achieved through class A asynchronous communication transmission (long sleep time). The Class A mode ensures that the sensor node can work for 10 years using button batteries.

[0099] Low cost: LoRa sensor nodes have low cost and are very competitive in the market.

[0100] Large number of connections: Multi-channel and frequency hopping technologies can ensure that a gateway can carry a large number of nodes. The LoRa concentrator SX1301 has 8 channels and can process approximately 1.5 million LoRaWAN short data messages within 24 hours.

[0101] In actual applications, the capabilities of LoRaWAN device nodes are not the same. There are at least three types of device nodes with different capabilities, corresponding to different working modes.

[0102] Class A mode: Low power consumption, the node will be awakened only when data is sent, and will be in sleep mode the rest of the time. Based on Class A, LoRaWAN can be used in application scenarios such as monitoring and short message reporting.

[0103] Class B mode: beacon mode, the node wakes up periodically and receives downlink data. Class B terminals will have more receiving time slots. In addition to the random receiving window of Class A, Class B devices will also open other receiving windows at specified times. In order for the terminal to open the receiving window at the specified time, the terminal needs to receive a time-synchronized beacon from the gateway. This allows the server to know that the terminal is listening.

[0104] Class C mode: continuous receiving mode.

[0105] In LoRaWAN, due to the different working modes, some working modes have the disadvantage of poor real-time performance and cannot meet the downlink low-latency scenarios, such as unlocking the gate of smart parking and unlocking the door lock of smart home.

[0106] Based on this, an embodiment of the present invention proposes that the terminal requests the network to enter class D mode through a MAC instruction, and turns on CAD (Channel Activity Detection) to detect the downlink data frame with a preamble code sent by the base station, thereby realizing that the terminal notifies the network server to enter the target working mode, avoiding the situation where a working mode with poor real-time performance cannot meet the downlink low latency scenario.

[0107] Reference Figure 1a , showing a flow chart of the steps of a network communication method provided by an embodiment of the present invention, the method can be applied to a terminal, and the terminal can communicate with a network server through a gateway.

[0108] Among them, the gateway connecting the terminal and the network server may include a first gateway and a second gateway. The first gateway may be an uplink gateway, i.e., used by the terminal to send data to the network server, and the second gateway may be a downlink gateway, i.e., used by the network server to send data to the terminal. The first gateway and the second gateway may be different gateways or the same gateway.

[0109] Specifically, the following steps may be included:

[0110] Step 101, the terminal sends a first instruction message to the network server through a first gateway, the first instruction message includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to a target working mode;

[0111] Among them, the target working mode can be a working mode that can meet the downlink low latency scenario. In this working mode, the gateway can send downlink data with a long preamble to the terminal at any time, and the terminal can detect the downlink data with a long preamble through CAD and wake up to receive and parse it. This target working mode has good real-time performance, such as ClassD mode.

[0112] After the terminal successfully joins the network, in order to notify the network server to switch to the target working mode, the terminal generates a first instruction message according to the target working mode identifier. The first instruction message can be a MAC instruction message, and then the first instruction message can be sent to the network server through the gateway. The network server can receive the first instruction message. The first instruction message can at least include the target working mode identifier, such as the ClassD mode identifier, and it can also be set with other content according to the specific situation, such as detection cycle information.

[0113] In one embodiment of the present invention, in order to negotiate detection cycle information with a network server, the first instruction information may also include detection cycle information, that is, the first instruction information may at least carry a target working mode identifier and detection cycle information. The detection cycle information may also not be carried in the first instruction information, but may be sent separately by the terminal to the network server.

[0114] In one embodiment of the present invention, the target working mode identifier in the first instruction information may be included in the fourth reply message, and step 101 may include the following sub-steps:

[0115] Sub-step 11, the terminal receives fourth instruction information from the network server through the second gateway, and the fourth instruction information is used to inquire whether the terminal supports the target working mode;

[0116] In order to determine whether the terminal supports the target working mode, the network server can generate a fourth instruction information, which can be a MAC instruction information, and then send the fourth instruction information to the terminal. The terminal can receive the fourth instruction information, which can include inquiry information on whether the target working mode is supported.

[0117] Sub-step 12: The terminal returns a fourth reply message to the network server via the first gateway in response to the fourth instruction information.

[0118] After receiving the fourth instruction information, the terminal can generate a fourth reply message for the fourth instruction information based on whether it supports the target working mode. The fourth reply message may include response information for the fourth instruction information and can be returned to the network server through the gateway. The network server can receive the fourth reply message to know whether it supports the target working mode.

[0119] The following combination Figure 1b An example explanation is given below:

[0120] 1. The terminal successfully accesses the network;

[0121] 2. The network server sends a fourth instruction message (DevCapabilityReq, which may also be named otherwise but has the same function) to the gateway to inquire whether the terminal supports the target working mode;

[0122] 3. The gateway sends a fourth instruction message (DevCapabilityReq, which may also be named otherwise but has the same function) to the terminal to inquire whether the terminal supports the target working mode;

[0123] 4. The terminal returns a fourth reply message (DevCapabilityRes, which may also be named otherwise but has the same function) to the gateway indicating whether the terminal supports the target working mode;

[0124] 5. The gateway returns a fourth reply message (DevCapabilityRes, which may also be named otherwise but has the same function) to the network server, indicating whether the terminal supports the target working mode.

[0125] Step 102, the terminal receives a first reply message returned to the first instruction information from the network server through a second gateway;

[0126] After receiving the first instruction information, the network server may generate a first reply message for the first instruction information. The first reply message may include response information for the first instruction information and may be returned to the terminal through the second gateway. The terminal may receive the first reply message.

[0127] Step 103: The terminal receives a first data frame from the network server through the second gateway in the target working mode, where the first data frame includes a first preamble code and a first message set.

[0128] As an example, the first preamble may be a long preamble. For example, the preamble of a common downlink data frame may be 16 ms. The length of the long preamble may be 0.5 seconds, 1 second, etc.

[0129] After receiving the first reply message, the terminal can switch to the target working mode and can turn on CAD. In the target working mode, the network server can send a first data frame to the terminal through the gateway. The first data frame may include a first preamble code and a first message set. After receiving the first preamble code, the terminal wakes up according to the CAD mechanism and can then receive the first message set.

[0130] In an embodiment of the present invention, a terminal sends first instruction information to a network server through a first gateway, the first instruction information includes a target working mode identifier, the target working mode identifier is used to instruct the terminal to switch to the target working mode, the terminal receives a first reply message returned for the first instruction information from the network server through a second gateway, and the terminal receives a first data frame from the network server through the second gateway in the target working mode, the first data frame includes a first preamble code and a first message set, thereby realizing that the terminal notifies the network server to enter the target working mode, avoiding the situation where a working mode with poor real-time performance is adopted and cannot meet the downlink low latency scenario.

[0131] Reference Figure 2a , shows a flowchart of another method of network communication provided by an embodiment of the present invention, the method can be applied to a terminal, the terminal can communicate with a network server through a gateway, and specifically can include the following steps:

[0132] Step 201, the terminal sends a first instruction message to the network server through a first gateway, the first instruction message includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to a target working mode;

[0133] Step 202, the terminal receives a first reply message returned to the first instruction information from the network server through the second gateway, wherein the first reply message includes target working mode configuration information;

[0134] As an example, the target working mode configuration information may include at least one of the following:

[0135] Frequency information, data rate information.

[0136] In order to negotiate with the terminal the configuration information under the target working mode, after the first instruction information, the network server can determine the target working mode configuration information for the target working mode, and can generate a first reply message containing the target working mode configuration information, and return the first reply message to the terminal through the gateway. The terminal can receive the first reply message, and the first reply message may include the target working mode configuration information.

[0137] Step 203: The terminal receives a first data frame from the network server through the second gateway according to the target working mode configuration information.

[0138] After receiving the first reply message, the terminal can determine the target working mode configuration information from the first reply message, and can perform corresponding configuration according to the target working mode configuration information. The network server can send the first data frame according to the target working mode configuration information, and the terminal can receive the first data frame from the network server according to the target working mode configuration information.

[0139] The following combination Figure 2b An example explanation is given below:

[0140] 1. The terminal successfully accesses the network;

[0141] 2. The terminal sends a first instruction message (ClassDInfoReq, which may also be named otherwise but has the same function) including a detection period and a ClassD mode identifier to the gateway;

[0142] The Class D mode identifier may be used to instruct the terminal to switch to the Class D mode, and the detection period may be used to indicate a detection period in the Class D mode.

[0143] 3. The gateway sends a first instruction message (ClassDInfoReq, which may also be named otherwise but has the same function) including a detection period and a ClassD mode identifier to the network server;

[0144] 4. The network server returns a first reply message (ClassDInfoRes, which may also be named otherwise but has the same function) containing frequency information and data rate information to the gateway;

[0145] Among them, the frequency information and data rate information can be used to configure the frequency and data rate of the network in Class D mode.

[0146] 5. The gateway returns a first reply message (ClassDInfoRes, which may also be named otherwise but has the same function) containing frequency information and data rate information to the terminal;

[0147] 6. The terminal switches to ClassD mode and opens CAD;

[0148] 7. The network server sends a downlink data frame to the gateway;

[0149] 8. The gateway sends a long preamble and downlink data frames to the terminal;

[0150] 9. The terminal is awakened and receives downlink data.

[0151] In an embodiment of the present invention, a terminal sends a first instruction message to a network server through a first gateway, the first instruction message includes a target operating mode identifier, and the target operating mode identifier is used to instruct the terminal to switch to the target operating mode. The terminal receives a first reply message returned in response to the first instruction message from the network server through a second gateway, and the first reply message includes target operating mode configuration information. The terminal receives a first data frame from the network server through the second gateway according to the target operating mode configuration information, thereby realizing that the terminal notifies the network server to enter the target operating mode and can negotiate the configuration information under the target operating mode, thereby improving network transmission efficiency.

[0152] Reference Figure 3a , shows a flowchart of another method of network communication provided by an embodiment of the present invention, the method can be applied to a terminal, the terminal can communicate with a network server through a gateway, and specifically can include the following steps:

[0153] Step 301, the terminal sends third instruction information to the network server through the first gateway, and the third instruction information includes detection cycle information;

[0154] When the detection cycle information is not carried in the first instruction information, before the terminal sends the first instruction information to the network server, it can generate third instruction information based on the detection cycle information. The third instruction information can be MAC instruction information, and the third instruction information can be sent to the network server through the gateway. The network server can receive the third instruction information.

[0155] Step 302: the terminal receives a third reply message returned in response to the third instruction information from the network server through the second gateway;

[0156] After receiving the third instruction information, the network server may generate a third reply message for the third instruction information, and may send the third reply message to the terminal through the gateway, and the terminal may receive the third reply message.

[0157] Step 303: the terminal sends first instruction information to the network server through the first gateway, where the first instruction information includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to a target working mode;

[0158] Step 304: the terminal receives a first reply message returned to the first instruction information from the network server through the second gateway, where the first reply message includes target working mode configuration information;

[0159] Step 305: The terminal receives a first data frame from the network server through the second gateway according to the target working mode configuration information.

[0160] The following combination Figure 3b An example explanation is given below:

[0161] 1. The terminal successfully accesses the network;

[0162] 2. The terminal sends a third instruction message (PreambleInfoReq, which may also be named otherwise but has the same function) containing a detection period to the gateway;

[0163] 3. The gateway sends a third instruction message (PreambleInfoReq, which may also be named otherwise but has the same function) containing a detection period to the network server;

[0164] 4. The network server sends a third reply message (PreambleInfoRes, which may also be named otherwise but has the same function) for the detection period to the gateway;

[0165] 5. The gateway sends a third reply message (PreambleInfoRes, which may also be named otherwise but has the same function) for the detection period to the terminal;

[0166] 6. The terminal sends a first instruction message (ClassDInfoReq, which may also be named otherwise but has the same function) containing a ClassD identifier to the gateway;

[0167] 7. The gateway sends a first instruction message (ClassDInfoReq, which may also be named otherwise but has the same function) containing a ClassD identifier to the gateway server;

[0168] 8. The network server returns a first reply message (ClassDInfoRes, which may also be named otherwise but has the same function) containing frequency information and data rate information to the gateway;

[0169] 9. The gateway returns a first reply message (ClassDInfoRes, which may also be named otherwise but has the same function) containing frequency information and data rate information to the terminal;

[0170] 10. The terminal switches to ClassD mode and opens CAD;

[0171] 11. The network server sends a downlink data frame to the gateway;

[0172] 12. The gateway sends a long preamble and downlink data frames to the terminal;

[0173] 13. The terminal is awakened and receives downlink data.

[0174] In an embodiment of the present invention, the terminal sends third instruction information to the network server through the first gateway, the third instruction information includes detection cycle information, the terminal receives a third reply message returned from the network server for the third instruction information through the second gateway, the terminal sends first instruction information to the network server through the first gateway, the first instruction information includes a target working mode identifier, the target working mode identifier is used to instruct the terminal to switch to the target working mode, the terminal receives a first reply message returned from the network server for the first instruction information through the second gateway, the first reply message includes target working mode configuration information, the terminal receives a first data frame from the network server through the second gateway according to the target working mode configuration information, thereby realizing that the terminal notifies the network server to enter the target working mode, and can negotiate the detection cycle information under the target working mode, thereby improving network transmission efficiency.

[0175] Reference Figure 4 , shows a flowchart of another method of network communication provided by an embodiment of the present invention, the method can be applied to a terminal, the terminal can communicate with a network server through a gateway, and specifically can include the following steps:

[0176] Step 401, the terminal sends second instruction information to the network server through the first gateway, and the second instruction information is used to request target working mode configuration information from the network server;

[0177] In order to negotiate with the terminal the configuration information under the target working mode, the terminal can generate a second instruction information for requesting the target working mode configuration information from the network server. The second instruction information can be a MAC instruction information, that is, the terminal requests the configuration information through an independent MAC instruction, and can send it to the network server through the gateway. The network server can receive the second instruction information.

[0178] Step 402: The terminal receives a second reply message returned to the second instruction information from the network server through a second gateway, wherein the second reply message includes target working mode configuration information;

[0179] As an example, the target working mode configuration information may include at least one of the following:

[0180] Frequency information, data rate information.

[0181] After receiving the second instruction information, the network server can determine the target operating mode configuration information for the target operating mode, and can generate a second reply message containing the target operating mode configuration information, and return the second reply message to the terminal through the gateway, and the terminal can receive the second reply message.

[0182] Step 403: the terminal sends first instruction information to the network server through the first gateway, where the first instruction information includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to a target working mode;

[0183] Step 404: the terminal receives a first reply message returned to the first instruction information from the network server through the second gateway;

[0184] Step 405: The terminal receives a first data frame from the network server through the second gateway according to the target working mode configuration information.

[0185] After receiving the first reply message, the terminal can perform corresponding configuration according to the previously negotiated target working mode configuration information, the network server can send the first data frame according to the target working mode configuration information, and the terminal can receive the first data frame from the network server according to the target working mode configuration information.

[0186] In an embodiment of the present invention, the terminal sends second instruction information to the network server through the first gateway, the second instruction information is used to request the target working mode configuration information from the network server, the terminal receives a second reply message returned from the network server for the second instruction information through the second gateway, the second reply message includes the target working mode configuration information, the terminal sends first instruction information to the network server through the first gateway, the first instruction information includes a target working mode identifier, the target working mode identifier is used to instruct the terminal to switch to the target working mode, the terminal receives a first reply message returned from the network server for the first instruction information through the second gateway, the terminal receives a first data frame from the network server through the second gateway according to the target working mode configuration information, thereby realizing that the terminal notifies the network server to enter the target working mode, and can negotiate the configuration information under the target working mode, thereby improving network transmission efficiency.

[0187] Reference Figure 5 , shows a flowchart of another method of network communication provided by an embodiment of the present invention, the method can be applied to a terminal, the terminal can communicate with a network server through a gateway, and specifically can include the following steps:

[0188] Step 501, the terminal sends second instruction information to the network server through the first gateway, the second instruction information is used to request target working mode configuration information from the network server, and the second instruction information includes first target working mode configuration information;

[0189] In order to negotiate with the terminal the configuration information under the target working mode, the terminal may generate second instruction information for requesting the target working mode configuration information from the network server. The second instruction information may be MAC instruction information, i.e., the terminal requests the configuration information through an independent MAC instruction, and may send it to the network server through a gateway. The network server may receive the second instruction information. The second instruction information may include the first target working mode configuration information. The first target working mode configuration information represents the terminal's suggestion to the network server regarding the target working mode configuration information.

[0190] Step 502: The terminal receives a second reply message returned to the second instruction information from the network server through a second gateway, wherein the second reply message includes confirmation information or second target working mode configuration information for the first target working mode configuration information;

[0191] As an example, the target working mode configuration information may include at least one of the following:

[0192] Frequency information, data rate information.

[0193] After receiving the second instruction information, since the second instruction information includes the first target working mode configuration information, that is, the terminal's suggestion to the network server regarding the target working mode configuration information, the network server can directly agree to the suggestion, and then can generate a second reply message, the second reply message includes confirmation information for the first target working mode configuration information, and returns the second reply message to the terminal through the gateway, and the terminal can receive the second reply message. It is also possible to partially agree to the target working mode configuration information proposed by the terminal, for example, the frequency point information recommended therein can be accepted, or the data rate information recommended therein can be agreed.

[0194] The network server may also disagree with the suggestion and may re-determine the new second target working mode configuration information based on the current network status, and then generate a second reply message containing the second target working mode configuration information, and return the second reply message to the terminal through the gateway, and the terminal can receive the second reply message.

[0195] Step 503: the terminal sends first instruction information to the network server through the first gateway, where the first instruction information includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to a target working mode;

[0196] Step 504: the terminal receives a first reply message returned in response to the first instruction information from the network server through the second gateway;

[0197] Step 505: The terminal receives a first data frame from the network server through the second gateway according to the first target working mode configuration information or the second target working mode configuration information.

[0198] After receiving the first reply message, the terminal can perform corresponding configuration according to the previously negotiated target working mode configuration information, that is, when receiving confirmation information for the first target working mode configuration information, the network server can send the first data frame according to the first target working mode configuration information, and the terminal can receive the first data frame from the network server according to the first target working mode configuration information.

[0199] When receiving confirmation information for the second target working mode configuration information, the network server can send the first data frame according to the second target working mode configuration information, and the terminal can receive the first data frame from the network server according to the second target working mode configuration information.

[0200] In an embodiment of the present invention, a terminal sends a second instruction message to a network server through a gateway, the second instruction message is used to request target working mode configuration information from the network server, the second instruction message includes first target working mode configuration information, the terminal receives a second reply message returned for the second instruction message from the network server through a gateway, the second reply message includes confirmation information for the first target working mode configuration information or second target working mode configuration information, the terminal sends a first instruction message to the network server through a gateway, the first instruction message includes a target working mode identifier, the target working mode identifier is used to instruct the terminal to switch to the target working mode, the terminal receives a first reply message returned for the first instruction message from the network server through a gateway, the terminal receives a first data frame from the network server through a gateway according to the first target working mode configuration information or the second target working mode configuration information, thereby realizing that the terminal notifies the network server to enter the target working mode and can negotiate the configuration information under the target working mode, thereby improving network transmission efficiency.

[0201] Reference Figure 6a , shows a flowchart of another method of network communication provided by an embodiment of the present invention, the method can be applied to a terminal, the terminal can communicate with a network server through a gateway, and specifically can include the following steps:

[0202] Step 601: the terminal sends third instruction information to the network server through the first gateway, where the third instruction information includes detection cycle information;

[0203] When the detection cycle information is not carried in the first instruction information or the second instruction information, before the terminal sends the second instruction information to the network server, it can generate third instruction information based on the detection cycle information, and can send the third instruction information to the network server through the gateway. The network server can receive the third instruction information, and the third instruction information may include the detection cycle information.

[0204] Step 602: the terminal receives a third reply message returned in response to the third instruction information from the network server through the second gateway;

[0205] After receiving the third instruction information, the network server can generate a third reply message for the third instruction information, and can send the third reply message to the terminal through the gateway. The terminal can receive the third reply message, and the third reply message can be a response to the third instruction information.

[0206] Step 603, the terminal sends second instruction information to the network server through the first gateway, where the second instruction information is used to request target working mode configuration information from the network server;

[0207] Step 604: the terminal receives a second reply message returned from the network server via the second gateway in response to the second instruction information, wherein the second reply message includes target working mode configuration information;

[0208] Step 605: The terminal sends first instruction information to the network server through the first gateway, where the first instruction information includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to a target working mode;

[0209] Step 606: The terminal receives a first reply message returned in response to the first instruction information from the network server through the second gateway;

[0210] Step 607: The terminal receives a first data frame from the network server through the second gateway according to the target working mode configuration information.

[0211] The following combination Figure 6b An example explanation is given below:

[0212] 1. The terminal successfully accesses the network;

[0213] 2. The terminal sends a third instruction message (PreambleInfoReq, which may also be named otherwise but has the same function) containing a detection period to the gateway;

[0214] 3. The gateway sends a third instruction message (PreambleInfoReq, which may also be named otherwise but has the same function) containing a detection period to the network server;

[0215] 4. The network server sends a third reply message (PreambleInfoRes, which may also be named otherwise but has the same function) for the detection period to the gateway;

[0216] 5. The gateway sends a third reply message (PreambleInfoRes, which may also be named otherwise but has the same function) for the detection period to the terminal;

[0217] 6. The terminal sends a second instruction message (ClassDParaSetingReq, which may also be named otherwise but has the same function) for requesting configuration information in ClassD mode to the gateway;

[0218] 7. The gateway sends a second instruction message (ClassDParaSetingReq, which may also be named otherwise but has the same function) for requesting ClassD mode configuration information to the network server;

[0219] 8. The network server returns a second reply message (ClassDParaSetingRes, which may also be named otherwise but has the same function) containing frequency information and data rate information to the gateway;

[0220] 9. The gateway returns a second reply message (ClassDParaSetingRes, which may also be named otherwise but has the same function) containing frequency information and data rate information to the terminal;

[0221] 10. The terminal sends a first instruction message (ClassDInfoReq, which may also be named otherwise but has the same function) containing a ClassD identifier to the gateway;

[0222] 11. The gateway sends a first instruction message (ClassDInfoReq, which may also be named otherwise but has the same function) containing a ClassD identifier to the gateway server;

[0223] 12. The network server returns a first reply message (ClassDInfoRes, which may also be named otherwise but has the same function) to the gateway in response to the message containing the ClassD identifier;

[0224] 13. The gateway returns a first reply message (ClassDInfoRes, which may also be named otherwise but has the same function) to the terminal in response to the message containing the ClassD identifier.

[0225] It should be noted that ClassDInfoReq and ClassDInfoRes can be DeviceModeInd and DeviceModeConf. DeviceModeInd is a MAC instruction used by the terminal to indicate its working mode to the network. In the protocol (as described in Table 2), DeviceModeInd can only indicate classA and ClassC modes. In the present invention, the ClassD identifier can be added to the RFU field in DeviceModeInd, so that DeviceModeInd can be used to allow the terminal to indicate to the network that its working mode is classD.

[0226] Table 1 below shows the instruction format of DeviceModeInd:

[0227] Size(bytes) 1 DeviceModeInd Payload Class

[0228] Table 1

[0229] Table 2 below shows the RFU field in DeviceModeInd:

[0230] Class Value Class A 0x00 RFU 0x01 Class C 0x02

[0231] Table 2

[0232] 14. The terminal switches to ClassD mode and opens CAD;

[0233] 15. The network server sends a downlink data frame to the gateway;

[0234] 16. The gateway sends a long preamble and downlink data frames to the terminal;

[0235] 17. The terminal is awakened and receives downlink data.

[0236] In an embodiment of the present invention, a terminal sends third instruction information to a network server through a first gateway, the third instruction information includes detection cycle information, the terminal receives a third reply message returned to the third instruction information from the network server through a second gateway, the terminal sends second instruction information to the network server through the first gateway, the second instruction information is used to request target working mode configuration information from the network server, the terminal receives a second reply message returned to the second instruction information from the network server through the second gateway, the second reply message includes the target working mode configuration information, the terminal sends first instruction information to the network server through the first gateway, the first instruction information includes a target working mode identifier, the target working mode identifier is used to instruct the terminal to switch to the target working mode, the terminal receives a first reply message returned to the first instruction information from the network server through the second gateway, and the terminal receives a first data frame from the network server through the second gateway according to the target working mode configuration information, thereby realizing that the terminal notifies the network server to enter the target working mode and can negotiate the detection cycle information under the target working mode, thereby improving network transmission efficiency.

[0237] Reference Figure 7 , shows a flowchart of another method of network communication provided by an embodiment of the present invention, the method can be applied to a network server, the network server can communicate with a terminal through a gateway, and specifically can include the following steps:

[0238] Step 701: The network server receives first instruction information from the terminal through a first gateway, where the first instruction information includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to a target working mode;

[0239] Step 702: the network server returns a first reply message to the terminal via the second gateway in response to the first instruction information;

[0240] Step 703: The network server sends a first data frame to the terminal through the second gateway in the target working mode, where the first data frame includes a first preamble code and a first message set.

[0241] In one embodiment of the present invention, the first reply message includes target working mode configuration information, and step 703 includes:

[0242] The network server sends a first data frame to the terminal through the second gateway according to the target working mode configuration information.

[0243] In one embodiment of the present invention, before step 701, the method further includes:

[0244] The network server receives second instruction information from the terminal through the first gateway, where the second instruction information is used to request target working mode configuration information from the network server;

[0245] The network server returns a second reply message to the terminal via the second gateway in response to the second instruction information, wherein the second reply message includes target working mode configuration information;

[0246] Step 703 includes:

[0247] The network server sends a first data frame to the terminal through the second gateway according to the target working mode configuration information.

[0248] In one embodiment of the present invention, before step 701, the method further includes:

[0249] The network server receives second instruction information from the terminal through the first gateway, the second instruction information is used to request target working mode configuration information from the network server, and the second instruction information includes first target working mode configuration information;

[0250] The network server returns a second reply message to the terminal via the second gateway for the second instruction information, wherein the second reply message includes confirmation information for the first target working mode configuration information or second target working mode configuration information;

[0251] Step 703 includes:

[0252] The network server sends a first data frame to the terminal through the second gateway according to the first target working mode configuration information or the second target working mode configuration information.

[0253] In an embodiment of the present invention, the first instruction information further includes detection cycle information.

[0254] In one embodiment of the present invention, before step 701, the method further includes:

[0255] The network server receives third instruction information from the terminal through the first gateway, where the third instruction information includes detection cycle information;

[0256] The network server returns a third reply message to the terminal via the second gateway in response to the third instruction information.

[0257] In one embodiment of the present invention, before the network server receives the second instruction information from the terminal through the first gateway, the method further includes:

[0258] The network server receives third instruction information from the terminal through the first gateway, where the third instruction information includes detection cycle information;

[0259] The network server returns a third reply message to the terminal via the second gateway in response to the third instruction information.

[0260] In one embodiment of the present invention, the target working mode identifier in the first instruction information is included in the fourth reply message, and step 701 includes:

[0261] The network server sends fourth instruction information to the terminal through the second gateway, where the fourth instruction information is used to inquire whether the terminal supports the target working mode;

[0262] The network server receives a fourth reply message returned in response to the fourth instruction information from the terminal through the first gateway.

[0263] In one embodiment of the present invention, the target working mode configuration information includes at least one of the following:

[0264] Frequency information, data rate information.

[0265] In an embodiment of the present invention, a network server receives first instruction information from a terminal through a first gateway, the first instruction information includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to the target working mode. The network server receives a first reply message returned in response to the first instruction information from the terminal through a second gateway. In the target working mode, the network server sends a first data frame to the terminal through the gateway. The first data frame includes a first preamble code and a first message set, thereby realizing that the terminal notifies the network server to enter the target working mode, avoiding the situation where a working mode with poor real-time performance is adopted and cannot meet the downlink low latency scenario.

[0266] Reference Figure 8 , shows a flowchart of another method of network communication provided by an embodiment of the present invention, the method can be applied to a terminal, the terminal can communicate with a network server through a gateway, and specifically can include the following steps:

[0267] Step 801, in response to an unlocking operation by a user, the terminal sends a first instruction message to the network server through a first gateway, wherein the first instruction message includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to a target working mode;

[0268] Step 802: The terminal receives a first reply message returned to the first instruction information from the network server through a second gateway;

[0269] Step 803: The terminal receives a first data frame from the network server through the second gateway in the target working mode, where the first data frame includes a first preamble code and a first message set, to perform an unlocking operation.

[0270] In an embodiment of the present invention, in response to an unlocking operation of a user, a terminal sends a first instruction message to a network server through a first gateway, the first instruction message including a target working mode identifier, the target working mode identifier being used to instruct the terminal to switch to the target working mode, the terminal receives a first reply message returned in response to the first instruction message from the network server through a second gateway, and in the target working mode, the terminal receives a first data frame from the network server through the second gateway, the first data frame including a first preamble code and a first message set, to perform an unlocking operation, thereby realizing that the terminal notifies the network server to enter the target working mode, and avoiding the situation where a working mode with poor real-time performance is adopted and cannot meet the device unlocking scenario.

[0271] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0272] Reference Fig. 9 , shows a schematic diagram of the structure of a network communication device provided by an embodiment of the present invention, the device can be applied to a terminal, the terminal can communicate with a network server through a gateway, and specifically can include the following modules:

[0273] A first instruction information sending module 901 is used to send first instruction information to the network server through a first gateway, where the first instruction information includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to a target working mode;

[0274] A first reply message receiving module 902, configured to receive a first reply message returned in response to the first instruction information from the network server through a second gateway;

[0275] The first data frame receiving module 903 is used to receive a first data frame from the network server through the second gateway in the target working mode, where the first data frame includes a first preamble code and a first message set.

[0276] In one embodiment of the present invention, the first reply message includes target working mode configuration information, and the first data frame receiving module 903 includes:

[0277] The first configuration information receiving submodule is used to receive a first data frame from the network server through the second gateway according to the target working mode configuration information.

[0278] In one embodiment of the present invention, it also includes:

[0279] A second instruction information sending module, used for sending second instruction information to the network server through the first gateway, wherein the second instruction information is used for requesting target working mode configuration information from the network server;

[0280] A second reply message receiving module, configured to receive a second reply message returned to the second instruction information from the network server through the second gateway, wherein the second reply message includes target working mode configuration information;

[0281] The first data frame receiving module 903 includes:

[0282] The second configuration information receiving submodule is used to receive a first data frame from the network server through the second gateway according to the target working mode configuration information.

[0283] In one embodiment of the present invention, it also includes:

[0284] A second instruction information sending module, used to send second instruction information to the network server through the first gateway, the second instruction information is used to request target working mode configuration information from the network server, and the second instruction information includes the first target working mode configuration information;

[0285] A second reply message receiving module, used to receive a second reply message returned to the second instruction information from the network server through the second gateway, wherein the second reply message includes confirmation information for the first target working mode configuration information or second target working mode configuration information;

[0286] The first data frame receiving module 903 includes:

[0287] The second submodule for receiving according to configuration information is used to receive a first data frame from the network server through the second gateway according to the first target working mode configuration information or the second target working mode configuration information.

[0288] In an embodiment of the present invention, the first instruction information further includes detection cycle information.

[0289] In one embodiment of the present invention, it also includes:

[0290] A third instruction information sending module, used to send third instruction information to the network server through the first gateway, wherein the third instruction information includes detection cycle information;

[0291] The third reply message returning module is used to receive a third reply message returned to the third instruction information from the network server through the second gateway.

[0292] In one embodiment of the present invention, the target working mode identifier in the first instruction information is included in the fourth reply message, and the first instruction information sending module 901 includes:

[0293] a fourth instruction information receiving submodule, configured to receive fourth instruction information from the network server through the second gateway, wherein the fourth instruction information is used to inquire whether the terminal supports a target working mode;

[0294] The fourth reply message returning submodule is used to return a fourth reply message for the fourth instruction information to the network server through the first gateway.

[0295] In one embodiment of the present invention, the target working mode configuration information is at least one of the following:

[0296] Frequency information, data rate information.

[0297] In an embodiment of the present invention, a terminal sends first instruction information to a network server through a first gateway, the first instruction information includes a target working mode identifier, the target working mode identifier is used to instruct the terminal to switch to the target working mode, the terminal receives a first reply message returned for the first instruction information from the network server through a second gateway, and the terminal receives a first data frame from the network server through the second gateway in the target working mode, the first data frame includes a first preamble code and a first message set, thereby realizing that the terminal notifies the network server to enter the target working mode, avoiding the situation where a working mode with poor real-time performance is adopted and cannot meet the downlink low latency scenario.

[0298] Reference Fig.10, shows a schematic diagram of the structure of a network communication device provided by an embodiment of the present invention, the device can be applied to a network server, the network server can communicate with a terminal through a gateway, and specifically can include the following modules:

[0299] A first instruction information receiving module 1001 is used to receive first instruction information from the terminal through a first gateway, where the first instruction information includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to a target working mode;

[0300] A first reply message returning module 1002, configured to return a first reply message to the terminal via a second gateway in response to the first instruction information;

[0301] The first data frame sending module 1003 is used to send a first data frame to the terminal through the second gateway in the target working mode, where the first data frame includes a first preamble code and a first message set.

[0302] In one embodiment of the present invention, the first reply message includes target working mode configuration information, and the first data frame sending module 1003 includes:

[0303] The first submodule for sending according to configuration information is used to send a first data frame to the terminal through the second gateway according to the target working mode configuration information.

[0304] In one embodiment of the present invention, it also includes:

[0305] A second instruction information receiving module, used to receive second instruction information from the terminal through the first gateway, wherein the second instruction information is used to request target working mode configuration information from the network server;

[0306] A second reply message returning module, configured to return a second reply message to the terminal via the second gateway for the second instruction information, wherein the second reply message includes target working mode configuration information;

[0307] The first data frame sending module 1003 includes:

[0308] The second submodule for sending according to configuration information is used to send a first data frame to the terminal through the second gateway according to the target working mode configuration information.

[0309] In one embodiment of the present invention, it also includes:

[0310] A second instruction information receiving module, used to receive second instruction information from the terminal through the first gateway, the second instruction information is used to request target working mode configuration information from the network server, and the second instruction information includes first target working mode configuration information;

[0311] A second reply message returning module, used to return a second reply message to the terminal via the second gateway for the second instruction information, wherein the second reply message includes confirmation information for the first target working mode configuration information or second target working mode configuration information;

[0312] The first data frame sending module 1003 includes:

[0313] The second submodule for sending according to configuration information is used to send a first data frame to the terminal through the second gateway according to the first target working mode configuration information or the second target working mode configuration information.

[0314] In an embodiment of the present invention, the first instruction information further includes detection cycle information.

[0315] In one embodiment of the present invention, it also includes:

[0316] A third instruction information receiving module, configured to receive third instruction information from the terminal through the first gateway, wherein the third instruction information includes detection cycle information;

[0317] A third reply message returning module is used to return a third reply message for the third instruction information to the terminal through the second gateway.

[0318] In one embodiment of the present invention, the target working mode identifier in the first instruction information is included in the fourth reply message, and the first instruction information receiving module 1001 includes:

[0319] A fourth instruction information sending submodule, used for sending fourth instruction information to the terminal through the second gateway, wherein the fourth instruction information is used for inquiring whether the terminal supports a target working mode;

[0320] The fourth reply message returning submodule is used to receive a fourth reply message returned to the fourth instruction information from the terminal through the first gateway.

[0321] In one embodiment of the present invention, the target working mode configuration information is at least one of the following:

[0322] Frequency information, data rate information.

[0323] In an embodiment of the present invention, a network server receives first instruction information from a terminal through a first gateway, the first instruction information includes a target operating mode identifier, and the target operating mode identifier is used to instruct the terminal to switch to the target operating mode. The network server receives a fourth reply message returned for a fourth instruction information from the terminal through a second gateway. In the target operating mode, the network server sends a first data frame to the terminal through the second gateway. The first data frame includes a first preamble code and a first message set, thereby realizing that the terminal notifies the network server to enter the target operating mode, avoiding the situation where a working mode with poor real-time performance is adopted and the downlink low latency scenario cannot be met.

[0324] An embodiment of the present invention further provides an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and the computer program implements the above network communication method when executed by the processor.

[0325] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above network communication method is implemented.

[0326] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0327] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0328] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0329] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate a device for implementing the functions specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.

[0330] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0331] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce computer-implemented processing, so that the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0332] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0333] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0334] The above is a detailed introduction to a network communication method and device provided. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A network communication method, characterized in that: Applied to a terminal, the terminal communicates with a network server via a gateway, the method comprising: The terminal sends first instruction information to the network server through a first gateway, where the first instruction information includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to a target working mode; The terminal receives a first reply message returned in response to the first instruction information from the network server through the second gateway; The terminal receives, in the target working mode, a first data frame from the network server through the second gateway, where the first data frame includes a first preamble and a first message set; Among them, the target working mode is a working mode that can meet the downlink low latency scenario; in the target working mode, the network server can send the first data frame to the terminal through the second gateway at any time, and after the terminal detects the first preamble code through channel activity, the terminal wakes up according to the channel activity detection mechanism, and then receives the first message set.

2. The method according to claim 1, characterized in that The first reply message includes target working mode configuration information, and the terminal receives a first data frame from the network server through the second gateway in the target working mode, including: The terminal receives a first data frame from the network server through the second gateway according to the target working mode configuration information.

3. The method according to claim 1, characterized in that Before the terminal sends the first instruction information to the network server through the first gateway, the method further includes: The terminal sends second instruction information to the network server through the first gateway, where the second instruction information is used to request target working mode configuration information from the network server; The terminal receives a second reply message returned to the second instruction information from the network server through the second gateway, where the second reply message includes target working mode configuration information; The terminal receiving, in the target working mode, a first data frame from the network server through the second gateway, comprising: The terminal receives a first data frame from the network server through the second gateway according to the target working mode configuration information.

4. The method according to claim 1, characterized in that: Before the terminal sends the first instruction information to the network server through the first gateway, the method further includes: The terminal sends second instruction information to the network server through the first gateway, where the second instruction information is used to request target working mode configuration information from the network server, and the second instruction information includes first target working mode configuration information; The terminal receives a second reply message returned to the second instruction information from the network server through the second gateway, wherein the second reply message includes confirmation information for the first target working mode configuration information or second target working mode configuration information; The terminal receiving, in the target working mode, a first data frame from the network server through the second gateway, comprising: The terminal receives a first data frame from the network server through the second gateway according to the first target working mode configuration information or the second target working mode configuration information.

5. The method according to claim 1 or 2 or 3 or 4, characterized in that: The first instruction information also includes detection cycle information.

6. The method according to claim 1 or 2, characterized in that: Before the terminal sends the first instruction information to the network server through the first gateway, the method further includes: The terminal sends third instruction information to the network server through the first gateway, where the third instruction information includes detection cycle information; The terminal receives a third reply message returned in response to the third instruction information from the network server through the second gateway.

7. The method according to claim 3 or 4, characterized in that: Before the terminal sends the second instruction information to the network server through the first gateway, the method further includes: The terminal sends third instruction information to the network server through the first gateway, where the third instruction information includes detection cycle information; The terminal receives a third reply message returned in response to the third instruction information from the network server through the second gateway.

8. The method according to claim 1, characterized in that: The target working mode identifier in the first instruction information is included in the fourth reply message, and the terminal sends the first instruction information to the network server through the first gateway, including: The terminal receives fourth instruction information from the network server through the second gateway, where the fourth instruction information is used to inquire whether the terminal supports the target working mode; The terminal returns a fourth reply message for the fourth instruction information to the network server through the first gateway.

9. The method according to claim 2, 3 or 4, characterized in that: The target working mode configuration information is at least one of the following: Frequency information, data rate information.

10. A network communication method, characterized in that: Applied to a network server, the network server communicates with a terminal via a gateway, the method comprising: The network server receives first instruction information from the terminal through a first gateway, where the first instruction information includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to a target working mode; The network server returns a first reply message to the terminal via the second gateway in response to the first instruction information; The network server sends a first data frame to the terminal through the second gateway in the target working mode, where the first data frame includes a first preamble and a first message set; Among them, the target working mode is a working mode that can meet the downlink low latency scenario; in the target working mode, the network server can send the first data frame to the terminal through the second gateway at any time, and after the terminal detects the first preamble code through channel activity, the terminal wakes up according to the channel activity detection mechanism, and then receives the first message set.

11. The method according to claim 10, characterized in that The first reply message includes target working mode configuration information, and the network server sends a first data frame to the terminal through the second gateway in the target working mode, including: The network server sends a first data frame to the terminal through the second gateway according to the target working mode configuration information.

12. The method according to claim 10, characterized in that Before the network server receives the first instruction information from the terminal through the first gateway, the method further includes: The network server receives second instruction information from the terminal through the first gateway, where the second instruction information is used to request target working mode configuration information from the network server; The network server returns a second reply message to the terminal via the second gateway in response to the second instruction information, wherein the second reply message includes target working mode configuration information; The network server sends a first data frame to the terminal through the second gateway in the target working mode, including: The network server sends a first data frame to the terminal through the second gateway according to the target working mode configuration information.

13. The method according to claim 10, characterized in that Before the network server receives the first instruction information from the terminal through the first gateway, the method further includes: The network server receives second instruction information from the terminal through the first gateway, the second instruction information is used to request target working mode configuration information from the network server, and the second instruction information includes first target working mode configuration information; The network server returns a second reply message to the terminal via the second gateway for the second instruction information, wherein the second reply message includes confirmation information for the first target working mode configuration information or second target working mode configuration information; The network server sends a first data frame to the terminal through the second gateway in the target working mode, including: The network server sends a first data frame to the terminal through the second gateway according to the first target working mode configuration information or the second target working mode configuration information.

14. The method according to claim 10 or 11 or 12 or 13, characterized in that: The first instruction information also includes detection cycle information.

15. The method according to claim 10 or 11, characterized in that: Before the network server receives the first instruction information from the terminal through the first gateway, the method further includes: The network server receives third instruction information from the terminal through the first gateway, where the third instruction information includes detection cycle information; The network server returns a third reply message to the terminal via the second gateway in response to the third instruction information.

16. The method according to claim 12 or 13, characterized in that: Before the network server receives the second instruction information from the terminal through the first gateway, the method further includes: The network server receives third instruction information from the terminal through the first gateway, where the third instruction information includes detection cycle information; The network server returns a third reply message to the terminal via the second gateway in response to the third instruction information.

17. The method according to claim 10, characterized in that The target working mode identifier in the first instruction information is included in a fourth reply message, and the network server receives the first instruction information from the terminal through the first gateway, including: The network server sends fourth instruction information to the terminal through the second gateway, where the fourth instruction information is used to inquire whether the terminal supports the target working mode; The network server receives a fourth reply message returned in response to the fourth instruction information from the terminal through the first gateway.

18. The method according to claim 11, 12 or 13, characterized in that: The target working mode configuration information includes at least one of the following: Frequency information, data rate information.

19. A network communication method, characterized in that: Applied to a terminal, the terminal communicates with a network server via a gateway, the method comprising: In response to the unlocking operation of the user, the terminal sends a first instruction message to the network server through the first gateway, wherein the first instruction message includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to the target working mode; The terminal receives a first reply message returned in response to the first instruction information from the network server through the second gateway; The terminal receives a first data frame from the network server through the second gateway in the target working mode, wherein the first data frame includes a first preamble and a first message set to perform an unlocking operation; Among them, the target working mode is a working mode that can meet the downlink low latency scenario; in the target working mode, the network server can send the first data frame to the terminal through the second gateway at any time, and after the terminal detects the first preamble code through channel activity, the terminal wakes up according to the channel activity detection mechanism, and then receives the first message set.

20. A network communication device, characterized in that: Applied to a terminal, the terminal communicates with a network server via a gateway, the device comprising: A first instruction information sending module, used to send first instruction information to the network server through a first gateway, wherein the first instruction information includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to a target working mode; A first reply message receiving module, configured to receive a first reply message returned in response to the first instruction information from the network server through a second gateway; A first data frame receiving module, configured to receive a first data frame from the network server through the second gateway in the target working mode, wherein the first data frame includes a first preamble and a first message set; Among them, the target working mode is a working mode that can meet the downlink low latency scenario; in the target working mode, the network server can send the first data frame to the terminal through the second gateway at any time, and after the terminal detects the first preamble code through channel activity, the terminal wakes up according to the channel activity detection mechanism, and then receives the first message set.

21. A network communication device, characterized in that: Applied to a network server, the network server communicates with a terminal via a gateway, the device comprising: A first instruction information receiving module, configured to receive first instruction information from the terminal through a first gateway, wherein the first instruction information includes a target working mode identifier, and the target working mode identifier is used to instruct the terminal to switch to a target working mode; A first reply message returning module, configured to return a first reply message to the terminal via a second gateway in response to the first instruction information; A first data frame sending module, configured to send a first data frame to the terminal through the second gateway in the target working mode, wherein the first data frame includes a first preamble and a first message set; Among them, the target working mode is a working mode that can meet the downlink low latency scenario; in the target working mode, the network server can send the first data frame to the terminal through the second gateway at any time, and after the terminal detects the first preamble code through channel activity, the terminal wakes up according to the channel activity detection mechanism, and then receives the first message set.

22. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the network communication method according to any one of claims 1 to 19 are implemented.

23. 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 steps of the network communication method according to any one of claims 1 to 19 are implemented.