CN111030905B - Network transmission method, CAN bus network, storage medium and electronic equipment - Google Patents

Network transmission method, CAN bus network, storage medium and electronic equipment Download PDF

Info

Publication number
CN111030905B
CN111030905B CN201911236943.3A CN201911236943A CN111030905B CN 111030905 B CN111030905 B CN 111030905B CN 201911236943 A CN201911236943 A CN 201911236943A CN 111030905 B CN111030905 B CN 111030905B
Authority
CN
China
Prior art keywords
frame
flow control
logical link
control frame
expanded
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
CN201911236943.3A
Other languages
Chinese (zh)
Other versions
CN111030905A (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.)
Cloudminds Shanghai Robotics Co Ltd
Original Assignee
Cloudminds Robotics 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 Cloudminds Robotics Co Ltd filed Critical Cloudminds Robotics Co Ltd
Priority to CN201911236943.3A priority Critical patent/CN111030905B/en
Publication of CN111030905A publication Critical patent/CN111030905A/en
Application granted granted Critical
Publication of CN111030905B publication Critical patent/CN111030905B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Abstract

The present disclosure relates to a network transmission method, a CAN bus network, a storage medium, and an electronic device. The method is applied to a CAN bus network, wherein the method defines a flow control frame, a first frame and a continuous frame in the CAN bus network in an extension way, wherein the extended flow control frame, the extended first frame and the extended continuous frame all comprise a logic link field, and the method comprises the following steps: a first end sends an expanded first frame to a second end, wherein the expanded first frame comprises a first logic link identifier, and the first end and the second end comprise any two nodes in a CAN bus network; and when receiving the expanded flow control frame sent by the second end, if the expanded flow control frame comprises the first logical link identifier, transmitting the continuous frame subsequent to the first frame to the second end according to the transmission control parameters in the expanded flow control frame.

Description

Network transmission method, CAN bus network, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of communication control, and in particular, to a network transmission method, a CAN bus network, a storage medium, and an electronic device.
Background
The CAN (Controller Area Network) bus is one of the most widely used field buses in the world. At present, a CAN bus is often used as a communication bus of an automobile electronic control unit, and the electronic control units on a vehicle are mounted on the CAN bus, so that data exchange CAN be carried out among the electronic control units, and the problem of data transmission among the automobile electronic control units is solved.
However, the data transmission mode in the current CAN bus network is relatively fixed, and the support for different application scenarios is also poor.
Disclosure of Invention
The present disclosure is directed to a network transmission method, a CAN bus network, a storage medium and an electronic device, so as to solve the problems of the related art.
In order to achieve the above object, a first aspect of the embodiments of the present disclosure provides a network transmission method, where the method is applied to a CAN bus network, where the method extends and defines a flow control frame, a first frame, and a continuous frame in the CAN bus network, where the extended flow control frame, the extended first frame, and the extended continuous frame all include a logical link field, and the method includes:
a first end sends an expanded first frame to a second end, wherein the expanded first frame comprises a first logic link identifier, and the first end and the second end comprise any two nodes in a CAN bus network;
and when receiving the expanded flow control frame sent by the second end, if the expanded flow control frame comprises the first logical link identifier, transmitting the continuous frame subsequent to the first frame to the second end according to the transmission control parameters in the expanded flow control frame.
Optionally, the expanded flow control frame includes a flow control frame added with a logical link identification field on the basis of a flow control frame defined by an ISO15765-2:2016(E) protocol;
the expanded first frame comprises a first frame which is added with a logical link identification field on the basis of the first frame defined by an ISO15765-2:2016(E) protocol;
the extended continuous frames comprise continuous frames with a logical link identification field added on the basis of continuous frames defined by the ISO15765-2:2016(E) protocol.
Optionally, the expanded flow control frame includes a flow control frame using a fourth byte of the flow control frame defined by the ISO15765-2:2016(E) protocol as a logical link identification field;
optionally, when a value of the logical link identifier field of the expanded flow control frame is a predetermined value, the expanded flow control frame is used for a flow control frame defined by a backward compatible ISO15765-2:2016(E) protocol. The predetermined value may be, for example, a value of 0.
A second aspect of the embodiments of the present disclosure provides a network transmission method, where the method is applied to a CAN bus network, where the method defines a flow control frame, a first frame, and a continuous frame in the CAN bus network in an extended manner, where the extended flow control frame, the extended first frame, and the extended continuous frame all include a logical link field, and the method includes:
the second end receives an expanded first frame sent by the first end, wherein the expanded first frame comprises a first logic link identifier;
and if the first end does not have a multi-frame sequence with a second logical link identifier and is not completely transmitted, sending the expanded flow control frame carrying the first logical link identifier to the first end so as to control the first end to transmit the continuous frames with the first logical link identifier.
Optionally, the method further comprises:
if the transmission of the multi-frame sequence with the second logical link identification is not completed at the first end, sending an expanded first flow control frame carrying the second logical link identification to the first end, wherein the first flow control frame further comprises first indication information used for indicating the second end to suspend sending continuous frames with the second logical link identification; and the number of the first and second electrodes,
and after the transmission of the multi-frame sequence with the first logical link identifier is finished, sending an expanded second flow control frame carrying the second logical link identifier to the first end, wherein the second flow control frame further comprises second indication information used for indicating the second end to continuously send continuous frames with the second logical link identifier.
Optionally, the expanded flow control frame includes a flow control frame added with a logical link identification field on the basis of a flow control frame defined by an ISO15765-2:2016(E) protocol;
the expanded first frame comprises a first frame which is added with a logical link identification field on the basis of the first frame defined by an ISO15765-2:2016(E) protocol;
the extended continuous frames comprise continuous frames with a logical link identification field added on the basis of continuous frames defined by the ISO15765-2:2016(E) protocol.
Optionally, the extended flow control frame includes a flow control frame using a fourth byte of the flow control frame defined by the ISO15765-2:2016(E) protocol as a logical link identification field.
Optionally, when a value of the logical link identifier field of the expanded flow control frame is a predetermined value, the expanded flow control frame is used for a flow control frame defined by a backward compatible ISO15765-2:2016(E) protocol.
A third aspect of the embodiments of the present disclosure provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method of the first aspect.
A fourth aspect of the embodiments of the present disclosure provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method of the second aspect.
A fifth aspect of an embodiment of the present disclosure provides an electronic device, including:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of the first aspect.
A sixth aspect of an embodiment of the present disclosure provides an electronic device, including:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of the second aspect.
A seventh aspect of the embodiments of the present disclosure provides a CAN bus network, including a CAN bus and a plurality of node devices connected to the CAN bus;
each node device, when transmitting data, performs the method of any one of the first aspect as a first end;
each of the node devices performs the method of any of the second aspects as a second end when receiving data.
By adopting the technical scheme, the method at least has the following technical effects:
the method comprises the steps of adding a logic link field into a first frame, a flow control frame and a continuous frame in a CAN bus network by extending and defining the first frame, the flow control frame and the continuous frame. Thus, when any two nodes in the CAN bus network communicate, the sending end CAN set the logical link field in the first frame sent to the receiving end, so as to inform the receiving end of the data needed to be sent and the logical link to which the data belongs. Similarly, the receiving end can also indicate the frame to be sent by the sending end by setting a corresponding logical link field in the flow control frame, so that the effect of selecting the logical link to be sent in the communication process is realized, the flexibility of data transmission is further improved, and the data transmission of a plurality of logical links is also supported.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
fig. 1 is a schematic flow chart of a network transmission method provided in an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a data transmission provided by an embodiment of the present disclosure;
fig. 3 is a schematic flow chart of another network transmission method provided by the embodiment of the present disclosure;
fig. 4 is a schematic diagram of an electronic device provided by an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of another electronic device provided by embodiments of the present disclosure;
fig. 6 is a schematic diagram of a CAN bus network according to an embodiment of the disclosure.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
The embodiment of the disclosure provides a network transmission method, which is applied to a CAN bus network, wherein the method defines a flow control frame, a first frame and a continuous frame in the CAN bus network in an expanded manner. And, the expanded flow control frame, the expanded first frame, and the expanded continuous frame all include a logical link field, as shown in fig. 1, the method includes:
and S11, the first end sends the expanded first frame to the second end, the expanded first frame comprises a first logic link identification, and the first end and the second end comprise any two nodes in the CAN bus network.
It should be understood that in the CAN bus network, different nodes CAN transmit data to each other to realize corresponding functions. This data transfer process thus forms the corresponding data link. In a specific implementation, the physical Link of the CAN bus network may be virtually divided into one or more Logical links according to such a data transmission manner, and the Logical links may be distinguished by corresponding Logical Link Identifiers (LLIDs).
For example, in one possible implementation, the first frame may be defined by extension, and the second byte of the first frame is used as a logical link identifier. In this way, when the first peer and the second peer communicate, the first peer may inform the second peer of the data to be sent and the logical link to which the data belongs by setting the logical link identifier in the first frame.
The foregoing is only an example of a possible application scenario of the embodiment of the disclosure, and in another possible implementation manner, the logical link identifier may also be defined in an extended manner in other manners, for example, the logical link identifier may be set in other bytes in the first frame, which is not limited in this disclosure.
And S12, when receiving the expanded flow control frame sent by the second end, if the expanded flow control frame includes the first logical link identifier, transmitting the successive frames subsequent to the first frame to the second end according to the transmission control parameter in the expanded flow control frame.
The expanded flow control frame may be sent by the second end to the first end when it is determined that the first end does not have the multi-frame sequence with the second logical link identifier and transmission is not completed.
By adopting the method, the logic link field is added into the first frame, the flow control frame and the continuous frame by expanding and defining the first frame, the flow control frame and the continuous frame in the CAN bus network. Thus, when any two nodes in the CAN bus network communicate, the sending end CAN set the logical link field in the first frame sent to the receiving end by the sending end, so as to inform the receiving end of the data to be sent and the logical link to which the data belongs. Similarly, the receiving end can also indicate the frame to be sent by the sending end by setting a corresponding logical link field in the flow control frame, so that the effect of selecting the logical link to be sent in the communication process is realized, the flexibility of data transmission is further improved, and the data transmission of a plurality of logical links is also supported.
In order to make those skilled in the art understand the technical solution provided by the embodiment of the present disclosure, the following describes the network transmission method provided by the embodiment of the present disclosure in detail.
First, the logical link identifier described in step S11 will be explained. When the first frame, the flow control frame, and the consecutive frame are defined by extension, the logical link identifier may be represented by one byte in the first frame, the flow control frame, or the consecutive frame (accordingly, the logical link identifier should also be included when defining the correlation length). Illustratively, the fourth byte of the flow control frame, the second byte of the first frame, and the second byte of the consecutive frame may be used as the logical link identifier. In this case, the Logical Link Identifier (LLID) may range from 0 to 255. The value 0 and the value 255 CAN be used as an LLID reserved by the CAN bus network, so that the network transmission method CAN be compatible with the current ISO15765-2:2016(E) standard. That is, values 1-254 may be statically or dynamically assigned for use by different logical links. In this way, when the first end and the second end communicate, the first end may inform the second end that the second end owner needs to send data and a logical link to which the data belongs by setting the logical link identifier in the first frame.
Specifically, referring to the data transmission diagram shown in fig. 2, Node 1(Node 1) and Node 2(Node 2) are any two nodes in the CAN bus network. It is assumed that node 1 is a transmitting end and node 2 is a receiving end. When the node 1 needs to send specified logical link data to the node 2 (in the figure, LLID is 254 for example), it may set LLID in the Extended First Frame (EFF for short) to be the corresponding logical link ID of the data that needs to be sent, so as to inform the node 2 of the data that the own party is going to send and the logical link to which the data belongs. After receiving the head Frame, the node 2 may determine an Extended Flow Control Frame (abbreviated EFC) including a corresponding logical link ID according to the data information included in the head Frame and the receiving capability of the node 2 itself, and send the Flow Control Frame to the node 1, so that the node 1 can send a continuous Frame (abbreviated ECF) according to the Flow Control Frame, thereby achieving an effect of sending data to a specified LLID.
In one possible embodiment, the extension defining the flow control frame, the first frame, and the consecutive frames in the CAN bus network includes:
the expanded flow control frame comprises a flow control frame which is added with a logical link identification field on the basis of the flow control frame defined by the ISO15765-2:2016(E) protocol.
The extended head frame is the head frame which is added with a logical link identification field on the basis of the head frame defined by the ISO15765-2:2016(E) protocol.
For example, on the basis of the First Frame defined by the protocol of ISO15765-2:2016(E), the 2 nd byte or the 3 rd byte of the First Frame may be used as the logical link identification field, specifically, for the First Frame defined by the protocol in which the Data Length (FF _ DL, First Frame Data Length) of the First Frame is less than or equal to 4095, the 2 nd byte may be used as the logical link identification field, and for the First Frame defined by the protocol in which FF _ DL is greater than 4095, the 3 rd byte may be used as the logical link identification field. Similarly, in a possible implementation, the data length CAN _ DL of a single frame may also be selected to use the 2 nd byte or the 3 rd byte as the logical link identification field, so as to obtain the extended single frame and the first frame as shown in table 1.
Figure BDA0002305136260000081
TABLE 1
The extended continuous frames comprise continuous frames with a logical link identification field added on the basis of continuous frames defined by the ISO15765-2:2016(E) protocol.
For example, the 2 nd byte of the continuous frame may be used as the logical link identification field, and the extended continuous frame is shown in table 2. Thus, the compatibility of the network transmission method to the ISO15765-2:2016(E) protocol is ensured by carrying out the extension definition on the basis of the ISO15765-2:2016(E) protocol definition.
Figure BDA0002305136260000082
Figure BDA0002305136260000091
TABLE 2
In another possible embodiment, the extended flow control frame includes a flow control frame using the fourth byte of the flow control frame defined by the ISO15765-2:2016(E) protocol as a logical link identification field. The expanded flow control frame is shown in table 3.
Figure BDA0002305136260000092
TABLE 3
Where STmin in the table above represents the shortest interval time for transmitting adjacent consecutive frames.
In addition, in order to work together with the flow control frame defined by the existing ISO15765-2:2016(E) protocol, the embodiment of the present disclosure may further use the extended flow control frame, in which the value of the logical link identification field is a predetermined value, for a flow control frame defined by a backward compatible ISO15765-2:2016(E) protocol. The predetermined value may be 0, for example. That is to say, the value 0 may be used as the reserved logical link identifier, the value 0 is not allocated to a specific logical link, and when the value of the logical link identifier field of the expanded flow control frame is 0, the expanded flow control frame is processed according to the flow control frame defined by the protocol ISO15765-2:2016 (E).
Fig. 3 is a schematic flow chart of another network transmission method according to an exemplary embodiment of the disclosure, which is applied to a CAN bus network, where the method extends and defines a flow control frame, a first frame, and a consecutive frame in the CAN bus network. And the expanded flow control frame, the expanded first frame and the expanded continuous frame all comprise a logical link field. As shown in fig. 3, the method includes:
and S31, the second end receives the expanded first frame sent by the first end, and the expanded first frame comprises a first logical link identifier.
S32, if there is no multi-frame sequence with a second logical link identifier at the first end and the transmission is not completed, sending an extended flow control frame carrying the first logical link identifier to the first end, so as to control the first end to transmit a continuous frame with the first logical link identifier.
By adopting the method, the logic link field is added into the first frame, the flow control frame and the continuous frame by expanding and defining the first frame, the flow control frame and the continuous frame in the CAN bus network. Thus, when any two nodes in the CAN bus network communicate, the sending end CAN set the logical link field in the first frame sent to the receiving end, so as to inform the receiving end of the data needed to be sent and the logical link to which the data belongs. Similarly, the receiving end can also determine the data to be sent by the sending end and the logical link to which the data belongs according to the received first frame, and indicate the frame to be sent by the sending end by setting the corresponding logical link field in the flow control frame, so that the effect of selecting the logical link to which the data is to be sent according to actual requirements in the communication process is realized, the flexibility of data transmission is further improved, and the data transmission of a plurality of logical links is also supported.
In a possible implementation, the network transmission method shown in fig. 3 further includes:
if the transmission of the multi-frame sequence with the second logical link identification is not completed at the first end, sending an expanded first flow control frame carrying the second logical link identification to the first end, wherein the first flow control frame further comprises first indication information used for indicating the second end to suspend sending continuous frames with the second logical link identification; and the number of the first and second electrodes,
and after the transmission of the multi-frame sequence with the first logical link identifier is finished, sending an expanded second flow control frame carrying the second logical link identifier to the first end, wherein the second flow control frame further comprises second indication information used for indicating the second end to continuously send continuous frames with the second logical link identifier.
Still taking fig. 2 as an example, when the node 2 receives the first frame with the logical link identifier 1 sent by the node 1, it may first detect the communication status between the node 1 and itself, and determine whether there is a multi-frame sequence with other logical link identifiers in transmission at the node 1. If the node 1 does not have a multi-frame sequence with other logical link identifiers being transmitted, the node 2 may send an extended flow control frame carrying a logical link identifier 1 to the node 1, thereby instructing the node 1 to transmit a continuous frame with the logical link identifier 1.
In an embodiment, when the node 2 receives the first frame with the logical link identifier of 1 sent by the node 1, it determines that the multi-frame sequence with the logical link identifier of 254 of the node 1 has not been transmitted yet by detecting the communication state between the node 1 and itself. In this case, the node 2 may send the expanded first streaming frame carrying the logical link identifier 254 to the node 1, thereby instructing the node 2 to suspend sending consecutive frames of the logical link identifier 254.
In specific implementation, as shown in fig. 2, the node 2 may also send, to the node 1, a flow control frame for instructing the node 1 to suspend sending of the consecutive frames with the logical link identifier 254 and a flow control frame for instructing the node 1 to send the consecutive frames with the logical link identifier 1, so as to modify data to be sent by the node 1, which is not limited in this disclosure.
In the previous embodiment, as shown in fig. 2, after the transmission of the multi-frame sequence with logical link id 1 is completed, the node 2 may further send an extended second flow control frame with logical link id 254 to the node 1, so as to instruct the node 1 to continue sending consecutive frames with logical link id 254.
That is, the first frame, the flow control frame, and the continuous frame in the CAN bus network are defined by extension, and the logical link field is added to the first frame, the flow control frame, and the continuous frame. When any two nodes in the CAN bus network communicate, the sending end and the receiving end CAN respectively set corresponding logical link fields in the first frame and the flow control frame sent by the sending end and the receiving end, so that the effect of suspending and changing the data being sent according to actual requirements is realized, and the flexibility of data transmission is improved.
In an embodiment, the extended flow control frame includes a flow control frame added with a logical link identification field on the basis of a flow control frame defined by an ISO15765-2:2016(E) protocol;
the expanded first frame is the first frame which comprises a logical link identification field added on the basis of the first frame defined by an ISO15765-2:2016(E) protocol;
the extended continuous frames comprise continuous frames with a logical link identification field added on the basis of continuous frames defined by the ISO15765-2:2016(E) protocol.
Specifically, the expanded flow control frame comprises a flow control frame using the fourth byte of the flow control frame defined by the ISO15765-2:2016(E) protocol as a logical link identification field. In addition, the expanded flow control frame with the value of the logical link identification field as the predetermined value can be used for a flow control frame defined by a backward compatible ISO15765-2:2016(E) protocol.
Regarding the form of the extended first frame, the flow control frame, and the continuous frame, which have been described in detail in the above embodiments, reference is made to the above description for tables 1 to 3, and details will not be described here.
The disclosed embodiments also provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the network transmission method as shown in fig. 1.
The disclosed embodiments also provide another computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the network transmission method as shown in fig. 3.
An embodiment of the present disclosure further provides an electronic device, including:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the network transmission method as shown in fig. 1.
An embodiment of the present disclosure further provides another electronic device, including:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the network transmission method as shown in fig. 3.
Fig. 4 is a block diagram illustrating an electronic device 400 according to an example embodiment. As shown in fig. 4, the electronic device 400 may be used as a transmitting end in a CAN bus network, and the electronic device 400 may include: a processor 401 and a memory 402. The electronic device 400 may also include one or more of an input/output (I/O) interface 403, and a communications component 404.
The processor 401 is configured to control the overall operation of the electronic device 400, so as to complete all or part of the steps in the network transmission method shown in fig. 1. The memory 402 is used to store various types of data to support operations at the electronic device 400, such as instructions for any application or method operating on the electronic device 400 and application-related data, such as data to be transmitted by a node, etc. The Memory 402 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The I/O interface 403 provides an interface between the processor 401 and other interface modules. The communication component 404 is used for wired or wireless communication between the electronic device 400 and other devices.
In an exemplary embodiment, the electronic Device 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the network transmission method shown in fig. 1.
In another exemplary embodiment, a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the network transmission method as shown in fig. 1 is also provided. For example, the computer readable storage medium may be the memory 402 comprising program instructions executable by the processor 401 of the electronic device 400 to perform the network transmission method as shown in fig. 1.
Fig. 5 is a block diagram illustrating another electronic device 500 in accordance with an example embodiment. As shown in fig. 5, the electronic device 500 may be used as a receiving end in a CAN bus network, and the electronic device 500 may include: a processor 501 and a memory 502. The electronic device 500 may also include one or more of an input/output (I/O) interface 503, and a communications component 504.
The processor 501 is configured to control the overall operation of the electronic device 500, so as to complete all or part of the steps in the network transmission method shown in fig. 3. The memory 502 is used to store various types of data to support operations at the electronic device 500, such as instructions for any application or method operating on the electronic device 500, and application-related data, such as data received by a node. The Memory 502 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The I/O interface 503 provides an interface between the processor 501 and other interface modules. The communication component 504 is used for wired or wireless communication between the electronic device 500 and other devices.
In an exemplary embodiment, the electronic Device 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the network transmission method shown in fig. 3.
In another exemplary embodiment, a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the network transmission method as shown in fig. 3 is also provided. For example, the computer readable storage medium may be the memory 502 described above comprising program instructions that are executable by the processor 501 of the electronic device 500 to perform the network transmission method as shown in fig. 3.
The embodiment of the present disclosure further provides a CAN bus network, referring to a CAN bus network schematic diagram shown in fig. 6, including a CAN bus and a plurality of node devices (illustrated by node device 1 to node device 5 in the diagram) connected to the CAN bus;
each node device is used as a first end to execute the network transmission method shown in fig. 1 when transmitting data;
when each of the node apparatuses receives the data, the network transmission method shown in fig. 3 is executed as the second end.
The method comprises the steps of adding a logic link field into a first frame, a flow control frame and a continuous frame in a CAN bus network by extending and defining the first frame, the flow control frame and the continuous frame. In this way, when any two nodes (for example, node 1 and node 2 shown in fig. 2) in the CAN bus network perform communication, the sending end CAN set the logical link field in the first frame sent to the receiving end, so as to inform the receiving end of the data that the sending end itself needs to send and the logical link to which the data belongs. Similarly, the receiving end can also determine the data to be sent by the sending end and the logical link to which the data belong according to the received first frame, and indicate the frame to be sent by the sending end by setting the corresponding logical link field in the flow control frame, so that the effect of selecting the logical link to which the data is to be sent according to actual requirements in the communication process is realized, the flexibility of data transmission is further improved, and the data transmission of a plurality of logical links is also supported.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that, in the foregoing embodiments, various features described in the above embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, various combinations that are possible in the present disclosure are not described again.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (14)

1. A network transmission method is applied to a Controller Area Network (CAN) bus network, wherein the method defines a flow control frame, a first frame and a continuous frame in the CAN bus network in an extended manner, wherein the extended flow control frame, the extended first frame and the extended continuous frame all comprise a logical link field, and the method comprises the following steps:
a first end sends an expanded first frame to a second end, wherein the expanded first frame comprises a first logic link identifier, and the first end and the second end comprise any two nodes in a CAN bus network;
when receiving an expanded flow control frame sent by the second end, if the expanded flow control frame includes the first logical link identifier, transmitting a continuous frame subsequent to the first frame to the second end according to a transmission control parameter in the expanded flow control frame;
wherein a plurality of logical links are provided between the first end and the second end.
2. The method according to claim 1, wherein the extended flow control frame comprises a flow control frame added with a logical link identification field on the basis of a flow control frame defined by an ISO15765-2:2016(E) protocol;
the expanded first frame comprises a first frame which is added with a logical link identification field on the basis of the first frame defined by an ISO15765-2:2016(E) protocol;
the extended continuous frames comprise continuous frames with a logical link identification field added on the basis of continuous frames defined by the ISO15765-2:2016(E) protocol.
3. The method according to claim 2, wherein the extended flow control frame comprises a flow control frame using a fourth byte of the flow control frame defined by the protocol ISO15765-2:2016(E) as a logical link identification field.
4. The method according to claim 3, wherein the expanded flow control frame is configured to be backward compatible with a flow control frame defined by an ISO15765-2:2016(E) protocol when a value of a logical link identification field of the flow control frame is a predetermined value.
5. A network transmission method is applied to a CAN bus network, wherein the method extension defines a flow control frame, a first frame and a continuous frame in the CAN bus network, wherein the extended flow control frame, the extended first frame and the extended continuous frame all comprise a logical link field, and the method comprises the following steps:
the second end receives an expanded first frame sent by the first end, wherein the expanded first frame comprises a first logic link identifier;
if the first end does not have a multi-frame sequence with a second logical link identifier and is not completely transmitted, sending an expanded flow control frame carrying the first logical link identifier to the first end so as to control the first end to transmit continuous frames with the first logical link identifier;
wherein a plurality of logical links are provided between the first end and the second end.
6. The method of claim 5, further comprising:
if the transmission of the multi-frame sequence with the second logical link identification is not completed at the first end, sending an expanded first flow control frame carrying the second logical link identification to the first end, wherein the first flow control frame further comprises first indication information used for indicating the second end to suspend sending continuous frames with the second logical link identification; and the number of the first and second electrodes,
and after the transmission of the multi-frame sequence with the first logical link identifier is finished, sending an expanded second flow control frame carrying the second logical link identifier to the first end, wherein the second flow control frame further comprises second indication information used for indicating the second end to continuously send continuous frames with the second logical link identifier.
7. The method according to claim 5 or 6, wherein the extended flow control frame comprises a flow control frame added with a logical link identification field on the basis of a flow control frame defined by the ISO15765-2:2016(E) protocol;
the expanded first frame comprises a first frame which is added with a logical link identification field on the basis of the first frame defined by an ISO15765-2:2016(E) protocol;
the extended continuous frames comprise continuous frames with a logical link identification field added on the basis of continuous frames defined by the ISO15765-2:2016(E) protocol.
8. The method as claimed in claim 7, wherein the extended flow control frame comprises a flow control frame using a fourth byte of the flow control frame defined by the protocol ISO15765-2:2016(E) as a logical link identification field.
9. The method according to claim 8, wherein the expanded flow control frame is configured to be backward compatible with a flow control frame defined by an ISO15765-2:2016(E) protocol when a value of a logical link identification field of the flow control frame is a predetermined value.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 5 to 9.
12. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 1 to 4.
13. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 5 to 9.
14. A CAN bus network is characterized by comprising a CAN bus and a plurality of node devices connected with the CAN bus; each node device, when transmitting data, performs the method of any one of claims 1-4 as a first end; the method of any of claims 5 to 9 performed as a second end when each of the node devices receives data.
CN201911236943.3A 2019-12-05 2019-12-05 Network transmission method, CAN bus network, storage medium and electronic equipment Active CN111030905B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911236943.3A CN111030905B (en) 2019-12-05 2019-12-05 Network transmission method, CAN bus network, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911236943.3A CN111030905B (en) 2019-12-05 2019-12-05 Network transmission method, CAN bus network, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111030905A CN111030905A (en) 2020-04-17
CN111030905B true CN111030905B (en) 2021-11-26

Family

ID=70207361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911236943.3A Active CN111030905B (en) 2019-12-05 2019-12-05 Network transmission method, CAN bus network, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111030905B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338270B (en) * 2021-12-24 2023-05-09 深圳市元征科技股份有限公司 Data communication method, device, electronic equipment and storage medium
EP4224801A1 (en) * 2021-12-24 2023-08-09 Launch Tech Co., Ltd. Data communication methods and apparatuses, electronic device and storage medium
CN114448744A (en) * 2022-01-28 2022-05-06 航天科工火箭技术有限公司 CAN data analysis method, device, equipment and medium for multiplexing identification number
CN114513385B (en) * 2022-03-24 2024-04-02 深圳市元征科技股份有限公司 Data transmission method, device, electronic equipment and storage medium
CN114827242B (en) * 2022-04-24 2023-10-20 深圳市元征科技股份有限公司 Method, device, equipment and medium for correcting flow control frame
CN116886800B (en) * 2023-09-04 2023-12-05 四川图灵思智能科技有限公司 Communication method and storage medium based on HBES (heterojunction bipolar transistor) extension communication protocol

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018179A (en) * 2007-03-07 2007-08-15 今创集团有限公司 Data bus bridge and its working method
CN101796780A (en) * 2007-09-03 2010-08-04 空中客车运作股份公司 Frame switching device
CN104579862A (en) * 2013-10-11 2015-04-29 通用电气航空系统有限责任公司 Method of controlling data communication

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001091382A1 (en) * 2000-05-22 2001-11-29 Nokia Corporation System and method for providing a connection in a communication network
US8913549B2 (en) * 2011-08-11 2014-12-16 Cortina Access, Inc. Congestion control in an optical line terminal
CN206158788U (en) * 2016-11-10 2017-05-10 成都金自天正智能控制有限公司 Dangerous system is kept away to iron ore safety
CN108881014B (en) * 2017-05-12 2021-10-01 北京猎户星空科技有限公司 Data sending system and method
US10437745B2 (en) * 2018-01-05 2019-10-08 Denso International America, Inc. Mobile de-whitening

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018179A (en) * 2007-03-07 2007-08-15 今创集团有限公司 Data bus bridge and its working method
CN101796780A (en) * 2007-09-03 2010-08-04 空中客车运作股份公司 Frame switching device
CN104579862A (en) * 2013-10-11 2015-04-29 通用电气航空系统有限责任公司 Method of controlling data communication

Also Published As

Publication number Publication date
CN111030905A (en) 2020-04-17

Similar Documents

Publication Publication Date Title
CN111030905B (en) Network transmission method, CAN bus network, storage medium and electronic equipment
BR112020008979A2 (en) rule processing method and apparatus, integrated circuit system, information transmission apparatus, computer program product, computer-readable storage medium and communications system
EP3099032A1 (en) A load balancing method, device, system and computer storage medium
CN105577500B (en) The correlating method and device of VXLAN and tunnel
CN105389278B (en) A kind of slave serial communication method based on CAN bus
CN112468396B (en) Method, device and system for programming host network performance requirements
CN101610192A (en) A kind of communication slave, bus cascade method and system
JP2017535195A (en) SAS system, SAS system traversal method and apparatus
CN109032704B (en) Data processing method and device
CN112073283A (en) Method for generating forwarding table and forwarding equipment
CN108810881B (en) Network distribution method, equipment and system
EP3240251A1 (en) Line card determination, determination processing method and device, and line card determination system
US10162777B2 (en) Transmission unit with checking function
CN109005116B (en) Message forwarding method and device
EP3139562A1 (en) Network protocol configuration method and device
EP2953299A1 (en) Protection switching method, system and node
CN111464441A (en) Communication method and device
EP3065445A1 (en) Method, cse, and system for transmitting m2m application request
CN113261249A (en) Data transmission method, related equipment and computer storage medium
CN105681187A (en) VRRP (Virtual Router Redundancy Protocol) backup set management method and related device
CN115373755A (en) Parameter configuration method, device, equipment and storage medium
CN103051568B (en) File transmitting method, device and switch
CN107454021B (en) Communication method and device
CN113572629A (en) Message transmission method, terminal and storage medium
CN112804716B (en) Configuration method and device of data limit value and storage medium

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
TA01 Transfer of patent application right

Effective date of registration: 20210304

Address after: 201111 2nd floor, building 2, no.1508, Kunyang Road, Minhang District, Shanghai

Applicant after: Dalu Robot Co.,Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant before: Shenzhen Qianhaida Yunyun Intelligent Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 201111 Building 8, No. 207, Zhongqing Road, Minhang District, Shanghai

Patentee after: Dayu robot Co.,Ltd.

Address before: 201111 2nd floor, building 2, no.1508, Kunyang Road, Minhang District, Shanghai

Patentee before: Dalu Robot Co.,Ltd.

CP03 Change of name, title or address