CN112653607A - Message transmission method and device, electronic equipment and computer storage medium - Google Patents
Message transmission method and device, electronic equipment and computer storage medium Download PDFInfo
- Publication number
- CN112653607A CN112653607A CN202011570116.0A CN202011570116A CN112653607A CN 112653607 A CN112653607 A CN 112653607A CN 202011570116 A CN202011570116 A CN 202011570116A CN 112653607 A CN112653607 A CN 112653607A
- Authority
- CN
- China
- Prior art keywords
- message
- processing unit
- hardware processing
- processed
- hardware
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40215—Controller Area Network CAN
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The application provides a message transmission method, a message transmission device, electronic equipment and a computer storage medium, wherein the message transmission method comprises the following steps: firstly, receiving a message transmission request of a user; the message transmission request comprises a message to be processed and channel information of a controller area network selected by a user to process the message to be processed; the message to be processed is a message to be sent or a message to be received; then, determining at least one hardware processing unit corresponding to the channel information of the controller area network; and finally, processing the message to be processed by using the hardware processing unit. It CAN be seen that the present application only needs the channel information of the controller local area network selected by the user to process the message to be processed, i.e. which CAN is used to process the message to be processed, and does not need the user to select the port value of the CAN, thereby achieving the purpose of flexibly designating the CAN to send the designated message or receive the designated message.
Description
Technical Field
The present application relates to the field of computers, and in particular, to a method and an apparatus for transmitting a packet, an electronic device, and a computer storage medium.
Background
With the continuous development of Controller Area Networks (CAN), the demands of clients are increasing, and more clients want to calibrate the CANs that send and receive messages, that is, designate a certain CAN to send or receive a designated message.
At present, when CAN for sending and receiving messages is calibrated, a client needs to select the port value of CAN by himself, but because of more selectable ports on the same CAN, the user CAN calibrate different messages to the same port easily when calibrating, thereby causing that the messages CAN not be sent correctly.
Disclosure of Invention
In view of this, the present application provides a message transmission method, a message transmission apparatus, an electronic device, and a computer storage medium, which are used for flexibly designating a CAN to transmit a designated message or receive a designated message.
A first aspect of the present application provides a method for transmitting a packet, including:
receiving a message transmission request of a user; the message transmission request comprises a message to be processed and channel information of a controller area network selected by a user to process the message to be processed; the message to be processed is a message to be sent or a message to be received;
determining at least one hardware processing unit corresponding to channel information of the controller area network;
and processing the message to be processed by utilizing the hardware processing unit.
Optionally, the determining a plurality of hardware processing units corresponding to the channel information of the controller area network includes:
in a preset corresponding relation between channel information of a controller area network and a hardware processing unit, at least one hardware processing unit corresponding to the channel information of the controller area network is obtained through query.
Optionally, the processing the packet to be processed by using the hardware sending and processing unit includes:
processing the message to be processed by using a target hardware processing unit; wherein the target hardware processing unit is an idle hardware processing unit in the plurality of hardware processing units.
Optionally, the hardware processing unit includes at least two buffers, and the processing the packet to be processed by using the hardware processing unit includes:
according to the sequence of the hardware processing units, sequentially utilizing the Mth buffer in each hardware processing unit to process the messages to be processed; wherein M is a positive integer; the initial value of M is 1; the buffer processes the message to be processed;
when the Mth buffer in each hardware processing unit is used, the M +1 th buffer in each hardware processing unit is sequentially used for processing the message to be processed according to the sequence of the hardware processing units.
Optionally, the hardware processing unit includes at least two buffers, and the processing the packet to be processed by using the hardware processing unit includes:
according to the sequence of the hardware processing unit, each buffer in the hardware processing unit is used for processing the message to be processed in sequence;
when the buffers in the hardware processing unit are all used, each buffer in the next hardware processing unit of the hardware processing unit is used for processing the message to be processed in sequence according to the sequence of the hardware processing unit.
A second aspect of the present application provides a message transmission apparatus, including:
a receiving unit, configured to receive a message processing request of a user; the message processing request comprises a message to be processed and channel information of a controller area network selected by a user to process the message to be processed; the message to be processed is a message to be sent or a message to be received;
the determining unit is used for determining at least one hardware processing unit corresponding to the channel information of the controller area network;
and the processing unit is used for processing the message to be processed by utilizing the hardware processing unit.
Optionally, the determining unit includes:
and the query unit is used for querying at least one hardware processing unit corresponding to the channel information of the controller area network in the preset corresponding relation between the channel information of the controller area network and the hardware processing unit.
Optionally, the processing unit includes:
the first processing subunit is used for processing the message to be processed by utilizing the target hardware processing unit; the target hardware sending processing unit is an idle hardware processing unit in the plurality of hardware processing units.
Optionally, the hardware processing unit includes at least two buffers, and the processing unit includes:
the second processing subunit is configured to, according to the order of the hardware processing units, sequentially utilize the mth buffer in each hardware processing unit to process the to-be-processed packet; wherein M is a positive integer; the initial value of M is 1; the buffer processes the message to be processed;
the second processing subunit is further configured to, when the mth buffer in each of the hardware processing units is used, sequentially utilize the (M + 1) th buffer in each of the hardware processing units to process the packet to be processed according to the order of the hardware processing units.
Optionally, the hardware processing unit includes at least two buffers, and the processing unit includes:
a third processing subunit, configured to, according to the order of the hardware processing unit, sequentially utilize each buffer in the hardware processing unit to process the to-be-processed packet;
the third processing subunit is further configured to, when all buffers in the hardware processing unit are used, sequentially utilize each buffer in a next hardware sending processing unit of the hardware processing unit to process the packet to be processed according to the order of the hardware processing unit.
A third aspect of the present application provides an electronic device comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of the first aspects.
A fourth aspect of the present application provides a computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method according to any one of the first aspect.
According to the above scheme, in the message transmission method, the message transmission device, the electronic device and the computer storage medium provided by the present application, the message transmission method includes: firstly, receiving a message transmission request of a user; the message transmission request comprises a message to be processed and channel information of a controller area network selected by a user to process the message to be processed; the message to be processed is a message to be sent or a message to be received; then, determining at least one hardware processing unit corresponding to the channel information of the controller area network; and finally, processing the message to be processed by using the hardware processing unit. It CAN be seen that the present application only needs the channel information of the controller local area network selected by the user to process the message to be processed, i.e. which CAN is used to process the message to be processed, and does not need the user to select the port value of the CAN, thereby achieving the purpose of flexibly designating the CAN to send the designated message or receive the designated message.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a detailed flowchart of a message transmission method according to an embodiment of the present application;
fig. 2 is a detailed flowchart of a message transmission method according to an embodiment of the present application;
fig. 3 is a specific flowchart of a message transmission method according to an embodiment of the present application;
fig. 4 is a schematic diagram of a message transmission apparatus according to an embodiment of the present application;
fig. 5 is a schematic diagram of an electronic device implementing a message transmission method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first", "second", and the like, referred to in this application, are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence of functions performed by these devices, modules or units, but the terms "include", or any other variation thereof are intended to cover a non-exclusive inclusion, so that a process, method, article, or apparatus that includes a series of elements includes not only those elements but also other elements that are not explicitly listed, or includes elements inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiment of the present application provides a method for transmitting a packet, which specifically includes the following steps, as shown in fig. 1:
s101, receiving a message transmission request of a user.
The message transmission request comprises a message to be processed and channel information of a controller local area network selected by a user and used for processing the message to be processed; the message to be processed is a message to be sent or a message to be received.
It should be noted that the message transmission request may include a plurality of messages to be processed, and channel information of the controller area network that the user selects to process each message to be processed.
It is understood that the message transmission request of multiple users may also be received simultaneously, and is not limited herein.
For example: the received message transmission request of the user comprises a message A to be sent, and a channel of a controller local area network with the label of 0 is selected to be used for sending the message A to be sent; the received message transmission request of the user comprises a message B to be sent, a message C to be received, a channel of the controller area network with the selected use number 1, the message B to be sent, the channel of the controller area network with the selected use number 2 and the message C to be received; the message to be sent is sent by selecting the channel of the controller area network with the label 1 in the message transmission request received from the user A, and the message to be sent is sent by receiving the message to be sent by selecting the channel of the controller area network with the label 1 in the message transmission request received from the user B, and the message to be sent is sent by selecting the channel of the controller area network with the label 1.
S102, determining at least one hardware processing unit corresponding to the channel information of the controller area network.
The Hardware processing unit may be, but is not limited to, a Hardware object for receiving (HRH). Hardware objects for delivery (Hardware Transmit Handle, HTH), etc.
It should be noted that channels of multiple controller area networks are merged into a channel group of one controller area network, an interface function of a hardware processing unit corresponding to each interface in the channel group of the controller area network is transferred to a Basic Software (BSW) layer, and in an actual application process, the corresponding hardware processing layer can be found through the interface function.
Optionally, in another embodiment of the present application, an implementation manner of step S102 specifically includes:
and inquiring at least one hardware processing unit corresponding to the channel information of the controller area network in the preset corresponding relation between the channel information of the controller area network and the hardware processing unit.
As shown in table 1, CAN0 represents a channel of the controller area network labeled 0, whose corresponding hardware processing units are labeled 34-43; CAN1 represents the channel of controller area network with label 1, and the label of its corresponding hardware processing unit is 0-9; CAN3 represents the channel of controller area network labeled 3, and its corresponding hardware processing unit labeled 12-21; CAN4 represents the channel of controller area network numbered 4, and its corresponding hardware processing unit is numbered 45-54; CAN5 represents a channel of a controller area network numbered 4, whose corresponding hardware processing units are numbered 56-65.
It CAN be understood that the above is only an example of the hardware processing units corresponding to the channels of the different controller area networks, and in an actual application process, the hardware processing units corresponding to the channels of the different controller area networks may be set according to an actual application situation, for example, the number of the hardware processing units corresponding to the CAN0 is 2 times the number of the hardware processing units corresponding to the CAN 1.
CAN channel | Hardware processing unit |
CAN0 | 34-43 |
CAN1 | 0-9 |
CAN3 | 12-21 |
CAN4 | 45-54 |
CAN5 | 56-65 |
TABLE 1
And S103, processing the message to be processed by using the hardware processing unit.
Specifically, a message to be processed is processed by using one of the hardware processing units corresponding to the channel information of the controller area network.
Optionally, in another embodiment of the present application, an implementation manner of step S103 specifically includes:
and processing the message to be processed by utilizing the target hardware processing unit.
The target hardware processing unit is an idle hardware processing unit in the plurality of hardware processing units.
Specifically, an idle hardware processing unit in the plurality of hardware processing units corresponding to the channel information of the controller area network is selected to process the message to be processed.
According to the scheme, in the message transmission method provided by the application, firstly, a message transmission request of a user is received; the message transmission request comprises a message to be processed and channel information of a controller local area network selected by a user and used for processing the message to be processed; the message to be processed is a message to be sent or a message to be received; then, determining at least one hardware processing unit corresponding to the channel information of the controller area network; and finally, processing the message to be processed by utilizing a hardware processing unit. It CAN be seen that the present application only needs the channel information of the controller local area network selected by the user to process the message to be processed, i.e. which CAN is used to process the message to be processed, and does not need the user to select the port value of the CAN, thereby achieving the purpose of flexibly designating the CAN to send the designated message or receive the designated message.
If the hardware processing unit includes at least two buffers, an embodiment of the method for transmitting a packet provided by the present application, as shown in fig. 2, includes:
s201, receiving a message transmission request of a user.
The message transmission request comprises a message to be processed and channel information of a controller local area network selected by a user and used for processing the message to be processed; the message to be processed is a message to be sent or a message to be received.
It should be noted that the specific implementation process of step S201 is the same as the specific implementation process of step S101, and reference may be made to this.
S202, determining at least one hardware processing unit corresponding to the channel information of the controller area network.
It should be noted that the specific implementation process of step S202 is the same as the specific implementation process of step S102, and reference may be made to this process.
S203, according to the sequence of the hardware processing units, sequentially utilizing the Mth buffer in each hardware processing unit to process the messages to be processed.
Wherein M is a positive integer, and the initial value of M is 1; a buffer handles a message to be processed.
S204, when the Mth buffer in each hardware processing unit is used, sequentially utilizing the (M + 1) th buffer in each hardware processing unit to process the message to be processed according to the sequence of the hardware processing units.
For example: and when a plurality of messages need to be processed, processing a first message by using a first buffer of a first hardware processing unit, processing a second message by using a first buffer of a second hardware processing unit, processing a third message by using a first buffer of a third hardware processing unit … …, processing a tenth message by using a first buffer of a tenth hardware processing unit, processing an eleventh message by using a second buffer of the first hardware processing unit, and processing a twelfth message by using a second buffer of the second hardware processing unit, and so on, which is not described herein again.
It should be noted that the number of buffers in each hardware processing unit is not necessarily equal, and is not limited herein.
According to the scheme, in the message transmission method provided by the application, firstly, a message transmission request of a user is received; the message transmission request comprises a message to be processed and channel information of a controller local area network selected by a user and used for processing the message to be processed; the message to be processed is a message to be sent or a message to be received; then, determining at least one hardware processing unit corresponding to the channel information of the controller area network; and finally, sequentially utilizing the Mth buffer in each hardware processing unit to process the messages to be processed according to the sequence of the hardware processing units, and sequentially utilizing the M +1 th buffer in each hardware processing unit to process the messages to be processed according to the sequence of the hardware processing units when the Mth buffer in each hardware processing unit is used. It CAN be seen that the present application only needs the channel information of the controller local area network selected by the user to process the message to be processed, i.e. which CAN is used to process the message to be processed, and does not need the user to select the port value of the CAN, thereby achieving the purpose of flexibly designating the CAN to send the designated message or receive the designated message.
If the hardware processing unit includes at least two buffers, an embodiment of the method for transmitting a packet provided by the present application, as shown in fig. 3, includes:
s301, receiving a message transmission request of a user.
The message transmission request comprises a message to be processed and channel information of a controller local area network selected by a user and used for processing the message to be processed; the message to be processed is a message to be sent or a message to be received.
It should be noted that the specific implementation process of step S301 is the same as the specific implementation process of step S101, and reference may be made to this.
S302, determining at least one hardware processing unit corresponding to the channel information of the controller area network.
It should be noted that the specific implementation process of step S302 is the same as the specific implementation process of step S102, and reference may be made to this process.
And S303, sequentially utilizing each buffer in the hardware processing units to process the messages to be processed according to the sequence of the hardware processing units.
S304, when the buffers in the hardware processing unit are all used, each buffer in the next hardware processing unit of the hardware processing unit is used for processing the message to be processed in sequence according to the sequence of the hardware processing unit.
For example: the hardware processing unit comprises a total of 10 hardware processing units, each hardware processing unit is provided with two buffers, when a plurality of messages need to be processed, a first buffer of a first hardware processing unit is used for processing a first message, a second buffer of the first hardware processing unit is used for processing a second message, a first buffer of a second hardware processing unit is used for processing a third message, a second buffer of the second hardware processing unit is used for processing a fourth message, and a first buffer of a third hardware processing unit is used for processing a fifth message.
It should be noted that the number of buffers in each hardware processing unit is not necessarily equal, and is not limited herein.
According to the scheme, in the message transmission method provided by the application, firstly, a message transmission request of a user is received; the message transmission request comprises a message to be processed and channel information of a controller local area network selected by a user and used for processing the message to be processed; the message to be processed is a message to be sent or a message to be received; then, determining at least one hardware processing unit corresponding to the channel information of the controller area network; finally, according to the sequence of the hardware processing unit, each buffer in the hardware processing unit is used for processing the message to be processed in sequence, and when the buffers in the hardware processing unit are all used, each buffer in the next hardware processing unit of the hardware processing unit is used for processing the message to be processed in sequence according to the sequence of the hardware processing unit. It CAN be seen that the present application only needs the channel information of the controller local area network selected by the user to process the message to be processed, i.e. which CAN is used to process the message to be processed, and does not need the user to select the port value of the CAN, thereby achieving the purpose of flexibly designating the CAN to send the designated message or receive the designated message.
Another embodiment of the present application provides a message transmission apparatus, as shown in fig. 4, specifically including:
a receiving unit 401, configured to receive a message processing request of a user.
The message processing request comprises a message to be processed and channel information of a controller local area network selected by a user and used for processing the message to be processed; the message to be processed is a message to be sent or a message to be received.
A determining unit 402, configured to determine at least one hardware processing unit corresponding to the channel information of the controller area network.
Optionally, in another embodiment of the present application, an implementation manner of the determining unit 402 specifically includes:
and the query unit is used for querying at least one hardware processing unit corresponding to the channel information of the controller area network in the preset corresponding relation between the channel information of the controller area network and the hardware processing unit.
For specific working processes of the units disclosed in the above embodiments of the present application, reference may be made to the contents of the corresponding method embodiments, which are not described herein again.
A processing unit 403, configured to process the message to be processed by using the hardware processing unit.
For a specific working process of the unit disclosed in the above embodiment of the present application, reference may be made to the content of the corresponding method embodiment, as shown in fig. 1, which is not described herein again.
Optionally, in another embodiment of the present application, an implementation manner of the processing unit 403 specifically includes:
and the first processing subunit is used for processing the message to be processed by utilizing the target hardware processing unit.
The target hardware sending processing unit is an idle hardware processing unit in the plurality of hardware processing units.
For specific working processes of the units disclosed in the above embodiments of the present application, reference may be made to the contents of the corresponding method embodiments, which are not described herein again.
Optionally, in another embodiment of the present application, the hardware processing unit includes at least two buffers, and an implementation manner of the processing unit 403 specifically includes:
and the second processing subunit is used for sequentially utilizing the Mth buffer in each hardware processing unit to process the messages to be processed according to the sequence of the hardware processing units.
Wherein M is a positive integer; the initial value of M is 1; a buffer handles a message to be processed.
And the second processing subunit is further configured to, when the mth buffer in each hardware processing unit is used, sequentially utilize the (M + 1) th buffer in each hardware processing unit to process the to-be-processed packet according to the order of the hardware processing units.
For specific working processes of the units disclosed in the above embodiments of the present application, reference may be made to the contents of the corresponding method embodiments, which are not described herein again.
Optionally, in another embodiment of the present application, the hardware processing unit includes at least two buffers, and an implementation manner of the processing unit 403 specifically includes:
and the third processing subunit is configured to, according to the order of the hardware processing units, sequentially utilize each buffer in the hardware processing units to process the to-be-processed packet.
And the third processing subunit is further configured to, when all buffers in the hardware processing unit are used, sequentially utilize each buffer in the next hardware sending processing unit of the hardware processing unit to process the to-be-processed packet according to the order of the hardware processing unit.
For specific working processes of the units disclosed in the above embodiments of the present application, reference may be made to the contents of the corresponding method embodiments, which are not described herein again.
As can be seen from the above solutions, in the message transmission method provided in the present application, first, the receiving unit 401 receives a message transmission request of a user; the message transmission request comprises a message to be processed and channel information of a controller local area network selected by a user and used for processing the message to be processed; the message to be processed is a message to be sent or a message to be received; then, the determining unit 402 determines at least one hardware processing unit corresponding to the channel information of the controller area network; finally, the processing unit 403 processes the message to be processed by using a hardware processing unit. It CAN be seen that the present application only needs the channel information of the controller local area network selected by the user to process the message to be processed, i.e. which CAN is used to process the message to be processed, and does not need the user to select the port value of the CAN, thereby achieving the purpose of flexibly designating the CAN to send the designated message or receive the designated message.
Another embodiment of the present application provides an electronic device, as shown in fig. 5, including:
one or more processors 501.
A storage device 502 on which one or more programs are stored.
The one or more programs, when executed by the one or more processors 501, cause the one or more processors 501 to implement the method as in any of the above embodiments.
Another embodiment of the present application provides a computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method as described in any of the above embodiments.
In the above embodiments disclosed in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present disclosure may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part. The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a live broadcast device, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those skilled in the art can make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A method for transmitting a message is characterized by comprising the following steps:
receiving a message transmission request of a user; the message transmission request comprises a message to be processed and channel information of a controller area network selected by a user to process the message to be processed; the message to be processed is a message to be sent or a message to be received;
determining at least one hardware processing unit corresponding to channel information of the controller area network;
and processing the message to be processed by utilizing the hardware processing unit.
2. The transmission method according to claim 1, wherein the determining the plurality of hardware processing units corresponding to the channel information of the controller area network includes:
in a preset corresponding relation between channel information of a controller area network and a hardware processing unit, at least one hardware processing unit corresponding to the channel information of the controller area network is obtained through query.
3. The transmission method according to claim 1, wherein the processing the message to be processed by the hardware sending processing unit includes:
processing the message to be processed by using a target hardware processing unit; wherein the target hardware processing unit is an idle hardware processing unit in the plurality of hardware processing units.
4. The transmission method according to claim 1, wherein the hardware processing unit includes at least two buffers, and the processing the packet to be processed by the hardware processing unit includes:
according to the sequence of the hardware processing units, sequentially utilizing the Mth buffer in each hardware processing unit to process the messages to be processed; wherein M is a positive integer; the initial value of M is 1; the buffer processes the message to be processed;
when the Mth buffer in each hardware processing unit is used, the M +1 th buffer in each hardware processing unit is sequentially used for processing the message to be processed according to the sequence of the hardware processing units.
5. The transmission method according to claim 1, wherein the hardware processing unit includes at least two buffers, and the processing the packet to be processed by the hardware processing unit includes:
according to the sequence of the hardware processing unit, each buffer in the hardware processing unit is used for processing the message to be processed in sequence;
when the buffers in the hardware processing unit are all used, each buffer in the next hardware processing unit of the hardware processing unit is used for processing the message to be processed in sequence according to the sequence of the hardware processing unit.
6. A message transmission apparatus, comprising:
a receiving unit, configured to receive a message processing request of a user; the message processing request comprises a message to be processed and channel information of a controller area network selected by a user to process the message to be processed; the message to be processed is a message to be sent or a message to be received;
the determining unit is used for determining at least one hardware processing unit corresponding to the channel information of the controller area network;
and the processing unit is used for processing the message to be processed by utilizing the hardware processing unit.
7. The transmission apparatus according to claim 6, wherein the processing unit comprises:
the first processing subunit is used for processing the message to be processed by utilizing the target hardware processing unit; the target hardware sending processing unit is an idle hardware processing unit in the plurality of hardware processing units.
8. The transmission apparatus according to claim 6, wherein the hardware processing unit comprises at least two buffers, the processing unit comprising:
the second processing subunit is configured to, according to the order of the hardware processing units, sequentially utilize the mth buffer in each hardware processing unit to process the to-be-processed packet; wherein M is a positive integer; the initial value of M is 1; the buffer processes the message to be processed;
the second processing subunit is further configured to, when the mth buffer in each of the hardware processing units is used, sequentially utilize the (M + 1) th buffer in each of the hardware processing units to process the packet to be processed according to the order of the hardware processing units.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-5.
10. A computer storage medium, having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method of any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011570116.0A CN112653607B (en) | 2020-12-26 | 2020-12-26 | Message transmission method and device, electronic equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011570116.0A CN112653607B (en) | 2020-12-26 | 2020-12-26 | Message transmission method and device, electronic equipment and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112653607A true CN112653607A (en) | 2021-04-13 |
CN112653607B CN112653607B (en) | 2022-09-23 |
Family
ID=75363202
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011570116.0A Active CN112653607B (en) | 2020-12-26 | 2020-12-26 | Message transmission method and device, electronic equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112653607B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106950864A (en) * | 2017-04-11 | 2017-07-14 | 重庆长安汽车股份有限公司 | The CAN communication program creating method and device of a kind of entire car controller |
CN108345288A (en) * | 2017-01-23 | 2018-07-31 | 长城汽车股份有限公司 | Automatic generation method, system and the vehicle of CAN signal interface software |
US20180304763A1 (en) * | 2017-04-25 | 2018-10-25 | Subaru Corporation | Control apparatus of electric vehicle |
CN109194691A (en) * | 2018-10-30 | 2019-01-11 | 潍柴动力股份有限公司 | A kind of configuration method of message, configuration device, electric-control motor and vehicle |
CN109800330A (en) * | 2019-01-31 | 2019-05-24 | 北京经纬恒润科技有限公司 | A kind of data processing method and device |
CN111114326A (en) * | 2019-12-31 | 2020-05-08 | 潍柴动力股份有限公司 | Power system integrated control system, method and storage medium |
KR20200067474A (en) * | 2018-12-04 | 2020-06-12 | 이화여자대학교 산학협력단 | Fault injection test method and system for vehicle software based on autosar |
CN111858118A (en) * | 2020-07-01 | 2020-10-30 | 东风汽车集团有限公司 | Hardware platform modular circuit testing method |
-
2020
- 2020-12-26 CN CN202011570116.0A patent/CN112653607B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108345288A (en) * | 2017-01-23 | 2018-07-31 | 长城汽车股份有限公司 | Automatic generation method, system and the vehicle of CAN signal interface software |
CN106950864A (en) * | 2017-04-11 | 2017-07-14 | 重庆长安汽车股份有限公司 | The CAN communication program creating method and device of a kind of entire car controller |
US20180304763A1 (en) * | 2017-04-25 | 2018-10-25 | Subaru Corporation | Control apparatus of electric vehicle |
CN109194691A (en) * | 2018-10-30 | 2019-01-11 | 潍柴动力股份有限公司 | A kind of configuration method of message, configuration device, electric-control motor and vehicle |
KR20200067474A (en) * | 2018-12-04 | 2020-06-12 | 이화여자대학교 산학협력단 | Fault injection test method and system for vehicle software based on autosar |
CN109800330A (en) * | 2019-01-31 | 2019-05-24 | 北京经纬恒润科技有限公司 | A kind of data processing method and device |
CN111114326A (en) * | 2019-12-31 | 2020-05-08 | 潍柴动力股份有限公司 | Power system integrated control system, method and storage medium |
CN111858118A (en) * | 2020-07-01 | 2020-10-30 | 东风汽车集团有限公司 | Hardware platform modular circuit testing method |
Non-Patent Citations (1)
Title |
---|
杨永亮: "基于AUTOSAR标准的汽车通讯及网络管理技术的设计及实现", 《中国优秀硕士学位论文全文数据库-工程科技Ⅱ辑》 * |
Also Published As
Publication number | Publication date |
---|---|
CN112653607B (en) | 2022-09-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11991669B2 (en) | Feedback control channel configuration method and device | |
US9299111B2 (en) | Efficient presence distribution mechanism for a large enterprise | |
CN111523144B (en) | Method and device for performing secure operation aiming at private data of multiple parties | |
US20120297031A1 (en) | Anonymous Signalling | |
CN110336848B (en) | Scheduling method, scheduling system and scheduling equipment for access request | |
CN109242405B (en) | Government affair processing method and device, computer equipment and readable storage medium | |
CN111898057A (en) | Resource distribution method and device | |
US8254976B2 (en) | Ranging collision elimination for group calls in a communication network | |
CN107547425B (en) | Convergence layer data transmission method and system | |
CN110401513B (en) | Data transmission method and device | |
CN112653607B (en) | Message transmission method and device, electronic equipment and computer storage medium | |
CN104519045A (en) | Polluting results of vulnerability scans | |
Wolf | Principles of group testing and an application to the design and analysis of multi-access protocols | |
CN111510309B (en) | Block chain data transmission method, device, equipment and computer readable storage medium | |
CN112422302A (en) | Message broadcasting method, device, network node and computer storage medium | |
CN108076535A (en) | Control method, device, terminal and the storage medium of wireless heterogeneous networks connection | |
CN111131323A (en) | Message transmission method and related device | |
Georgiadis et al. | Stability and capacity through evacuation times | |
Rosenberg et al. | Sampling of the Group Membership in RTP | |
US7818401B2 (en) | Method and apparatus for providing decentralized load distribution | |
EP1472894B1 (en) | Method and system for transmitting messages to terminal groups | |
CN110266814B (en) | Transmission method and transmission device | |
CN104954823A (en) | Image calculation pretreatment device, method thereof and system thereof | |
CN112671577B (en) | Terminal equipment upgrading method and device, network node and computer storage medium | |
CN112788778B (en) | Data sending method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |