CN111314194A - Data transmission system and method based on multi-level logical operation - Google Patents

Data transmission system and method based on multi-level logical operation Download PDF

Info

Publication number
CN111314194A
CN111314194A CN202010299168.2A CN202010299168A CN111314194A CN 111314194 A CN111314194 A CN 111314194A CN 202010299168 A CN202010299168 A CN 202010299168A CN 111314194 A CN111314194 A CN 111314194A
Authority
CN
China
Prior art keywords
arbitration
communication node
bus
identifier
data
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.)
Pending
Application number
CN202010299168.2A
Other languages
Chinese (zh)
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.)
United Huaxin Electronics Co Ltd
Original Assignee
United Huaxin Electronics 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 United Huaxin Electronics Co Ltd filed Critical United Huaxin Electronics Co Ltd
Priority to CN202010299168.2A priority Critical patent/CN111314194A/en
Publication of CN111314194A publication Critical patent/CN111314194A/en
Pending legal-status Critical Current

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
    • 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/4013Management of data rate on the bus
    • 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/40143Bus networks involving priority mechanisms
    • 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/40169Flexible bus arrangements
    • H04L12/40176Flexible bus arrangements involving redundancy
    • H04L12/40182Flexible bus arrangements involving redundancy by using a plurality of communication lines
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Bus Control (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a data transmission system and a method based on multi-level logic operation, wherein the system comprises the following steps: at least two pairs of full duplex transmission data buses, a multi-level line with multiple input ports, a logic element calculation circuit and a plurality of communication nodes; a pair of arbitration buses and a plurality of conduction control units. The invention can realize the high-speed and real-time communication requirements among a plurality of communication nodes by utilizing the high-speed bus in the multipoint interconnection application occasion, the arbitration bus realizes the automatic decision-making selection of the winner communication node, the temporary use right of the data bus of the winner communication node is granted, the arbitration conflict is reduced, and simultaneously, the wiring is simple, and the transmission efficiency and the reliability are high.

Description

Data transmission system and method based on multi-level logical operation
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data transmission system and method based on multi-level logical operations.
Background
A CAN (Controller Area Network) bus has been widely used in the fields of automobile application, industrial automation, and the like because of its advantages of high reliability, real-time performance, and the like.
The CAN bus only comprises a pair of differential signal lines, adopts serial data transmission and has simple structure; the method supports multi-master communication, namely each node device can actively initiate data communication to other node devices on the network at any time, and the communication sequence is determined according to the priority of the address information of each node device; when a plurality of node devices simultaneously initiate communication, the avoidance priority with low priority is high. However, the bus rate is limited, and is up to 1Mbps (the communication distance is less than 40 meters), and the data of the CAN bus CAN transmit at most 8 bytes of effective data at a time, which cannot meet the design requirement of large data volume high-speed communication among a plurality of node devices. In addition, when there are many node devices hanging on the bus, communication conflicts easily occur, only one node device is allowed to acquire the ownership of the bus for data transmission by arbitration each time, and other node devices have to wait, which also limits the bus rate.
Disclosure of Invention
The invention aims to provide a data transmission system and a data transmission method based on multi-level logic operation, which can realize high-speed and real-time communication requirements among a plurality of communication nodes by utilizing a high-speed bus in a multipoint interconnection application occasion, realize automatic decision-making selection of a winner communication node by an arbitration bus, grant the use right of a temporary data bus of the winner communication node, reduce arbitration conflict, and have the advantages of simple wiring, high transmission efficiency and high reliability.
The technical scheme provided by the invention is as follows:
the invention provides a data transmission system based on multi-level logic operation, which comprises:
the data buses are used for transmitting data according to a data frame mode, the data transmission is started when an arbitration frame starts, and the data transmission is stopped before the arbitration frame ends; the arbitration frame comprises a plurality of arbitration time periods, and the number of the arbitration time periods is not lower than the number of the data buses;
a multi-level and logic circuit, a plurality of communication nodes; each communication node is connected with each data bus; the multi-level AND logic circuit includes:
a pair of arbitration buses and a plurality of conduction control units;
the arbitration bus is used for carrying out logic operation according to the identifier sent by the communication node and selecting a winner communication node from a plurality of pass nodes so that the winner communication node carries out data transmission in the next arbitration frame; the identifier is formed of a plurality of multi-level symbols;
the number of the conduction control units is the same as that of the communication nodes, and each communication node is connected with the conduction control units in a one-to-one correspondence manner;
the communication node and the conduction control unit are connected in series and then are connected to the arbitration bus in parallel;
the conduction control unit is used for controlling the conduction of lines among the communication node, the conduction control unit and the arbitration bus according to logic level;
the communication node comprises:
the arbitration module is used for detecting whether the communication node has a data sending requirement, sending an identifier of the communication node and detecting whether the communication node obtains arbitration success of an arbitration bus or not;
a data module for transmitting data frames;
the control module is connected with the arbitration module and the data module and is used for controlling the arbitration module to send the communication node identifier to the arbitration bus in the current arbitration time period to participate in transmission right election when the arbitration module detects that the data transmission demand exists;
the arbitration module is also used for judging whether the transmission right election is successful or not;
the control module is further configured to allocate a pair of corresponding data buses as a target data bus when the election is successful, control the data module to send data of the data module to the target data bus, and control the arbitration module to stop sending the communication node identifier to the arbitration bus until the next arbitration frame starts.
Further preferably, the conduction control unit includes:
a diode and a resistor;
each communication node is connected with the cathode of a diode and one end of a resistor, and the anode of the diode and the other end of the resistor are connected with the arbitration bus;
the conduction control unit is further used for controlling the conduction of the line between the communication node and the conduction control unit when the identifier of the communication node is lower than the logic level;
the arbitration bus is further used for carrying out multi-level and logic operation on the identifiers of the communication nodes, and selecting the communication node with the identifier same as the logic level from a plurality of pass nodes as the winning communication node.
Further preferably, the conduction control unit includes:
a diode and a resistor;
each communication node is connected with the anode of a diode and one end of a resistor, and the cathode of the diode and the other end of the resistor are connected with the arbitration bus;
the conduction control unit is further used for controlling the conduction of the line between the communication node and the conduction control unit when the identifier of the communication node is higher than the logic level;
the arbitration bus is further used for carrying out multi-level or logic operation on the identifiers of the communication nodes, and selecting the communication node with the identifier same as the logic level from a plurality of pass nodes as the winning communication node.
The invention also provides a data transmission method based on multi-level logic operation, which comprises the following steps:
when the current arbitration time period has a data transmission requirement, transmitting the communication node identifier to the arbitration bus to participate in transmission right competition selection;
the communication node judges whether the identifier is successfully transmitted; the identifier comprises a number of level values;
when the identifier is successfully sent, the election is successful, a pair of corresponding data buses is allocated as a target data bus, the data of the data bus is sent to the target data bus, and the communication node identifier is stopped being sent to the arbitration bus;
and the arbitration bus carries out logic operation according to the identifier sent by the communication node, and selects a winner communication node from a plurality of pass nodes, so that the winner communication node carries out data transmission through the data bus in the next arbitration frame.
Further preferably, the conduction control unit includes: a diode and a resistor; each communication node is connected with the cathode of a diode and one end of a resistor, and the anode of the diode and the other end of the resistor are connected with the arbitration bus;
the arbitration bus carries out logic operation according to the identifier sent by the communication node, and selects a winner communication node from a plurality of pass nodes, so that the winner communication node carries out data transmission through the data bus in the next arbitration frame, and the method comprises the following steps:
the arbitration bus carries out multi-level and logic operation on the identifier of the communication node;
when the identifier of the communication node is lower than the logic level, conducting a line between the communication node and the conduction control unit;
the arbitration bus selects a passing node with the same identifier and logic level as the winning communication node from a plurality of passing nodes, so that the winning communication node performs data transmission through a data bus in the next arbitration frame.
Further preferably, the conduction control unit includes: a diode and a resistor; each communication node is connected with the anode of a diode and one end of a resistor, and the cathode of the diode and the other end of the resistor are connected with the arbitration bus;
the arbitration bus carries out logic operation according to the identifier sent by the communication node, and selects a winner communication node from a plurality of pass nodes, so that the winner communication node carries out data transmission through the data bus in the next arbitration frame, and the method also comprises the following steps:
the arbitration bus carries out multilevel OR logic operation on the identifier of the communication node;
when the identifier of the communication node is higher than the logic level, conducting a line between the communication node and the conduction control unit;
the arbitration bus selects a passing node with the same identifier and logic level as the winning communication node from a plurality of passing nodes, so that the winning communication node performs data transmission through a data bus in the next arbitration frame.
Further preferably, the communication node further comprises, after determining whether the identifier is successful, the steps of:
and when the election fails and the current time is not the last arbitration time period in the current arbitration frame, taking the next arbitration time period as the time for sending the identifier.
Further preferably, before sending the communication node identifier to the arbitration bus to participate in the right-to-send election when there is a need to send data in the current arbitration period, the method includes the steps of:
when all the pass nodes do not send the communication node identifiers to the arbitration bus to participate in the transmission right election in the current arbitration time period, the communication nodes which acquire the data bus ownership in the previous arbitration time period still have data to be transmitted, and when the idle data bus exists in the arbitration in the current time period, the data to be transmitted is sent to the target data bus.
Further preferably, when there is a need to transmit data in the current arbitration period, the step of transmitting the communication node identifier to the arbitration bus to participate in the right-to-transmit election includes:
in the current arbitration time period, a communication node with a data transmission requirement sends an identifier of the communication node to an arbitration bus if the transmission probability of the identifier of the communication node is not reached;
the communication node comprises the following steps after judging whether the identifier is successfully transmitted:
judging whether an idle data bus exists or not when the data bus is successful;
when the communication node detects that the identifier is successfully sent, then the election is successful, and arbitrates that no idle data bus exists at the current time, the communication node reduces the probability of sending the communication node identifier to the arbitrated bus within a current arbitration frame.
The data transmission system and the method based on multi-level logic operation can realize the high-speed and real-time communication requirements among a plurality of communication nodes by utilizing a high-speed bus in a multipoint interconnection application occasion, realize automatic decision-making selection of a winner communication node by an arbitration bus, grant the temporary use right of the data bus of the winner communication node, reduce arbitration conflict, and have the advantages of simple wiring, high transmission efficiency and high reliability.
Drawings
The above features, technical features, advantages and implementations of a data transfer system and method based on multi-level logic operations will be further described in the following detailed description of preferred embodiments in a clearly understandable manner in conjunction with the accompanying drawings.
FIG. 1 is a schematic block diagram of one embodiment of a data transfer system based on multi-level logic operations;
FIG. 2 is a schematic diagram of another embodiment of a data transfer system based on multi-level logic operations;
FIG. 3 is a schematic diagram of another embodiment of a data transfer system based on multi-level logic operations;
FIG. 4 is a schematic diagram of another embodiment of a data transfer system based on multi-level logic operations;
FIG. 5 is a flow diagram of one embodiment of a method for data transfer based on multi-level logic operations;
FIG. 6 is a flow diagram of another embodiment of a method of data transfer based on multi-level logical operations;
FIG. 7 is a flow diagram of another embodiment of a method of data transfer based on multi-level logical operations;
FIG. 8 is a flow diagram of another embodiment of a method for data transfer based on multi-level logic operations.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically illustrated or only labeled. In this document, "one" means not only "only one" but also a case of "more than one".
In an embodiment of the present invention, as shown in fig. 1 and fig. 2, a data transmission system based on multi-level logic operation includes: the data bus Dn is used for transmitting data according to a data frame mode, starts to transmit data when an arbitration frame starts, and stops transmitting data before the arbitration frame ends; the arbitration frame comprises a plurality of arbitration time periods, and the number of the arbitration time periods is not less than the number of the data buses Dn;
a multi-level line and logic circuit, a plurality of communication nodes Cn; each communication node Cn is connected to a respective data bus Dn; the multi-level AND logic circuit includes: a pair of arbitration buses A and a plurality of conduction control units;
the arbitration bus A is used for carrying out logic operation according to the identifier sent by the communication node Cn and selecting a winner communication node from the plurality of pass nodes so that the winner communication node carries out data transmission in the next arbitration frame; the identifier is formed of a plurality of multi-level symbols;
the number of the conduction control units is the same as that of the communication nodes Cn, and each communication node Cn is connected with the conduction control units in a one-to-one correspondence manner;
the communication node Cn is connected with the conduction control unit in series and then is connected to the arbitration bus A in parallel;
the conduction control unit is used for controlling the conduction of lines among the communication node Cn, the conduction control unit and the arbitration bus A according to the logic level;
specifically, an arbitration frame and a data frame on the CAN bus are multiplexed on the same bus in a time-sharing manner, and the arbitration frame limits the transmission rate of the data frame. In order to increase the transmission rate of the data bus Dn, the arbitration bus a is separated from the data bus Dn. Arbitration information, namely identifiers, is sent on an arbitration bus a, data information is sent on a data bus Dn, which may adopt a completely different high-speed channel coding transmission scheme than the arbitration bus a, the data bus Dn has a higher symbol modulation rate to meet high-speed transmission requirements, and the arbitration bus a has a lower symbol modulation rate to ensure arbitration reliability.
The data transmission delay caused by the fact that the dominant communication node cannot be selected in a decision mode due to collision is reduced. However, too many data buses Dn increase the manufacturing cost, and in practical applications, an adaptive adjustment compromise between transmission efficiency and manufacturing cost is required.
The invention adopts a structured data block mode to carry out data transmission, the basic transmission unit is a data frame, and the length of the data frame is set to ensure that the time spent on transmitting 1 data frame does not exceed the time interval specified by a system. This prescribed time interval is called an arbitration frame. It is specified that any communication node Cn can only transmit data frames at the beginning of an arbitration frame and stop data transmission before the end of the arbitration frame. The arbitration bus A transmits identifiers according to arbitration frames, one arbitration frame is transmitted in one arbitration frame, 1 arbitration frame comprises a plurality of arbitration time periods, the arbitration time periods are used for the communication nodes Cn to send communication node identifiers, and the identifiers are used for arbitration when the communication nodes Cn collide. The data bus Dn transmits data in data frames, and the time interval (or arbitration frame) for transmitting one data frame may be the same as or different from the time interval (or arbitration frame) for transmitting one arbitration frame. Without simultaneously increasing the complexity of the design. The arbitration frame with the same frame number and the data frame may have the same starting time or a fixed time offset. The data transmission rates of the data bus Dn and the arbitration bus a are different, but the arbitration frame lengths are the same, and the two have a relatively fixed phase difference, typically 0.
Since there are at least 2 pairs of data buses Dn, 1 arbitration frame contains at least 2 arbitration time periods, and a winning communication node is decided from the communication nodes Cn having data transmission requirements to transmit data. The number of arbitration periods contained in each arbitration frame is not less than the number of data buses Dn, and may be equal to or greater than the number of data buses Dn. If smaller, it is liable to cause waste of the data bus Dn.
In each arbitration period of each arbitration frame, the communication node Cn that wins arbitration, i.e., the winning communication node, will obtain the right to transmit the data frame at the next arbitration frame. The data frame includes an identifier of the receiving device for the receiving device to identify and receive.
The communication node Cn includes:
the arbitration module 10 is used for detecting whether the self has a data sending requirement, sending a self identifier and detecting whether the current communication node obtains arbitration success of an arbitration bus;
a data module 20 for transmitting data frames;
the control module 30 is connected with the arbitration module 10 and the data module 20, and is used for controlling the arbitration module 10 to send the communication node identifier to the arbitration bus A in the current arbitration time period to participate in the right-of-sending election when the data sending requirement of the arbitration module 10 is detected;
the arbitration module 10 is further configured to determine whether the transmission right election is successful;
the control module 30 is further configured to allocate a pair of corresponding data buses Dn as a target data bus Dn when the election succeeds, control the data module 20 to send its own data to the target data bus Dn, and control the arbitration module 10 to stop sending the identifier of the communication node to the arbitration bus a.
Specifically, each communication node Cn has a unique identifier for identifying its own identity, and is composed of one or more level values. Each communication node Cn must first transmit its own identifier, which is composed of several level values, on the arbitration bus a before transmitting data. An arbitration frame is composed of a plurality of arbitration time periods, one arbitration time period can be won by one or more communication nodes Cn, and only one winning communication node can be selected in a decision mode in the last arbitration time period of the current arbitration frame. The communication node Cn can transmit data on the data bus Dn only after the current arbitration frame obtains the ownership of the data bus Dn. The arbitration bus A is transmitted according to arbitration frames, one arbitration frame at least comprises one identifier, the time interval for transmitting one arbitration frame is called an arbitration frame, at least 2 arbitration time periods are contained in 1 arbitration frame, the number of the arbitration time periods is at least equal to the number of the data buses Dn, and the arbitration time periods are used for the communication node Cn to send the identifiers.
For example, the data transmission system based on multi-level logic operation includes 1 pair of arbitration buses a and 2 pairs of data buses Dn, the first arbitration frame T1 includes a first arbitration period T11 and a second arbitration period T12, the second arbitration frame T2 includes a first arbitration time T21 and a second arbitration time T22, and the first arbitration frame T1 and the second arbitration frame T2 both allow 2 identifiers to be transmitted for arbitration. Based on the above assumption, if a certain communication node Cn has a data transmission requirement, if the current time is within the first arbitration time period T11 of the first arbitration frame T1, the latest arbitration time period to be used can be selected, and data transmission is performed through the idle data bus Dn, that is, the second arbitration time period T12 of the first arbitration frame T1, and data transmission is performed through the idle data bus Dn. The first arbitration period of the next arbitration frame closest to the current arbitration period may also be selected for data transmission over the free data bus Dn, i.e., the first arbitration period T21 of the second arbitration frame T2 for data transmission over the free data bus Dn. The data bus Dn can be more fully utilized by using the former, and the data transmission time is reduced; using the latter is a bit simpler in arbitration management. When the start of the current arbitration period has arrived, the communication node Cn transmits its own identifier bit by bit onto the arbitration bus a.
The arbitration bus A carries out logic operation according to identifiers sent by all communication nodes Cn participating in transmission right competition to obtain logic levels, then the communication of the lines among the communication nodes Cn, the conduction control unit and the arbitration bus A is controlled through the logic levels and the connection mode among the conduction control unit, the communication nodes Cn and the arbitration bus A, the communication nodes Cn corresponding to the conduction lines can successfully send the communication node identifiers to the arbitration bus A, and the arbitration time period wins. And by analogy, the communication node which wins in a plurality of arbitration time periods which are in front of the arbitration frame and have the same number with the data buses is the winning communication node in the arbitration frame. These winning nodes have data bus usage and transmit data in the next data frame.
After the communication node Cn sends an identifier on the arbitration bus, the communication node Cn monitors the logic level on the arbitration bus A; when the logic level on the arbitration bus A is different from the identifier sent by the communication node Cn, the sending of the identifier is considered to be failed, and the sending of the subsequent identifier in the identifiers of the passing node is stopped; when the logic level on the arbitration bus A is the same as the logic level sent by the communication node Cn, the communication node Cn is indicated to successfully send the identifier, and the passing node continues to send the next identifier in the identifiers; and when the communication node Cn successfully sends all the identifiers in the identifiers, the communication node Cn considers that the identifiers are successfully sent, and successfully performs election to obtain the sending right.
When a plurality of communication nodes Cn almost simultaneously transmit identifiers, the communication nodes Cn which can successfully transmit all the identifiers to the arbitration bus A obtain the wins of the competition of the current arbitration frame for the transmission right and obtain the ownership of the data bus Dn. If there is a free data bus Dn, the communication node Cn allocates a corresponding pair of data buses Dn for data transmission, while stopping transmitting its own identifier within the arbitration frame.
If part of the communication nodes Cn detect that the sending of the identifier fails and there is an arbitration time period to be used in the arbitration frame, the part of the communication nodes Cn may continue to participate in the subsequent arbitration, and strive to obtain the right of the idle data bus Dn.
Such as: the data transmission system based on the multi-level logic operation includes 1 pair of arbitration buses a and 2 pairs of data buses Dn, and it is assumed that 3 arbitration periods (a first arbitration period T11, a second arbitration period T12, and a third arbitration period T13) are included in the first arbitration frame T1, that is, 3 arbitrations are allowed. Based on the foregoing assumption, if the communication node C1 obtains arbitration wins in the first arbitration period T11 and the second arbitration period T12, the communication node C1 obtains data transmission on a pair of idle data buses Dn as the target data bus Dn, while the communication node Cn stops transmitting its own identifier in the third arbitration period T13 within the first arbitration frame T1, i.e., does not participate in the transmission of the 3 rd arbitration period. Since the communication node C1 has already obtained the data transmission opportunity in the arbitration frame, it does not participate in the subsequent contention of the data bus Dn, and can give other communication nodes Cn opportunities to increase fairness. When the starting time of the current arbitration time period is reached, the communication node Cn transmits its own identifier to the arbitration bus a bit by bit.
If the communication node Cn does not win the arbitration win for the 1 st arbitration period T11 of the first arbitration frame T1, the communication node Cn can continue to participate in the 2 nd arbitration of the first arbitration frame T1, resending its own identifier for the 1 st arbitration period T12. Arbitration 3 of the first arbitration frame T1 may also be engaged if arbitration 2 fails. If the 2 nd arbitration is successful and the communication node Cn has obtained a data transmission opportunity, the 3 rd arbitration is not participated in.
The communication node Cn which does not compete successfully has the opportunity of participating in arbitration for obtaining the transmission right for multiple times in an arbitration frame, and can continuously transmit the identifier. In the next arbitration frame, all the devices participate in arbitration again, and win the win of the transmission right of the new round of arbitration frame. Because a plurality of pairs of data buses Dn exist, a plurality of communication nodes Cn can compete to obtain the ownership of the data buses Dn, namely a plurality of winning communication nodes in a plurality of arbitration frames, and therefore the data transmission rate is improved.
In another embodiment of the present invention, as shown in fig. 1, 2 and 3, a data transmission system based on multi-level logic operation includes:
on the basis of the previous embodiment, further refinement is made as follows:
the conduction control unit includes: a diode and a resistor;
each communication node Cn is connected with the cathode of the diode and one end of the resistor, and the anode of the diode and the other end of the resistor are connected with the arbitration bus A;
the conduction control unit is further used for controlling the conduction of the line between the communication node Cn and the conduction control unit when the identifier of the communication node Cn is lower than the logic level;
the arbitration bus A is further used for carrying out multi-level AND logic operation on the identifier of the communication node Cn, and selecting the communication node with the identifier same as the logic level from a plurality of passing nodes as a winning communication node.
Specifically, the multi-level and logic circuit is composed of a pair of arbitration buses A and a plurality of conduction control units, and each communication node Cn is connected with one conduction control unit and then connected to the arbitration buses A in parallel.
The arbitration bus a uses a multi-level encoding to transmit the priority encoding. For example, for a twisted pair arbitration bus A with a bus voltage fluctuating between 0V and 5V, it is assumed that less than 0.5V is defined as symbol 0, between 0.5V and 1.5V is defined as symbol 1, between 1.5V and 2.5V is defined as symbol 2, between 2.5V and 3.5V is defined as symbol 3, between 3.5V and 4.5V is defined as symbol 4, and more than 4.5V is defined as symbol 5. The output terminals of the communication node Cn are connected in parallel to the arbitration bus a by an interface circuit shown in fig. 3 below. Wherein 1, 2, … …, n are communication node numbers, and the right vertical line is an arbitration bus A.
The arbitration bus a can automatically arbitrate to select the lower level output as the final actual level output. Assume that the output levels of the respective communication nodes Cn are 0, 1, 2, 3, 4, and 5. If the communication node C1 outputs the identifier bit of 0 in the current arbitration period, the logic level of the arbitration bus a after the and logic operation will be level 0 no matter which identifier bit the other communication nodes Cn output in the current arbitration period, and the communication node Cn outputting the identifier bit of 0 wins the current arbitration period. If the communication node C1 outputs the identifier bit of 1 in the current arbitration period, the communication node C2 outputs the identifier bit of 3 in the current arbitration period, the remaining communication nodes Cn output the identifier bit of more than 0 in the current arbitration period, and the logical level of the arbitration bus a after performing the and logical operation is 1, then the arbitration bus a automatically selects the lowest level as the final actual level output when the communication node Cn sends the communication node identifier to the arbitration bus a, and if the identifier bit sent between these communication nodes Cn is 5 at the highest, the communication node Cn outputting the identifier bit of 5 wins the current arbitration period. The special interface can realize automatic priority identification of single level of a physical layer, and the winner of each arbitration time period in the current arbitration frame is selected through arbitration, so that the winning communication node of the current arbitration frame is selected.
In another embodiment of the present invention, as shown in fig. 1, 2 and 4, a data transmission system based on multi-level logic operation includes:
on the basis of the previous embodiment, further refinement is made as follows:
the conduction control unit includes:
a diode and a resistor;
each communication node Cn is connected with the anode of the diode and one end of the resistor, and the cathode of the diode and the other end of the resistor are connected with the arbitration bus A;
the conduction control unit is further used for controlling the conduction of the line between the communication node Cn and the conduction control unit when the identifier of the communication node Cn is higher than the logic level;
the arbitration bus A is further used for carrying out multi-level or logic operation on the identifier of the communication node Cn, and selecting the communication node with the identifier same as the logic level from a plurality of passing nodes as a winning communication node.
Specifically, the multi-level and logic circuit is composed of a pair of arbitration buses A and a plurality of conduction control units, and each communication node Cn is connected with one conduction control unit and then connected to the arbitration buses A in parallel.
The arbitration bus a uses a multi-level encoding to transmit the priority encoding. For example, for a twisted pair arbitration bus A with a bus voltage fluctuating between 0V and 5V, it is assumed that less than 0.5V is defined as symbol 0, between 0.5V and 1.5V is defined as symbol 1, between 1.5V and 2.5V is defined as symbol 2, between 2.5V and 3.5V is defined as symbol 3, between 3.5V and 4.5V is defined as symbol 4, and more than 4.5V is defined as symbol 5. The communication node C1, the communication nodes C2, … …, and the communication node Cn are connected in parallel to the arbitration bus a by an interface circuit shown in fig. 4 below. Wherein 1, 2, … …, n are communication node numbers, and the right vertical line is an arbitration bus A.
The arbitration bus A CAN automatically arbitrate and select the output with higher level as the final actual level output, and the priority coding logic opposite to that of the CAN bus is realized. Assume that the output levels of the respective communication nodes Cn are 0, 1, 2, 3, 4, and 5. If the communication node C1 outputs the identifier bit of 0 in the current arbitration period, the logic level of the arbitration bus a after the and logic operation will be level 0 no matter which identifier bit the other communication nodes Cn output in the current arbitration period, and the communication node Cn outputting the identifier bit of 0 wins the current arbitration period. If the communication node C1 outputs the identifier bit of 1 in the current arbitration period, the communication node C2 outputs the identifier bit of 3 in the current arbitration period, the remaining communication nodes Cn outputs the identifier bit of more than 0 in the current arbitration period, and the logical level of the arbitration bus a after performing the and logical operation is 1, then the arbitration bus a automatically selects the highest level as the final actual level output when the communication node Cn sends the communication node identifier to the arbitration bus a, and if the identifier bit sent between these communication nodes Cn is 5 at the highest, the communication node Cn outputting the identifier bit of 5 wins the current arbitration period. The special interface can realize automatic priority identification of single level of a physical layer, and the winner of each arbitration time period in the current arbitration frame is selected through arbitration, so that the winning communication node of the current arbitration frame is selected.
Preferably, each communication node Cn is connected to a buffer, then to a conduction control unit, and then to the arbitration bus a in parallel.
In another embodiment of the present invention, as shown in fig. 1, fig. 2 and fig. 5, a data transmission method based on multi-level logic operation is based on the data transmission system based on multi-level logic operation described in any one of the previous embodiments, and includes:
s100, when the data transmission requirement exists in the current arbitration time period, a communication node identifier is transmitted to an arbitration bus A to participate in transmission right election;
s200, the communication node Cn judges whether the identifier is successfully sent; the identifier comprises a plurality of level values; if yes, go to step S500 and then to step S600; otherwise, go to step S300;
s300, judging whether the current time is the last arbitration time period of the current arbitration frame; if yes, go to step S600; otherwise, returning to the step S100 after entering the step S400;
s400, when the election fails and the current moment is not the last arbitration time period in the current arbitration frame, taking the next arbitration time period as the time for sending the identifier;
s500, when the identifier is successfully sent, race selection is successful, a pair of corresponding data buses Dn are distributed to serve as target data buses Dn, data of the data buses Dn are sent to the target data buses Dn, and the sending of the identifier of the communication node to the arbitration bus A is stopped;
s600, the arbitration bus A carries out logic operation according to the identifier sent by the communication node Cn, and selects a winner communication node from a plurality of passing nodes, so that the winner communication node carries out data transmission through the data bus Dn in the next arbitration frame.
Specifically, each communication node Cn has a unique identifier for identifying its own identity, and is composed of one or more level values. Each communication node Cn must first transmit its own identifier, which is composed of several level values, on the arbitration bus a before transmitting data. An arbitration frame is composed of a plurality of arbitration time periods, one arbitration time period can be won by one or more communication nodes Cn, and only one winning communication node can be selected in a decision mode in the last arbitration time period of the current arbitration frame. The communication node Cn can transmit data on the data bus Dn only after the current arbitration frame obtains the ownership of the data bus Dn. The arbitration bus A is transmitted according to arbitration frames, one arbitration frame at least comprises one identifier, the time interval for transmitting one arbitration frame is called an arbitration frame, at least 2 arbitration time periods are contained in 1 arbitration frame, the number of the arbitration time periods is more than or equal to the number of the data buses Dn, and the arbitration time periods are used for the communication node Cn to send the identifiers.
For example, the data transmission system based on multi-level logic operation includes 1 pair of arbitration buses a and 2 pairs of data buses Dn, the first arbitration frame T1 includes a first arbitration period T11 and a second arbitration period T12, the second arbitration frame T2 includes a first arbitration time T21 and a second arbitration time T22, and the first arbitration frame T1 and the second arbitration frame T2 both allow 2 identifiers to be transmitted for arbitration. Based on the above assumption, if a certain communication node Cn has a data transmission requirement, if the current time is within the first arbitration time period T11 of the first arbitration frame T1, the latest arbitration time period to be used can be selected, and data transmission is performed through the idle data bus Dn, that is, the second arbitration time period T12 of the first arbitration frame T1, and data transmission is performed through the idle data bus Dn. The first arbitration period of the next arbitration frame closest to the current arbitration period may also be selected for data transmission over the free data bus Dn, i.e., the first arbitration period T21 of the second arbitration frame T2 for data transmission over the free data bus Dn. The data bus Dn can be more fully utilized by using the former, and the data transmission time is reduced; using the latter is a bit simpler in arbitration management. When the start of the current arbitration period has arrived, the communication node Cn transmits its own identifier bit by bit onto the arbitration bus a.
The arbitration bus A carries out logic operation according to identifiers sent by all communication nodes Cn participating in transmission right competition to obtain logic levels, then the communication of the lines among the communication nodes Cn, the conduction control unit and the arbitration bus A is controlled through the logic levels and the connection mode among the conduction control unit, the communication nodes Cn and the arbitration bus A, the communication nodes Cn corresponding to the conduction lines can successfully send the communication node identifiers to the arbitration bus A, and the arbitration time period wins. In this way, the winner communication node in the arbitration frame is the winner communication node in the arbitration frame that wins all arbitration periods in one arbitration frame, and the winner communication node has the right to transmit and can occupy the data transmission right of the idle data bus Dn in the next arbitration frame. Selecting a winner communication node from a plurality of transit nodes, so that the winner communication node performs data transmission in the next arbitration frame;
after the communication node Cn sends a bit identifier, monitoring the logic level on the arbitration bus A; when the logic level on the arbitration bus A is different from the identifier sent by the communication node Cn, the sending of the identifier is considered to be failed, and the sending of the subsequent identifier in the identifiers of the passing node is stopped; when the logic level on the arbitration bus A is the same as the logic level sent by the communication node Cn, the communication node Cn is indicated to successfully send the identifier, and the passing node continues to send the next identifier in the identifiers; and when the communication node Cn successfully sends all the identifiers in the identifiers, the communication node Cn considers that the identifiers are successfully sent, and successfully performs election to obtain the sending right.
When a plurality of communication nodes Cn almost simultaneously transmit identifiers, the communication nodes Cn which can successfully transmit all the identifiers to the arbitration bus A obtain the wins of the competition of the current arbitration frame for the transmission right and obtain the ownership of the data bus Dn. If there is a free data bus Dn, the communication node Cn allocates a corresponding pair of data buses Dn for data transmission, while stopping transmitting its own identifier within the arbitration frame.
If part of the communication nodes Cn detect that the sending of the identifier fails and there is an arbitration time period to be used in the arbitration frame, the part of the communication nodes Cn may continue to participate in the subsequent arbitration, and strive to obtain the right of the idle data bus Dn.
Such as: the data transmission system based on the multi-level logic operation includes 1 pair of arbitration buses a and 2 pairs of data buses Dn, and it is assumed that 3 arbitration periods (a first arbitration period T11, a second arbitration period T12, and a third arbitration period T13) are included in the first arbitration frame T1, that is, 3 arbitrations are allowed. Based on the foregoing assumption, if the communication node C1 obtains arbitration wins in the first arbitration period T11 and the second arbitration period T12, the communication node C1 obtains data transmission on a pair of idle data buses Dn as the target data bus Dn, while the communication node Cn stops transmitting its own identifier in the third arbitration period T13 within the first arbitration frame T1, i.e., does not participate in the transmission of the 3 rd arbitration period. Since the communication node C1 has already obtained the data transmission opportunity in the arbitration frame, it does not participate in the subsequent contention of the data bus Dn, and can give other communication nodes Cn opportunities to increase fairness. When the starting time of the current arbitration time period is reached, the communication node Cn transmits its own identifier to the arbitration bus a bit by bit.
If the communication node Cn does not win the arbitration win for the 1 st arbitration period T11 of the first arbitration frame T1, the communication node Cn can continue to participate in the 2 nd arbitration of the first arbitration frame T1, resending its own identifier for the 1 st arbitration period T12. Arbitration 3 of the first arbitration frame T1 may also be engaged if arbitration 2 fails. If the 2 nd arbitration is successful and the communication node Cn has obtained a data transmission opportunity, the 3 rd arbitration is not participated in.
The communication node Cn which does not compete successfully has the opportunity of participating in arbitration for obtaining the transmission right for multiple times in an arbitration frame, and can continuously transmit the identifier. In the next arbitration frame, all the devices participate in arbitration again, and win the win of the transmission right of the new round of arbitration frame.
Because a plurality of pairs of data buses Dn exist, a plurality of communication nodes Cn can compete to obtain the ownership of the data buses Dn, namely a plurality of winning communication nodes in a plurality of arbitration frames, and therefore the data transmission rate is improved.
In another embodiment of the present invention, as shown in fig. 1, 2, 3 and 6, a data transmission method based on a multi-level logic operation, the turn-on control unit includes: a diode and a resistor; each communication node Cn is connected with the anode of the diode and one end of the resistor, and the cathode of the diode and the other end of the resistor are connected with the arbitration bus A; the method comprises the following steps:
s100, when the data transmission requirement exists in the current arbitration time period, a communication node identifier is transmitted to an arbitration bus A to participate in transmission right election;
s200, the communication node Cn judges whether the identifier is successfully sent; the identifier comprises a plurality of identifiers; if yes, go to step S611 after going to step S500; otherwise, go to step S300;
s300, judging whether the current time is the last arbitration time period of the current arbitration frame; if yes, go to step S611; otherwise, returning to the step S100 after entering the step S400;
s400, when the election fails and the current moment is not the last arbitration time period in the current arbitration frame, taking the next arbitration time period as the time for sending the identifier;
s500, when the identifier is successfully sent, race selection is successful, a pair of corresponding data buses Dn are distributed to serve as target data buses Dn, data of the data buses Dn are sent to the target data buses Dn, and the sending of the identifier of the communication node to the arbitration bus A is stopped;
s611, arbitrating the bus A to perform multi-level and logic operation on the identifier of the communication node Cn;
s612, when the identifier of the communication node Cn is lower than the logic level, the communication node Cn is conducted with the line between the conduction control unit;
s613 arbitrates bus a to select a communication node with the same identifier as the logic level as a winning communication node from a plurality of transit nodes, so that the winning communication node performs data transmission on data bus Dn in the next arbitration frame.
Specifically, the multi-level and logic circuit is composed of a pair of arbitration buses A and a plurality of conduction control units, and each communication node Cn is connected with one conduction control unit and then connected to the arbitration buses A in parallel.
The arbitration bus a uses a multi-level encoding to transmit the priority encoding. For example, for a twisted pair arbitration bus A with a bus voltage fluctuating between 0V and 5V, it is assumed that less than 0.5V is defined as symbol 0, between 0.5V and 1.5V is defined as symbol 1, between 1.5V and 2.5V is defined as symbol 2, between 2.5V and 3.5V is defined as symbol 3, between 3.5V and 4.5V is defined as symbol 4, and more than 4.5V is defined as symbol 5. The output terminals of the communication node Cn are connected in parallel to the arbitration bus a by an interface circuit shown in fig. 3 below. Wherein 1, 2, … …, n are communication node numbers, and the right vertical line is an arbitration bus A.
The arbitration bus a can automatically arbitrate to select the lower level output as the final actual level output. Assume that the output levels of the respective communication nodes Cn are 0, 1, 2, 3, 4, and 5. If the communication node C1 outputs the identifier bit of 0 in the current arbitration period, the logic level of the arbitration bus a after the and logic operation will be level 0 no matter which identifier bit the other communication nodes Cn output in the current arbitration period, and the communication node Cn outputting the identifier bit of 0 wins the current arbitration period. If the communication node C1 outputs the identifier bit of 1 in the current arbitration period, the communication node C2 outputs the identifier bit of 3 in the current arbitration period, the remaining communication nodes Cn output the identifier bit of more than 0 in the current arbitration period, and the logical level of the arbitration bus a after performing the and logical operation is 1, then the arbitration bus a automatically selects the lowest level as the final actual level output when the communication node Cn sends the communication node identifier to the arbitration bus a, and if the identifier bit sent between these communication nodes Cn is 5 at the highest, the communication node Cn outputting the identifier of 5 wins the current arbitration period. The special interface can realize automatic priority identification of single level of a physical layer, and the winner of each arbitration time period in the current arbitration frame is selected through arbitration, so that the winning communication node of the current arbitration frame is selected.
In another embodiment of the present invention, as shown in fig. 1, 2, 4 and 7, a data transmission method based on a multi-level logic operation, the turn-on control unit includes: a diode and a resistor; each communication node Cn is connected with the anode of the diode and one end of the resistor, and the cathode of the diode and the other end of the resistor are connected with the arbitration bus A; the method comprises the following steps:
s100, when the data transmission requirement exists in the current arbitration time period, a communication node identifier is transmitted to an arbitration bus A to participate in transmission right election;
s200, the communication node Cn judges whether the identifier is successfully sent; the identifier comprises a plurality of identifiers; if yes, go to step S621 after going to step S500; otherwise, go to step S300;
s300, judging whether the current time is the last arbitration time period of the current arbitration frame; if yes, go to step S621; otherwise, returning to the step S100 after entering the step S400;
s400, when the election fails and the current moment is not the last arbitration time period in the current arbitration frame, taking the next arbitration time period as the time for sending the identifier;
s500, when the identifier is successfully sent, race selection is successful, a pair of corresponding data buses Dn are distributed to serve as target data buses Dn, data of the data buses Dn are sent to the target data buses Dn, and the sending of the identifier of the communication node to the arbitration bus A is stopped;
s621 arbitrating bus A to perform multilevel OR logic operation on the identifier of communication node Cn;
s622, when the identifier of the communication node Cn is higher than the logic level, conducting the line between the communication node Cn and the conduction control unit;
s623 the arbitration bus a selects a communication node with the same identifier and logic level as a winning communication node from the plurality of pass nodes, so that the winning communication node performs data transmission on the data bus Dn in the next arbitration frame.
Specifically, the multi-level and logic circuit is composed of a pair of arbitration buses A and a plurality of conduction control units, and each communication node Cn is connected with one conduction control unit and then connected to the arbitration buses A in parallel.
The arbitration bus a uses a multi-level encoding to transmit the priority encoding. For example, for a twisted pair arbitration bus A with a bus voltage fluctuating between 0V and 5V, it is assumed that less than 0.5V is defined as symbol 0, between 0.5V and 1.5V is defined as symbol 1, between 1.5V and 2.5V is defined as symbol 2, between 2.5V and 3.5V is defined as symbol 3, between 3.5V and 4.5V is defined as symbol 4, and more than 4.5V is defined as symbol 5. The communication node C1, the communication nodes C2, … …, and the communication node Cn are connected in parallel to the arbitration bus a by an interface circuit shown in fig. 4 below. Wherein 1, 2, … …, n are communication node numbers, and the right vertical line is an arbitration bus A.
The arbitration bus A CAN automatically arbitrate and select the output with higher level as the final actual level output, and the priority coding logic opposite to that of the CAN bus is realized. Assume that the output levels of the respective communication nodes Cn are 0, 1, 2, 3, 4, and 5. If the communication node C1 outputs the identifier bit of 0 in the current arbitration period, the logic level of the arbitration bus a after the and logic operation will be level 0 no matter which identifier bit the other communication nodes Cn output in the current arbitration period, and the communication node Cn outputting the identifier bit of 0 wins the current arbitration period. If the communication node C1 outputs the identifier bit of 1 in the current arbitration period, the communication node C2 outputs the identifier bit of 3 in the current arbitration period, the remaining communication nodes Cn outputs the identifier bit of more than 0 in the current arbitration period, and the logical level of the arbitration bus a after performing the and logical operation is 1, then the arbitration bus a automatically selects the highest level as the final actual level output when the communication node Cn sends the communication node identifier to the arbitration bus a, and if the identifier bit sent between these communication nodes Cn is 5 at the highest, the communication node Cn outputting the identifier bit of 5 wins the current arbitration period. The special interface can realize automatic priority identification of single level of a physical layer, and the winner of each arbitration time period in the current arbitration frame is selected through arbitration, so that the winning communication node of the current arbitration frame is selected.
Preferably, each communication node Cn is connected to a buffer, then to a conduction control unit, and then to the arbitration bus a in parallel.
In another embodiment of the present invention, as shown in fig. 1, fig. 2, and fig. 8, a data transmission method based on multi-level logic operation includes:
s010, when all the passing nodes do not send communication node identifiers to the arbitration bus A to participate in transmission right election in the current arbitration time period, the communication node Cn which obtains the right of the data bus Dn in the previous arbitration time period still has data to be transmitted, and when the idle data bus Dn exists in the current arbitration time period, the data to be transmitted is sent to the target data bus Dn;
specifically, the bus structure includes 1 pair of arbitration buses a and 2 pairs of data buses Dn, and 2 identifier transmission times are contained in one arbitration frame, that is, 2 identifiers are allowed to be transmitted in one arbitration frame, and 2 identifier arbitrations are allowed. If a communication node Cn has won at the time of the 1 st identifier transmission and has gained ownership of the 1 st data bus Dn, the transmission of the 2 nd identifier must be stopped. But when the communication node Cn finds that no other communication node Cn initiates identifier arbitration within the 2 nd identifier sending time, but has additional data to send itself, the communication node Cn will automatically obtain the right to send data on the data bus Dn No. 2.
The utilization rate of the data bus Dn can be improved through the embodiment, and meanwhile, the data transmission time of the communication node Cn with the data sending requirement is shortened.
S110, when a communication node Cn with a data transmission requirement in the current arbitration time period does not reach the transmission probability of the identifier of the communication node Cn, transmitting the identifier of the communication node Cn to an arbitration bus A;
s200, the communication node Cn detects whether the sending of the identifier is successful; the identifier comprises a plurality of level values; if yes, go to step S220; otherwise, after entering step S300, the process proceeds to step S600;
s220, judging whether an idle data bus Dn exists or not; if yes, go to step S500 and then to step S600; otherwise, step S600 is performed after step S550 is performed;
s300, judging whether the current time is the last arbitration time period of the current arbitration frame; if yes, go to step S600; otherwise, returning to the step S100 after entering the step S400;
s400, when the election fails and the current moment is not the last arbitration time period in the current arbitration frame, taking the next arbitration time period as the time for sending the identifier;
s500, when the identifier is successfully sent, race selection is successful, a pair of corresponding data buses Dn are distributed to serve as target data buses Dn, data of the data buses Dn are sent to the target data buses Dn, and the sending of the identifier of the communication node to the arbitration bus A is stopped;
s550, when the election is successful and no idle data bus Dn exists in the current arbitration, the probability of sending the communication node identifier to the arbitration bus A is reduced by the communication node Cn in the current arbitration frame;
s600, the arbitration bus A carries out logic operation according to the identifier sent by the communication node Cn, and selects a winner communication node from a plurality of passing nodes, so that the winner communication node carries out data transmission through the data bus Dn in the next arbitration frame.
Specifically, when a communication node Cn obtains arbitration success at the current identifier sending time, the communication node Cn obtains ownership of the data bus Dn, and inquires whether there is a free data bus Dn, and if not, it indicates that there is a waiting communication node Cn to be sent. This situation typically occurs in a configuration where the current arbitration frame contains a number of arbitration periods greater than the number of data buses Dn. For example, the bus structure includes 1 pair of arbitration buses a and 2 pairs of data buses Dn, and 3 arbitration time periods are included in one arbitration frame, that is, 3 identifiers are allowed to be sent in one arbitration frame; the first two arbitration periods are used for selecting the communication node Cn which obtains the sending right on the data bus Dn No. 1 and No. 2, and the last time is used for indicating whether the waiting communication node Cn exists. If the waiting communication node Cn exists, it is indicated that there is a data transmission demand for more communication nodes Cn, and if the communication node Cn which has successfully obtained the data transmission right needs to continuously transmit, the probability of applying for transmission is selected to be gradually reduced, so as to prevent the communication node Cn with low priority from applying for too long waiting time.
In this embodiment, when the data bus Dn is in a severe collision, in order to increase fairness and prevent the low-priority communication node Cn from being unable to obtain the right of ownership of the data bus Dn for a long time, the high-priority communication node Cn is made to participate in arbitration less by reducing the transmission probability of the identifier of the communication node Cn that has successfully obtained the right of transmission, so that the high-priority communication node Cn is made to obtain the right of ownership of the data bus Dn less.
It should be noted that the above embodiments can be freely combined as necessary. The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (9)

1. A data transfer system based on multi-level logic operations, comprising:
the data buses are used for transmitting data according to a data frame mode, the data transmission is started when an arbitration frame starts, and the data transmission is stopped before the arbitration frame ends; the arbitration frame comprises a plurality of arbitration time periods, and the number of the arbitration time periods is not lower than the number of the data buses;
a multi-level and logic circuit, a plurality of communication nodes; each communication node is connected with each data bus; the multi-level AND logic circuit includes: a pair of arbitration buses and a plurality of conduction control units;
the arbitration bus is used for carrying out logic operation according to the identifier sent by the communication node and selecting a winner communication node from a plurality of pass nodes so that the winner communication node carries out data transmission in the next arbitration frame; the identifier is formed of a plurality of multi-level symbols;
the number of the conduction control units is the same as that of the communication nodes, and each communication node is connected with the conduction control units in a one-to-one correspondence manner;
the communication node and the conduction control unit are connected in series and then are connected to the arbitration bus in parallel;
the conduction control unit is used for controlling the conduction of lines among the communication node, the conduction control unit and the arbitration bus according to logic level;
the communication node comprises:
the arbitration module is used for detecting whether the communication node has a data sending requirement, sending an identifier of the communication node and detecting whether the communication node obtains arbitration success of an arbitration bus or not;
a data module for transmitting data frames;
the control module is connected with the arbitration module and the data module and is used for controlling the arbitration module to send the communication node identifier to the arbitration bus in the current arbitration time period to participate in transmission right election when the arbitration module detects that the data transmission demand exists;
the arbitration module is also used for judging whether the transmission right election is successful or not;
the control module is further configured to allocate a pair of corresponding data buses as a target data bus when the election is successful, control the data module to send data of the data module to the target data bus, and control the communication node to stop sending the communication node identifier to the arbitration bus until the next arbitration frame starts.
2. The data transmission system according to claim 1, wherein the turn-on control unit comprises:
a diode and a resistor;
each communication node is connected with the cathode of a diode and one end of a resistor, and the anode of the diode and the other end of the resistor are connected with the arbitration bus;
the conduction control unit is further used for controlling the conduction of the line between the communication node and the conduction control unit when the identifier of the communication node is lower than the logic level;
the arbitration bus is further used for carrying out multi-level AND operation on the identifiers of the communication nodes, and selecting the communication node with the same identifier and logic level from a plurality of pass nodes as the winning communication node.
3. The data transmission system according to claim 1, wherein the turn-on control unit comprises:
a diode and a resistor;
each communication node is connected with the anode of a diode and one end of a resistor, and the cathode of the diode and the other end of the resistor are connected with the arbitration bus;
the conduction control unit is further used for controlling the conduction of the line between the communication node and the conduction control unit when the identifier of the communication node is higher than the logic level;
the arbitration bus is further used for carrying out multilevel or logical OR operation on the identifiers of the communication nodes, and selecting the communication node with the identifier same as the logical level from a plurality of pass nodes as the winning communication node.
4. A data transmission method based on multi-level logic operation, characterized in that, the data transmission system based on multi-level logic operation of claim 1 is applied, comprising the steps of:
when the current arbitration time period has a data transmission requirement, transmitting the communication node identifier to the arbitration bus to participate in transmission right competition selection;
the communication node judges whether the identifier is successfully transmitted; the identifier comprises a number of level values;
when the identifier is successfully sent, the election is successful, a pair of corresponding data buses is allocated as a target data bus, the data of the data bus is sent to the target data bus, and the communication node identifier is stopped being sent to the arbitration bus;
and the arbitration bus carries out logic operation according to the identifier sent by the communication node, and selects a winner communication node from a plurality of pass nodes, so that the winner communication node carries out data transmission through the data bus in the next arbitration frame.
5. The data transmission method according to claim 4, wherein the turn-on control unit comprises: a diode and a resistor; each communication node is connected with the cathode of a diode and one end of a resistor, and the anode of the diode and the other end of the resistor are connected with the arbitration bus;
the arbitration bus carries out logic operation according to the identifier sent by the communication node, and selects a winner communication node from a plurality of pass nodes, so that the winner communication node carries out data transmission through the data bus in the next arbitration frame, and the method comprises the following steps:
the arbitration bus carries out multi-level and logic operation on the identifier of the communication node;
when the identifier of the communication node is lower than the logic level, conducting a line between the communication node and the conduction control unit;
the arbitration bus selects a passing node with the same identifier and logic level as the winning communication node from a plurality of passing nodes, so that the winning communication node performs data transmission through a data bus in the next arbitration frame.
6. The data transmission method according to claim 4, wherein the turn-on control unit comprises: a diode and a resistor; each communication node is connected with the anode of a diode and one end of a resistor, and the cathode of the diode and the other end of the resistor are connected with the arbitration bus;
the arbitration bus carries out logic operation according to the identifier sent by the communication node, and selects a winner communication node from a plurality of pass nodes, so that the winner communication node carries out data transmission through the data bus in the next arbitration frame, and the method also comprises the following steps:
the arbitration bus carries out multilevel OR logic operation on the identifier of the communication node;
when the identifier of the communication node is higher than the logic level, conducting a line between the communication node and the conduction control unit;
the arbitration bus selects a passing node with the same identifier and logic level as the winning communication node from a plurality of passing nodes, so that the winning communication node performs data transmission through a data bus in the next arbitration frame.
7. The method for data transmission based on multilevel logical operation of claim 4, wherein the communication node further comprises, after determining whether the identifier is successful, the steps of:
and when the election fails and the current time is not the last arbitration time period in the current arbitration frame, taking the next arbitration time period as the time for sending the identifier.
8. The data transmission method based on multilevel logic operation of claim 4, wherein before transmitting the communication node identifier to the arbitration bus to participate in transmission right election when there is a need for data transmission in the current arbitration period, the method comprises the steps of:
when all the pass nodes do not send the communication node identifiers to the arbitration bus to participate in the transmission right election in the current arbitration time period, the communication nodes which acquire the data bus ownership in the previous arbitration time period still have data to be transmitted, and when the idle data bus exists in the arbitration in the current time period, the data to be transmitted is sent to the target data bus.
9. The data transmission method based on multi-level logic operation according to any one of claims 4-8, wherein when there is a need for data transmission in the current arbitration period, the method for transmitting the identifier of the communication node to the arbitration bus to participate in the transmission right election comprises the steps of:
in the current arbitration time period, a communication node with a data transmission requirement sends an identifier of the communication node to an arbitration bus if the transmission probability of the identifier of the communication node is not reached;
the communication node comprises the following steps after judging whether the identifier is successfully transmitted:
judging whether an idle data bus exists or not when the data bus is successful;
when the communication node detects that the identifier is successfully sent, the election is successful, and the communication node arbitrates that no idle data bus exists at the current time, the communication node reduces the probability of sending the identifier of the communication node to the arbitration bus in the current arbitration frame.
CN202010299168.2A 2020-04-15 2020-04-15 Data transmission system and method based on multi-level logical operation Pending CN111314194A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010299168.2A CN111314194A (en) 2020-04-15 2020-04-15 Data transmission system and method based on multi-level logical operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010299168.2A CN111314194A (en) 2020-04-15 2020-04-15 Data transmission system and method based on multi-level logical operation

Publications (1)

Publication Number Publication Date
CN111314194A true CN111314194A (en) 2020-06-19

Family

ID=71147621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010299168.2A Pending CN111314194A (en) 2020-04-15 2020-04-15 Data transmission system and method based on multi-level logical operation

Country Status (1)

Country Link
CN (1) CN111314194A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112506824A (en) * 2020-12-17 2021-03-16 上海燧原智能科技有限公司 Chip and data interaction method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1191049A (en) * 1995-05-24 1998-08-19 汤姆森消费电子有限公司 Digital data bus system including arbitration
US6269102B1 (en) * 1997-09-11 2001-07-31 Mitsubishi Denki Kabushiki Kaisha Bus control device
US6374322B1 (en) * 1998-02-27 2002-04-16 Hitachi, Ltd. Bus controlling system
CN103218331A (en) * 2012-12-07 2013-07-24 浙江大学 Bus device and method by adopting synchronous mode switching and automatic adjustment of frame priority
CN106508016B (en) * 2009-04-16 2013-08-14 西北工业大学 The airborne intelligent bus system of many level, hybrid coding
CN105915311A (en) * 2015-02-09 2016-08-31 罗伯特·博世有限公司 Subscriber station for a bus system and method for time-optimized data transmission in a bus system
CN105955905A (en) * 2016-04-18 2016-09-21 合肥工业大学 Interface circuit based on serial bus structure and communication protocol
CN108234267A (en) * 2018-02-08 2018-06-29 卡斯柯信号有限公司 A kind of communication system based on M-LVDS how main high-speed buses in real time

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1191049A (en) * 1995-05-24 1998-08-19 汤姆森消费电子有限公司 Digital data bus system including arbitration
US6269102B1 (en) * 1997-09-11 2001-07-31 Mitsubishi Denki Kabushiki Kaisha Bus control device
US6374322B1 (en) * 1998-02-27 2002-04-16 Hitachi, Ltd. Bus controlling system
CN106508016B (en) * 2009-04-16 2013-08-14 西北工业大学 The airborne intelligent bus system of many level, hybrid coding
CN103218331A (en) * 2012-12-07 2013-07-24 浙江大学 Bus device and method by adopting synchronous mode switching and automatic adjustment of frame priority
CN105915311A (en) * 2015-02-09 2016-08-31 罗伯特·博世有限公司 Subscriber station for a bus system and method for time-optimized data transmission in a bus system
CN105955905A (en) * 2016-04-18 2016-09-21 合肥工业大学 Interface circuit based on serial bus structure and communication protocol
CN108234267A (en) * 2018-02-08 2018-06-29 卡斯柯信号有限公司 A kind of communication system based on M-LVDS how main high-speed buses in real time

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张坤鳌: "基于CAN总线的高压变频***的应用研究", 《仪表技术与传感器》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112506824A (en) * 2020-12-17 2021-03-16 上海燧原智能科技有限公司 Chip and data interaction method

Similar Documents

Publication Publication Date Title
EP0094180B1 (en) Dual-count, round-robin distributed arbitration technique for serial buses
US7437495B2 (en) Method and apparatus for assigning bus grant requests
US5623672A (en) Arrangement and method of arbitration for a resource with shared user request signals and dynamic priority assignment
KR100679858B1 (en) Apparatus for forwarding message based on dynamic priority and apparatus for priority adjustment and method for processing dynamic priority message
RU2620989C2 (en) Method and apparatus for increasing throughput capacity in data transmission in serial bus system
US4608700A (en) Serial multi-drop data link
US20090304021A1 (en) Method and System For Dynamic Resource Allocation
JPH10503041A (en) Arbitration method for bus connection delay
CN111314191A (en) Data transmission system and method
US10602530B2 (en) Access method with access slots and priority resolution
JPH10190710A (en) Access mediation method
US20030156597A1 (en) Method and apparatus for speculative arbitration
CN105703992B (en) Variable data rate control method
US10965492B2 (en) Method for transmitting data packets, controller and system having a controller
CN111314194A (en) Data transmission system and method based on multi-level logical operation
US5230044A (en) Arbitration apparatus for shared bus
CN107766267B (en) Arbitration method and system for I2C bus
CN115766860A (en) Data transmission method, TSN node and computer readable storage medium
EP2502789B1 (en) Method of setting transmission timing of messages to be transmitted
CN113994638A (en) Subscriber station for a serial bus system and method for communication in a serial bus system
CN111478841A (en) Data transmission system and method adopting special coding mode
EP2588965B1 (en) Method, apparatus and system for maintaining transaction coherecy in a multiple data bus platform
JP2612101B2 (en) Bus priority occupation method and communication network connection device using the method
JP2004526365A (en) Device system that communicates through a bus structure
CN111314192A (en) Method for transmitting data between high-speed bus structure and communication node

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
AD01 Patent right deemed abandoned

Effective date of abandoning: 20220719

AD01 Patent right deemed abandoned