Data message transmission method and device, electronic equipment and storage medium
The method uses mutex semaphores to manage communication channels and correct incomplete data packets, addressing the inefficiencies and failures in parallel OTA upgrades by ensuring sequential and reliable data transmission in vehicle systems.
Patent Information
- Application Number
- CN202411053701.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-12-03
AI Technical Summary
Over-the-Air (OTA) upgrades in vehicles with multiple ECUs take a long time with serial upgrades and risk failure with parallel upgrades due to data 'cross-sticking' on shared communication channels.
A data message transmission method using mutex semaphores to manage communication channels, ensuring sequential data transmission and correcting incomplete packets based on adjacent data to prevent cross-sticking.
Enhances transmission efficiency and reliability by controlling data packets sequentially and correcting incomplete messages, avoiding data transmission failures during parallel upgrades.
Smart Images

Figure CN119071280A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication network technology, and in particular to a data message transmission method, device, electronic device, and computer-readable storage medium. Background Art
[0002] As smart cars become more and more functional, the number of ECU parts in the vehicle system is increasing, the functions are becoming more and more complex and rich, and the function update cycle is becoming more and more frequent. The vehicle system of a general vehicle is upgraded through remote air download technology (Over-The-Air OTA), which means that the system is upgraded through wireless communication without the need for physical connection devices (such as USB cables or data cables). It allows vehicles to update or upgrade the software of the vehicle terminal through the network without the need for physical connection or visiting dealers.
[0003] However, OTA upgrades take a lot of time. If serial upgrades are used, it will take a lot of time and cannot really meet the car owners' car needs and experience. If parallel upgrades are used, the upgrade time will be greatly saved, but parallel upgrades may cause data to be sent to the same communication channel at the same time, causing data packets to "cross-stick" and lead to upgrade failure. Summary of the invention
[0004] To solve the above technical problems, the embodiments of the present application provide a data message transmission method and device, an electronic device, and a computer-readable storage medium.
[0005] According to one aspect of an embodiment of the present application, a data packet transmission method is provided, including: if it is detected that the destination addresses of multiple data packets are the same, determining the communication channel corresponding to the destination address; generating a mutex semaphore based on the communication channel, the mutex semaphore being used to characterize the state of the communication channel; controlling the multiple data packets to be transmitted sequentially on the communication channel based on the mutex semaphore; if there is an incomplete data packet at the destination address, obtaining adjacent data packets of the incomplete data packet transmitted on the communication channel, so as to correct the incomplete data packet based on the adjacent data packets and obtain a complete data packet.
[0006] According to one aspect of an embodiment of the present application, controlling the transmission of the multiple data packets in sequence on the communication channel based on the mutex semaphore includes: determining a transmission order corresponding to the multiple data packets based on the mutex semaphore; and controlling the transmission of the multiple data packets in sequence on the communication channel based on the transmission order.
[0007] According to one aspect of an embodiment of the present application, determining the transmission order corresponding to the multiple data messages based on the mutually exclusive semaphore includes: determining the transmission priorities corresponding to the multiple data messages based on the mutual trust semaphore; if the transmission priorities of multiple data messages are the same, obtaining the data correlation between the multiple data messages; and determining the transmission order corresponding to the multiple data messages based on the data correlation.
[0008] According to one aspect of an embodiment of the present application, the controlling of the multiple data packets to be transmitted sequentially on the communication channel based on the mutex semaphore includes: when transmitting a data packet on the communication channel, obtaining the mutex semaphore to ensure mutually exclusive access to the communication channel based on the mutex semaphore; when the transmission of the data packet on the communication channel is completed, releasing the mutex semaphore to enable normal access to the communication channel.
[0009] According to one aspect of an embodiment of the present application, generating a mutual exclusion semaphore based on the communication channel includes: obtaining mutual exclusion access configuration information corresponding to the communication channel; and creating a corresponding mutual exclusion semaphore through dynamic memory allocation based on the mutual exclusion access configuration information.
[0010] According to one aspect of an embodiment of the present application, the method also includes: parsing the data packet received at the destination address, and determining the actual message length of the data packet based on the parsing result; if the actual message length does not match the preset data message length corresponding to the data packet, determining that the data packet is an incomplete data packet.
[0011] According to one aspect of an embodiment of the present application, the method of correcting the incomplete data message based on the adjacent data messages to obtain a complete data message includes: calculating the length difference between the actual message length and the preset data message length; determining a target corrected message from the adjacent data messages based on the length difference, and splicing the target corrected message with the actual message to obtain the complete data message.
[0012] According to one aspect of an embodiment of the present application, a data message transmission device is provided, the device comprising: a detection module, for determining a communication channel corresponding to the destination address if it is detected that the destination addresses of multiple data messages are the same; a generation module, for generating a mutex semaphore based on the communication channel, the mutex semaphore being used to characterize the state of the communication channel; a transmission module, for controlling the multiple data messages to be transmitted sequentially on the communication channel based on the mutex semaphore; and a correction module, for obtaining adjacent data messages transmitted by the incomplete data message on the communication channel if there is an incomplete data message at the destination address, so as to correct the incomplete data message based on the adjacent data messages to obtain a complete data message.
[0013] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device implements the data message transmission method as described above.
[0014] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the data message transmission method as described above.
[0015] In the technical solution provided in the embodiments of the present application, when it is detected that the destination addresses of multiple data messages are the same, the communication channel corresponding to the destination address is determined, and then a mutually exclusive signal vector is generated for the communication channel that is about to transmit multiple data messages, so as to change the state of the communication channel through the mutually exclusive semaphore, and then the communication channel is unlocked according to the mutually exclusive signal, and then the multiple message data are controlled to be transmitted on the communication channel in sequence, and when there is an incomplete data message at the destination address, the incomplete data message is corrected by the adjacent data message transmitted on the communication channel, so that the data packet can be corrected in time, and the transmission efficiency of the data packet is increased, and cross-sticking of data transmission is avoided.
[0016] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0018] Figure 1 is a schematic diagram of OTA upgrade shown in an exemplary embodiment of the present application;
[0019] Figure 2 is a schematic diagram of the structure of a data message shown in an exemplary embodiment of the present application;
[0020] Figure 3 It is a schematic diagram of an implementation environment for data message transmission during an OTA upgrade process shown in an exemplary embodiment of the present application;
[0021] Figure 4 is a flow chart of a data message transmission method shown in an exemplary embodiment of the present application;
[0022] Figure 5 is a flow chart of a data message transmission method shown in another exemplary embodiment of the present application;
[0023] Figure 6 is a flow chart of a data message transmission method shown in another exemplary embodiment of the present application;
[0024] Figure 7 is a flow chart of a data message transmission method shown in another exemplary embodiment of the present application;
[0025] Figure 8 is a flow chart of a data message transmission method shown in another exemplary embodiment of the present application;
[0026] Fig. 9 is a flow chart of a data message transmission method shown in another exemplary embodiment of the present application;
[0027] Fig.10 is a flow chart of a data message transmission method shown in another exemplary embodiment of the present application;
[0028] Fig.11 It is a brief flow diagram of data message transmission during OTA upgrade in an exemplary application scenario;
[0029] Fig.12 is a block diagram of a data message transmission device shown in an exemplary embodiment of the present application;
[0030] Fig.13 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0031] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0032] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0033] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0034] The term "multiple" as used in this application refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0035] First of all, it should be noted that OTA (Over-The-Air) upgrade, that is, air download technology, is a technology that remotely manages mobile terminal devices and SIM card data through the air interface of mobile communications. In the fields of Internet of Things (IoT), smart phones, automobiles, smart homes, etc., OTA upgrades have become a common way to update software, allowing devices to receive and install new software versions or updates without physical connection or user intervention. Among them, the advantages of OTA upgrades include: Convenience: Users can get the latest software features and security patches without sending their devices to service centers or performing complex operations; Efficiency: For manufacturers, OTA upgrades can quickly push updates to all users, reducing maintenance costs and time; Flexibility: Updates can be quickly adjusted and released based on user feedback or security vulnerabilities; Personalization: Customized update content is pushed for devices in different regions and models. Among them, the OTA upgrade process includes: preparation stage: the manufacturer or service provider prepares the update package and conducts rigorous testing and verification to ensure its stability and compatibility; push stage: the update package is pushed to the target device through the mobile communication network or other means (such as Wi-Fi). The push method may include broadcast push, push based on user request, or smart push based on device status; download stage: after the device receives the update notification, it starts downloading the update package according to user settings or automatic policies; installation stage: after the download is complete, the device automatically or manually installs the update package at the appropriate time (such as sufficient power, idle state, etc.), and the device may need to be restarted during the installation process; verification stage: after the installation is completed, the device automatically verifies whether the update is successful, and may report the update results to the server.
[0036] In the field of smart cars, as vehicle functions become increasingly rich and complex, the number of ECUs (electronic control units) in the vehicle system has increased significantly, and the function update cycle has become more frequent. This poses a higher challenge to OTA (Over-The-Air) upgrade technology, because the traditional serial upgrade flashing method takes a lot of time and cannot meet the needs of car owners for fast updates and high-quality experience. Therefore, the use of parallel upgrade technology has become an effective solution, which can greatly save the upgrade flashing time. Parallel upgrade allows software updates to multiple ECUs at the same time, significantly shortening the time required for the entire upgrade process. This method makes full use of the bandwidth resources of the vehicle's internal communication network and avoids the problem of long update time for a single ECU during serial upgrades. By reducing the time required for upgrades, car owners can enjoy new features and improved performance more quickly, thereby improving their satisfaction with the vehicle and brand. In addition, the fast upgrade process also helps to reduce the vehicle downtime caused by the upgrade, further improving the user experience.
[0037] Figure 1 FIG. 1 is a schematic diagram of an implementation environment of data message transmission shown in an exemplary embodiment of the present application. Figure 1 As shown, ECU (Electronic Control Unit) is an electronic control unit, also known as "driving computer" or "on-board computer". It is a microcomputer controller dedicated to automobiles. ECU is composed of a microprocessor (CPU), memory (ROM, RAM), input / output interface (I / O), analog-to-digital converter (A / D), and large-scale integrated circuits such as shaping and driving. Its working principle is mainly to calculate, process and judge the information input by the air flow meter and various sensors according to the program and data in the memory, and then output instructions to provide an electric pulse signal of a certain width to the injector to control the injection amount, thereby realizing the control of the vehicle's driving state and the realization of various functions. With the increase in the number of ECU components in the vehicle system, the functions are becoming more and more complex and rich, and the function update cycle is becoming more and more frequent. When the OTA master control (UMC) upgrades and flashes the target ECU component, for ECU components that support Ethernet, the OTA master control and the target ECU establish a TCP communication connection through VGW transparent transmission and the target ECU, and use the DOIP protocol for data communication (the message format is shown in Figure 2 As shown in the figure above), upgrade and flash; for ECUs that do not support Ethernet, the OTA master establishes a TCP communication connection with the VGW (UA), and the VGW (UA) parses the ECU target address (TA) of the message and converts it into a UDS message through the ETH message format (see the message format Figure 2As shown in the figure below, the message is forwarded to the target ECU for data communication and upgrade flashing. When upgrading in parallel, multiple OTA master controllers establish the same TCP communication connection with VGW, which means that VGW needs to timely and correctly parse and process the data transmitted by each OTA master controller at the same time. And forward the data to the target ECU that does not support Ethernet for upgrade flashing.
[0038] Figure 3 This is a real-time environment diagram of data message transmission shown in an exemplary embodiment of the present application. When an upgrade is required on the smart terminal 310, when the upgrade service server 320 detects that the destination addresses of multiple data messages on the smart terminal 310 are the same, the communication channel corresponding to the destination address is determined, and then a mutex semaphore is generated based on the communication channel, and the mutex semaphore is used to characterize the state of the communication channel; then, multiple data messages can be controlled to be transmitted in sequence on the communication channel based on the mutex semaphore; and when the server 320 detects that there is an incomplete data message on the destination address, the adjacent data messages of the incomplete data message transmitted on the communication channel are obtained, so as to correct the incomplete data message based on the adjacent data messages and obtain a complete data message.
[0039] in, Figure 3 The smart terminal 310 shown can be any terminal device that supports the installation of navigation map software, such as a smart phone, a car computer, a tablet computer, a laptop computer, or a wearable device, but is not limited thereto. Figure 3 The upgrade server 320 shown can be, for example, an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms, and is not limited here. The smart terminal 310 can communicate with the upgrade server 320 through wireless networks such as 3G (third generation mobile information technology), 4G (fourth generation mobile information technology), and 5G (fifth generation mobile information technology), and is not limited here.
[0040] However, OTA upgrades take a lot of time. If serial upgrades are used, it will take a lot of time and cannot really meet the car owners' car needs and experience. If parallel upgrades are used, the upgrade time will be greatly saved, but parallel upgrades may cause data to be sent to the same communication channel at the same time, causing data messages to "cross" and leading to upgrade failure.
[0041] The above-mentioned problems are generally applicable in general data message transmission scenarios. To solve these problems, the embodiments of the present application respectively propose a data message transmission method, a data message transmission device, an electronic device, a computer-readable storage medium, and a computer program product, which will be described in detail below.
[0042] See also Figure 4 , Figure 4 is a flowchart of a data message transmission method shown in an exemplary embodiment of the present application. The method can be applied to Figure 3 The implementation environment shown in FIG. 1 is specifically executed by the upgrade end server 320 in the implementation environment. It should be understood that the method can also be applied to other exemplary implementation environments and be specifically executed by devices in other implementation environments. This embodiment does not limit the implementation environment to which the method is applicable.
[0043] Exemplarily, this embodiment is to achieve the purpose of downloading OTA upgrade packages and upgrading ECU components. The OTA download and upgrade processing technology mentioned in the present invention mainly involves OTA upgrade master control (UMC), OTA upgrade agent (UA) and OTA upgrade slave control (US), etc. This technology is mainly implemented in the vehicle remote communication module (VBOX), vehicle gateway (VGW) and electronic control unit (ECU) components that are respectively carried. VBOX and VGW are connected through 100M Ethernet, VGW is connected to each ECU component under it through CAN bus, and one or more ECU components are mounted below it.
[0044] like Figure 4 As shown, in an exemplary embodiment, the implementation process of the data message transmission method includes at least steps S410 to S440, which are described in detail as follows:
[0045] Step S410: If it is detected that the destination addresses of multiple data messages are the same, the communication channel corresponding to the destination address is determined.
[0046] Specifically, in the vehicle system, for ECUs that do not support direct Ethernet transmission, the OTA master needs to transmit the data to the gateway for caching, and the gateway will parse the data according to the content of the data packet and send it to the target ECU. This method is that the OTA master establishes a TCP communication channel with the gateway. When flashing in parallel, multiple OTA masters (multiple clients) are created to establish TCP connections with the gateway UA (server), that is, to establish a many-to-one communication channel. Each OTA master transmits the data packet to the gateway for caching, and the gateway then parses the data packet according to the content of the data packet and distributes the data packet to the target ECU. Therefore, the established many-to-one communication channel is the communication channel corresponding to the target address.
[0047] Exemplarily, in network communication, when it is detected that the destination addresses of multiple data packets are the same, this usually means that these packets need to be sent to the same destination. In order to efficiently process these packets, the network device and protocol stack will use or determine a corresponding communication channel (or transmission path, connection, etc.) to ensure that the packets can reach the destination address correctly and in order. For example, at the IP layer (Internet Protocol Layer), the router will check the destination IP address of the message and determine the next hop address to which the message should be forwarded based on the routing table. For multiple messages with the same destination IP address, they will follow the same routing decision. Alternatively, for an overly large IP message, it may be fragmented into multiple smaller fragments at a certain point in the network. These fragments have the same destination IP address and are reassembled at the destination.
[0048] Step S420: Generate a mutual exclusion semaphore based on the communication channel, where the mutual exclusion semaphore is used to represent the state of the communication channel.
[0049] First of all, it should be explained that a mutex semaphore is a synchronization mechanism used to control access to a shared resource, ensuring that only one process (or thread) can access the resource at the same time. In network communication, if the "communication channel" is regarded as a "shared resource" that needs to be safely accessed by multiple processes or threads, then a system can be designed to simulate or utilize a mutex semaphore.
[0050] Specifically, in the process of the server or client, a mutual exclusion semaphore is defined for each communication channel that requires mutual exclusion access (or more specifically, for the shared resource associated with the channel). Moreover, this semaphore can be initialized when the process starts, or dynamically created when needed. In addition, the mutual exclusion semaphore can be associated with the unique identifier of the communication channel (such as the socket descriptor of the TCP connection, the UDP port and address combination, etc.) through a certain mechanism (such as a hash table, a mapping table, etc.), so that when a process or thread needs to access the shared resource associated with the communication channel, it first searches for and obtains the mutual exclusion semaphore associated with the channel. In this way, before accessing the shared resource, the process or thread will try to perform a request operation on the mutual exclusion semaphore. If the value of the semaphore is 0 (indicating that the resource is occupied), the operation will be blocked until the value of the semaphore becomes non-zero. Once the semaphore is successfully obtained (that is, the value of the semaphore is still non-negative after being subtracted by 1), the process or thread can safely access the shared resource. After the access is completed, the process or thread should release the mutex semaphore and increase the value of the semaphore by 1 to allow other waiting processes or threads to access the resource.
[0051] Furthermore, when a communication channel is no longer needed (e.g., a TCP connection is closed), the mutex semaphore associated with it should also be properly cleaned up or destroyed to avoid resource leaks.
[0052] Step S430: Control multiple data messages to be transmitted sequentially on the communication channel based on the mutually exclusive semaphore.
[0053] Specifically, controlling the sequential transmission of multiple data packets on the communication channel based on mutex semaphores actually simulates the process of serialized access to shared resources (here, the communication channel) in the network communication environment. Although network communication protocols (such as TCP and UDP) already contain some mechanisms to ensure orderly data transmission, in some cases, especially when more fine-grained control is required at the application layer or system layer, the use of mutex semaphores can be an effective solution.
[0054] Optionally, in some achievable embodiments, when the system is started or the communication channel is established, a mutex semaphore is initialized and its value is set to 1 (indicating that the channel is available). When a data message needs to be sent through the communication channel, the sending process or thread first attempts to perform a request operation on the mutex semaphore. If the value of the semaphore is 0 (indicating that the channel is currently occupied), the sending process or thread will be blocked until the value of the semaphore becomes non-zero. Once the semaphore is successfully acquired (i.e., the value of the semaphore is still non-negative after subtracting 1), the sending process or thread obtains exclusive access to the communication channel. Then, after obtaining exclusive access to the communication channel, the sending process or thread can safely send the data message to the communication channel. After the data message is sent, the sending process or thread should perform a release operation on the mutex semaphore and increase the value of the semaphore by 1. This allows other waiting processes or threads (if any) to obtain the semaphore and continue to send their data messages. For multiple data messages that need to be transmitted in sequence, the above locking, sending and releasing steps are repeated.
[0055] Step S440: If an incomplete data message exists at the destination address, the adjacent data messages transmitted by the incomplete data message on the communication channel are obtained, so as to correct the incomplete data message based on the adjacent data messages and obtain a complete data message.
[0056] Specifically, in network communications, if an incomplete data message is detected at the destination address, this may be due to a variety of reasons, such as network congestion, transmission errors, packet loss, etc. In order to try to recover these incomplete data messages, information in adjacent data messages can be used to make corrections.
[0057] Exemplarily, after receiving a data message at the destination address, it is necessary to check the integrity and correctness of the received message, which may involve verification of information such as checksum, sequence number, length field, etc. If the data message is detected to be incomplete (for example, length mismatch, checksum error, etc.), it is marked as an incomplete data message. Then, adjacent data messages transmitted on the same communication channel can be obtained, wherein the adjacent data messages can be messages received before or after the incomplete data message. The obtained adjacent data messages are analyzed to find information that may be used to correct the incomplete message, which may involve parsing the header of the message, finding repeated data blocks, or using some internal consistency of the message (such as the size, format or encoding of the data block). Afterwards, you can try to correct the incomplete data message based on the information in the adjacent data messages. The correction method may include filling the missing data, replacing the erroneous data block, or rebuilding a part of the message. Finally, after the correction is completed, re-verify the integrity and correctness of the data message, which may include recalculating the checksum, checking the order and size of the data block, or performing other forms of verification, and then treat the data message that passes the verification as a complete data message.
[0058] In this embodiment, when it is detected that the destination addresses of multiple data messages are the same, the communication channel corresponding to the destination address is determined, and then a mutually exclusive signal vector is generated for the communication channel that is about to transmit the multiple data messages, so as to change the state of the communication channel through the mutually exclusive semaphore, and then the communication channel is unlocked according to the mutually exclusive signal, and then the multiple message data are controlled to be transmitted on the communication channel in sequence, and when there is an incomplete data message at the destination address, the incomplete data message is corrected by the adjacent data message transmitted on the communication channel, so that the data packet can be corrected in time, and the transmission efficiency of the data packet is increased, and cross-sticking of data transmission is avoided.
[0059] Further, based on the above embodiments, please refer to Figure 5 In one of the exemplary embodiments provided in the present application, the specific implementation process of controlling the transmission of multiple data messages in sequence on the communication channel based on the mutually exclusive semaphore may also include step S510 and step S520, which are described in detail as follows:
[0060] Step S510, determining a transmission order corresponding to a plurality of data messages based on a mutually exclusive semaphore;
[0061] Step S520: Control multiple data messages to be transmitted sequentially on the communication channel based on the transmission order.
[0062] Specifically, determining the transmission order of multiple data messages on a communication channel based on a mutex semaphore and controlling their sequential transmission actually uses the mutex semaphore as a synchronization mechanism to ensure the orderliness of data messages. Although the mutex semaphore itself is mainly used to control concurrent access to shared resources, by combining other mechanisms (such as queues, counters or sequence numbers), the corresponding transmission order of multiple messages on the communication channel is determined, and then the multiple data messages are controlled to be transmitted sequentially on the communication channel according to the transmission order.
[0063] Exemplarily, a mutex semaphore is initialized to synchronize the control of the transmission order, and a queue (or other data structure) is created to store the data messages to be transmitted and their sequence information. When a new data message needs to be sent, it is first added to the queue and its sequence information (such as timestamp, sequence number, etc.) is recorded. Before trying to send a data message, the transmission thread (or process) first attempts to perform a wait operation on the mutex semaphore. If the semaphore is successfully acquired, a data message is dequeued from the queue (according to the first-in-first-out principle of the queue, this naturally guarantees the order of the message). The dequeued data message is sent to the communication channel. After the sending is completed, the mutex semaphore is released to allow other threads or processes to continue sending messages. Repeat the above dequeuing and transmission steps until all data messages in the queue have been sent.
[0064] Optionally, in some feasible embodiments, if an error (such as network failure, timeout, etc.) is encountered during the sending process, it may be necessary to put the unsuccessfully sent message back into the queue to wait for retransmission.
[0065] In addition, for communication protocols that already support ordered transmission (such as TCP), it is usually not necessary to explicitly control the transmission order of messages at the application layer. The TCP protocol itself is responsible for transmitting the data messages sent by the sender to the receiver in the correct order and ensuring the integrity and correctness of the data. Therefore, it may be unnecessary to use mutex semaphores at the application layer to control the transmission order of TCP messages unless there are specific requirements or restrictions that require more fine-grained control at the application layer.
[0066] In this embodiment, the transmission order corresponding to multiple data messages is determined by mutually exclusive semaphores, so that the multiple data messages can be controlled to be transmitted on the communication channel in sequence, thereby avoiding data packet sticking caused by multiple data messages being transmitted on the communication channel at the same time.
[0067] Further, based on the above embodiments, please refer to Figure 6 In one of the exemplary embodiments provided in the present application, the specific implementation process of determining the transmission order corresponding to the multiple data messages based on the mutually exclusive semaphore may also include steps S610 to S630, which are described in detail as follows:
[0068] Step S610, determining the transmission priorities corresponding to the plurality of data messages based on the mutual trust signal quantity;
[0069] Step S620, if the transmission priorities of the multiple data messages are the same, obtaining data association between the multiple data messages;
[0070] Step S630: determining a transmission order corresponding to the plurality of data messages based on data relevance.
[0071] It should be noted that in order to prevent the priority inversion problem, some mutex semaphores are implemented using the priority inheritance mechanism. Priority inversion is a phenomenon that may occur in a multi-tasking or multi-threaded system. When a low-priority task holds one or more resources required by high-priority tasks (such as mutex semaphores), these high-priority tasks may be blocked, waiting for the low-priority tasks to release the resources. If there is a medium or lower priority task running in the system at this time, it may take up a lot of CPU time, causing the high-priority task to wait for a long time, thereby reducing the real-time and responsiveness of the system. The priority inheritance mechanism solves this problem by temporarily raising the priority of the low-priority task that occupies the key resources (such as the shared resources protected by the mutex semaphore). When a high-priority task is blocked because it is waiting for a resource held by a low-priority task, the system will detect this situation and temporarily raise the priority of the low-priority task holding the resource to the highest priority among all tasks waiting for the resource (or at least to the priority of the highest priority task waiting for the resource). In this way, the low-priority task holding the resource can be executed faster and release the resource, so that the waiting high-priority task can continue to execute.
[0072] Specifically, each data message is assigned a priority value based on the mutual trust signal before being sent. This value may be determined based on factors such as the type of message (such as control message, real-time data, non-real-time data, etc.), source (services or users of different priorities), and target (critical system or general application). Messages with high priority will be transmitted before messages with low priority. In actual applications, there may be multiple messages with the same priority. At this time, the order of their transmission cannot be determined solely by priority, and the transmission order of multiple data messages can be determined based on the data correlation between multiple data messages. Data correlation refers to the logical, temporal or application interdependence between data messages. For example, some data may be the premise or supplement of another data, or they together constitute a complete information flow. When it is found that multiple messages have the same priority, the system needs to further analyze the data correlation between these messages, which may involve parsing the message content, checking specific fields in the message header, or querying a predefined correlation rule base. The determination of correlation helps to understand the dependency between messages, thereby determining their transmission order.
[0073] In this embodiment, when multiple data messages have the same priority, the transmission priorities corresponding to the multiple messages can be determined based on the data correlation between the multiple data messages with the same priority. This not only avoids the transmission of multiple data messages on the communication channel but also helps to improve the efficiency of the upgrade.
[0074] Further, based on the above embodiments, please refer to Figure 7 In one of the exemplary embodiments provided in the present application, the specific implementation process of controlling the transmission of multiple data messages in sequence on the communication channel based on the mutually exclusive semaphore may also include step S710 and step S720, which are described in detail as follows:
[0075] Step S710, when transmitting a data message on a communication channel, obtaining a mutex semaphore to ensure mutually exclusive access to the communication channel based on the mutex semaphore;
[0076] Step S720, when the data message transmission on the communication channel is completed, the mutual exclusion semaphore is released to enable normal access to the communication channel.
[0077] Specifically, before attempting to transmit a data message through a communication channel, the sender (or the relevant communication management module) sends a request to the mutual exclusion semaphore system to obtain access rights to the communication channel. The mutual exclusion semaphore system checks the current state of the semaphore. If the value of the semaphore is 1 (indicating that the channel is currently available), access is allowed; if the value is 0 (indicating that the channel is occupied), the request will be blocked until the channel becomes available. If the state of the semaphore allows, the system will reduce the value of the semaphore (usually from 1 to 0) and grant access rights to the requester. At this point, the sender can safely start transmitting data messages on the communication channel.
[0078] Exemplarily, after obtaining the mutually exclusive access rights of the communication channel, the sender can send the data message to the channel according to the predetermined protocol and data format, and the sender sends a request to the mutually exclusive semaphore system to release the previously obtained communication channel access rights. After the data message transmission on the communication channel is completed, the sender sends a request to the mutually exclusive semaphore system to release the previously obtained communication channel access rights. After receiving the release request, the mutually exclusive semaphore system increases the value of the semaphore (from 0 to 1), indicating that the communication channel is now idle and can be requested by other senders again. With the restoration of the semaphore state, if there are other senders waiting to access the communication channel, the system can grant them access rights according to the order or priority of the requests.
[0079] In this embodiment, the communication channel is unlocked by the mutually exclusive semaphore corresponding to the communication channel, thereby effectively controlling the transmission of multiple data messages on the communication channel, effectively avoiding the problem of data cross-linking and data sticking caused by the simultaneous transmission of multiple data messages on the communication channel.
[0080] Further, based on the above embodiment, please refer to Figure 8 In one of the exemplary embodiments provided in the present application, the specific implementation process of generating a mutually exclusive semaphore based on a communication channel may further include step S810 and step S820, which are described in detail as follows:
[0081] Step S810, obtaining mutually exclusive access configuration information corresponding to the communication channel;
[0082] Step S820: Create a corresponding mutual exclusion semaphore through dynamic memory allocation based on the mutual exclusion access configuration information.
[0083] Specifically, for a many-to-one communication channel, the mutual exclusion access configuration information corresponding to the communication channel can be obtained, wherein the mutual exclusion access configuration information may come from a variety of channels, including but not limited to configuration files, environment variables, command line parameters, or default values preset in the program. This information usually includes the number and type of mutexes (such as binary semaphores, counting semaphores, etc.), timeout settings, retry strategies, etc. Then, since the number and type of communication channels may vary when the program is running, it is appropriate to use dynamic memory allocation (such as malloc, calloc, new, etc.) to create mutual exclusion semaphores (or mutex arrays). This ensures that the mutual exclusion mechanism can be flexibly expanded or reduced according to actual needs. According to the mutual exclusion access configuration information, the program will allocate enough memory to store the specified number of mutexes. Then, it will initialize these mutexes according to the configured type (such as binary semaphores, counting semaphores, etc.).
[0084] In this embodiment, a mutually exclusive semaphore of a communication channel is created through dynamic memory allocation, thereby improving the intelligence of data message transmission and effectively avoiding the data packet sticking problem caused by the transmission of multiple data messages on the communication channel.
[0085] Further, based on the above embodiments, please refer to Fig. 9 In one of the exemplary embodiments provided in the present application, the specific implementation process of the above data message transmission method may also include step S910 and step S920, which are described in detail as follows:
[0086] Step S910, parsing the data message received by the destination address, and determining the actual message length of the data message based on the parsing result;
[0087] Step S920: If the actual message length does not match the preset data message length corresponding to the data message, it is determined that the data message is an incomplete data message.
[0088] Specifically, during the parsing process, the receiving end will calculate the actual length of the message from the header of the message or according to specific protocol rules. This length indicates the number of bytes of valid data contained in the message. In network communication, the length of the data message is sometimes preset according to the communication protocol or application layer requirements. This preset length may be a fixed value, a range, or determined based on some dynamic rules. After obtaining the actual message length, the receiving end will compare it with the preset message length. If it matches: it means that the received data message is complete, no part is lost, and it meets the expected format and length requirements. At this point, the receiving end can further process the message, such as extracting the data in it, responding, etc. If it does not match: it means that the received data message is incomplete, which may be caused by packet loss, incorrect message segmentation or other reasons during network transmission. In this case, the receiving end usually adopts some error handling mechanisms, such as discarding the message, sending an error report to the sender to request retransmission, etc.
[0089] In this embodiment, the actual length of the data message received by the destination address is compared with the initial preset length of the data message, so that when the destination address receives an incomplete data message, some error handling mechanisms can be adopted, such as discarding the message and sending an error report to the sender to request retransmission.
[0090] Further, based on the above embodiments, please refer to Fig.10 In one of the exemplary embodiments provided in the present application, the specific implementation process of correcting the incomplete data message based on the adjacent data message to obtain the complete data message may also include step S1010 and step S1020, which are described in detail as follows:
[0091] Step S1010, calculating the length difference between the actual message length and the data message length;
[0092] Step S1020, determining a target correction message from adjacent data messages based on the length difference, and splicing the target correction message with the actual message to obtain a complete data message.
[0093] Specifically, following the above-mentioned embodiments, the actual message length: this is the length directly measured or calculated from the received data message, the preset data message length: this is pre-set according to the protocol specification, application requirements or other methods, and represents the length that a complete data message should have. Then, the length difference between the actual message length and the data message length is calculated. If the length difference is a positive number, it means that the actual received data is less than expected, that is, the data is incomplete. If the length difference is a negative number, it means that the actual received data is more than expected, which may be due to data overlap, incorrect data packet merging or other problems. In the case where the data is found to be incomplete (that is, the length difference is a positive number), it is necessary to determine the missing target correction message from the adjacent data messages.
[0094] Among them, correcting incomplete messages usually involves the following processes: Checking sequence numbers: If the data message contains a sequence number (such as the sequence number in TCP), the missing message can be determined by the sequence number; Timeout and retransmission: When using a reliable transmission protocol such as TCP, its timeout and retransmission mechanism can be used to request retransmission of the missing message; Session management: If it is a session-based protocol, it may be necessary to check the session context or state to determine the missing data. Then, once the missing target correction messages are determined and these messages are successfully received or resent, they can be spliced with the messages that have actually been received. The splicing process usually involves: Arranging messages in order: Ensure that all messages are arranged in the order they appear in the original data; Data verification: During the splicing process or after the splicing is completed, data verification (such as CRC verification, checksum, etc.) is performed to ensure the integrity and correctness of the data; Removing duplicate parts (if applicable): In some cases, it may be necessary to remove duplicate parts caused by retransmission or other reasons.
[0095] In this embodiment, incomplete data packets are corrected by adjacent data packets in the communication channel, thereby improving the integrity and accuracy of data packet transmission, reducing the number of retransmissions, improving the efficiency of data packet transmission, and improving service quality.
[0096] Fig.11It is a schematic diagram of a brief process of data message transmission in an exemplary application scenario. In the application scenario shown in 11, when the OTA master (UMC) upgrades and flashes the target ECU, for ECUs that support Ethernet, the OTA master and the target ECU establish a TCP communication connection through gateway transparent transmission, and for ECUs that do not support Ethernet, the OTA master and the gateway (UA) establish a TCP communication connection. The gateway (UA) parses the ECU target address (TA) of the message, converts the UDS message format through the ETH message format, and forwards the message to the target ECU for data communication and upgrade flashing. When upgrading in parallel, multiple OTA masters establish the same TCP communication connection with the gateway. If it is detected that the destination addresses of multiple data messages are the same, the communication channel corresponding to the destination address is determined; a mutually exclusive semaphore is generated based on the communication channel, and the mutually exclusive semaphore is used to characterize the state of the communication channel; the transmission priority corresponding to multiple data messages is determined based on the mutual trust semaphore; if the transmission priority of multiple data messages is the same, the data correlation between the multiple data messages is obtained; and the transmission order corresponding to the multiple data messages is determined based on the data correlation. When transmitting a data message on a communication channel, a mutex semaphore is obtained to ensure mutually exclusive access to the communication channel based on the mutex semaphore; when the data message transmission on the communication channel is completed, the mutex semaphore is released to enable normal access to the communication channel. The data message received at the destination address is parsed, and the actual message length of the data message is determined based on the parsing result; if the actual message length does not match the preset data message length corresponding to the data message, the data message is determined to be an incomplete data message. The adjacent data messages transmitted by the incomplete data message on the communication channel are obtained to correct the incomplete data message based on the adjacent data messages to obtain a complete data message. For the detailed implementation process, please refer to the records in the aforementioned embodiments, which will not be repeated here.
[0097] Fig.12 is a block diagram of a data message transmission device shown in an exemplary embodiment of the present application. The device can be applied to Figure 3 The implementation environment shown in the figure is specifically configured in the server 320. The device can also be applied to other exemplary implementation environments and specifically configured in other devices. This embodiment does not limit the implementation environment to which the device is applied.
[0098] like Fig.12As shown, the exemplary data message transmission device 1200 includes: a detection module 1210, which is used to determine the communication channel corresponding to the destination address if it is detected that the destination addresses of multiple data messages are the same; a generation module 1220, which is used to generate a mutex semaphore based on the communication channel, and the mutex semaphore is used to characterize the state of the communication channel; a transmission module 1230, which is used to control the transmission of multiple data messages on the communication channel in sequence based on the mutex semaphore; a correction module 1240, which is used to obtain adjacent data messages transmitted on the communication channel by the incomplete data message if there is an incomplete data message at the destination address, so as to correct the incomplete data message based on the adjacent data messages to obtain a complete data message.
[0099] According to one aspect of an embodiment of the present application, the transmission module 1230 is further used to determine a transmission order corresponding to a plurality of data messages based on a mutually exclusive semaphore; and control the transmission of the plurality of data messages in sequence on the communication channel based on the transmission order.
[0100] According to one aspect of an embodiment of the present application, the above-mentioned transmission module 1230 is also used to determine the transmission priority corresponding to multiple data packets based on the mutual trust signal quantity; if the transmission priorities of multiple data packets are the same, obtain the data correlation between the multiple data packets; and determine the transmission order corresponding to the multiple data packets based on the data correlation.
[0101] According to one aspect of an embodiment of the present application, the above-mentioned transmission module 1230 is also used to obtain a mutex semaphore when transmitting a data message on a communication channel to ensure mutual exclusive access to the communication channel based on the mutex semaphore; when the transmission of the data message on the communication channel is completed, the mutex semaphore is released to enable normal access to the communication channel.
[0102] According to one aspect of an embodiment of the present application, the above-mentioned generation module 1220 is also used to obtain mutually exclusive access configuration information corresponding to the communication channel; and create a corresponding mutually exclusive semaphore through dynamic memory allocation based on the mutually exclusive access configuration information.
[0103] According to one aspect of an embodiment of the present application, the above-mentioned data packet transmission device also includes: a parsing module, used to parse the data packet received by the destination address and determine the actual message length of the data packet based on the parsing result; a determination module, used to determine that the data packet is an incomplete data packet if the actual message length does not match the preset data packet length corresponding to the data packet.
[0104] According to one aspect of an embodiment of the present application, the above-mentioned correction module 1240 is also used to calculate the length difference between the actual message length and the preset data message length; determine the target correction message from the adjacent data messages based on the length difference, and splice the target correction message with the actual message to obtain a complete data message.
[0105] It should be noted that the data message transmission device provided in the above embodiment and the data message transmission method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, and will not be repeated here. In practical applications, the data message transmission device provided in the above embodiment can allocate the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.
[0106] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the electronic device implements the data message transmission method provided in the above-mentioned embodiments.
[0107] Fig.13 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Fig.13 The computer system 1300 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0108] like Fig.13 As shown, the computer system 1300 includes a central processing unit (CPU) 1301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1302 or the program loaded from the storage part 1308 to the random access memory (RAM) 1303, such as executing the method in the above embodiment. In the RAM 1303, various programs and data required for system operation are also stored. The CPU 1301, the ROM 1302 and the RAM 1303 are connected to each other through the bus 1304. The input / output (I / O) interface 1305 is also connected to the bus 1304.
[0109] The following components are connected to the I / O interface 1305: an input section 1306 including a keyboard, a mouse, etc.; an output section 1307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1308 including a hard disk, etc.; and a communication section 1309 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1309 performs communication processing via a network such as the Internet. A drive 1310 is also connected to the I / O interface 1305 as needed. A removable medium 1311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1310 as needed so that a computer program read therefrom is installed into the storage section 1308 as needed.
[0110] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1309, and / or installed from a removable medium 1311. When the computer program is executed by a central processing unit (CPU) 1301, various functions defined in the system of the present application are executed.
[0111] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0112] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0113] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0114] Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the data message transmission method as described above is implemented. The computer-readable storage medium can be included in the electronic device described in the above embodiment, or it can exist independently without being assembled into the electronic device.
[0115] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the data message transmission method provided in each of the above embodiments.
[0116] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.
Claims
1. A data message transmission method, characterized in that: include: If it is detected that the destination addresses of multiple data messages are the same, determining the communication channel corresponding to the destination addresses; generating a mutual exclusion semaphore based on the communication channel, wherein the mutual exclusion semaphore is used to represent a state of the communication channel; Controlling the plurality of data messages to be transmitted sequentially on the communication channel based on the mutually exclusive semaphore; If an incomplete data message exists at the destination address, the adjacent data messages of the incomplete data message transmitted on the communication channel are obtained, so as to correct the incomplete data message based on the adjacent data messages and obtain a complete data message.
2. The method according to claim 1, characterized in that The controlling the plurality of data messages to be transmitted sequentially on the communication channel based on the mutually exclusive semaphore comprises: Determine the transmission order corresponding to the multiple data messages based on the mutually exclusive semaphore; The multiple data packets are controlled to be transmitted sequentially on the communication channel based on the transmission order.
3. The method according to claim 2, characterized in that The determining the transmission order corresponding to the plurality of data messages based on the mutually exclusive semaphore comprises: Determining the transmission priorities corresponding to the plurality of data messages based on the mutual trust signal quantity; If the transmission priorities of multiple data messages are the same, obtaining data relevance between the multiple data messages; A transmission order corresponding to the plurality of data messages is determined based on the data association.
4. The method according to claim 3, characterized in that The controlling the plurality of data messages to be transmitted sequentially on the communication channel based on the mutually exclusive semaphore comprises: When transmitting a data message on the communication channel, acquiring the mutual exclusion semaphore to ensure mutual exclusion access to the communication channel based on the mutual exclusion semaphore; When the data message transmission on the communication channel is completed, the mutual exclusion semaphore is released to enable normal access to the communication channel.
5. The method according to claim 1, characterized in that The generating a mutually exclusive semaphore based on the communication channel comprises: Obtaining mutually exclusive access configuration information corresponding to the communication channel; A corresponding mutual exclusion semaphore is created through dynamic memory allocation based on the mutual exclusion access configuration information.
6. The method according to claim 1, characterized in that The method further comprises: Parsing the data message received by the destination address, and determining the actual message length of the data message based on the parsing result; If the actual message length does not match the preset data message length corresponding to the data message, it is determined that the data message is an incomplete data message.
7. The method according to claim 6, characterized in that The step of correcting the incomplete data message based on the adjacent data message to obtain a complete data message includes: Calculating the length difference between the actual message length and the preset data message length; A target correction message is determined from the adjacent data messages based on the length difference, and the target correction message is spliced with the actual message to obtain the complete data message.
8. A data message transmission device, characterized in that: The device comprises: A detection module, configured to determine a communication channel corresponding to the destination address if it is detected that the destination addresses of multiple data messages are the same; A generating module, configured to generate a mutually exclusive semaphore based on the communication channel, wherein the mutually exclusive semaphore is used to represent a state of the communication channel; A transmission module, used for controlling the plurality of data messages to be transmitted sequentially on the communication channel based on the mutually exclusive semaphore; The correction module is used to obtain adjacent data messages transmitted by the incomplete data message on the communication channel if an incomplete data message exists at the destination address, so as to correct the incomplete data message based on the adjacent data messages to obtain a complete data message.
9. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the data message transmission method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the data message transmission method according to any one of claims 1 to 7.
