Message sending method and device based on Beidou satellite communication and communication module
By prioritizing power consumption data in BeiDou satellite communication and sending it in order of queue priority, the problem of low power consumption data transmission efficiency is solved, and efficient and standardized transmission of priority data is achieved.
Patent Information
- Application Number
- CN202211546868.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-05
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2042-12-05
AI Technical Summary
The existing BeiDou satellite communication method is inefficient when transmitting electricity consumption data, and cannot effectively distinguish and prioritize the transmission of higher-priority electricity consumption data.
By determining the data priority of each electricity consumption data, it is encapsulated into multiple frames of BeiDou satellite communication messages, and these messages are pushed into different data queues according to their priority, and sent one by one in the order of queue priority.
It improves the efficiency of power consumption data transmission, ensures that high-priority data is sent first, and reduces the workload of the Beidou communication module.
Smart Images

Figure CN116234048B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication technology, and in particular relates to a message sending method, apparatus and communication module based on Beidou satellite communication. Background Technology
[0002] With the widespread application of BeiDou satellite communication, a BeiDou communication module can be integrated into the electricity data acquisition terminal to transmit electricity data. Specifically, the electricity data acquisition terminal can collect electricity data such as current, voltage, and power data from various sensors in the power grid. This electricity data can then be sent to the BeiDou communication module. After encapsulating the electricity data into a message conforming to BeiDou communication, the BeiDou communication module can transmit the electricity data to the management platform, i.e., the metering master station in the power system, in the form of BeiDou short messages.
[0003] However, the electricity consumption data collected by the electricity consumption data acquisition terminal is diverse and involves a huge amount of data. The BeiDou communication module sends each encapsulated message sequentially using the existing method, resulting in low transmission efficiency. Summary of the Invention
[0004] Therefore, it is necessary to provide a message sending method, device and communication module based on Beidou satellite communication to address the above-mentioned technical problems, so as to send power consumption data according to priority, ensure that higher priority power consumption data is sent to the management platform first, and improve the efficiency of power consumption data transmission.
[0005] Firstly, this application provides a message transmission method based on BeiDou satellite communication, including:
[0006] Retrieve multiple electricity consumption data entries to be sent;
[0007] Determine the data priority for each of the aforementioned electricity consumption data entries;
[0008] The multiple electricity consumption data entries are encapsulated into multiple frames of BeiDou satellite communication messages;
[0009] According to the data priority, multiple frames of BeiDou satellite communication messages are pushed into multiple data queues respectively; wherein, each data queue has a queue priority, and the sending order of each data queue is associated with its respective queue priority;
[0010] The BeiDou satellite communication messages in each data queue are sent one by one according to the sending order associated with the queue priority.
[0011] In one embodiment, the step of pushing multiple frames of the BeiDou satellite communication messages into multiple data queues according to the data priority includes:
[0012] Based on the data priority, the message priority of each frame of the BeiDou satellite communication message is determined; wherein, the message priority of multiple frames of the BeiDou satellite communication messages belonging to the same power consumption data is the same as the data priority of the corresponding power consumption data;
[0013] Multiple frames of the BeiDou satellite communication messages are pushed into multiple data queues that match the message priority.
[0014] In one embodiment, after pushing multiple frames of the BeiDou satellite communication messages into multiple data queues that match the message priority, the method further includes:
[0015] Multiple frames of BeiDou satellite communication messages with a first priority are pushed into the target data queue with a second priority, where the first priority is higher than the second priority.
[0016] Determine whether multiple frames of the BeiDou satellite communication messages in the target data queue have been successfully sent through the data queue with the first priority.
[0017] If multiple frames of the BeiDou satellite communication messages in the target data queue have been successfully sent through the data queue with the first priority, then the sending of multiple frames of the BeiDou satellite communication messages in the target data queue is cancelled.
[0018] If multiple frames of the BeiDou satellite communication messages in the target data queue fail to be successfully sent through the data queue with the first priority, then the multiple frames of the BeiDou satellite communication messages in the target data queue will be sent.
[0019] In one embodiment, canceling the transmission of multiple frames of the BeiDou satellite communication messages in the target data queue includes:
[0020] When a BeiDou satellite communication target message that has been successfully sent through the data queue with the first priority is at the head of the target data queue, the BeiDou satellite communication target message is deleted.
[0021] In one embodiment, the BeiDou satellite communication messages in each data queue are sent one by one according to the sending order associated with the queue priority, including:
[0022] Multiple frames of the BeiDou satellite communication messages in the data queue with the first priority are sent to the communication front-end of the management platform, and the communication front-end forwards the multiple frames of the BeiDou satellite communication messages to the management platform.
[0023] After all the BeiDou satellite communication messages in the data queue with the first priority have been sent, the data queue with the second priority will then send the BeiDou satellite communication messages.
[0024] In one embodiment, acquiring multiple electricity consumption data to be sent includes:
[0025] Receive electricity data request messages forwarded by the electricity data management platform through the communication front-end;
[0026] Based on the electricity consumption data request message, multiple matching electricity consumption data entries are read from the real-time database.
[0027] In one embodiment, the step of encapsulating multiple power consumption data points into multiple frames of BeiDou satellite communication messages includes:
[0028] Each of the aforementioned electricity consumption data entries is encapsulated into a data packet;
[0029] Determine the message length of each of the data packets;
[0030] Based on the message length, each data message is split into at least one frame of BeiDou satellite communication message; wherein the length of each frame of BeiDou satellite communication message after splitting is less than or equal to the maximum length supported by the currently used BeiDou satellite communication.
[0031] Secondly, this application also provides a message sending device based on BeiDou satellite communication, characterized in that it includes:
[0032] The acquisition unit is used to acquire multiple electricity consumption data to be sent;
[0033] A determining unit is used to determine the data priority of each piece of electricity consumption data;
[0034] The encapsulation unit is used to encapsulate multiple power consumption data into multiple frames of BeiDou satellite communication messages;
[0035] The push-in unit is used to push multiple frames of BeiDou satellite communication messages into multiple data queues according to the data priority; wherein, each data queue has a queue priority, and the sending order of each data queue is associated with its respective queue priority;
[0036] The sending unit is configured to send the BeiDou satellite communication messages in each of the data queues one by one according to the sending order associated with the queue priority.
[0037] Thirdly, this application also provides a communication module, including a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor executes the computer program to implement the message sending method based on BeiDou satellite communication as described in any of the above embodiments.
[0038] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the message transmission method based on BeiDou satellite communication as described in any of the above embodiments.
[0039] The aforementioned message transmission method, apparatus, and communication module based on BeiDou satellite communication allow the BeiDou communication module to encapsulate multiple power consumption data points into multiple BeiDou satellite communication frames after acquiring them. By determining the data priority of each power consumption data point, the BeiDou communication module can push the multiple frames of BeiDou satellite communication messages into multiple data queues according to their data priorities. Since each data queue has a queue priority, and the transmission order of each data queue is associated with its respective queue priority, the BeiDou communication module can ensure that higher-priority power consumption data is transmitted first when transmitting BeiDou satellite communication messages in each data queue according to the transmission order associated with the queue priority. In this way, by distinguishing the priorities of different power consumption data, power consumption data can be transmitted in a certain order, ensuring the standardization of power consumption data transmission, improving the efficiency of power consumption data transmission, and reducing the workload of the BeiDou communication module caused by transmitting multiple power consumption data points simultaneously. Attached Figure Description
[0040] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0041] Figure 1 This is a schematic diagram of a message sending method based on BeiDou satellite communication provided in an embodiment of this application;
[0042] Figure 2 This is a schematic diagram of one implementation of step S104 in a message sending method based on BeiDou satellite communication provided in an embodiment of this application;
[0043] Figure 3 This is a schematic diagram of another implementation of step S104 in a message sending method based on BeiDou satellite communication provided in the embodiments of this application;
[0044] Figure 4 This is a schematic diagram of one implementation of step S105 in a message sending method based on BeiDou satellite communication provided in an embodiment of this application;
[0045] Figure 5 This is a schematic diagram of one implementation of step S103 in a message sending method based on BeiDou satellite communication provided in an embodiment of this application;
[0046] Figure 6 This is a schematic diagram illustrating a message transmission process based on BeiDou satellite communication, provided in an embodiment of this application.
[0047] Figure 7 This is a schematic diagram of a message sending device based on BeiDou satellite communication provided in an embodiment of this application;
[0048] Figure 8 This is a schematic diagram of the structure of a communication module provided in an embodiment of this application;
[0049] Figure 9 This is a schematic diagram of the internal structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0050] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0051] In one embodiment, this application provides a message transmission method based on BeiDou satellite communication. It should be noted that this method can be applied to a communication module, which can be a BeiDou communication module. The BeiDou communication module can establish a connection with a management platform via BeiDou satellite communication, receiving instructions from the management platform and transmitting various types of data to the management platform using BeiDou satellite communication. Figure 1 As shown, the method may include the following steps S101 to S105.
[0052] Step S101: Obtain multiple electricity consumption data to be sent.
[0053] The multiple electricity consumption data points to be sent can be electricity consumption data requested by the electricity consumption data management platform. The transmission of electricity consumption data from the BeiDou communication module to the electricity consumption data management platform can be based on requests from the management platform. That is, the electricity consumption data management platform can send electricity consumption data request messages to the BeiDou communication module. In a specific implementation, the electricity consumption data management platform can communicate directly with the BeiDou communication module through a communication front-end. After receiving the electricity consumption data request message forwarded by the electricity consumption data management platform through the communication front-end, the BeiDou communication module can read matching multiple electricity consumption data points from the real-time database based on the aforementioned electricity consumption data request message.
[0054] Step S102: Determine the data priority of each piece of electricity consumption data.
[0055] Each piece of electricity consumption data can have a different data priority, which indicates the urgency of the BeiDou communication module when sending the data. For example, the data priority of electricity consumption data can include a first priority and a second priority, where the first priority is higher than the second priority. Therefore, for two pieces of electricity consumption data with first and second priorities respectively, the urgency of the data with the first priority should be higher than that of the data with the second priority. Generally, electricity consumption data with a relatively higher priority should be sent to the electricity consumption data management platform first. In one possible implementation of this application embodiment, the data priority of electricity consumption data can be determined according to the data type. For example, electricity consumption data can include current real-time data, 15-minute curve frozen data, hourly frozen data, daily frozen data, settlement day frozen data, and data such as latitude, longitude, altitude, and clock. These different types of electricity consumption data can have fixed data priorities. For example, 15-minute curve frozen data, hourly frozen data, daily frozen data, and settlement day frozen data can usually have relatively high priorities, while latitude, longitude, altitude, and clock data usually have relatively low priorities.
[0056] Specifically, the data priority of electricity consumption data can also be determined by the electricity consumption data management platform. When the electricity consumption data management platform sends an electricity consumption data request message to the Beidou communication module, the request message can carry information about the corresponding data priority. The Beidou communication module can determine the data priority of the electricity consumption data based on the information carried in the request message. For example, the electricity consumption data management platform sends an electricity consumption data request message to the Beidou communication module, requesting the Beidou communication module to transmit daily frozen data and settlement day frozen data of a certain electricity meter. If the electricity consumption data management platform requests that the above two types of electricity consumption data be collected routinely, then the electricity consumption data management platform can assign them a relatively low priority, such as the second priority. After receiving the electricity consumption data request message, the Beidou communication module can determine that the data priority of the electricity consumption data to be sent is the second priority based on the information carried in the request message. When the electricity consumption data management platform requests to obtain current real-time data, it can assign it a relatively high priority, such as the first priority. After receiving the electricity consumption data request message, the Beidou communication module can determine that the data priority of the electricity consumption data to be sent is the first priority. Electricity consumption data with the highest priority should be sent to the electricity consumption data management platform in a timely manner.
[0057] Step S103: Encapsulate the multiple power consumption data into multiple frames of BeiDou satellite communication messages.
[0058] The electricity consumption data read from the real-time database by the BeiDou communication module cannot be directly sent to the management platform; it needs to be processed according to the corresponding protocol. For example, if BeiDou-3 satellite communication is used, the BeiDou communication module needs to encapsulate the read electricity consumption data into a message conforming to the BeiDou-3 protocol before it can be sent in the form of BeiDou-3 short messages.
[0059] Step S104: According to the data priority, the multiple frames of BeiDou satellite communication messages are pushed into multiple data queues respectively; wherein, each data queue has a queue priority, and the sending order of each data queue is associated with its respective queue priority.
[0060] The BeiDou communication module can send power consumption data of different priorities through a data queue. It can send power consumption data of different priorities separately. For example, the BeiDou communication module can send power consumption data with the highest priority first; after sending the first-priority data, it can send the second-priority data.
[0061] Step S105: Send the BeiDou satellite communication messages in each data queue one by one according to the sending order associated with the queue priority.
[0062] In this embodiment, the BeiDou communication module can determine the transmission order of each data queue according to its priority, and then transmit each frame of data sequentially according to the transmission order. For example, if there are two data queues with priorities of first priority and second priority, where the first priority is higher than the second priority, the BeiDou communication module can determine that the data queue with the first priority is transmitted first, and the data queue with the second priority is transmitted later. Then, the BeiDou communication module can first transmit each frame of data from the data queue with the first priority.
[0063] In one embodiment, such as Figure 2 As shown, step S104, which pushes multiple frames of BeiDou satellite communication messages into multiple data queues according to data priority, may specifically include the following steps S1041 to S1042.
[0064] Step S1041: Determine the message priority of each frame of the BeiDou satellite communication message according to the data priority; wherein, the message priority of multiple frames of the BeiDou satellite communication messages belonging to the same power consumption data is the same as the data priority of the corresponding power consumption data.
[0065] In this embodiment, the message priority of each BeiDou satellite communication message can be determined first by data priority, since each BeiDou satellite communication message may be obtained by framing a single power consumption data. Therefore, the message priority of multiple BeiDou satellite communication messages belonging to the same power consumption data should be the same as the data priority of the corresponding power consumption data. For example, if the data priority of a certain power consumption data is first priority, since the message length of the power consumption data after being encapsulated into a data message exceeds the maximum length supported by the currently used BeiDou satellite communication, the data message needs to be split into multiple frames. In this way, the message priority of each frame obtained after splitting remains consistent with the data priority of the corresponding power consumption data, which is still first priority.
[0066] Step S1042: Push the multiple frames of the BeiDou satellite communication messages into multiple data queues that match the message priority.
[0067] Specifically, after determining the message priority of each BeiDou satellite communication message frame, the BeiDou communication module can push each BeiDou satellite communication message frame into a matching data queue. For example, if the message priority of multiple BeiDou satellite communication messages is the first priority, the BeiDou communication module can push these multiple BeiDou satellite communication messages into a data queue with the same first priority.
[0068] In one embodiment, after pushing multiple frames of BeiDou satellite communication messages into multiple data queues that match the message priority, such as Figure 3 As shown, this method may further include the following steps S1043 to S1046.
[0069] Step S1043: Push the multiple frames of BeiDou satellite communication messages with the first priority into the target data queue with the second priority, where the first priority is higher than the second priority.
[0070] Specifically, for messages with relatively high priority, such as BeiDou satellite communication messages with the highest priority, in order to ensure accurate transmission, after these high-priority messages are pushed into the matching data queue, they can also be pushed into target data queues of other priorities. For example, after pushing multiple frames of messages with the highest priority into the highest priority data queue, these same frames of messages with the highest priority can also be pushed into the target data queue with the second highest priority.
[0071] Step S1044: Determine whether the multiple frames of the BeiDou satellite communication messages in the target data queue have been successfully sent through the data queue with the first priority.
[0072] After sending the message through the first priority data queue, the BeiDou communication module can determine whether the multiple frames of messages in the target data queue have been successfully sent. If the sending is successful, step S1045 can be executed; if the sending is unsuccessful, step S1046 can be executed.
[0073] Step S1045: Cancel the transmission of multiple frames of the BeiDou satellite communication messages in the target data queue.
[0074] If multiple frames of BeiDou satellite communication messages in the target data queue have been successfully transmitted through a data queue with the highest priority, the BeiDou communication module can cancel the transmission of these messages through the target data queue. Specifically, canceling the transmission of a particular frame of BeiDou satellite communication message in the target data queue can be done just before the target data queue is about to transmit that frame. When a BeiDou satellite communication target message that has been successfully transmitted through a data queue with the highest priority is at the head of the target data queue, it indicates that the target message is about to be transmitted. At this time, the BeiDou communication module can delete the target message.
[0075] Step S1046: Send multiple frames of the BeiDou satellite communication messages in the target data queue.
[0076] Specifically, if multiple frames of BeiDou satellite communication messages in the target data queue fail to be successfully sent through the data queue with the highest priority, the BeiDou communication module can resend them through the target data queue.
[0077] In one embodiment, canceling the transmission of multiple frames of the BeiDou satellite communication messages in the target data queue includes: deleting the BeiDou satellite communication target messages when they have been successfully transmitted through the data queue with the first priority.
[0078] In one embodiment, such as Figure 4 As shown, step S105, which involves sending BeiDou satellite communication messages in each data queue one by one according to the sending order associated with the queue priority, may specifically include the following steps S1051 to S1052.
[0079] Step S1051: Send multiple frames of the BeiDou satellite communication messages in the data queue with the first priority to the communication front-end of the management platform, and the communication front-end forwards the multiple frames of the BeiDou satellite communication messages to the management platform.
[0080] Step S1052: After all the multiple frames of BeiDou satellite communication messages in the data queue with the first priority have been sent, send the multiple frames of BeiDou satellite communication messages in the data queue with the second priority.
[0081] The communication between the BeiDou communication module and the management platform typically involves direct interaction via a front-end processor. When sending BeiDou satellite communication messages from each data queue, the BeiDou communication module first sends multiple frames of BeiDou satellite communication messages from the data queue with the highest priority to the communication front-end processor on the management platform. Upon receiving these messages, the communication front-end processor processes them and then forwards them to the management platform. Once all multiple frames of BeiDou satellite communication messages in the first-priority data queue have been sent, the BeiDou communication module can then send the next level of messages, namely multiple frames of messages from the data queue with the second-highest priority, until all messages to be sent have been sent.
[0082] In this embodiment, after acquiring multiple power consumption data points to be sent, the BeiDou communication module can encapsulate these data points into multiple BeiDou satellite communication frames. By determining the data priority of each power consumption data point, the BeiDou communication module can push the multiple BeiDou satellite communication frames into multiple data queues according to their data priorities. Since each data queue has a queue priority, and the sending order of each data queue is associated with its respective queue priority, the BeiDou communication module can ensure that higher-priority power consumption data is sent first when sending the BeiDou satellite communication messages in each data queue in the order associated with the queue priority. In this way, by distinguishing the priorities of different power consumption data, power consumption data can be sent in a certain order, ensuring the standardization of power consumption data transmission, improving the efficiency of power consumption data transmission, and reducing the workload of the BeiDou communication module caused by sending multiple power consumption data points simultaneously.
[0083] In one embodiment, acquiring multiple electricity consumption data to be sent includes: receiving an electricity consumption data request message forwarded by the electricity consumption data management platform through a communication front-end; and reading multiple matching electricity consumption data from a real-time database based on the electricity consumption data request message.
[0084] In one embodiment, such as Figure 5 As shown, step S103, which encapsulates multiple power consumption data into multiple frames of BeiDou satellite communication messages, may specifically include steps S1031 to S1033.
[0085] Step S1031: Encapsulate each of the electricity consumption data into a data packet.
[0086] Step S1032: Determine the message length of each data packet.
[0087] Step S1033: According to the message length, each data message is split into at least one frame of BeiDou satellite communication message; wherein the length of each frame of BeiDou satellite communication message after splitting is less than or equal to the maximum length supported by the currently used BeiDou satellite communication.
[0088] In this embodiment, each piece of electricity consumption data can first be encapsulated into a data packet, which can be a packet conforming to the BeiDou communication protocol. That is, the encapsulated data packet should be able to be transmitted via BeiDou satellite communication. Typically, different communication methods have different maximum packet lengths that can be sent at once. For example, the maximum packet length that can be sent at once by BeiDou-2 is approximately 78.5 bytes, and the maximum packet length that can be sent at once by BeiDou-3 is approximately 1750 bytes. For packets exceeding these lengths, framing is required before transmission. Therefore, after the BeiDou communication module encapsulates each piece of electricity consumption data into a data packet, the BeiDou communication module can determine the packet length of each data packet individually to determine whether each data packet can be sent directly. After determining the packet length of each data packet, the BeiDou communication module can split each data packet into at least one frame of BeiDou satellite communication packet. The length of each frame of BeiDou satellite communication packet obtained after splitting is less than or equal to the maximum length supported by the currently used BeiDou satellite communication. For example, if BeiDou-2 is currently used to send messages, the length of each frame of the split BeiDou satellite communication message should be less than or equal to 78.5 bytes in the aforementioned example; if BeiDou-3 is currently used to send messages, the length of each frame of the split BeiDou satellite communication message should be less than or equal to 1750 bytes in the aforementioned example. It should be noted that data messages with the required length do not need to be framed. However, for data messages whose length exceeds the maximum length supported by the currently used BeiDou satellite communication system, framing can be prioritized using an average method to ensure that the length of each frame of the split BeiDou satellite communication message is as equal as possible.
[0089] In one embodiment, such as Figure 6 As shown, this application also proposes a message transmission method based on BeiDou satellite communication. The management platform first requests power consumption data from the BeiDou communication module. When the BeiDou communication module receives the message requesting power consumption data, it then... Figure 6 The message transmission process shown involves the BeiDou communication module first reading the relevant electricity consumption data from the real-time database. After encapsulating and processing the electricity consumption data into a message that meets BeiDou communication requirements, the BeiDou communication module can frame messages whose length exceeds the maximum length that the current BeiDou satellite communication can support in a single transmission. After framing, the BeiDou communication module can determine the priority of each frame. Typically, the message priority is the same as the data priority of the electricity consumption data to which it belongs. Figure 6 The diagram illustrates two message priorities: first priority and second priority. First priority messages can be sent to the first priority data queue, which is... Figure 6 The emergency transmission queue; second-priority messages can be sent to the second-priority data queue, which is... Figure 6The BeiDou communication module can prioritize sending data to queues with higher priority when transmitting data to different queues, such as... Figure 6 The BeiDou communication module sends messages from each frame in the emergency transmission queue. Once all messages in the emergency transmission queue have been sent, the BeiDou communication module can begin sending messages from the normal transmission queue. Whether in the emergency or normal transmission queue, the BeiDou communication module can send messages in the form of BeiDou short messages.
[0090] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0091] Based on the same inventive concept, this application also provides a schematic diagram of a message sending device 700 based on BeiDou satellite communication. Specifically, the BeiDou satellite communication message sending device 700 includes an acquisition unit 701, a determination unit 702, an encapsulation unit 703, a push-in unit 704, and a sending unit 705. The acquisition unit 701 is used to acquire multiple power consumption data to be sent; the determination unit 702 is used to determine the data priority of each power consumption data; the encapsulation unit 703 is used to encapsulate the multiple power consumption data into multiple frames of BeiDou satellite communication messages; the push-in unit 704 is used to push the multiple frames of BeiDou satellite communication messages into multiple data queues according to the data priority; each data queue has a queue priority, and the sending order of each data queue is associated with its respective queue priority; the sending unit 705 is used to send the BeiDou satellite communication messages in each data queue one by one according to the sending order associated with the queue priority.
[0092] In this embodiment of the application, the push-in unit 704 can be specifically used to determine the message priority of each frame of the BeiDou satellite communication message according to the data priority; wherein, the message priority of multiple frames of the BeiDou satellite communication message belonging to the same power consumption data is the same as the data priority of the corresponding power consumption data; and push the multiple frames of the BeiDou satellite communication message into multiple data queues that match the message priority.
[0093] In one embodiment, the push-in unit 704 can also be used to push multiple frames of BeiDou satellite communication messages with a message priority of the first priority into the target data queue with a queue priority of the second priority, wherein the first priority is higher than the second priority.
[0094] The message sending device based on BeiDou satellite communication may further include a message sending determination subunit, a message cancellation sending subunit, and a message retransmission subunit. The message sending determination subunit is used to determine whether multiple frames of BeiDou satellite communication messages in the target data queue have been successfully sent through the data queue with the first priority. The message cancellation sending subunit is used to cancel the sending of multiple frames of BeiDou satellite communication messages in the target data queue if they have been successfully sent through the data queue with the first priority. The message retransmission subunit is used to send multiple frames of BeiDou satellite communication messages in the target data queue if they have not been successfully sent through the data queue with the first priority.
[0095] In one embodiment, the message cancellation sending subunit can be specifically used to: delete the BeiDou satellite communication target message when it has been successfully sent through the data queue with the first priority and is at the head of the target data queue.
[0096] In this embodiment, the sending unit 705 can be specifically used to: send multiple frames of BeiDou satellite communication messages from the data queue with a first priority to the communication front-end of the management platform, whereby the communication front-end forwards the multiple frames of BeiDou satellite communication messages to the management platform; after all the multiple frames of BeiDou satellite communication messages in the data queue with the first priority have been sent, send multiple frames of BeiDou satellite communication messages from the data queue with a second priority. In this embodiment, the obtaining unit 701 can be specifically used to: receive an electricity data request message forwarded by the electricity data management platform through the communication front-end; and read multiple matching electricity data entries from the real-time database based on the electricity data request message. In this embodiment of the application, the encapsulation unit 702 can be specifically used to: encapsulate each piece of electricity consumption data into a data packet; determine the message length of each piece of data packet; and, according to the message length, split each piece of data packet into at least one frame of BeiDou satellite communication message; wherein the length of each frame of BeiDou satellite communication message after splitting is less than or equal to the longest length supported by the currently used BeiDou satellite communication.
[0097] The modules in the aforementioned message sending device based on BeiDou satellite communication can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0098] like Figure 8 As shown, the communication module 800 in this embodiment includes: a processor 810, a memory 820, and a computer program 821 stored in the memory 820 and executable on the processor 810. When the processor 810 executes the computer program 821, it implements the steps in the various embodiments of the message sending method based on BeiDou satellite communication described above, for example... Figure 1 Steps S101 to S105 are shown. Alternatively, when the processor 810 executes the computer program 821, it implements the functions of each module / unit in the above-described device embodiments, for example... Figure 7 The functions of modules 701 to 705 are shown.
[0099] In this embodiment, since the BeiDou communication module can access various data acquisition terminals, the various types of data collected by the data acquisition terminals can be sent to the BeiDou communication module for processing, and then transmitted by the BeiDou communication module to the electricity data management platform via BeiDou satellites. In one example, the data acquisition terminal can be an electricity data acquisition terminal. The BeiDou communication management module can be connected to the electricity data acquisition terminal to transmit the electricity data collected by the electricity data acquisition terminal to the electricity data management platform, which can be the power metering master station in the power system. Exemplarily, the computer program 821 can be divided into one or more modules / units, and the one or more modules / units are stored in the memory 820 and executed by the processor 810 to complete this application. The one or more modules / units can be a series of computer program instruction segments capable of performing specific functions, and these instruction segments can be used to describe the execution process of the computer program 821 in the communication module 800. For example, the computer program 821 can be divided into an acquisition unit, an encapsulation unit, a determination unit, a push-in unit, and a sending unit. The specific functions of each unit are as follows: the acquisition unit acquires multiple power consumption data to be sent; the encapsulation unit encapsulates the multiple power consumption data into multiple frames of BeiDou satellite communication messages; the determination unit determines the data priority of each power consumption data; the push-in unit pushes the multiple frames of BeiDou satellite communication messages into multiple data queues according to the data priority; wherein each data queue has a queue priority, and the sending order of each data queue is associated with its respective queue priority; the sending unit sends the BeiDou satellite communication messages in each data queue one by one according to the sending order associated with the queue priority. The communication module 800 can be a communication module that implements the steps in the aforementioned method embodiments, and this communication module 800 can be a BeiDou communication module. The communication module 800 may include, but is not limited to, a processor 810 and a memory 820. Those skilled in the art will understand that... Figure 8 This is merely one example of the communication module 800 and does not constitute a limitation on the communication module 800. It may include more or fewer components than shown, or combine certain components, or different components. For example, the communication module 800 may also include input / output devices, network access devices, buses, etc.
[0100] The processor 810 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor. The memory 820 can be an internal storage unit of the communication module 800, such as the hard disk or RAM of the communication module 800. The memory 820 can also be an external storage device of the communication module 800, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the communication module 800. Furthermore, the memory 820 can include both internal storage units and external storage devices of the communication module 800. The memory 820 is used to store the computer program 821 and other programs and data required by the communication module 800. The memory 820 can also be used to temporarily store data that has been output or will be output.
[0101] This application also discloses a computer-readable storage medium storing a computer program that, when executed by a processor, implements the message sending method based on BeiDou satellite communication as described in the foregoing embodiments.
[0102] This application also discloses a computer program product that, when run on a computer, causes the computer to execute the message sending method based on BeiDou satellite communication described in the foregoing embodiments.
[0103] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 9As shown, the computer device includes a processor, memory, and network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores XX data. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements a message transmission method for BeiDou satellite communication.
[0104] Those skilled in the art will understand that Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0105] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0106] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0107] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0108] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A message transmission method based on BeiDou satellite communication, characterized in that, The method includes: Retrieve multiple electricity consumption data entries to be sent; Determine the data priority for each piece of electricity consumption data; the data priority is determined by the electricity consumption data management platform. The multiple electricity consumption data entries are encapsulated into multiple frames of BeiDou satellite communication messages; According to the data priority, multiple frames of BeiDou satellite communication messages are pushed into multiple data queues respectively; wherein, each data queue has a queue priority, and the sending order of each data queue is associated with its respective queue priority; The BeiDou satellite communication messages in each data queue are sent one by one according to the sending order associated with the queue priority. The step of pushing multiple frames of the BeiDou satellite communication messages into multiple data queues according to the data priority includes: Based on the data priority, the message priority of each frame of the BeiDou satellite communication message is determined; wherein, the message priority of multiple frames of the BeiDou satellite communication messages belonging to the same power consumption data is the same as the data priority of the corresponding power consumption data; Multiple frames of the BeiDou satellite communication messages are respectively pushed into multiple data queues that match the message priority; After pushing multiple frames of the BeiDou satellite communication messages into multiple data queues that match the message priority, the method further includes: Multiple frames of BeiDou satellite communication messages with a first priority are pushed into the target data queue with a second priority, where the first priority is higher than the second priority. Determine whether multiple frames of the BeiDou satellite communication messages in the target data queue have been successfully sent through the data queue with the first priority. If multiple frames of the BeiDou satellite communication messages in the target data queue have been successfully sent through the data queue with the first priority, then the sending of multiple frames of the BeiDou satellite communication messages in the target data queue is cancelled. If multiple frames of the BeiDou satellite communication messages in the target data queue fail to be successfully sent through the data queue with the first priority, then the multiple frames of the BeiDou satellite communication messages in the target data queue will be sent.
2. The method according to claim 1, characterized in that, The cancellation of sending multiple frames of the BeiDou satellite communication messages in the target data queue includes: When a BeiDou satellite communication target message that has been successfully sent through the data queue with the first priority is at the head of the target data queue, the BeiDou satellite communication target message is deleted.
3. The method according to any one of claims 1 to 2, characterized in that, According to the sending order associated with the queue priority, the BeiDou satellite communication messages in each of the data queues are sent one by one, including: Multiple frames of the BeiDou satellite communication messages in the data queue with the first priority are sent to the communication front-end of the management platform, and the communication front-end forwards the multiple frames of the BeiDou satellite communication messages to the management platform. After all the BeiDou satellite communication messages in the data queue with the first priority have been sent, the data queue with the second priority will then send the BeiDou satellite communication messages.
4. The method according to claim 3, characterized in that, The acquisition of multiple electricity consumption data to be sent includes: Receive electricity data request messages forwarded by the electricity data management platform through the communication front-end; Based on the electricity consumption data request message, multiple matching electricity consumption data entries are read from the real-time database.
5. The method according to any one of claims 1 to 2, characterized in that, The process of encapsulating multiple data points related to electricity consumption into multiple frames of BeiDou satellite communication messages includes: Each of the aforementioned electricity consumption data entries is encapsulated into a data packet; Determine the message length of each of the data packets; Based on the message length, each data message is split into at least one frame of BeiDou satellite communication message; wherein the length of each frame of BeiDou satellite communication message after splitting is less than or equal to the maximum length supported by the currently used BeiDou satellite communication.
6. A message sending device based on BeiDou satellite communication, characterized in that, include: The acquisition unit is used to acquire multiple electricity consumption data to be sent; A determining unit is used to determine the data priority of each piece of electricity consumption data; The data priority is determined by the electricity data management platform; The encapsulation unit is used to encapsulate multiple power consumption data into multiple frames of BeiDou satellite communication messages; The push-in unit is used to push multiple frames of BeiDou satellite communication messages into multiple data queues according to the data priority; wherein, each data queue has a queue priority, and the sending order of each data queue is associated with its respective queue priority; The sending unit is configured to send the BeiDou satellite communication messages in each of the data queues one by one according to the sending order associated with the queue priority; The push-in unit is specifically used to determine the message priority of each frame of the BeiDou satellite communication message according to the data priority; wherein, the message priority of multiple frames of the BeiDou satellite communication message belonging to the same power consumption data is the same as the data priority of the corresponding power consumption data; and push the multiple frames of the BeiDou satellite communication message into multiple data queues that match the message priority. The push-in unit is also used to push multiple frames of BeiDou satellite communication messages with a message priority of the first priority into the target data queue with a queue priority of the second priority, wherein the first priority is higher than the second priority; The message transmission determination subunit is used to determine whether multiple frames of the BeiDou satellite communication messages in the target data queue have been successfully transmitted through the data queue with the first priority. The message cancellation sending subunit is used to cancel the sending of multiple frames of BeiDou satellite communication messages in the target data queue if multiple frames of the BeiDou satellite communication messages in the target data queue have been successfully sent through the data queue with the first priority. The message retransmission subunit is used to retransmit multiple frames of the BeiDou satellite communication messages in the target data queue if the multiple frames of the BeiDou satellite communication messages in the target data queue have not been successfully transmitted through the data queue with the first priority.
7. A communication module, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the message sending method based on BeiDou satellite communication as described in any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the message sending method based on BeiDou satellite communication as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Data transmission method based on Beidou short message communication
CN104994035A
Power data transmission method based on multi-priority queue
CN113286002A
Electric energy data acquisition method and system based on Beidou satellite communication
CN114759975A