Method for transmitting IP (Internet Protocol) data packet by gateway equipment based on Beidou short message
By deploying link detection and Beidou short message mode switching in gateway devices, IP packets are captured and converted, the problem of communication interruption between edge devices is solved, and stable data transmission is achieved in extreme environments, which is suitable for communication guarantees in remote areas and after natural disasters.
Patent Information
- Application Number
- CN202510365776.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-26
- Publication Date
- 2025-07-01
AI Technical Summary
The existing network architecture has interrupted IP data communication between edge devices under abnormal conditions. Traditional communication networks are difficult to provide continuous and reliable data transmission in remote areas or natural disaster areas. There are parsing errors and resource restrictions when transmitting binary data in Beidou short messages.
By deploying link detection function in the gateway device, it automatically switches to Beidou short message mode, captures IP packets and converts them to text format, and uses Base64 encoding and ARP proxy functions to reasonably cache and packet transmission interval control to ensure the stability and efficiency of data transmission.
It realizes stable and reliable communication between edge devices in extreme environments, avoids data interruption, improves communication reliability and efficiency, and is suitable for data transmission in remote areas and after natural disasters.
Smart Images

Figure CN120238488A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wireless communication terminal applications, and particularly to a method for a gateway device to transmit IP data packets based on Beidou short messages. Background Art
[0002] In an increasingly complex network environment, ensuring the stability and continuity of data communication is an important challenge faced by all industries. Especially in remote areas, areas prone to natural disasters, or areas with weak network infrastructure, traditional wired or wireless communication networks often struggle to provide continuous and reliable data transmission services. For edge devices in these areas, such as sensors, surveillance cameras, remote terminals, etc., without a stable network connection, the critical data they generate cannot be transmitted to the central control station or data center in a timely and effective manner, seriously affecting the operational efficiency of business and the timeliness of decision-making.
[0003] The Beidou satellite navigation system not only provides high-precision positioning, navigation, and timing services, but also has a unique short message communication function. The Beidou short message service can achieve two-way text information transmission between users and between users and the ground control center through satellite links without ground communication network coverage. This feature provides a new solution for the data communication of the above-mentioned edge devices. Especially when the network is abnormal or interrupted, the Beidou short message can be used as a backup communication means to ensure continuous data transmission.
[0004] However, directly transmitting IP (Internet Protocol) data packets through Beidou short messages is not an easy task. IP data packets are binary data, and there are potential problems such as data parsing errors and misjudgment of carriage returns and line feeds when the Beidou short message service processes binary data. In addition, the communication frequency and message length limitations of the Beidou SIM (Subscriber Identity Module) card also pose severe challenges to the efficiency and reliability of data transmission. For example, the communication interval of the Beidou SIM card may be as long as several minutes, and the size of the data packet is also strictly limited, which requires the transmission system to have efficient data packet filtering, encoding, and scheduling capabilities to ensure efficient and accurate data transmission under limited communication resources.
[0005] Therefore, a method for a gateway device to transmit IP data packets based on Beidou short messages is provided. Summary of the Invention
[0006] The purpose of the present invention is to provide a method for a gateway device to transmit IP data packets based on Beidou short messages to overcome the existing defects, solve the problem of IP data communication interruption between edge devices in the existing network architecture under abnormal conditions, and achieve stable and efficient data transmission through innovative technical means.
[0007] The technical solution to achieve the above purpose is:
[0008] A method for a gateway device to transmit IP data packets based on Beidou short messages, comprising:
[0009] Step S1, the sending-end gateway device prepares and initializes;
[0010] Step S2, monitor the network status of the gateway device, and switch the transmission mode when a network failure is determined;
[0011] Step S3, the gateway device captures the IP data packet sent by the edge device and converts it into text format to form a complete Beidou short message;
[0012] Step S4, Beidou short message sending and cache management;
[0013] Step S5, the receiving-end gateway device processes the received short message;
[0014] Step S6, the gateway maintains a dynamically updated ARP (Address Resolution Protocol) table and adds a MAC (physical address of the network device) frame header to reconstruct a complete Ethernet frame;
[0015] Step S7, forward the reconstructed complete Ethernet frame to the target edge device.
[0016] Preferably, in the step S1, by installing and configuring gateway devices with link detection functions at two places respectively, setting network parameters and Beidou module parameters, and activating the link detection function, the preparation and initialization of the gateway device are completed.
[0017] Preferably, in the step S2, the gateway device monitors network connectivity by periodically sending heartbeat packets. If it is detected that there is no response for multiple consecutive times, it is determined that there is a network failure, and it automatically and seamlessly switches to the Beidou short message transmission mode.
[0018] Preferably, in the step S3, when the target edge device sends an IP data packet, the gateway device captures the data packet and converts it into text format using Base64 encoding, and attaches necessary control information to form a complete Beidou short message; wherein, the necessary control information includes but is not limited to a sequence number and a destination Beidou number.
[0019] Preferably, in the step S4, according to the frequency level limit of the Beidou sim card, check the communication interval. If the sending condition is not met, the short message is stored in the cache queue. After the communication interval is satisfied, the short message is taken out from the cache and sent through Beidou.
[0020] Preferably, in the step S5, the peer gateway device receives the short message through Beidou, analyzes the control information in the short message header, confirms the source and destination, and then uses Base64 decoding to restore the original IP data packet content.
[0021] Preferably, in step S6, the gateway maintains a dynamically updated ARP table, uses the ARP table to find the MAC address of the target device, and adds an appropriate MAC frame header before the IP data packet to reconstruct a complete Ethernet frame.
[0022] Preferably, in step S7, the processed Ethernet frame is sent to the target edge device to complete data transmission; at the same time, the receiving-end gateway device continues to monitor the network status and is ready to switch back to the original communication mode when the network returns to normal.
[0023] The beneficial effects of the present invention are as follows:
[0024] 1) By deploying a gateway device with link detection capabilities, the present invention automatically switches to the Beidou short message mode in case of an original network failure, ensuring uninterrupted communication. This method is particularly suitable for extreme environments such as remote areas and after natural disasters, providing stable and reliable communication guarantees;
[0025] 2) The sending-end gateway device of the present invention first captures the IP data packets sent by the edge device and converts them into text format using Base64 encoding to prevent parsing errors and misjudgment of carriage returns and line feeds during binary data transmission;
[0026] 3) The present invention introduces an ARP proxy function, strips the MAC frame header and only transmits the IP data packet, reducing unnecessary overhead; at the same time, maintains a local ARP table at the receiving end to supplement the MAC frame header, achieving efficient data transfer; in addition, designs a reasonable caching mechanism and packet sending interval control strategy, adjusts the sending timing of data packets according to the frequency level limit of the Beidou sim card, and ensures that data transmission complies with communication rules while maximizing the use of available resources;
[0027] 4) The entire switching process of the present invention does not require user intervention, realizing seamless switching and ensuring a good user experience; the present invention not only improves the reliability, security and efficiency of communication, but also solves the limitations of the existing networking system through a series of innovative technical means, having important practical application value and broad market prospects; especially under extreme conditions, the present invention can effectively guarantee stable communication between edge devices and provide reliable support for critical tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 is a flowchart of a method for a gateway device to transmit IP data packets based on Beidou short messages according to the present invention. DETAILED DESCRIPTION OF THE INVENTION
[0029] The technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. In the description of the present invention, it should be noted that the orientation or positional relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. is based on the orientation or positional relationship shown in the accompanying drawings. It is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation to the present invention. In addition, the terms "first", "second", "third" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance.
[0030] The present invention will be further described below in conjunction with the accompanying drawings.
[0031] As Figure 1 shown, a method for a gateway device to transmit IP data packets based on Beidou short messages includes:
[0032] Step S1, the sending-end gateway device prepares and initializes.
[0033] In the embodiment, by installing and configuring gateway devices with link detection functions at two places respectively, setting network parameters (such as IP addresses, subnet masks) and Beidou module parameters (such as Beidou numbers), and activating the link detection function, the preparation and initialization of the gateway device are completed, preparing for subsequent automatic switching; by deploying gateway devices with link detection capabilities, when the original network fails, it automatically switches to the Beidou short message mode to ensure uninterrupted communication; this method is especially suitable for extreme environments such as remote areas and after natural disasters, providing stable and reliable communication guarantees.
[0034] Step S2, monitor the network status of the gateway device, and switch the transmission mode when a network failure is determined.
[0035] In the embodiment, the gateway device monitors network connectivity by regularly sending heartbeat packets. If it detects that it fails to respond continuously for multiple times, it determines that there is a network failure and immediately starts the seamless switching logic, seamlessly switching from the original network mode to the Beidou short message transmission mode. The whole process does not require user intervention to ensure uninterrupted communication.
[0036] Step S3, the gateway device captures the IP data packets sent by the edge device and converts them into text format to form a complete Beidou short message.
[0037] In the embodiment, when the target edge device sends an IP data packet, the gateway device captures the data packet and converts it into text format using Base64 encoding, attaches necessary control information to form a complete Beidou short message, and prepares for the next transmission. Among them, the necessary control information includes but is not limited to the serial number and the destination Beidou number. The sending-end gateway device first captures the IP data packet sent by the target edge device and converts it into text format using Base64 encoding to prevent parsing errors and misjudgment of carriage returns and line feeds during binary data transmission. Subsequently, necessary control information is attached to form a complete Beidou short message and sent out through Beidou. After receiving the short message, the receiving-end gateway device parses the control information therein and uses Base64 decoding to restore the original IP data packet content.
[0038] Step S4, Beidou short message sending and cache management.
[0039] In the embodiment, according to the frequency level limit of the Beidou SIM card, the communication interval is checked. If the sending condition is not met, the short message is stored in the cache queue. After the communication interval is satisfied, the short message is taken out from the cache and sent through Beidou to ensure that the data transmission complies with the communication rules. By designing a reasonable cache mechanism and packet sending interval control strategy, the sending timing of the data packet is adjusted according to the frequency level limit of the Beidou SIM card, ensuring that the data transmission complies with the communication rules while maximizing the utilization of available resources.
[0040] Step S5, the receiving-end gateway device processes the received short message.
[0041] In the embodiment, the peer gateway device receives the short message through Beidou, parses the control information in the short message header to confirm the source and destination, and then uses Base64 decoding to restore the original IP data packet content to prepare for the next MAC frame header reconstruction.
[0042] Step S6, the gateway maintains a dynamically updated ARP table and adds a MAC frame header to reconstruct a complete Ethernet frame.
[0043] In the embodiment, the gateway maintains a dynamically updated ARP table, uses the ARP table to find the MAC address of the target device, and adds an appropriate MAC frame header before the IP data packet to reconstruct a complete Ethernet frame to ensure that the data can be correctly delivered to the destination. By introducing the ARP proxy function, the MAC frame header is stripped and only the IP data packet is transmitted, reducing unnecessary overhead. At the same time, the local ARP table is maintained at the receiving end to supplement the MAC frame header, realizing efficient data transfer.
[0044] Step S7, forward the reconstructed complete Ethernet frame to the target edge device.
[0045] In the embodiment, the processed Ethernet frame is sent to the target edge device to complete data transmission. Meanwhile, the receiving end gateway device continues to monitor the network status and is ready to switch back to the original communication mode when the network returns to normal.
[0046] The entire switching process of the present invention does not require user intervention, achieving a seamless switch, ensuring a good user experience. It not only improves the reliability, security and efficiency of communication, but also solves the limitations of the existing networking system through a series of innovative technical means, having important practical application value and broad market prospects. Especially under extreme conditions, the present invention can effectively guarantee stable communication between edge devices and provide reliable support for critical tasks.
[0047] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for transmitting IP data packets by a gateway device based on Beidou short messages, characterized in that: include: Step S1, preparation and initialization of the sending end gateway device; Step S2, monitoring the network status of the gateway device, and switching the transmission mode when determining that the network fails; Step S3, the gateway device captures the IP data packet sent by the edge device and converts it into a text format to form a complete Beidou short message; Step S4, Beidou short message sending and cache management; Step S5, the receiving end gateway device processes the received short message; Step S6, the gateway maintains the dynamically updated ARP table and adds a MAC frame header to rebuild a complete Ethernet frame; Step S7: forward the reconstructed complete Ethernet frame to the target edge device.
2. A method for transmitting IP data packets by a gateway device based on Beidou short messages according to claim 1, characterized in that: In step S1, gateway devices with link detection function are installed and configured at two locations respectively, network parameters and Beidou module parameters are set, and the link detection function is activated to complete gateway device preparation and initialization.
3. A method for transmitting IP data packets by a gateway device based on Beidou short messages according to claim 2, characterized in that: In step S2, the gateway device monitors network connectivity by regularly sending heartbeat packets. If it detects that it fails to respond for multiple consecutive times, it determines that the network is faulty and automatically switches to the Beidou short message transmission mode seamlessly.
4. A method for transmitting IP data packets by a gateway device based on Beidou short messages according to claim 3, characterized in that: In step S3, when the target edge device sends an IP data packet, the gateway device captures the data packet and converts it into a text format using Base64 encoding, appends necessary control information, and forms a complete Beidou short message; wherein the necessary control information includes but is not limited to a serial number and a destination Beidou number.
5. A method for transmitting IP data packets by a gateway device based on Beidou short messages according to claim 4, characterized in that: In step S4, the communication interval is checked according to the frequency level limit of the Beidou SIM card. If the sending condition is not met, the short message is stored in the cache queue. After the communication interval is met, the short message is taken out from the cache and sent through Beidou.
6. A method for transmitting IP data packets by a gateway device based on Beidou short messages according to claim 5, characterized in that: In step S5, the peer gateway device receives the short message through Beidou, parses the control information in the short message header, confirms the source and destination, and then uses Base64 decoding to restore the original IP data packet content.
7. A method for transmitting IP data packets by a gateway device based on Beidou short messages according to claim 6, characterized in that: In step S6, the gateway maintains a dynamically updated ARP table, uses the ARP table to search for the MAC address of the target device, and adds an appropriate MAC frame header before the IP data packet to reconstruct a complete Ethernet frame.
8. A method for transmitting IP data packets by a gateway device based on Beidou short messages according to claim 7, characterized in that: In step S7, the processed Ethernet frame is sent to the target edge device to complete the data transmission; at the same time, the receiving gateway device continues to monitor the network status and is ready to switch back to the original communication mode when the network returns to normal.