CN117479115A - Beidou short message transmission method, device and equipment - Google Patents

Beidou short message transmission method, device and equipment Download PDF

Info

Publication number
CN117479115A
CN117479115A CN202311581309.XA CN202311581309A CN117479115A CN 117479115 A CN117479115 A CN 117479115A CN 202311581309 A CN202311581309 A CN 202311581309A CN 117479115 A CN117479115 A CN 117479115A
Authority
CN
China
Prior art keywords
data
data packet
packet
type
length
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311581309.XA
Other languages
Chinese (zh)
Inventor
徐伟强
朱贵冬
刘鹏
欧咏锦
邱韬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Haige Xinghang Information Technology Co ltd
Original Assignee
Guangzhou Haige Xinghang Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Haige Xinghang Information Technology Co ltd filed Critical Guangzhou Haige Xinghang Information Technology Co ltd
Priority to CN202311581309.XA priority Critical patent/CN117479115A/en
Publication of CN117479115A publication Critical patent/CN117479115A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9047Buffering arrangements including multiple buffers, e.g. buffer pools
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9057Arrangements for supporting packet reassembly or resequencing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a Beidou short message transmission method, a Beidou short message transmission device and Beidou short message transmission equipment, which comprise the following steps: acquiring a first data packet, and performing packetizing operation on the first data packet according to the data type and the data length of the first data packet; the packetized first data packet is put into a first buffer pool or a second buffer pool according to the data type; acquiring a second data packet from the first cache pool according to the priority rule, and screening a third data packet conforming to the coding rule from the second cache pool according to the data length of the second data packet; and carrying out mixed coding on the second data packet and the third data packet, and sending the coded packets after mixed coding. The invention avoids the first data packet from occupying a complete transmitting frequency when transmitting by putting the long data into the buffer pool after the long data is subjected to the allowance packet, and influences the transmission of real-time data; and the idle allowance of the sub-packet transmission is utilized to transmit the third data packet with real-time property, so that the channel utilization efficiency is improved, and the transmission delay is reduced.

Description

Beidou short message transmission method, device and equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a device for transmitting a beidou short message.
Background
The short message communication service is the biggest characteristic of the Beidou system, which is different from the foreign navigation systems such as GPS, GLONASS and the like. The Beidou III upgrades the short message body system, greatly improves the system capacity and user experience, provides regional short message communication service, and simultaneously provides global short message communication service.
The maximum length of a single maximum communication message can reach 1000 Chinese characters (1750 bytes) which is nearly ten times that of the original Beidou No. two system, so that the application scene is remarkably widened. According to the application characteristics of different industries, the data transmitted by adopting the short message is multi-mode, and has streaming space-time data, such as position data changing along with time and equipment monitoring data changing along with time; there are also multimedia data such as image data, voice data, etc. The characteristics of these data are different, wherein the streaming spatio-temporal data can be transmitted through one Beidou three short message. One piece of image voice data needs to be packetized, and transmission can be completed through a plurality of Beidou No. three short messages. For limited and valuable short message communication resources, how to use them effectively is of particular importance.
The existing Beidou III short message is limited by the transmitting frequency, and a time interval exists between two times of short message transmission, for example, the time interval is generally 5-60 seconds in the civil field, and the data transmission terminal can possibly receive multiple times and multiple types of data transmission requests of external equipment. The current Beidou short message transmission method generally waits for the next transmitting frequency to report the next packet of data after reporting the first packet of data, and can cause real-time influence on stream space-time data or image voice data.
Disclosure of Invention
The invention provides a Beidou short message transmission method, a Beidou short message transmission device and Beidou short message transmission equipment, and aims to solve the technical problem that the once transmitting frequency of the Beidou short message transmission method can only transmit one data packet, and the real-time performance of streaming space-time data or image voice data is affected.
In order to solve the technical problems, an embodiment of the present invention provides a method for transmitting a beidou short message, including:
acquiring a first data packet, and performing packetizing operation on the first data packet according to the data type and the data length of the first data packet; the packetized first data packet is put into a first buffer pool or a second buffer pool according to the data type;
acquiring a second data packet from the first cache pool according to the priority rule, and screening a third data packet conforming to the coding rule from the second cache pool according to the data length of the second data packet;
and carrying out mixed coding on the second data packet and the third data packet, and sending the coded packets after mixed coding.
The invention carries out preprocessing on the first data packet, carries out residual subpackaging on long data and then puts the long data into the buffer pool so as to avoid that the first data packet occupies a complete transmitting frequency when being transmitted due to overlong data length and influences the transmission of real-time data; and screening the sub-packet data in the buffer pool according to the priority rule, screening the real-time third data packet according to the coding rule, performing mixed coding on the second data packet serving as the sub-packet data of long data and the real-time third data packet, transmitting the coded packet after mixed coding in one transmission frequency, transmitting the real-time third data packet by using the idle allowance of sub-packet transmission, improving the channel utilization efficiency, reducing the transmission delay, and guaranteeing the time sequence.
Further, the acquiring the first data packet, and performing a packetizing operation on the first data packet according to the data type and the data length of the first data packet, specifically includes:
acquiring a first data packet, and confirming basic information of the first data packet, wherein the basic information comprises a data type and a data length;
performing packetization operation on the first data packet according to the data type and the data length of the first data packet to obtain a plurality of packetization data packets and packetization information; wherein, the sub-packaging information comprises a sub-packaging sequence and a sub-packaging number;
and adding a leading packet data frame in front of each data packet according to the data type of the first data packet and the packetization information.
Further, the packetizing operation is performed on the first data packet according to the data type and the data length of the first data packet, so as to obtain a plurality of packetizing data packets and packetizing information, which specifically includes:
confirming the data type of the first data packet, wherein the data type comprises long data and stream data;
and if the data type is long data, carrying out packetizing operation on the first data packet according to the data length of the first data packet, and acquiring a plurality of packetizing data packets subjected to packetizing processing and packetizing information of the first data packet.
The invention packetizes the first data packet according to the data length and the data type of the first data packet so as to avoid the overlong data length of the first data packet with long data type, occupy a complete transmitting frequency during transmission and influence the transmission of real-time data; meanwhile, a preamble packet data frame is added in front of each data packet according to the data type and the packetization information so as to distinguish the data content of each data packet, and the screening efficiency of the data packets is improved so as to improve the transmission efficiency of the data packets.
Further, the packetizing operation is performed on the first data packet according to the data length of the first data packet, specifically:
confirming the maximum capacity of the current transmitting frequency, and determining the subpackage number of the first data packet according to the maximum capacity;
and averagely splitting the first data packet into a plurality of sub-packet data packets according to the sub-packet number.
The invention confirms the sub-package number of the long data type data package according to the maximum capacity of the current transmitting frequency, and reduces the data splitting of the long data type as far as possible on the premise of ensuring that the data package can be completely transmitted according to the sub-package number so as to avoid increasing the data protocol and wasting the transmission capacity; meanwhile, after the sub-packets are divided according to the average number of the sub-packets, the current transmitting frequency can have the residual transmitting capacity when each sub-packet is transmitted, so that the real-time data is transmitted by utilizing the residual transmitting capacity, the channel utilization rate is improved, and the transmission efficiency is improved.
Further, the adding a preamble packet data frame before each data packet according to the data type of the first data packet and the packetization information specifically includes:
confirming the data type of the first data packet, and if the data type is streaming data, adding a preamble packet data frame in front of the first data packet;
if the data type is long data, each sub-packet data packet after sub-packet processing of the first data packet is obtained, and a leading packet data frame is added in front of each sub-packet data packet;
the preamble packet data frame comprises a frame header byte, a data packet type, a type serial number, a total packet number and a current packet sequence number.
The invention adds the leading packet data frame before each data packet according to the data type and the packetization information to distinguish the data type of each data packet and confirm whether the current data packet is the packetization data packet, so as to avoid data loss, and simultaneously, improve the screening efficiency of the data packet and the transmission efficiency of the data packet.
Further, the step of placing the packetized first data packet into the first buffer pool or the second buffer pool according to the data type specifically includes:
setting priority and adding time stamp for the first data packet according to real-time characteristic and data type;
confirming the data type of a first data packet, and if the data type is long data, putting the first data packet into a first cache pool;
and if the data type is streaming data, the first data packet is put into a second cache pool.
According to the invention, the data packets are put into different buffer pools according to the data types of the data packets, and the priority and the time stamp are set at the same time, so that the data packets of different types are distinguished, and the screening efficiency of the data packets of the data types in the mixed coding process is improved.
Further, the second data packet is obtained from the first buffer pool according to the priority rule, and the third data packet conforming to the coding rule is screened from the second buffer pool according to the data length of the second data packet, specifically:
screening a second data packet with highest priority from the first buffer pool according to the preamble packet data frame and the priority rule;
calculating the residual capacity of the current transmission frequency according to the length of the second data packet and the maximum capacity of the current transmission frequency;
and screening a third data packet in the second cache pool according to the residual capacity and the coding rule.
The invention selects a third data packet according to the residual capacity by calculating the residual capacity after the second data packet is sent according to the current transmission frequency, so that the second data packet and the third data packet accord with the capacity of the current transmission frequency; the real-time data with smaller data length is sent by utilizing the residual capacity, so that the utilization efficiency of a channel is improved, and the real-time data transmission efficiency is improved.
Further, before the second data packet is obtained from the first buffer pool according to the priority rule, and the third data packet conforming to the coding rule is screened from the second buffer pool according to the data length of the second data packet, the method further comprises:
and dynamically adjusting the priority of each data packet according to the time stamp and implementation characteristic of each data packet in the first cache pool and the second cache pool.
The invention dynamically adjusts the priority of each data packet according to the time stamp and the implementation characteristic, so that the priority of the time stamp in front is high, and the transmission time sequence is ensured.
In a second aspect, an embodiment of the present invention provides a beidou short message transmission device, including: the device comprises a preprocessing module, a hybrid coding module and a packaging and transmitting module;
the preprocessing module is used for acquiring a first data packet and performing packetizing operation on the first data packet according to the data type and the data length of the first data packet; the packetized first data packet is put into a first buffer pool or a second buffer pool according to the data type;
the mixed coding module is used for acquiring a second data packet from the first cache pool according to the priority rule, and screening a third data packet conforming to the coding rule from the second cache pool according to the data length of the second data packet;
and the packaging and transmitting module is used for carrying out mixed coding on the second data packet and the third data packet and transmitting the coded packet with mixed coding.
In a third aspect, an embodiment of the present invention provides a computer apparatus, including: the Beidou short message transmission system comprises a processor, a communication interface and a memory, wherein the processor, the communication interface and the memory are connected with each other, executable program codes are stored in the memory, and the processor is used for calling the executable program codes and executing the Beidou short message transmission method.
Drawings
Fig. 1 is a schematic flow chart of a beidou short message transmission method provided by an embodiment of the present invention;
fig. 2 is a schematic diagram of a packet of a beidou short message transmission method according to an embodiment of the present invention;
fig. 3 is another sub-packet diagram of the beidou short message transmission method provided by the embodiment of the present invention;
fig. 4 is a schematic structural diagram of a preamble packet data frame according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of data prioritization according to an embodiment of the present invention;
FIG. 6 is a schematic logic diagram of a priority cache controller according to an embodiment of the present invention;
fig. 7 is a schematic diagram of hybrid encoding of a beidou short message transmission method provided by an embodiment of the present invention;
fig. 8 is a schematic diagram of another hybrid coding of the beidou short message transmission method provided by the embodiment of the present invention;
fig. 9 is a schematic structural diagram of a beidou short message transmission device provided by an embodiment of the present invention;
fig. 10 is a schematic flow chart of another method for transmitting Beidou short messages according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
Referring to fig. 1, fig. 1 is a schematic flow chart of a beidou short message transmission method provided by an embodiment of the present invention, including steps 101 to 103, specifically as follows:
step 101: acquiring a first data packet, and preprocessing the first data packet according to the data type and the data length of the first data packet; the preprocessed first data packet is respectively put into a first cache pool and a second cache pool according to the data type; wherein the preprocessing includes a packetization operation;
in this embodiment, the acquiring the first data packet, and performing the packetizing operation on the first data packet according to the data type and the data length of the first data packet specifically includes:
acquiring a first data packet, and confirming basic information of the first data packet, wherein the basic information comprises a data type and a data length;
performing packetization operation on the first data packet according to the data type and the data length of the first data packet to obtain a plurality of packetization data packets and packetization information; wherein, the sub-packaging information comprises a sub-packaging sequence and a sub-packaging number;
and adding a leading packet data frame in front of each data packet according to the data type of the first data packet and the packetization information.
In this embodiment, according to application characteristics of different industries, data transmitted by using short messages is multi-modal, and there are streaming space-time data, such as position data changing with time and equipment monitoring data changing with time; there are also multimedia data such as image data, voice data, etc. The characteristics of these data are different, wherein the streaming spatio-temporal data can be transmitted through one Beidou three short message. One piece of image voice data needs to be packetized, and transmission can be completed through a plurality of Beidou No. three short messages.
In this embodiment, the first data packet is packetized by combining a hybrid coding algorithm according to the data length and the data type of the first data packet, so as to avoid that the data length of the first data packet with a long data type is too long, and occupy a complete transmitting frequency during transmission, so as to affect the transmission of real-time data; meanwhile, a preamble packet data frame is added in front of each data packet according to the data type and the packetization information so as to distinguish the data content of each data packet, and the screening efficiency of the data packets is improved so as to improve the transmission efficiency of the data packets.
In this embodiment, the packetizing operation is performed on the first data packet according to the data type and the data length of the first data packet, so as to obtain a plurality of packetizing data packets and packetizing information, which specifically includes:
confirming the data type of the first data packet, wherein the data type comprises long data and stream data;
and if the data type is long data, carrying out packetizing operation on the first data packet according to the data length of the first data packet, and acquiring a plurality of packetizing data packets subjected to packetizing processing and packetizing information of the first data packet.
In this embodiment, the data is specifically classified into two major categories according to the real-time requirement, stream data and long data, the stream data includes stream space-time data having the real-time requirement and the long data includes multimedia data such as image data, voice data, and the like.
In this embodiment, since the transmission capacity of the beidou No. three short messages is smaller, and the data length of the long data type multimedia data is larger, the transmission is completed only through a plurality of beidou No. three short messages.
In this embodiment, the first data packet is packetized according to the data length and the data type of the first data packet, so as to avoid that the data length of the first data packet with the long data type is too long, and occupies a complete transmitting frequency during transmission, so that the transmission of real-time data is affected; meanwhile, a preamble packet data frame is added in front of each data packet according to the data type and the packetization information so as to distinguish the data content of each data packet, and the screening efficiency of the data packets is improved so as to improve the transmission efficiency of the data packets.
In this embodiment, the packetizing operation is performed on the first data packet according to the data length of the first data packet, which specifically includes:
confirming the maximum capacity of the current transmitting frequency, and determining the subpackage number of the first data packet according to the maximum capacity;
and averagely splitting the first data packet into a plurality of sub-packet data packets according to the sub-packet number.
In this embodiment, the hybrid coding algorithm specifically includes: and confirming the minimum number of the packets which can be sent to the first data packet according to the maximum capacity of the current transmission frequency, and equally dividing the first data packet into a plurality of data packets according to the data length, wherein the plurality of data packets correspond to the number of the packets.
As a specific example of the embodiment of the present invention, please refer to fig. 2 and fig. 3, fig. 2 is a schematic diagram of a packet of a beidou short message transmission method according to the embodiment of the present invention; fig. 3 is another sub-packet diagram of the beidou short message transmission method provided by the embodiment of the present invention.
In this embodiment, the Beidou three-number data transmission terminal uses a north communication link, and the maximum uploading of each packet is 1750 bytes, and assuming that a compressed picture to be transmitted is about 6000 bytes, as shown in fig. 2, a conventional transmission algorithm is adopted, and the first 3 packets are full-load, and the 4 th packet has the remaining space. If the maximum capacity of each packet is used as the packet length, 6000/1750 is approximately 3.5, and 4 packets are used for transmission. Then the transmission of the picture occupies 3 transmission frequencies, and other data can be transmitted only in the 4 th packet, so that the communication delay is very high and the data can not be timely transmitted.
In this embodiment, 4 packets are required to complete the transmission of the picture to be transmitted according to the maximum capacity calculation. By means of data splitting, 6000 bytes of the picture to be sent are split into 4 packets, wherein each packet is 6000/4=1500, namely, 1500 bytes of picture data and 5 bytes of leading data are transmitted per packet, so that 245 bytes of residual space exists per packet. And the residual space can be inserted with streaming data with the data length smaller than 245 bytes, so that the transmission efficiency of the streaming data is improved, and the real-time performance of the streaming data is not affected.
In this embodiment, the number of the packets of the long data type is confirmed according to the maximum capacity of the current transmission frequency, so that the data splitting of the long data type is reduced as far as possible on the premise that the data packets can be completely transmitted according to the number of the packets, so as to avoid increasing the data protocol and wasting the transmission capacity; meanwhile, after the sub-packets are divided according to the average number of the sub-packets, the current transmitting frequency can have the residual transmitting capacity when each sub-packet is transmitted, so that the real-time data is transmitted by utilizing the residual transmitting capacity, the channel utilization rate is improved, and the transmission efficiency is improved.
In this embodiment, the adding a preamble packet data frame before each data packet according to the data type of the first data packet and the packetization information specifically includes:
confirming the data type of the first data packet, and if the data type is streaming data, adding a preamble packet data frame in front of the first data packet;
if the data type is long data, each sub-packet data packet after sub-packet processing of the first data packet is obtained, and a leading packet data frame is added in front of each sub-packet data packet;
the preamble packet data frame comprises a frame header byte, a data packet type, a type serial number, a total packet number and a current packet sequence number.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a preamble packet data frame according to an embodiment of the present invention.
In this embodiment, in order to accurately and quickly extract contents of multiple modes of data of one short message data by the receiving system, 5 bytes of preamble packet data frames are added to the contents of both the packetized data and the streaming data packets, where the preamble packet data frame format sequentially includes: frame header byte, packet type, type stream number, total packet number, and current packet sequence number.
As a specific example of the embodiment of the present invention, the frame header byte is fixed by 0x7E bytes; packet type 0x01 represents streaming data, 0x02 represents image data, and 0x03 represents voice data; the type serial number starts from 0x00, each type generates a packet, the count is self-increased, and the count is self-increased to 0x00 after 0 xFF; the total packet number bytes represent that the type consists of several packets; the current packet sequence number starts from 0x 01.
In this embodiment, a preamble packet data frame is added before each data packet according to the data type and the packetization information, so as to distinguish the data type of each data packet and confirm whether the current data packet is a packetized data packet, so as to avoid data loss, and meanwhile, improve the screening efficiency of the data packet, so as to improve the transmission efficiency of the data packet.
In this embodiment, the placing the packetized first data packet into the first buffer pool or the second buffer pool according to the data type specifically includes:
setting priority and adding time stamp for the first data packet according to real-time characteristic and data type;
confirming the data type of a first data packet, and if the data type is long data, putting the first data packet into a first cache pool;
and if the data type is streaming data, the first data packet is put into a second cache pool.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating data prioritization according to an embodiment of the present invention.
In this embodiment, the data sent from the external device is packetized; classifying the long data and the stream data which are packaged, putting the long data into a first buffer pool, and putting the stream data into a second buffer pool; meanwhile, according to the priority cache controller, different priorities are set for each data by combining the implementation characteristics of each data, and the higher the real-time performance is, the higher the priority is.
Referring to fig. 6, fig. 6 is a logic schematic diagram of a priority buffer controller according to an embodiment of the invention.
In this embodiment, if the data sent from the external device is prioritized or prioritized in real time, the compression program assigns the same priority after the data is received. If not, a preset priority is given to the implementation characteristic of each data. Then the receiving time stamp is covered and put in a communication queue.
In this embodiment, the data packets are placed in different buffer pools according to the data types of the data packets, and the priority and the time stamp are set at the same time, so as to distinguish the data packets of different types, and improve the screening efficiency of the data packets of data types during hybrid encoding.
Step 102: acquiring a second data packet from the first cache pool according to the priority rule, and screening a third data packet conforming to the coding rule from the second cache pool according to the data length of the second data packet;
in this embodiment, the obtaining the second data packet from the first buffer pool according to the priority rule, and selecting the third data packet conforming to the encoding rule from the second buffer pool according to the data length of the second data packet specifically includes:
screening a second data packet with highest priority from the first buffer pool according to the preamble packet data frame and the priority rule;
calculating the residual capacity of the current transmission frequency according to the length of the second data packet and the maximum capacity of the current transmission frequency;
and screening a third data packet in the second cache pool according to the residual capacity and the coding rule.
In this embodiment, the data receiving and compressing program calls the third party SDK to compress the data, particularly the voice and image data, and then divides the data into a plurality of data packets. Assume thatAn image, the compressed size is M bytes, the maximum load of each short message is N bytes, then it is neededShort messages are provided. Every short message is transmitted->Byte image data.Often not exactly equal to 0, that is, each short message payload has some margin, and besides transmitting the image packetization data, a certain amount of space-time streaming data may be attached.
In this embodiment, the first buffer pool includes long data and packet data, and the second buffer pool includes stream data. Firstly, selecting sub-packet data with high priority from a first cache pool, calculating the residual capacity of the current transmitting frequency, and selecting streaming data with high real-time requirement and high priority from the second cache pool according to the residual capacity.
In this embodiment, a remaining capacity after the second data packet is sent by calculating the current transmission frequency, and selecting a third data packet according to the remaining capacity, so that the second data packet and the third data packet conform to the capacity of the current transmission frequency; the real-time data with smaller data length is sent by utilizing the residual capacity, so that the utilization efficiency of a channel is improved, and the real-time data transmission efficiency is improved.
In this embodiment, before obtaining the second data packet from the first buffer pool according to the priority rule, and selecting the third data packet conforming to the encoding rule from the second buffer pool according to the data length of the second data packet, the method further includes:
and dynamically adjusting the priority of each data packet according to the time stamp and implementation characteristic of each data packet in the first cache pool and the second cache pool.
In this embodiment, the device receives many data transmission requests at the interval of two transmissions. The encoding algorithm gives each data a priority, specifying a higher priority pre-queue. For data with long waiting time, the program steps up its priority a little bit. Data less than 240 bytes in the data request is mixed into the picture data frame and the preamble packet data frame is added. The data length is proper, the secondary splitting of the data is avoided, the protocol overhead is increased, and after all, each byte of the short message is very precious. For the same device, there are several pieces of data with different time stamps, and the time stamp is early and the queue is inserted in priority. In addition, 240 byte space is filled as much as possible. If one data is not filled, one data meeting the length requirement is found for filling.
In this embodiment, the data packing and transmitting program periodically (typically, a transmission period) checks the communication queue and adjusts the priority of the data packets. As the latency increases, the priority of the packets increases, which can be expressed as a function. Assuming that the initial priority of data is P0, the in-queue time is T0. The current time is t0+nΔt. The waiting time is Twait, i.e. nΔt. Δt is a fixed time slice. The priority is adjusted once every Δt. The regulation rules are specifically as follows:
where α, β are two parameters. The function is a monotonic function of Twait, i.e. a monotonic function of n, with a value range of [ P0, P0 (1+α/2) ].
In this embodiment, the α parameter controls the magnitude of the priority adjustment, and the larger α is, the larger the adjustment magnitude is. The beta parameter controls the adjusting speed of the priority, and the larger the beta is, the faster the adjusting speed is.
In this embodiment, the priority of each data packet is dynamically adjusted according to the time stamp and implementation characteristics, so that the priority of the time stamp is high, and the transmission timing sequence is ensured.
Step 103, performing hybrid coding on the second data packet and the third data packet, and transmitting the coded packet after hybrid coding at the current transmission frequency.
Referring to fig. 7, fig. 7 is a schematic diagram of hybrid coding of a beidou short message transmission method according to an embodiment of the present invention.
In this embodiment, some space-time stream data, such as longitude and latitude data of a certain vehicle-mounted device at a time T1, and an operating current voltage value of a certain device at a time T2 are inserted into each tail part according to a hybrid coding algorithm. The time-space streaming data has requirements on communication delay, namely real-time performance, and the decision judgment of a receiving system is influenced by too late reporting.
Referring to fig. 8, fig. 8 is another hybrid coding schematic diagram of a beidou short message transmission method according to an embodiment of the present invention.
In this embodiment, if a larger streaming data packet (e.g., 800 byte data content+5 byte preamble packet) with high real-time requirement occurs, the encoding rule may be adjusted according to the requirement, for example, the streaming data packet content in the second buffer pool is filled with priority, and the remaining sub-packet #1 data (e.g., 940 byte+5 byte preamble packet) is filled in the remainder of the packet length, so as to ensure the streaming data with high priority on the first short packet data packet. The subsequent packetization may continue with the average packetization operation in accordance with the hybrid encoding algorithm processing.
In this embodiment, the first data packet is preprocessed, and the long data packet is put into the buffer pool after being subjected to the allowance packetization, so as to avoid that the first data packet occupies a complete transmitting frequency when being transmitted due to overlong data length, and influences the transmission of real-time data; and screening the sub-packet data in the buffer pool according to the priority rule, screening the real-time third data packet according to the coding rule, performing mixed coding on the second data packet serving as the sub-packet data of long data and the real-time third data packet, transmitting the coded packet after mixed coding in one transmission frequency, transmitting the real-time third data packet by using the idle allowance of sub-packet transmission, improving the channel utilization efficiency, reducing the transmission delay, and guaranteeing the time sequence.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a beidou short message transmission device according to an embodiment of the present invention, including: a preprocessing module 901, a hybrid encoding module 902 and a packaging transmitting module 903;
the preprocessing module 901 is configured to obtain a first data packet, and perform a packetizing operation on the first data packet according to a data type and a data length of the first data packet; the packetized first data packet is put into a first buffer pool or a second buffer pool according to the data type;
the hybrid encoding module 902 is configured to obtain a second data packet from the first buffer pool according to a priority rule, and screen a third data packet conforming to the encoding rule from the second buffer pool according to a data length of the second data packet;
the packing and transmitting module 903 is configured to perform hybrid encoding on the second data packet and the third data packet, and transmit the encoded packet after hybrid encoding.
The embodiment of the invention also provides computer equipment, which comprises: the Beidou short message transmission system comprises a processor, a communication interface and a memory, wherein the processor, the communication interface and the memory are connected with each other, executable program codes are stored in the memory, and the processor is used for calling the executable program codes and executing the Beidou short message transmission method.
Referring to fig. 10, fig. 10 is another flow chart of the beidou short message transmission method according to the embodiment of the present invention.
In this embodiment, after receiving a data packet, recording a timestamp of receiving a current data packet, and updating a shortest data packet length in a cache according to a data length of the data packet; and setting the priority of the data packet according to the priority controller, and then placing the data packet into a cache pool.
In this embodiment, when the current transmission frequency arrives, a first data packet with a higher priority is screened from the buffer pool according to a priority rule and a timestamp; judging whether the data length of the first data packet obtained by screening is smaller than the packet length, if so, encoding the first data packet obtained by screening, otherwise, increasing the priority of the first data packet, and putting the first data packet into a buffer pool again, wherein the first data packet is not screened in the mixed encoding. And screening the data packets from the cache pool again until the data length of the data packets obtained by screening is smaller than the packet length.
In this embodiment, the capacity of the free area after grouping is calculated according to the maximum capacity of the current transmission frequency and the length of the data packet obtained by screening, if the capacity of the free area is greater than the length of the shortest data packet in the buffer pool, the data packet with high priority is selected again from the buffer pool to encode the data packet until the capacity of the free area of the current transmission frequency is less than the length of the shortest data packet in the buffer pool, the data packet screening is stopped, and the encoded packet after mixed encoding is sent.
In this embodiment, the capacity margin of the long data multi-packet transmission mechanism is utilized, and other mode data is attached, so that the channel utilization efficiency is improved, the transmission delay is reduced, and the time sequence is ensured. And judging the priority of the modal data, wherein the priority is high, and the priority of the idle message length is met, so that the mixed coding is put in, the instantaneity is improved as much as possible, and the coding cost is reduced. The method comprises the steps of having a priority dynamic adjustment strategy for the modal data to be sent, inserting a receiving time stamp into the inputted modal data besides the priority, carrying out priority weighting on the data with long waiting time, and under the same priority, leading the time stamp to enter the mixed code by the front priority so as to ensure the time sequence which is sent first and then.
The foregoing embodiments have been provided for the purpose of illustrating the general principles of the present invention, and are not to be construed as limiting the scope of the invention. It should be noted that any modifications, equivalent substitutions, improvements, etc. made by those skilled in the art without departing from the spirit and principles of the present invention are intended to be included in the scope of the present invention.

Claims (10)

1. The Beidou short message transmission method is characterized by comprising the following steps of:
acquiring a first data packet, and performing packetizing operation on the first data packet according to the data type and the data length of the first data packet; the packetized first data packet is put into a first buffer pool or a second buffer pool according to the data type;
acquiring a second data packet from the first cache pool according to the priority rule, and screening a third data packet conforming to the coding rule from the second cache pool according to the data length of the second data packet;
and carrying out mixed coding on the second data packet and the third data packet, and sending the coded packets after mixed coding.
2. The method for transmitting Beidou short messages according to claim 1, wherein the step of obtaining a first data packet, and performing packetizing operation on the first data packet according to a data type and a data length of the first data packet is specifically as follows:
acquiring a first data packet, and confirming basic information of the first data packet, wherein the basic information comprises a data type and a data length;
performing packetization operation on the first data packet according to the data type and the data length of the first data packet to obtain a plurality of packetization data packets and packetization information; wherein, the sub-packaging information comprises a sub-packaging sequence and a sub-packaging number;
and adding a leading packet data frame in front of each data packet according to the data type of the first data packet and the packetization information.
3. The Beidou short message transmission method of claim 2, wherein the packetizing operation is performed on the first data packet according to the data type and the data length of the first data packet to obtain a plurality of packetizing data packets and packetizing information, specifically:
confirming the data type of the first data packet, wherein the data type comprises long data and stream data;
and if the data type is long data, carrying out packetizing operation on the first data packet according to the data length of the first data packet, and acquiring a plurality of packetizing data packets subjected to packetizing processing and packetizing information of the first data packet.
4. The method for transmitting Beidou short messages according to claim 3, wherein the packetizing operation is performed on the first data packet according to the data length of the first data packet, specifically:
confirming the maximum capacity of the current transmitting frequency, and determining the subpackage number of the first data packet according to the maximum capacity;
and averagely splitting the first data packet into a plurality of sub-packet data packets according to the sub-packet number.
5. The Beidou short message transmission method of claim 4, wherein a preamble packet data frame is added in front of each data packet according to the data type of the first data packet and the packetization information, specifically:
confirming the data type of the first data packet, and if the data type is streaming data, adding a preamble packet data frame in front of the first data packet;
if the data type is long data, each sub-packet data packet after sub-packet processing of the first data packet is obtained, and a leading packet data frame is added in front of each sub-packet data packet;
the preamble packet data frame comprises a frame header byte, a data packet type, a type serial number, a total packet number and a current packet sequence number.
6. The method for transmitting Beidou short messages according to claim 1, wherein the step of placing the packetized first data packet into the first buffer pool or the second buffer pool according to the data type is specifically as follows:
setting priority and adding time stamp for the first data packet according to real-time characteristic and data type;
confirming the data type of a first data packet, and if the data type is long data, putting the first data packet into a first cache pool;
and if the data type is streaming data, the first data packet is put into a second cache pool.
7. The method for transmitting Beidou short messages according to claim 2, wherein the method is characterized in that the second data packet is obtained from the first buffer pool according to the priority rule, and the third data packet conforming to the coding rule is screened from the second buffer pool according to the data length of the second data packet, specifically:
screening a second data packet with highest priority from the first buffer pool according to the preamble packet data frame and the priority rule;
calculating the residual capacity of the current transmission frequency according to the length of the second data packet and the maximum capacity of the current transmission frequency;
and screening a third data packet in the second cache pool according to the residual capacity and the coding rule.
8. The method for transmitting Beidou short messages according to claim 1, wherein before obtaining the second data packet from the first buffer pool according to the priority rule and selecting the third data packet conforming to the coding rule from the second buffer pool according to the data length of the second data packet, the method further comprises:
and dynamically adjusting the priority of each data packet according to the time stamp and implementation characteristic of each data packet in the first cache pool and the second cache pool.
9. The utility model provides a big dipper short message transmission device which characterized in that includes: the device comprises a preprocessing module, a hybrid coding module and a packaging and transmitting module;
the preprocessing module is used for acquiring a first data packet and performing packetizing operation on the first data packet according to the data type and the data length of the first data packet; the packetized first data packet is put into a first buffer pool or a second buffer pool according to the data type;
the mixed coding module is used for acquiring a second data packet from the first cache pool according to the priority rule, and screening a third data packet conforming to the coding rule from the second cache pool according to the data length of the second data packet;
and the packaging and transmitting module is used for carrying out mixed coding on the second data packet and the third data packet and transmitting the coded packet with mixed coding.
10. A computer device, comprising: the Beidou short message transmission method of any one of claims 1-8 comprises a processor, a communication interface and a memory, wherein the processor, the communication interface and the memory are connected with each other, the memory stores executable program codes, and the processor is used for calling the executable program codes and executing the Beidou short message transmission method of any one of claims 1-8.
CN202311581309.XA 2023-11-23 2023-11-23 Beidou short message transmission method, device and equipment Pending CN117479115A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311581309.XA CN117479115A (en) 2023-11-23 2023-11-23 Beidou short message transmission method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311581309.XA CN117479115A (en) 2023-11-23 2023-11-23 Beidou short message transmission method, device and equipment

