can protocol implementation using canoe and flex-devel boards
TRANSCRIPT
-
8/9/2019 Can Protocol Implementation Using Canoe and Flex-Devel Boards
1/8
-
8/9/2019 Can Protocol Implementation Using Canoe and Flex-Devel Boards
2/8
International Journal of Electronics and Communication Engineering & Technology (IJECET), ISSN
0976 – 6464(Print), ISSN 0976 – 6472(Online), Volume 6, Issue 3, March (2015), pp. 01-08© IAEME
2
Employing these many sub systems require complex body wiring, large installation space and
reliability of communication between them. In order to handle the real-time signals [5, 6], we require
an effective and efficient way of communication. Since, most of the conventional systems use point-
to-point communications, we are unable to meet the requirements. Therefore, this led to the need to
develop a communication system to meet the requirements of the automobile.At the beginning of the 1980s, Bosch began to develop a serial communication system. It was named
as CAN (Controller Area Network) [7]. Its high data rate, event driven feature, good reliability,
simple design, cost effectiveness are some reasons for CAN being used in electric vehicle control
system for automobile applications[8].
The author Thomas Noltet et.al, considering the recent developments in automotive industry,
mentioned various communication techniques [9]. In one of the previous research [10] considered
the characteristics of powertrain system of electric vehicles with range-extender, the Protocol CAN
was given and tested in CANoe. The author, LI Ding-gen et.al, built the CAN bus network
simulation system with several vehicle’s electrical controller and sensor nodes, CANoe-MATLAB
interface was used [11]. The authors Rishvanth et.al, explained how Vector CANoe uses a 3-phase
development process that assists the user from the planning of the distributed system to theimplementation of it [13]. The author Xinyan Li et.al, gave the modeling for heavy lorry CAN bus
network with CANoe, and software simulation, semi-physical simulation and system integrated test
are realized based on the modeling [14].
To analyze such CAN network before putting into real use, German company Vector
developed a powerful tool for system design and analysis. The various windows provided in CANoe
helps to analyse the various characteristics of the CAN bus such as bus load, data rate, frames, etc. It
is possible to realize both simulated bus and the real bus [12]. So, with all the node in the virtual
environment, one can use the simulated bus. The real bus scenario can be achieved with the help of
virtual and physical nodes. Vector’s CAN bus interface hardware, CANcase XL is used as an
interface between virtual and physical nodes.
This paper mainly deals with the development of a control board network using the CANoe
software and Flex-Devel boards. The CANcase XL provides the interface between the two. The
simulation is done using a real bus and the test system is analyzed in CANoe. The Second section
deals with the setup of nodes and network in the software. The Third section deals with the hardware
setup and real time simulation. The fourth provides the results observed. Conclusion is given in the
Fifth section.
2. DESIGN SCHEME OF SIMULATION AND TEST SYSTEM FOR CONTROL BOARD
We constructed a network, showing the basic functioning of ignition, speed and indicators in
an automobile. For this we designed separate nodes for ignition, speed, indicators and display andcreated respective CAPL and Eclipse programs for the same using the software. We gave the inputs
in the software and observed the changes in the hardware. The inputs being ignition, speed and
indicators and the corresponding changes can be seen on the hardware using the led’s of the two
Flex-Devel boards.
2.1 Creating a Database
We created a database consisting of three messages having three signals.
-
8/9/2019 Can Protocol Implementation Using Canoe and Flex-Devel Boards
3/8
International Journal of Electron
0976 – 6464(Print), ISSN 0976 – 6
2.1.1 Messages
Name: ignition Typ
Figure 1. Convention
2.1.2 Signals
Name: bsspeed Length [B
Value Type: Unsigned Fa
Minimum: 0 Maximum:
Similarly, signals “onoff” and “in
2.2 Defining System Variables
1. Create the three system variabl
Open this dialog with the menu it
2. Open the “Add System Variabl
Namespace: Myspeed Na
This is used to get the input from
Figure 3. Syste
Similarly, speed to get th
the car, both defined in the same
cs and Communication Engineering & Tech
72(Online), Volume 6, Issue 3, March (2015),
3
: CAN Standard ID: 0x100 DL
l Vs Bus Network Figure 2. Dat
t]: 15 (states 0 to 320) Byte Order: Intel
tor: 1 Offset: 0
1
d” are defined.
s in the “System Variable Configuration”di
m Configuration -> System Variables….
e”dialog with [Add…]
me: ignitionData type: Integer
the ignition control.
Variables Figure 4. CAPL Br
input from the speed, indicator to get the
amespace.
ology (IJECET), ISSN
pp. 01-08© IAEME
C: 8
base Editor
log.
owser
nput from indicator of
-
8/9/2019 Can Protocol Implementation Using Canoe and Flex-Devel Boards
4/8
International Journal of Electron
0976 – 6464(Print), ISSN 0976 – 6
2.3 Creating Panels
A panel has been created
indicators. This is used to give th
Devel board.
2.4 Creating Network Nodes
We create the network n
each node to open CAPL Browse
2.4.1 NODE 1 Ignition
The first nodein the net
program acquires the new ignitio
2.4.2 NODE 2 Speed
This node inthe network
ignition is on, the program acquir
2.4.3 NODE 3 Indicator
This actsas an indicator n
program acquires the new indic
there are two codes one for the re
The output nodes being in hard
nodes we need to enable the can c
2.4.4 NODE 4 Speed Display
This node consists of ig
LED7 used to indicate the recep
LED1 to LED6 for observing cha
cs and Communication Engineering & Tech
72(Online), Volume 6, Issue 3, March (2015),
4
or the control panel which consists of inputs
e inputs to the system. The output would be
de models in the simulation setup of the C
for the particular CAPL program.
ork is for ignition control. When the switc
value and immediately outputs it on to the
is for speed control. When the position c
s the new speed value and immediately out
ode. When the position changes, only when
tor value and immediately outputs it on to
eption of ignition message and the other to
are requires the eclipse code to display th
hannel, initialize it and set the baud rate usin
ition and speed display using the 8 LED’s
tion of the CAN message. LED0 for the c
nges in the speed.
Figure 5. CAN Network
ology (IJECET), ISSN
pp. 01-08© IAEME
for ignition, speed and
observed on the Flex-
Noe. Double click on
h position changes,the
us.
anges, only when the
uts it on to the bus.
the ignition is on, the
the bus. So, basically
end the speed value.
e output. For both the
g the code.
present on the board.
ange in ignition. And
-
8/9/2019 Can Protocol Implementation Using Canoe and Flex-Devel Boards
5/8
International Journal of Electron
0976 – 6464(Print), ISSN 0976 – 6
2.4.5 Node 5 Indicator Display
This node consists of igni
LED7 used to indicate the recep
LED3 and LED5 for observing ri
3. REAL BUS SIMULATION
We interfaced both CAN
on hardware using Eclipse IDE.
each other in order to optimize
busload etc.., in the trace window
The CANcase XL is a US
bit identifiers.The hardware is int
in the software. There are two wi
connected in the software and the
So, as to make a node be recognithe “Block Active” button. This d
4. RESULTS
The inputs are given from the con
Figure 6. Control P
The signals go through t
Bus which connects the CANcas
boardsusing the LED’s.The bus
present in CANoe Software.
cs and Communication Engineering & Tech
72(Online), Volume 6, Issue 3, March (2015),
5
tion and indicator display using the 4 LED’
tion of the CAN message. LED0 for the c
ht and left indicators respectively.
e [15] & Flex-Devel i.e., partial code is in s
The codes developed in CANoe and eclips
the results. And we can observe the resul
.
B interface. It can process CAN messages
rfaced using CANcase XL, then we need to
es shown in the network. The red wire indic
blue wire indicates that they are connected u
zed in the hardware we need to right lick oneactivates the node in the software and activ
trol panel present in the Software.
anel Figure 7. CA
e CANcase XL connected to the computer
XL with the Boards and the outputs are di
haracteristics are analyzed using the graph
ology (IJECET), ISSN
pp. 01-08© IAEME
s present on the board.
ange in ignition. And
ftware and other done
must be synced with
ts like CAN statistics,
ith either 11-bit or 29-
do some modifications
ates that the blocks are
sing hardware.
the node and unchecktes it in the hardware.
case XL
and through the CAN
splayed on Flex-Devel
ics and Trace window
-
8/9/2019 Can Protocol Implementation Using Canoe and Flex-Devel Boards
6/8
International Journal of Electron
0976 – 6464(Print), ISSN 0976 – 6
Figure 8.
The graphics window giv
times during the Experiment. It al
times. And the trace window help
Figure
cs and Communication Engineering & Tech
72(Online), Volume 6, Issue 3, March (2015),
6
Indicator and Speed Nodes in the Hardware
es us a picture about the various signals th
so helps us to know the Characteristics of th
s us to know the messages that are sent throu
. Graph for Bus load, speed and indicator
ology (IJECET), ISSN
pp. 01-08© IAEME
at are sent at different
CAN Bus at different
gh the bus.
-
8/9/2019 Can Protocol Implementation Using Canoe and Flex-Devel Boards
7/8
International Journal of Electron
0976 – 6464(Print), ISSN 0976 – 6
Figure 10. Trace W
5. CONCLUSION
This paper introduces the
done using the real bus, both virsoftware and the changes are dis
done using the CANcase XL. T
Eclipse code.Finally, Real bus c
the CANoe.
6. ACKNOWLEDGEMENTS
This work forms part of t
The authors would like to thank
hardware and software) to carry o
REFERENCES
1. B.K.Ramesh, K. Srirama
http://www.deindia.com/i
2. Christopher A. Lupini, I
Corporation, SAE Interna
3. A.T.van Zanten, R.Erhar
perspective. (SAE World
4. R. Boys. Safe-by-Wire: T
MI, USA, 2003. SAE)
cs and Communication Engineering & Tech
72(Online), Volume 6, Issue 3, March (2015),
7
indow Showing Ignition, speed and indicator
interfacing of CANoe and Flex-Devel boar
ual and physical nodes are created. The inlayed on the boards using led’s. The interf
he virtual nodes use CAPL programming
aracteristics are analyzed using the graphic
he Project work done by us at VIT Univers
the Embedded division for providing the ne
ut this work successfully.
urthy. In-vehicle networking (Dearborn ele
ages/downloads/whitepapers/In-Vehicle_N
-Vehicle Networking Technology for 201
ional, 2010-01-0687, 2010)
t, K. Landesfeind, and G. Pfaff. VDC sys
ongress. SAE, 1998)
e Leading Edge in Airbag Control. (SAE W
ology (IJECET), ISSN
pp. 01-08© IAEME
Message
s. As the simulation is
uts are given from thece between the two is
nd the Boards require
l and trace window of
ty, Vellore – 632 014.
cessary facilities (both
ctronics.
tworking.pdf)
and Beyond. (Delphi
tems development and
orld Congress, Detroit,
-
8/9/2019 Can Protocol Implementation Using Canoe and Flex-Devel Boards
8/8
International Journal of Electronics and Communication Engineering & Technology (IJECET), ISSN
0976 – 6464(Print), ISSN 0976 – 6472(Online), Volume 6, Issue 3, March (2015), pp. 01-08© IAEME
8
5. J.Leohold. Communication Requirements for Automotive Systems. In Keynote at the 5th
Workshop on Factory Communication Systems (WFCS 2004), Wien, Austria, September
2004.
6. N. Navet, Y. Song, F. Simonot-Lion, and C. Wilwert. Trends in Automotive Communication
Systems. (Proceedings of the IEEE, 93(6), June 2005)7. Robert Bosch GmbH. BOSCH's CAN. http://www.can.bosch.com/)
8. Karl Henrik Johansson, Martin Torngren, Lars Nielsen. Vehicle Applications of Controller
Area Network. Hand-book ofNetworked and Embedded Control Systems, Springer Verlag,
Boston, 2005.
9. Thomas Noltet, Hans Hanssont, Lucia Lo Bellot. Automotive Communications - Past,
Current and Future. (IEEE Journal, Volume 1, 2005)
10. FENG Jiang-bo. “Designing and Testing Controller Area Network Protocol for Powertrain
System of Electric Vehicles with Range-Extender”. Journal of Jiamusi University (Natural
Science Edition), 2011.
11. LI Ding-gen, CAO Jing, ZHANG Jie. Co-simulation of Vehicle CAN Bus Based on CANoe-
MATLAB. Auto Mobile Science and Technology, 2009.12. www.Vector.com
13. Rishvanth, D. Valli, K. Ganesan.Design of an In-Vehicle Network (Using LIN, CANand
FlexRay), Gateway and its Diagnostics Using Vector CANoe.American Journal of Signal
Processing. 2011; 1(2): pp. 40-45.
14. Xinyan Li, Min Huang, Jie Zhan, Yongliang Ni, Fengying Pang. CANoe-Based Modeling
and Simulation for Heavy Lorry CAN Bus Network. AsiaSim 2012Communications in
Computer and Information Science 2012, pp 107-114.
15. Bosch. CAN Specification, Version 2.0(http://esd.cs.ucr.edu/webres/can20.pdf)
16. Parvinder and Dr. V.K. Suman, “A Review on Routing Protocol In Manet” International
Journal of Advanced Research in Engineering & Technology (IJARET), Volume 4, Issue 5,
2013, pp. 243 - 250, ISSN Print: 0976-6480, ISSN Online: 0976-6499.
17. Saloni Singla and Tripatjot Singh Panag, “Evaluating The Performance of Manet Routing
Protocols” International journal of Electronics and Communication Engineering
&Technology (IJECET), Volume 4, Issue 1, 2013, pp. 125 - 130, ISSN Print: 0976- 6464,
ISSN Online: 0976 –6472.
18. Mrs.Bhavana L. Mahajan,Prof. Sampada Pimpale and Ms.Kshitija S. Patil, “FPGA
Implemented AHB Protocol” International journal of Electronics and Communication
Engineering &Technology (IJECET), Volume 3, Issue 3, 2012, pp. 162 - 169, ISSN Print:
0976- 6464, ISSN Online: 0976 –6472