Data transmission method, terminal, gateway and data transmission system
By adding status indication fields to the uplink data frame of the terminal in LPWAN, the problem of divergence between the service gateway and the terminal node on the data transmission status is solved, accurate data transmission status judgment and packet loss detection are realized, the impact of data transmission is avoided, and signaling retransmission and data load retransmission are decoupled.
Patent Information
- Application Number
- CN202411761426.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-04-08
AI Technical Summary
The discontinuity of data transmission status between the service gateway and the terminal node in the LPWAN may cause disagreements in the data transmission status and affect subsequent data transmission.
The status indication field is added to the uplink data frame sent by the terminal. This field is used to indicate the transmission status of the data return packet of the previous sent historical uplink signaling, so that the gateway can accurately judge the packet loss result of the data return packet.
Through the status indication field, the gateway can accurately judge the data transmission status, avoid disagreement with the terminal on the transmission status of the data packet back, promptly detect packet loss, avoid affecting data transmission, and decouple signaling retransmission from data load retransmission.
Smart Images

Figure CN119789245A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a data transmission method, terminal, gateway and data transmission system. Background Art
[0002] In the process of data transmission and signaling interaction between the service gateway and the terminal node in the low-power wide-area network (LPWAN), the receiving end usually uses control information (such as confirmation signal) to feedback the reception status of data or signaling to the sending end. The receiving end is one of the service gateway and the terminal node, and the sending end is the other of the service gateway and the terminal node.
[0003] However, data transmission in LPWAN is usually discontinuous and has no specific timing guarantee. In addition, factors such as channel interference and channel occupancy may cause data transmission interruptions. As a result, there may be disagreements between the service gateway and the terminal node on the data transmission status. For example, the service gateway believes that the terminal node has received a data packet, but in fact the terminal node has not received the data packet, thus affecting subsequent data transmission. Summary of the invention
[0004] The present application provides a data transmission method, terminal, gateway and data transmission system, which can solve the problem that there is a disagreement between the service gateway and the terminal node on the data transmission status. The technical solution is as follows:
[0005] In one aspect, a data transmission method is provided, which is applied to a terminal; the method comprises:
[0006] Before sending a first uplink data frame, obtaining a first field value of a status indication field, where the status indication field is used to indicate a transmission status of a data return packet for a previously sent historical uplink signaling;
[0007] Sending the first uplink data frame to a gateway, where the first uplink data frame includes a first field value of the status indication field;
[0008] The first field value is used by the gateway to determine a packet loss result of the data return packet.
[0009] Optionally, the historical uplink signaling is encapsulated in a second uplink data frame, and the second uplink data frame further includes: the status indication field; obtaining a first field value of the status indication field includes:
[0010] Based on the second field value of the status indication field included in the second uplink data frame, a first field value of the status indication field is determined.
[0011] Optionally, the first field value is one of a plurality of candidate field values arranged in sequence; and determining the first field value of the status indication field based on the second field value of the status indication field in the second uplink data frame includes:
[0012] If the gateway sends a data reply packet after receiving the uplink signaling sent by the terminal, determine the first field value of the status indication field based on the transmission status of the data reply packet for the historical uplink signaling and the second field value;
[0013] If the gateway does not send a data reply packet after receiving the uplink signaling sent by the terminal, the next candidate field value of the second field value among the multiple candidate field values is determined as the first field value.
[0014] Optionally, determining the first field value of the status indication field based on the transmission status of the data reply packet for the historical uplink signaling and the second field value includes:
[0015] If the transmission status of the data reply packet for the historical uplink signaling is transmission success, determining the next candidate field value of the second field value among the multiple candidate field values arranged in sequence as the first field value;
[0016] If the transmission status of the data reply packet for the historical uplink signaling is transmission failure, the second field value is determined as the first field value.
[0017] Optionally, the multiple candidate field values are determined based on the length of the status indication field.
[0018] Optionally, the second field value is one of a plurality of candidate field values arranged in sequence;
[0019] And if the historical uplink signaling is the first uplink signaling sent by the terminal after accessing the gateway, the second field value is the first candidate field value among the multiple candidate field values arranged in sequence.
[0020] On the other hand, a data transmission method is provided, which is applied to a gateway; the method comprises:
[0021] Receiving a first uplink data frame sent by a terminal;
[0022] Parsing the first uplink data frame to obtain a first field value of a status indication field, where the first field value is used to indicate a transmission status of a data return packet for a previously received historical uplink signaling;
[0023] Based on the first field value, a packet loss result of the data return packet is determined.
[0024] In another aspect, a terminal is provided, the terminal comprising: a processor; the processor is configured to:
[0025] Before sending a first uplink data frame, obtaining a first field value of a status indication field, where the status indication field is used to indicate a transmission status of a data return packet for a previously sent historical uplink signaling;
[0026] Sending the first uplink data frame to a gateway, where the first uplink data frame includes a first field value of the status indication field;
[0027] The first field value is used by the gateway to determine a packet loss result of the data return packet.
[0028] In another aspect, a gateway is provided, the gateway comprising: a processor; the processor is configured to:
[0029] Receiving a first uplink data frame sent by a terminal;
[0030] Parsing the first uplink data frame to obtain a first field value of a status indication field, where the first field value is used to indicate a transmission status of a data return packet for a previously received historical uplink signaling;
[0031] Based on the first field value, a packet loss result of the data return packet is determined.
[0032] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that when the computer program is executed by a processor, it implements the data transmission method applied to the terminal as described in the above aspects, or implements the data transmission method applied to the gateway as described in the above aspects.
[0033] On the other hand, a data transmission system is provided, characterized in that the system comprises: the terminal as described in the above aspect, and the gateway as described in the above aspect.
[0034] The beneficial effects brought about by the technical solution provided by this application include at least:
[0035] The present application provides a data transmission method, terminal, gateway and data transmission system, wherein the terminal can add a status indication field in the transmitted uplink data frame, and the status indication field is used to indicate the transmission status of the data packet of the historical uplink signaling for the previous transmission. In this way, on the one hand, the gateway can accurately determine the transmission status based on the status indication field, so that the packet loss in the data transmission process can be discovered in time, and the disagreement with the terminal on the transmission status of the data packet can be avoided, so as to avoid affecting the data transmission; on the other hand, the signaling retransmission can be decoupled from the data load retransmission, so as to avoid the phenomenon of signaling message loss caused by data load changes.
[0036] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 is a schematic diagram of data transmission between a terminal node and a service gateway;
[0038] Figure 2 is another schematic diagram of data transmission between a terminal node and a service gateway;
[0039] Figure 3 It is a structural diagram of a data transmission system provided in an embodiment of the present application;
[0040] Figure 4 is a flow chart of a data transmission method provided in an embodiment of the present application;
[0041] Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0043] In the process of data interaction (such as signaling interaction or data transmission) between the service gateway and the terminal node in LPWAN, after receiving the data sent by the terminal, the gateway usually uses control information (such as confirmation signal) to feedback the transmission status of the transmitted data to the sender. The transmission status is successful or failed. The data may include: business data (such as sensor data, status data, synchronization data, etc.) and / or signaling, and the data is usually encapsulated in a data frame. The business data can be used as the data payload in the data frame.
[0044] For example, see Figure 1 There are three data transmissions between the terminal node and the service gateway. Among them, data transmission 1 sent by the terminal node contains a feedback message of data return 0 (such as an acknowledgment signal ACK), and data transmission 2 contains a feedback message of data return 1. Since data transmission 1 and data transmission 2 are transmitted to the service gateway successively, the service gateway can correctly receive and know the transmission results of the service data corresponding to data return 0 and data return 1 and the configuration feedback of the signaling. Figure 1 During the transmission process shown, there is no disagreement between the terminal node and the serving gateway regarding the transmission status of data or signaling.
[0045] However, data transmission in LPWAN is usually discontinuous and has no specific timing guarantee. As a result, data transmission may be interrupted due to factors such as channel interference and channel occupancy, which may lead to disagreements between the service gateway and the terminal node on the data transmission status, affecting subsequent data transmission.
[0046] For example, see Figure 2 , the terminal node sends data transmission 1, and the service gateway receives it normally and sends data return 1. However, the terminal node does not receive data return 1, and re-initiates data transmission 2 without receiving data return 1. Data transmission 2 still carries the feedback message of data return 0. However, since the service gateway has previously sent data return 1, after receiving data transmission 2, the service gateway will think that data transmission 2 carries the feedback message of data return 1. At this point, the terminal node and the service gateway have a disagreement on the data transmission status, that is, the service gateway will mistakenly believe that the terminal node has received data return 1, but the terminal node has not actually received data return 1.
[0047] In the current LoRaWAN protocol, each uplink message (i.e., uplink data frame) and each downlink message (i.e., downlink data frame) contains a frame counter (FCnt) field, which is a monotonically increasing counter. The FCnt field in the uplink message increments each time the terminal node sends a new uplink message, that is, the FCnt field in the uplink message is used to count the number of uplink messages sent by the terminal node. The FCnt field in the downlink message increments each time the service gateway sends a new downlink message, that is, the FCnt field in the downlink message is used to count the number of downlink messages sent by the service gateway. In other words, each time the terminal node sends a new data frame, the field value of the FCnt field increases by 1. Similarly, when the service gateway sends a new data frame, the field value of the FCnt field also increases by 1.
[0048] That is, the FCnt field corresponds to the number of initial transmissions of the data frame. Figure 2 In the data transmission shown, the service gateway can determine that the data return 1 is lost based on the field value of the FCnt field. However, if the number of retransmissions is exhausted or the LoRaWAN network is not configured with a retransmission mechanism, then regardless of whether the terminal node has packet loss, a new data frame will be transmitted during the next data transmission, and the field value of the FCnt field will be increased by 1. At this time, the service gateway will still misjudge the data transmission status.
[0049] In view of this, an embodiment of the present application provides a data transmission method, in which a terminal can add a status indication field in the transmitted uplink data frame, and the status indication field is used to indicate the transmission status of the data return packet for the historical uplink signaling of the previous transmission. In this way, the gateway can accurately determine the transmission status based on the status indication field, avoiding the gateway's misjudgment of the transmission status of the data return packet, thereby avoiding disagreements with the terminal on the transmission status of the data return packet, and then avoiding affecting data transmission.
[0050] Figure 3 is a structural diagram of a data transmission system provided in an embodiment of the present application, see Figure 3 The data transmission system includes: a terminal 100 and a gateway 200. A wireless communication connection is established between the terminal 100 and the gateway 200. The wireless communication connection may be a communication connection established based on the LoRaWAN technology.
[0051] Optionally, the terminal 100 may be a smart sensor, a water meter, a gas meter, a tracking and positioning device (such as a pet tracker), a smoke alarm, a security camera or a smart street lamp, etc. Among them, the smart sensor can be used to monitor various environmental parameters, such as temperature, humidity, pressure, light, etc.
[0052] The embodiment of the present application provides a data transmission method, which is applied to a data transmission system. Figure 3 , the method comprising:
[0053] Step 101: Before sending a first uplink data frame, the terminal obtains a first field value of a status indication field.
[0054] The status indication field is used to indicate the transmission status of the data packet of the historical uplink signaling sent last time. The transmission status is transmission success or transmission failure. Optionally, the status indication field can be represented by CmdProcessIndicator.
[0055] In an embodiment of the present application, the uplink signaling and the status indication field may be encapsulated in a data frame for transmission. The historical uplink signaling may be encapsulated in a second data frame, and the second data frame further includes a status indication field. The terminal may determine the first field value of the status indication field based on the second field value of the status indication field included in the second uplink data frame. The second field value of the status indication field is used to indicate the transmission status of the data return packet for the previous uplink signaling of the historical uplink signaling.
[0056] For example, the first field value is one of a plurality of alternative field values arranged in sequence. The plurality of alternative field values are determined based on the length of the status indication field. The length of the status indication field refers to: the size of the storage space occupied by the status indication field. Specifically, if the length of the status indication field is 1 bit, the plurality of alternative field values include 0 and 1. If the length of the status indication field is 2 bits, the plurality of alternative field values include 00, 01, 10 and 11. Among them, the length of the status indication field may depend on the design of the frame structure of the data frame.
[0057] In an embodiment of the present application, the terminal may first determine whether the gateway will send a data reply packet for the uplink signaling sent by the terminal. If the terminal determines that the gateway will not send a data reply packet for the uplink signaling, that is, the terminal considers that the serving gateway has successfully received the signal after the terminal completes the transmission, the terminal may directly determine the next candidate field value of the second field value of the status indication field among the multiple candidate field values as the first field value.
[0058] If the terminal determines that the gateway will send a data reply packet for the uplink signaling, the terminal may determine the first field value of the status indication field based on the transmission status of the data reply packet for the historical uplink signaling and the second field value of the status indication field.
[0059] Specifically, if the terminal determines that the transmission status of the data reply packet for the historical uplink signaling is a successful transmission, that is, the terminal receives the data reply packet for the historical uplink signaling, then the terminal can determine the next alternative field value of the second field value among the multiple alternative field values arranged in sequence as the first field value. If the terminal determines that the transmission status of the data reply packet for the historical uplink signaling is a failed transmission, that is, the terminal does not receive the data reply packet, then the second field value can be determined as the first field value. At this time, the first uplink data frame is a retransmission of the second uplink data frame.
[0060] It is understandable that if the second field value is the last candidate field value among the multiple candidate field values arranged in sequence, the next candidate field value of the second field value is the first candidate field value among the multiple candidate field values arranged in sequence. That is, the multiple candidate field values arranged in sequence can be cyclically used as the field value of the status indication field.
[0061] It can also be understood that the second field value is also an alternative field value in the multiple alternative field values arranged in sequence. If the second uplink data frame is the first uplink data frame sent after the terminal accesses the gateway, the second field value can be the first alternative field value in the multiple alternative field values.
[0062] For example, assuming that the multiple candidate field values arranged in sequence are: 00, 01, 10 and 11, and the second uplink data frame is the first uplink data frame sent after the terminal accesses the gateway, then the second field value of the status indication field in the second uplink data frame is 00. In addition, at this time, the second field value of the second uplink data frame can be used to indicate: receiving the configuration parameters of the access permission issued by the gateway. The second uplink data frame can also carry the configuration result for the configuration parameter.
[0063] It should be understood that the field value of the status indication field will not change with the change of the field value of the FCnt field in the data frame, that is, it is not subject to the constraints of the initial transmission or retransmission of the uplink data frame. In other words, even if the data payload in the uplink data frame changes, but the data response packet for the historical uplink signaling sent last time is not received, the field value of the status indication field will not change.
[0064] Step 102: The terminal sends a first uplink data frame to the gateway.
[0065] In the embodiment of the present application, the terminal may encapsulate the first field value of the status indication field in a first uplink data frame and send the first uplink data frame to the gateway, that is, the first uplink data frame includes the first field value of the status indication field.
[0066] Optionally, the first uplink data frame may also encapsulate the target uplink signaling to be sent this time.
[0067] Step 103: The gateway parses the first uplink data frame to obtain a first field value of the status indication field.
[0068] After receiving the first uplink data frame, the gateway may parse the first uplink data frame to obtain the first field value of the status indication field.
[0069] Optionally, after parsing the first uplink data frame, the gateway may also obtain target uplink signaling. Thereafter, the gateway may respond to the target uplink signaling.
[0070] Step 104: The gateway determines a packet loss result of the data return packet based on the first field value.
[0071] The packet loss result is packet loss or no packet loss.
[0072] In an embodiment of the present application, after receiving the first field value, the gateway may compare the first field value with the historical field value of the status indication field in the most recently received uplink data frame to see whether they are the same. If the gateway determines that the first field value is the same as the historical field value, the gateway may determine that the packet loss result of the data return packet is packet loss. If the gateway determines that the first field value is different from the historical field value, the gateway may determine that the packet loss result of the data return packet is no packet loss.
[0073] In summary, the embodiment of the present application provides a data transmission method, in which the terminal can add a status indication field in the transmitted uplink data frame, and the status indication field is used to indicate the transmission status of the data packet of the historical uplink signaling of the previous transmission. In this way, on the one hand, the gateway can accurately determine the transmission status based on the status indication field, so that the packet loss in the data transmission process can be discovered in time, and the disagreement with the terminal on the transmission status of the data packet can be avoided, so as to avoid affecting the data transmission; on the other hand, the signaling retransmission can be decoupled from the data load retransmission, so as to avoid the phenomenon of signaling message loss caused by data load changes.
[0074] The present application embodiment provides an electronic device, see Figure 5 , the electronic device 300 includes a processor 301. Optionally, the electronic device may be a terminal or a gateway as described above. If the electronic device is a terminal, the processor 301 is used to:
[0075] Before sending the first uplink data frame, obtaining a first field value of a status indication field, where the status indication field is used to indicate a transmission status of a data return packet for a previously sent historical uplink signaling;
[0076] Sending a first uplink data frame to the gateway, where the first uplink data frame includes a first field value of a status indication field;
[0077] The first field value is used by the gateway to determine the packet loss result of the data return packet.
[0078] Optionally, the historical uplink signaling is encapsulated in a second uplink data frame, and the second uplink data frame further includes: a status indication field. The processor 301 may be configured to:
[0079] Based on the second field value of the status indication field in the second uplink data frame, a first field value of the status indication field is determined.
[0080] Optionally, the first field value is one of a plurality of candidate field values arranged in sequence. The processor 301 may be configured to:
[0081] If the gateway sends a data reply packet after receiving the uplink signaling sent by the terminal, the first field value of the status indication field is determined based on the transmission status of the data reply packet for the historical uplink signaling and the second field value;
[0082] If the gateway does not send a data reply packet after receiving the uplink signaling sent by the terminal, the next candidate field value of the second field value among the multiple candidate field values is determined as the first field value.
[0083] Optionally, the processor 301 may be configured to:
[0084] If the transmission status of the data reply packet for the historical uplink signaling is transmission success, the next candidate field value of the second field value among the multiple candidate field values arranged in sequence is determined as the first field value;
[0085] If the transmission status of the data reply packet for the historical uplink signaling is transmission failure, the second field value is determined to be the first field value.
[0086] Optionally, multiple candidate field values are determined based on the length of the status indication field.
[0087] Optionally, the second field value is one of a plurality of candidate field values arranged in sequence;
[0088] And if the historical uplink signaling is the first uplink signaling sent after the terminal accesses the gateway, the second field value is the first candidate field value among the multiple candidate field values arranged in sequence.
[0089] In summary, an embodiment of the present application provides a terminal that can add a status indication field in the transmitted uplink data frame, and the status indication field is used to indicate the transmission status of the data packet of the historical uplink signaling for the previous transmission. In this way, on the one hand, the gateway can accurately determine the transmission status based on the status indication field, so that the packet loss in the data transmission process can be discovered in time, and the disagreement with the terminal on the transmission status of the data packet can be avoided, so as to avoid affecting the data transmission; on the other hand, the signaling retransmission can be decoupled from the data load retransmission, so as to avoid the phenomenon of signaling message loss caused by data load changes.
[0090] In the embodiment of the present application, if the electronic device is a gateway, the processor 301 is used to:
[0091] Receiving a first uplink data frame sent by a terminal;
[0092] Parsing the first uplink data frame to obtain a first field value of a status indication field, where the first field value is used to indicate a transmission status of a data return packet for a previously received historical uplink signaling;
[0093] Based on the first field value, a packet loss result of the data return packet is determined.
[0094] In summary, an embodiment of the present application provides a gateway, which can receive an uplink data frame sent by a terminal, and a status indication field is added to the uplink data frame, and the status indication field is used to indicate the transmission status of the data return packet for the historical uplink signaling of the previous transmission. Then, the gateway can parse the uplink data frame to obtain the field value of the status indication field, so as to accurately determine the transmission status of the data return packet based on the status indication field, so as to timely discover the packet loss in the data transmission process, and avoid disagreements with the terminal on the transmission status of the data return packet, so as to avoid affecting the data transmission.
[0095] Please continue to see Figure 5 As shown, the electronic device 300 also includes: a memory 303. The processor 301 and the memory 303 are connected, such as through a bus 302. Optionally, the electronic device 300 may also include a transceiver 304. It should be noted that in actual applications, the transceiver 304 is not limited to one, and the structure of the electronic device 300 does not constitute a limitation on the embodiments of the present application.
[0096] Processor 301 may be a CPU (Central Processing Unit), a general purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 301 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0097] The bus 302 may include a path to transmit information between the above components. The bus 302 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0098] The memory 303 is used to store a computer program corresponding to the data transmission method of the above embodiment of the present application, and the computer program is controlled and executed by the processor 301. The processor 301 is used to execute the computer program stored in the memory 303 to implement the content shown in the above method embodiment.
[0099] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the data transmission method applied to a terminal as provided in the above method embodiment is implemented, or the data transmission method applied to a gateway as provided in the above method embodiment is implemented.
[0100] An embodiment of the present application provides a data transmission system, which includes: a terminal provided by the above-mentioned device embodiment, and a gateway provided by the above-mentioned device embodiment.
[0101] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0102] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0103] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0104] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0105] In this application, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0106] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A data transmission method, characterized in that: Applied to a terminal; the method comprises: Before sending a first uplink data frame, obtaining a first field value of a status indication field, where the status indication field is used to indicate a transmission status of a data return packet for a previously sent historical uplink signaling; Sending the first uplink data frame to a gateway, where the first uplink data frame includes a first field value of the status indication field; The first field value is used by the gateway to determine a packet loss result of the data return packet.
2. The method according to claim 1, characterized in that The historical uplink signaling is encapsulated in a second uplink data frame, wherein the second uplink data frame further includes: the status indication field; obtaining a first field value of the status indication field includes: Based on the second field value of the status indication field in the second uplink data frame, a first field value of the status indication field is determined.
3. The method according to claim 2, characterized in that The first field value is one of a plurality of candidate field values arranged in sequence; and determining the first field value of the status indication field based on the second field value of the status indication field in the second uplink data frame includes: If the gateway sends a data reply packet after receiving the uplink signaling sent by the terminal, determine the first field value of the status indication field based on the transmission status of the data reply packet for the historical uplink signaling and the second field value; If the gateway does not send a data reply packet after receiving the uplink signaling sent by the terminal, the next candidate field value of the second field value among the multiple candidate field values is determined as the first field value.
4. The method according to claim 3, characterized in that Determining a first field value of the status indication field based on a transmission status of a data reply packet for the historical uplink signaling and the second field value includes: If the transmission status of the data reply packet for the historical uplink signaling is transmission success, determining the next candidate field value of the second field value among the multiple candidate field values arranged in sequence as the first field value; If the transmission status of the data reply packet for the historical uplink signaling is transmission failure, the second field value is determined as the first field value.
5. The method according to claim 3 or 4, characterized in that: The multiple candidate field values are determined based on the length of the status indication field.
6. The method according to any one of claims 2 to 4, characterized in that: The second field value is one of a plurality of candidate field values arranged in sequence; And if the historical uplink signaling is the first uplink signaling sent by the terminal after accessing the gateway, the second field value is the first candidate field value among the multiple candidate field values arranged in sequence.
7. A data transmission method, characterized in that: Applied to a gateway; the method comprises: Receiving a first uplink data frame sent by a terminal; Parsing the first uplink data frame to obtain a first field value of a status indication field, where the first field value is used to indicate a transmission status of a data return packet for a previously received historical uplink signaling; Based on the first field value, a packet loss result of the data return packet is determined.
8. A terminal, characterized in that: The terminal includes: a processor; the processor is used for: Before sending a first uplink data frame, obtaining a first field value of a status indication field, where the status indication field is used to indicate a transmission status of a data return packet for a previously sent historical uplink signaling; Sending the first uplink data frame to a gateway, where the first uplink data frame includes a first field value of the status indication field; The first field value is used by the gateway to determine a packet loss result of the data return packet.
9. A gateway, characterized in that: The gateway comprises: a processor; the processor is used for: Receiving a first uplink data frame sent by a terminal; Parsing the first uplink data frame to obtain a first field value of a status indication field, where the first field value is used to indicate a transmission status of a data return packet for a previously received historical uplink signaling; Based on the first field value, a packet loss result of the data return packet is determined.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented, or the method according to claim 7 is implemented.
11. A data transmission system, characterized in that: The system comprises: the terminal as claimed in claim 8, and the gateway as claimed in claim 9.