Publications (1)

Publication Number Publication Date
CN117479115A true CN117479115A (en) 2024-01-30

Family

ID=89623869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311581309.XA Pending CN117479115A (en) 2023-11-23 2023-11-23 Beidou short message transmission method, device and equipment

Country Status (1)

Country Link
CN (1) CN117479115A (en)

Similar Documents

Publication Publication Date Title
US7072296B2 (en) Methods and apparatus for network signal aggregation and bandwidth reduction
CN101491138B (en) Compressed delay packet transmission scheduling
CN1906906B (en) Optimized radio bearer configuration for voice over IP
CN102497578B (en) Mobile audio and video real-time communication method in 3G network environment
EP1535419B1 (en) Method and devices for controlling retransmissions in data streaming
CN1759541A (en) Video packets over a wireless link under varying delay and bandwidth conditions
CN101529827B (en) Length indicator optimization
CN102301630B (en) New packet indicator for RLC protocol
CN102239666A (en) Method and device for enabling indication of congestion in a telecommunications network
JP2004533731A (en) System for uplink scheduling packet based on data traffic in wireless system
CN1441571A (en) Method for optimizing network resource use on IP group support network for transmitting data eg. voice signal
EP3413521B1 (en) Data packet sending method, data packet receiving method, data packet sending device and data packet receiving device
CN110312147A (en) Method, system and the storage medium of business data transmission
CN112217733B (en) Message processing method and related device
Wang et al. Mobile edge computing-enabled channel-aware video streaming for 4G LTE
CN103238349B (en) The method and apparatus of the channel adaptation in radio communication
CN111132225B (en) Receiving side of RLC entity in AM mode and method for receiving data
CN117479115A (en) Beidou short message transmission method, device and equipment
WO2022188686A1 (en) Communication method and device
EP4228318A1 (en) Data transmission method and apparatus, and storage medium
CN101990241B (en) Packet data transmission system and method
JP4087734B2 (en) Wireless communication system, wireless network control device, base station, and mobile device
CN113132766A (en) VBR (video base layer) sending method in TS (transport stream) packaging format
GB2415868A (en) Permissible transport format signalling
CN102970232A (en) Method and device for sending low-speed STA (station) messages and access device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination