CN114745339B - Multi-packet message data transmission method, transmission device and transmission system - Google Patents

Multi-packet message data transmission method, transmission device and transmission system Download PDF

Info

Publication number
CN114745339B
CN114745339B CN202210372919.8A CN202210372919A CN114745339B CN 114745339 B CN114745339 B CN 114745339B CN 202210372919 A CN202210372919 A CN 202210372919A CN 114745339 B CN114745339 B CN 114745339B
Authority
CN
China
Prior art keywords
message data
length
receiving
packet
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210372919.8A
Other languages
Chinese (zh)
Other versions
CN114745339A (en
Inventor
刘绪洪
王怀宽
刘月美
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weichai Power Co Ltd
Weifang Weichai Power Technology Co Ltd
Original Assignee
Weichai Power Co Ltd
Weifang Weichai Power Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Weichai Power Co Ltd, Weifang Weichai Power Technology Co Ltd filed Critical Weichai Power Co Ltd
Priority to CN202210372919.8A priority Critical patent/CN114745339B/en
Publication of CN114745339A publication Critical patent/CN114745339A/en
Application granted granted Critical
Publication of CN114745339B publication Critical patent/CN114745339B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/36Flow control; Congestion control by determining packet size, e.g. maximum transfer unit [MTU]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a transmission method, a transmission device and a transmission system for multi-packet message data, wherein the method comprises the following steps: acquiring a plurality of message data groups with different lengths and the lengths of the message data groups, wherein each message data group comprises a plurality of data, and the lengths of the message data groups are the number of the data of the message data groups; determining a receiving mode of each message data group according to the length of each message data group, wherein one receiving mode corresponds to one length; and controlling the receiving device to receive each message data group with the corresponding length according to each receiving mode. The method solves the problem that multi-packet message data with various lengths cannot be transmitted through one version of software.

Description

Multi-packet message data transmission method, transmission device and transmission system
Technical Field
The application relates to the technical field of software development, in particular to a transmission method and a transmission device of multi-packet message data, a computer readable storage medium, a processor and a transmission system of the multi-packet message data.
Background
The multi-packet sending message com_txvi/com_txci/com_txsoft/com_txec in the current Qogri project is updated according to the product requirement of the external intelligent piece, the multi-packet data content to be sent needs to be correspondingly updated, but due to the newly increased requirement of the external intelligent piece on the multi-packet data content, one version of software cannot meet the data sending of the multi-packet sending message with various different lengths, and meanwhile, the situation that new and old requirements exist in the market at the same time is also faced.
The traditional multi-packet transmission message only supports data transmission with one byte length for the transmission message of the same external intelligent piece, and cannot meet the requirement of simultaneously compatible data transmission with two or more multi-packet message lengths.
In the prior art, a method for simultaneously compatible two or more data transmission of multi-packet message length for the transmission message of the same intelligent part outside is lacked, the configuration of simultaneously meeting the transmission data of a plurality of multi-packet message data length by one version of software is supported, the development quantity of software versions can be effectively reduced, the maintenance cost is reduced, and the simultaneous existence condition of new and old market demands is met.
The above information disclosed in the background section is only for enhancement of understanding of the background art from the technology described herein and, therefore, may contain some information that does not form the prior art that is already known in the country to a person of ordinary skill in the art.
Disclosure of Invention
The application mainly aims to provide a transmission method, a transmission device, a computer readable storage medium, a processor and a transmission system of multi-packet message data, which are used for solving the problem that the multi-packet message data with various lengths cannot be transmitted through one version of software in the prior art.
According to an aspect of the embodiment of the present application, there is provided a method for transmitting multi-packet message data, including: acquiring a plurality of message data groups with different lengths and the lengths of the message data groups, wherein each message data group comprises a plurality of data, and the lengths of the message data groups are the number of the data of the message data groups; determining a receiving mode of each message data group according to the length of each message data group, wherein one receiving mode corresponds to one length; and controlling a receiving device to receive each message data group corresponding to the length according to each receiving mode.
Optionally, the controlling the receiving device to determine a receiving mode of each packet data set according to a length of each packet data set includes: setting a plurality of receiving modes, wherein one receiving mode corresponds to one calibration length; determining the corresponding calibration length according to the length of each message data set to obtain a plurality of target lengths, wherein the target lengths are the calibration lengths equal to the lengths of the message data sets; and determining the receiving mode corresponding to each message data group according to the target length.
Optionally, the controlling the receiving device to receive each packet data set corresponding to the length according to each receiving mode includes: determining corresponding receiving devices according to the receiving modes, wherein a plurality of grades of the receiving devices are arranged, and the grades are in one-to-one correspondence with the receiving devices; and controlling the receiving device of each grade to receive the message data group with the corresponding length.
Optionally, before receiving each of the packet data sets corresponding to the length, the method further includes: scanning the message data set to obtain target content information, wherein the target content information is the content of the message data set; a selection step of selecting a transmission mode, wherein parameters of the transmission mode comprise a first parameter and a second parameter; a step of assigning, namely assigning the length of the message data set to the first parameter and assigning the target content information to the second parameter; a transmission step of controlling a transmitting device to transmit the message data set according to the first parameter and the second parameter; and sequentially repeating the scanning step, the selecting step, the assigning step and the transmitting step at least once until all the message data sets are sent.
Optionally, the transmission mode includes a broadcast mode and a point-to-point mode, and the controlling the sending device to send the packet data set according to the first parameter and the second parameter includes: controlling the transmitting device to transmit each message data group through a broadcast channel under the condition that the transmission mode is the broadcast mode; and controlling the sending device to send each message data group through a point-to-point channel under the condition that the transmission mode is the point-to-point mode.
Optionally, the length of each packet data set is greater than a predetermined threshold.
According to another aspect of the embodiment of the present application, there is also provided a transmission device for multi-packet message data, including: an obtaining unit, configured to obtain a plurality of message data sets with different lengths and lengths of the message data sets, where each message data set includes a plurality of data, and the length of the message data set is the number of the data of the message data set; a selecting unit, configured to determine a receiving mode of each packet data set according to a length of each packet data set, where one receiving mode corresponds to one length; and the control unit is used for controlling the receiving device to receive each message data group corresponding to the length according to each receiving mode.
According to still another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium including a stored program, wherein the program performs any one of the methods.
According to yet another aspect of the embodiments of the present application, there is further provided a processor, where the processor is configured to execute a program, where the program executes any one of the methods.
According to an aspect of the embodiment of the present application, there is also provided a transmission system for multi-packet message data, including: one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing any of the methods.
In the method for transmitting multi-packet message data according to the embodiment of the present application, first, a plurality of message data sets with different lengths and lengths of the message data sets are obtained, each of the message data sets includes a plurality of data, and the lengths of the message data sets are the number of the data of the message data sets; then, according to the length of each message data group, determining the receiving mode of each message data group, wherein one receiving mode corresponds to one length; finally, the receiving device is controlled to receive each message data group corresponding to the length according to each receiving mode. The method determines the receiving mode of each message data group according to the length of each message data group, namely, the receiving modes of the message data groups with different lengths are different, and receives the corresponding message data group with one length according to one receiving mode.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application. In the drawings:
FIG. 1 is a flow chart of a method of transmitting multi-packet message data according to one embodiment of the application;
fig. 2 shows a schematic diagram of a transmission device for multi-packet message data according to an embodiment of the application.
Detailed Description
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the application herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be understood that when an element such as a layer, film, region, or substrate is referred to as being "on" another element, it can be directly on the other element or intervening elements may also be present. Furthermore, in the description and in the claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element or "connected" to the other element through a third element.
For convenience of description, the following will describe some terms or terminology involved in the embodiments of the present application:
multi-packet message: content in the data with a byte length greater than 8 bytes is transmitted via a multi-packet transmission protocol.
Broadcast Announcement Message (BAM): the BAM message is used to inform all nodes on the network that a long message is to be broadcast. It defines the set of parameters and the number of bytes of the message to be sent.
Request to send message (RTS): the number of bytes comprising the entire message, the number of packets of the message to be transmitted, the maximum number of packets that can be transmitted in response to a CTS, and the parameter set number of the transmitted information.
As described in the background art, in order to solve the above-mentioned problem, in an exemplary embodiment of the present application, a method, a device, a computer readable storage medium, a processor, and a system for transmitting multi-packet data are provided.
According to the embodiment of the application, a transmission method of multi-packet message data is provided.
Fig. 1 is a flowchart of a method for transmitting multi-packet message data according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
step S101, obtaining a plurality of message data groups with different lengths and the lengths of the message data groups, wherein each message data group comprises a plurality of data, and the lengths of the message data groups are the number of the data of the message data groups;
step S102, determining a receiving mode of each message data group according to the length of each message data group, wherein one receiving mode corresponds to one length;
step S103, the receiving device is controlled to receive each message data group corresponding to the length according to each receiving mode.
Firstly, obtaining a plurality of message data groups with different lengths and the lengths of the message data groups, wherein each message data group comprises a plurality of data, and the lengths of the message data groups are the number of the data of the message data groups; then, according to the length of each message data group, determining the receiving mode of each message data group, wherein one receiving mode corresponds to one length; finally, the receiving device is controlled to receive each message data group corresponding to the length according to each receiving mode. The method determines the receiving mode of each message data group according to the length of each message data group, namely, the receiving modes of the message data groups with different lengths are different, and receives the corresponding message data group with one length according to one receiving mode.
It should be noted that, the packet data set is the multi-packet.
In one embodiment of the present application, the controlling the receiving device to determine the receiving mode of each of the packet data sets according to the length of each of the packet data sets includes: setting a plurality of receiving modes, wherein one receiving mode corresponds to one calibration length; determining the corresponding calibration length according to the length of each message data set to obtain a plurality of target lengths, wherein the target lengths are the calibration lengths equal to the length of the message data set; and determining the corresponding receiving mode of each message data group according to the target length. In this embodiment, a plurality of receiving modes are set first, and each receiving mode corresponds to a calibration length, so that switching from one calibration length to a corresponding receiving mode is achieved, then, according to the target length of each multi-packet message, that is, the calibration length corresponding to the length of each multi-packet message, the receiving mode corresponding to each multi-packet message is determined, and the corresponding receiving mode is determined according to the length of each multi-packet message.
In one embodiment of the present application, the controlling the receiving device to receive each of the packet data sets corresponding to the length according to each of the receiving modes includes: the corresponding receiving devices are determined according to the receiving modes, a plurality of grades of the receiving devices are provided, and the grades are in one-to-one correspondence with the receiving devices; and controlling the receiving devices of the levels to receive the message data sets with the corresponding lengths. In this embodiment, the corresponding receiving device, that is, the external intelligent piece of the corresponding level, is first determined according to the receiving mode, and the external intelligent piece of one level is used for receiving the multi-packet message of one length, and then the external intelligent piece of the corresponding level receives the multi-packet message of the corresponding length, so as to implement the reception of the multi-packet messages of different lengths.
In one embodiment of the present application, before receiving each of the packet data sets corresponding to the length, the method further includes: scanning the message data set to obtain target content information, wherein the target content information is the content of the message data set; a selection step of selecting a transmission mode, wherein the parameters of the transmission mode comprise a first parameter and a second parameter; a step of assigning, namely assigning the length of the message data set to the first parameter, and assigning the target content information to the second parameter; a transmission step of controlling a transmitting device to transmit the message data set according to the first parameter and the second parameter; and repeating the scanning step, the selecting step, the assigning step and the transmitting step at least once in sequence until all the message data sets are sent. In this embodiment, firstly, the length of the multi-packet message is assigned to a first parameter of the transmission mode, namely, the length information of the multi-packet message is assigned to the 2 nd-3 rd byte of the sending notification message, then, the sending notification message is sent out, the receiving party is notified of the length of the multi-packet message to be sent, then, the target content information is assigned to a second parameter of the corresponding transmission mode, namely, the content of the multi-packet message is assigned to the corresponding Pack content, and finally, the sending device is controlled to send out the Pack, so that the sending of each multi-packet message is completed.
The sending notification message includes length information of the multi-packet message, packet number information of the multi-packet message, number information of each packet of the multi-packet message, source address information sent by the multi-packet message, destination address information sent by the multi-packet message, and the like, and the 2 nd to 3 rd bytes of the sending notification message are used for storing the length information of the multi-packet message.
The above-mentioned transmission notification message types include a BAM broadcast announcement message and an RTS request transmission message.
In an embodiment of the present application, the transmission mode includes a broadcast mode and a peer-to-peer mode, and the controlling the transmitting device to transmit the packet data set according to the first parameter and the second parameter includes: controlling the transmitting device to transmit each of the message data sets through a broadcast channel when the transmission mode is the broadcast mode; and when the transmission mode is the point-to-point mode, controlling the transmitting device to transmit each message data group through a point-to-point channel. In this embodiment, when the transmission mode is the broadcast mode, the BAM broadcast announcement message is sent first, notifying each node in the broadcast channel of the length of the multi-packet to be sent, then, the sending device is controlled to send the multi-packet through the broadcast channel, when the transmission mode is the point-to-point mode, the RTS request sending message is sent first, including the length of the multi-packet to be sent immediately, then, the sending device is controlled to send the multi-packet through the point-to-point channel.
In one embodiment of the present application, a length of each of the packet data sets is greater than a predetermined threshold. In this embodiment, the data sets are packaged into multi-packet messages with different lengths according to different requirements, and when the length of the multi-packet messages is greater than a predetermined threshold value, the multi-packet message is transmitted by adopting the transmission method of the multi-packet message data, so that the message transmission efficiency is improved.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the application also provides a transmission device of the multi-packet message data, and it should be noted that the transmission device of the multi-packet message data of the embodiment of the application can be used for executing the transmission method for the multi-packet message data provided by the embodiment of the application. The following describes a transmission device for multi-packet message data provided by the embodiment of the application.
Fig. 2 is a schematic diagram of a transmission device for multi-packet message data according to an embodiment of the present application. As shown in fig. 2, the apparatus includes:
an obtaining unit 10, configured to obtain a plurality of message data sets with different lengths and lengths of the message data sets, where each message data set includes a plurality of data, and the lengths of the message data sets are the number of the data of the message data sets;
a determining unit 20, configured to determine a receiving mode of each packet data set according to a length of each packet data set, where one receiving mode corresponds to one length;
and a control unit 30 for controlling the receiving device to receive each of the message data sets corresponding to the length according to each of the receiving modes.
The multi-packet message data transmission device comprises an acquisition unit, a transmission unit and a transmission unit, wherein the acquisition unit acquires a plurality of message data groups with different lengths and the lengths of the message data groups, each message data group comprises a plurality of data, and the lengths of the message data groups are the number of the data of the message data groups; a determining unit configured to determine a reception mode of each of the packet data sets according to a length of each of the packet data sets, one of the reception modes corresponding to each of the lengths; and a control unit for controlling the receiving device to receive each message data group corresponding to the length according to each receiving mode. The device determines the receiving mode of each message data group according to the length of each message data group, namely, the receiving modes of the message data groups with different lengths are different, and receives the corresponding message data group with one length according to one receiving mode.
It should be noted that, the packet data set is the multi-packet.
In one embodiment of the present application, the determining unit includes a setting module, a first determining module and a second determining module, where the setting module is configured to set a plurality of receiving modes, and one receiving mode corresponds to one calibration length; the first determining module is configured to determine the corresponding calibration length according to the length of each packet data set, so as to obtain a plurality of target lengths, where the target lengths are the calibration lengths equal to the lengths of the packet data sets; the second determining module is configured to determine the receiving mode corresponding to each packet data set according to the target length. In this embodiment, a plurality of receiving modes are set first, and each receiving mode corresponds to a calibration length, so that switching from one calibration length to a corresponding receiving mode is achieved, then, according to the target length of each multi-packet message, that is, the calibration length corresponding to the length of each multi-packet message, the receiving mode corresponding to each multi-packet message is determined, and the corresponding receiving mode is determined according to the length of each multi-packet message.
In one embodiment of the present application, the control unit includes a third determining module and a control module, where the third determining module is configured to determine the corresponding receiving device according to each receiving mode, and the receiving devices have a plurality of ranks, where the ranks are in one-to-one correspondence with the receiving devices; the control module is used for controlling the receiving device of each grade to receive the message data group with the corresponding length. In this embodiment, the corresponding receiving device, that is, the external intelligent piece of the corresponding level, is first determined according to the receiving mode, and the external intelligent piece of one level is used for receiving the multi-packet message of one length, and then the external intelligent piece of the corresponding level receives the multi-packet message of the corresponding length, so as to implement the reception of the multi-packet messages of different lengths.
In one embodiment of the present application, the transmission device for multi-packet message data further includes a transmission unit, where the transmission unit includes a scanning module, a selecting module, an assigning module, a transmission module, and an iteration module, where the scanning module is configured to scan the message data set to obtain target content information, where the target content information is content of the message data set; the selection module is used for selecting a transmission mode, and the parameters of the transmission mode comprise a first parameter and a second parameter; the assignment module is used for assigning the length of the message data set to the first parameter and assigning the target content information to the second parameter; the transmission module is used for controlling the sending device to send the message data set according to the first parameter and the second parameter; the iteration module is used for sequentially repeating the scanning step, the selecting step, the assigning step and the transmitting step at least once until all the message data sets are sent. In this embodiment, firstly, the length of the multi-packet message is assigned to a first parameter of the transmission mode, namely, the length information of the multi-packet message is assigned to the 2 nd-3 rd byte of the sending notification message, then, the sending notification message is sent out, the receiving party is notified of the length of the multi-packet message to be sent, then, the target content information is assigned to a second parameter of the corresponding transmission mode, namely, the content of the multi-packet message is assigned to the corresponding Pack content, and finally, the sending device is controlled to send out the Pack, so that the sending of each multi-packet message is completed.
The sending notification message includes length information of the multi-packet message, packet number information of the multi-packet message, number information of each packet of the multi-packet message, source address information sent by the multi-packet message, destination address information sent by the multi-packet message, and the like, and the 2 nd to 3 rd bytes of the sending notification message are used for storing the length information of the multi-packet message.
The above-mentioned transmission notification message types include a BAM broadcast announcement message and an RTS request transmission message.
In one embodiment of the present application, the transmission module includes a first transmission sub-module and a second transmission sub-module, where the first transmission sub-module is configured to control the sending device to send each of the packet data sets through a broadcast channel when the transmission mode is the broadcast mode; the second transmission sub-module is configured to control the transmitting device to transmit each packet data set through a point-to-point channel when the transmission mode is the point-to-point mode. In this embodiment, when the transmission mode is the broadcast mode, the BAM broadcast announcement message is sent first, notifying each node in the broadcast channel of the length of the multi-packet to be sent, then, the sending device is controlled to send the multi-packet through the broadcast channel, when the transmission mode is the point-to-point mode, the RTS request sending message is sent first, including the length of the multi-packet to be sent immediately, then, the sending device is controlled to send the multi-packet through the point-to-point channel.
In one embodiment of the present application, a length of each of the packet data sets is greater than a predetermined threshold. In this embodiment, the data sets are packaged into multi-packet messages with different lengths according to different requirements, and when the length of the multi-packet messages is greater than a predetermined threshold value, the multi-packet message is transmitted by adopting the transmission method of the multi-packet message data, so that the message transmission efficiency is improved.
The transmission device of the multi-packet message data comprises a processor and a memory, wherein the acquisition unit, the determination unit, the control unit and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the problem that multi-packet message data with various lengths cannot be transmitted through one version of software is solved by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the application provides a storage medium, on which a program is stored, which when executed by a processor, implements the above-mentioned method for transmitting multi-packet message data.
The embodiment of the application provides a processor, which is used for running a program, wherein the transmission method of multi-packet message data is executed when the program runs.
The embodiment of the application provides a transmission system of multi-packet message data, which comprises the following steps: one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing any one of the methods, the processor implementing at least the following steps when executing the program:
step S101, obtaining a plurality of message data groups with different lengths and the lengths of the message data groups, wherein each message data group comprises a plurality of data, and the lengths of the message data groups are the number of the data of the message data groups;
step S102, determining a receiving mode of each message data group according to the length of each message data group, wherein one receiving mode corresponds to one length;
step S103, the receiving device is controlled to receive each message data group corresponding to the length according to each receiving mode.
The device herein may be a server, PC, PAD, cell phone, etc.
The application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with at least the following method steps:
step S101, obtaining a plurality of message data groups with different lengths and the lengths of the message data groups, wherein each message data group comprises a plurality of data, and the lengths of the message data groups are the number of the data of the message data groups;
step S102, determining a receiving mode of each message data group according to the length of each message data group, wherein one receiving mode corresponds to one length;
step S103, the receiving device is controlled to receive each message data group corresponding to the length according to each receiving mode.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units may be a logic function division, and there may be another division manner when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
1) Firstly, obtaining a plurality of message data groups with different lengths and the lengths of the message data groups, wherein each message data group comprises a plurality of data, and the lengths of the message data groups are the number of the data of the message data groups; then, according to the length of each message data group, determining the receiving mode of each message data group, wherein one receiving mode corresponds to one length; finally, the receiving device is controlled to receive each message data group corresponding to the length according to each receiving mode. The method determines the receiving mode of each message data group according to the length of each message data group, namely, the receiving modes of the message data groups with different lengths are different, and receives the corresponding message data group with one length according to one receiving mode.
2) The application relates to a multi-packet message data transmission device, which comprises an acquisition unit, a transmission unit and a transmission unit, wherein the acquisition unit acquires a plurality of message data groups with different lengths and the lengths of the message data groups, each message data group comprises a plurality of data, and the lengths of the message data groups are the number of the data of the message data groups; a determining unit configured to determine a reception mode of each of the packet data sets according to a length of each of the packet data sets, one of the reception modes corresponding to each of the lengths; and a control unit for controlling the receiving device to receive each message data group corresponding to the length according to each receiving mode. The device determines the receiving mode of each message data group according to the length of each message data group, namely, the receiving modes of the message data groups with different lengths are different, and receives the corresponding message data group with one length according to one receiving mode.
3) The transmission system of the multi-packet message data of the application comprises: the apparatus comprises one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing any of the methods described above. The system determines the receiving mode of each message data group according to the length of each message data group, namely, the receiving modes of the message data groups with different lengths are different, and receives the corresponding message data group with one length according to one receiving mode.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (9)

1. The transmission method of the multi-packet message data is characterized by comprising the following steps:
acquiring a plurality of message data groups with different lengths and the lengths of the message data groups, wherein each message data group comprises a plurality of data, and the lengths of the message data groups are the number of the data of the message data groups;
determining a receiving mode of each message data group according to the length of each message data group, wherein one receiving mode corresponds to one length;
controlling a receiving device to receive each message data group corresponding to the length according to each receiving mode; controlling the receiving device to receive each message data group corresponding to the length according to each receiving mode, including: determining corresponding receiving devices according to the receiving modes, wherein a plurality of grades of the receiving devices are arranged, and the grades are in one-to-one correspondence with the receiving devices; and controlling the receiving device of each grade to receive the message data group with the corresponding length.
2. The method of claim 1 wherein controlling the receiving means to determine a reception mode for each of the message data sets based on the length of each of the message data sets comprises:
setting a plurality of receiving modes, wherein one receiving mode corresponds to one calibration length;
determining the corresponding calibration length according to the length of each message data set to obtain a plurality of target lengths, wherein the target lengths are the calibration lengths equal to the lengths of the message data sets;
and determining the receiving mode corresponding to each message data group according to the target length.
3. The method according to claim 1 or 2, wherein prior to receiving each of said sets of message data corresponding to said length, said method further comprises:
scanning the message data set to obtain target content information, wherein the target content information is the content of the message data set;
a selection step of selecting a transmission mode, wherein parameters of the transmission mode comprise a first parameter and a second parameter;
a step of assigning, namely assigning the length of the message data set to the first parameter and assigning the target content information to the second parameter;
a transmission step of controlling a transmitting device to transmit the message data set according to the first parameter and the second parameter;
and sequentially repeating the scanning step, the selecting step, the assigning step and the transmitting step at least once until all the message data sets are sent.
4. A method according to claim 3, wherein the transmission modes include a broadcast mode and a point-to-point mode, and wherein controlling the transmitting means to transmit the packet data set according to the first parameter and the second parameter comprises:
controlling the transmitting device to transmit each message data group through a broadcast channel under the condition that the transmission mode is the broadcast mode;
and controlling the sending device to send each message data group through a point-to-point channel under the condition that the transmission mode is the point-to-point mode.
5. The method of claim 1, wherein each of the message data sets has a length greater than a predetermined threshold.
6. A multi-packet message data transmission device, comprising:
an obtaining unit, configured to obtain a plurality of message data sets with different lengths and lengths of the message data sets, where each message data set includes a plurality of data, and the length of the message data set is the number of the data of the message data set;
a determining unit, configured to determine a receiving mode of each packet data set according to a length of each packet data set, where one receiving mode corresponds to one length;
the control unit is used for controlling the receiving device to receive each message data group corresponding to the length according to each receiving mode; the control unit comprises a third determining module and a control module, wherein the third determining module is used for determining corresponding receiving devices according to each receiving mode, the number of the receiving devices is multiple, and the levels are in one-to-one correspondence with the receiving devices; the control module is used for controlling the receiving device of each grade to receive the message data group with the corresponding length.
7. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program performs the method of any one of claims 1 to 5.
8. A processor for running a program, wherein the program when run performs the method of any one of claims 1 to 5.
9. A system for transmitting multi-packet message data, comprising: one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the method of any of claims 1-5.
CN202210372919.8A 2022-04-07 2022-04-07 Multi-packet message data transmission method, transmission device and transmission system Active CN114745339B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210372919.8A CN114745339B (en) 2022-04-07 2022-04-07 Multi-packet message data transmission method, transmission device and transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210372919.8A CN114745339B (en) 2022-04-07 2022-04-07 Multi-packet message data transmission method, transmission device and transmission system

Publications (2)

Publication Number Publication Date
CN114745339A CN114745339A (en) 2022-07-12
CN114745339B true CN114745339B (en) 2023-10-20

Family

ID=82281070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210372919.8A Active CN114745339B (en) 2022-04-07 2022-04-07 Multi-packet message data transmission method, transmission device and transmission system

Country Status (1)

Country Link
CN (1) CN114745339B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130097355A (en) * 2012-02-24 2013-09-03 주식회사 바른기술 The method for processing a seamless handover using a multi packet transmission mode
CN106200567A (en) * 2014-11-03 2016-12-07 现代自动车株式会社 Improve CAN communication method and the data frame structure of traffic rate
CN106465153A (en) * 2014-05-07 2017-02-22 大众汽车有限公司 Method and apparatus for estimating expected reception quality
CN106559811A (en) * 2015-09-28 2017-04-05 展讯通信(上海)有限公司 Bluetooth data reception control method and device
JP2018157268A (en) * 2017-03-15 2018-10-04 本田技研工業株式会社 Transmitter and receiver
CN109584406A (en) * 2017-09-28 2019-04-05 比亚迪股份有限公司 The communication control method of vehicle and car key, device and vehicle
CN110611618A (en) * 2019-09-20 2019-12-24 潍柴动力股份有限公司 Method and device for processing multi-packet received message
KR20210036258A (en) * 2019-09-25 2021-04-02 주식회사 엘지화학 Apparatus and method for managing battery
CN113381918A (en) * 2020-08-04 2021-09-10 长城汽车股份有限公司 In-vehicle signal transmission method and system
WO2022056894A1 (en) * 2020-09-21 2022-03-24 华为技术有限公司 Vehicle communication method and vehicle communication device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130097355A (en) * 2012-02-24 2013-09-03 주식회사 바른기술 The method for processing a seamless handover using a multi packet transmission mode
CN106465153A (en) * 2014-05-07 2017-02-22 大众汽车有限公司 Method and apparatus for estimating expected reception quality
CN106200567A (en) * 2014-11-03 2016-12-07 现代自动车株式会社 Improve CAN communication method and the data frame structure of traffic rate
CN106559811A (en) * 2015-09-28 2017-04-05 展讯通信(上海)有限公司 Bluetooth data reception control method and device
JP2018157268A (en) * 2017-03-15 2018-10-04 本田技研工業株式会社 Transmitter and receiver
CN109584406A (en) * 2017-09-28 2019-04-05 比亚迪股份有限公司 The communication control method of vehicle and car key, device and vehicle
CN110611618A (en) * 2019-09-20 2019-12-24 潍柴动力股份有限公司 Method and device for processing multi-packet received message
KR20210036258A (en) * 2019-09-25 2021-04-02 주식회사 엘지화학 Apparatus and method for managing battery
CN113748556A (en) * 2019-09-25 2021-12-03 株式会社Lg新能源 Battery management apparatus and method
CN113381918A (en) * 2020-08-04 2021-09-10 长城汽车股份有限公司 In-vehicle signal transmission method and system
WO2022056894A1 (en) * 2020-09-21 2022-03-24 华为技术有限公司 Vehicle communication method and vehicle communication device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Research and Application of J1939 Protocol in Engine Parameter Monitoring System;Qing Wang;《2020 IEEE 5th Information Technology and Mechatronics Engineering Conference (ITOEC 2020)》;全文 *
SAE J1939多包传输协议及应用分析;谢娟娟;《周口师范学院学报》;第33卷(第2期);全文 *

Also Published As

Publication number Publication date
CN114745339A (en) 2022-07-12

Similar Documents

Publication Publication Date Title
WO2020052605A1 (en) Network slice selection method and device
TWI712295B (en) Method, device and system for binding user terminal and equipment
CN113709263B (en) Data access method of Internet of things protocol MQTT, computer and storage medium
KR102074916B1 (en) Distributed MQTT Broker Architecture based on RPL
CN112822646B (en) Message processing method and device, electronic equipment and computer readable storage medium
CN110808948A (en) Remote procedure calling method, device and system
CN109982152A (en) P2P CDN method for processing business, intelligent gateway and CDN platform
CN104394067A (en) Local area network communication method and device
KR101159434B1 (en) Network allocation
US20200274948A1 (en) Service flow configuration method and apparatus
CN108270745A (en) A kind of method for pushing of service customizing information, terminal and master control bluetooth equipment
CN114745339B (en) Multi-packet message data transmission method, transmission device and transmission system
CN111885564B (en) Data transmission method, equipment upgrading method and computer readable storage medium
CN112491647A (en) Switch message testing method, system and related device
CN102938866B (en) The method, apparatus and system of transmission vlan information
CN102752740B (en) Data interaction processing method, device and system based on clustered architecture of base station
CN113067685B (en) Information communication method and system
US20200274847A1 (en) Access device for analysis of physical links and method thereof
CN105191460A (en) Information transmission method, device, and system
US11432292B2 (en) Resource allocation method, and network device, terminal device and computer storage medium
CN117319971A (en) Data packet processing method, server and wireless communication system
CN114157601B (en) Message transmission method, device and storage medium
CN113225257B (en) UPF data processing method, system and storage medium
CN113133130B (en) Communication method and device
CN117319944A (en) Data packet processing method, server and networking system

Legal Events

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