Download Controller Area Network Implementation:

Transcript
The final design of the protocol was determined by the Hardware sub-team. Upon
inspection of the protocol, they determined that to complete the implementation within
their time constraints, it would need to be simplified. The ID was shortened back to 7
bits, since there were not nearly enough sensors to exhaust the available IDs, and the
layout of the protocol was simplified. The final protocol can be seen in Figure 5.
0b0000
0001
(FLAG)
0bIIII
III0
(ID)
0b000L
LLL0
(DATA_LENGTH)
0bDDDD
DDD0
(First
7
bits
of
DATA)
0bDDDD
DDD0
(Next
7
bits
of
DATA)
0bDD00
0000
(Last
2
bits
of
DATA)
0bCCCC
CCC0
(First
7
bits
of
CRC)
0bC000
0000
(Last
1
bit
of
CRC)
Figure 5: Serial Protocol v3
Formula Hybrid LabVIEW
The first revision of the Formula Hybrid LabVIEW program was a mockup (Figure 6)
based on the specifications that the Formula Hybrid team provided. It contained all of
the sensors that the Formula Hybrid team thought that they needed at that time and was
able to read off of the CAN system by using code from the Spring 2009 team’s final
deliverables.
Figure 6: Formula Hybrid LabVIEW Mockup
After discussing the mockup with the Formula Hybrid team, the mockup was modified
with to contain the correct sensors for them at that point. At this point they also
16