here is more info about the can line as basically my idea is to be able to reprogram various ecu using not the classic port the obd but by implementing the pc with the tool reprogramming, properly conformed to be able to follow in real time both work and the ecu,then micro,ram, and flash,and accordingly to implement pieces of code for the recalibration of the same unfortunately, as you can see below, it is feasible but it is particularly difficult because, precisely, each frame of data to the canbus has a code identifier and one of the priorities through the various nodes in the can is from time to time processed.
The CAN protocol
There are currently two main versions of the CAN protocol
standard: 2.0 with 11bit identifiers
a standard CAN extended: 2.0 B with 29bits identifiers
CAN is defined in ISO_11519 and ISO_11898.
ISO 11898-2 defines high speed CAN up to 1Mbit / sec
The ISO 11898-2 high-speed
ISO 11898-2 is the standard of ****llo physical used to CAN networks. It describes the unit of access to the bus (implemented as a transceiver CAN high-speed) functions, as well as some features of the interface medium-dependent.
In this standard the data rate is defined up to 1 Mbit / s with a theoretically possible bus length of 40 m at 1 Mbit / s. The high-speed standard specifies a differential bus, two wires for which the number of nodes is limited by the busload power. The line impedance characteristic is 120 Ohms, the common-mode voltage ranges from -2 V on CAN_L to +7 V CAN_H. The nominal specific propagation delay of the bus line two-wire is specified at 5 ns / m. All of these figures are only valid for a transfer speed of 1 Mbit s and a length-of-network maximum of 40 m.
To get compatibility the physical all the nodes in the network must use the same or a similar bit-timing. For automotive applications the SAE published the specifications in SAE J2284. For applications non-automotive, industrial, and other, the system designer can use the recommendation CiA 102. This specification defines the bit-timing for rates of 10 kbit / s to 1 Mbit / s. It also provides recommendations for the bus lines and the connectors and pin assignment.
ISO 11.898-3 (aka ISO 11.519-2) defines the fault-tolerant (and lower speed) can up to 125Kbit / sec
ISO 11.898-3 fault-tolerant
An alternative form of the interfacing bus and to the disposition of the bus lines is specified in ISO-11.898-3 (fault-tolerant CAN). This standard is mainly used for the electronics of the body in the automotive industry. Given that this specification is based on the premise of the circuit short, the problem of the reflection signal is not as important as for the bus lines long. This makes the use of a bus line open as possible.
This means the driver to lower the bus can be used for networks with very low power consumption and the bus topology is not limited to a linear structure. It is possible to transmit data asymmetrically over just one bus line in case of electrical failure of one of the bus lines.
ISO 11.898-3 defines data transfer speeds of up to 125 kbit / s maximum length of bus depends on the speed of data transmission used, and the tide. Are specified up to 32 nodes per network. The common-mode voltage ranges between -2 V and +7 V. The power supply is defined at 5 V.
Transceiver Chip, which support this standard are available from several companies. The transceivers fault-tolerant can support the management of the full error including the detection of bus errors and automatic switching to the transmission of the signal asymmetrical.
****mem voltage ISO 11898-2 (CAN high speed)
Signal state recessive state dominant
min nominal max min nominal max
CAN-high 2.0 2.5 3.0 or 2.75 3.5 4.5 Volts
CAN-Low 2.0 2.5 3.0 0.5 1.5 2.25 Volt
Note that the status is recessive, the nominal voltage for the two wires is the same. This decreases the power consumption by the nodes through the termination resistors. These resistors are 120ohm and are located on each end of the wires. Some people have played with the use of termination resistors in the middle (i.e., put them in a place on the bus). This is not recommended, because this configuration will not prevent any reflection problems.
ISO 11519 ****mem voltage (CAN low speed)
Signal state recessive state dominant
min nominal max min nominal max
CAN-high 1.6 1.75 1.9 3.85 4.0 5.0 Volts
CAN-Low 3.1 3.25 3.4 0 1.0 1.15 Volts
ISO 11519 does not require termination resistors. They are not necessary because the rates are bit limited (maximum 125 kb / s) makes the bus insensitive to reflections. The ****th e voltage on the CAN bus is recessive when the bus is idle.
lengths of bus
The maximum length of the bus of a CAN network depends on the bit rate used. It is necessary that the wave front of the bit signal has time to travel to the node most remote and vice versa first is to sample the bit. This means that if the bus length is near the maximum for the bit rate used, you should
choose the point of sampling with the utmost care - a the other hand, you should always do it!
Below is a table of the different lengths of the bus and the transmission speed corresponding maximum.
bus length (m) Maximum bit rate (bit / s)
40 1 Mbit / s
100 500 kbit / s
200 250 KPIT / s
500 125 kbit / s
6 km 10 kbit / s
cables
According to the standard ISO 11898, the impedance of the cable must be 120 + - 12 ohms. You must be twisted pair, shielded or unshielded. The work is in progress on the standard single-wire can SAE J2411.