SlideShare a Scribd company logo
1 of 25
Download to read offline
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
02/08/2017
Yuichi Kusakabe
SS Engineering Group
Fujitsu TEN LIMITED
How To Use Linux CAN Signal To AGL
1
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
About Myself
2
 Yuichi Kusakabe (Fujitsu TEN LIMITED)
 Software Engineer of IVI about 10 years
(for 16-bit and 32-bit architecture)
 Linux Software Engineer(2011-2013)
 Linux Software Lead Engineer(2013-Now)
 BSP Porting/Customizing
 Supporting for in-house software developers
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
Agenda
3
What’s CAR CAN signal
Standard Linux CAN IF & OSS CAN Tool
How to use CAN signal to AGL
Demonstration & Results
Conclusion
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
What’s CAR CAN Signal
4
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
What’s CAR CAN Signal
5
Standard CAN Signal format(11bit).
Data line: D+/D-/GND(want)
Baud rate: 500kbps
CAN ID: 11bit(0x000~0x7FF)
Data size: 0~8byte
CAN Bus load: 20~75%
Standard CAN Signal is Low Speed(500kbps), But High frequency(**us).
https://ja.wikipedia.org/wiki/Controller_Area_Network
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
Standard Linux CAN IF &
OSS CAN Tool
6
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
Standard Linux CAN IF(SocketCAN)
7
Linux kernel all ready CAN IF with Socket CAN
https://en.wikipedia.org/wiki/SocketCAN
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
Standard Linux CAN IF(CAN Driver)
8
Linux kernel all ready CAN IF with Socket CAN
https://www.kernel.org/doc/Documentation/networking/can.txt
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
OSS CAN Tool(Powerful software)
9
can-utils easy to debug CAN Signal (read/write/play)
https://github.com/linux-can/can-utils
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
OSS CAN Tool(Powerful software)
10
https://github.com/linux-can/can-utils
ID=333(11bit), DATA=33 send=can0
# cansend can0 333#33
ID=00004444(24bit), DATA=44 send=can0
# cansend can0 00004444#44
CAN data send(cansend)
recv=can
# candump can0 -ta
root@porter:~# candump can0 -ta
(1478869757.430017) can0 344 [8] FF EE 00 00 00 00 EE AA
(1478869757.431290) can0 226 [8] E4 00 00 EE 00 EE EE 00
recv=all
# candump any -ta
CAN data recv(candump)
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
How to use CAN signal to
AGL
11
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
AMB(Automotive Message Broker)
12
This time AGL provide AMB, but AGL remake new CAN Signal handing FW.
https://github.com/otcshare/automotive-message-broker
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
AMB Plugins
13
AMB provide simple plugin only, default is not use SocketCAN
https://github.com/otcshare/automotive-message-broker
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
What’s CANRAWPLUGIN
14
CAN signal filtering(setting SocketCAN)
CAN ID xxx -> xx
CAN signal thinning out
CAN cycle xx ms -> xxx ms
CAN data convert AMB format
CANRAWPLUGIN is Simple SocketCAN AMB Plugins
SocketCAN
CANRAWPLUGIN
AMB CORE
CAN
filtering
thinning
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
Demonstration & Results
15
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
Target Hardware spec
16
http://elinux.org/R-Car/Boards/Porter
AGL reference Hardware to Renesas R-CAR M2 Porter board
http://panasonic.jp/sd/p-db/RP-SMGB32GJK.html
32GB microSDHC
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
Target Hardware spec
17
http://elinux.org/R-Car/Boards/
CAN simulator running to AGL reference Hardware to Renesas R-CAR M3
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
Target Hardware spec
18
http://www.can232.com/?page_id=16
R-CAR M3 not include CAN IF, CANUSB easy connect CANIF
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
Target Hardware spec
19
http://www.can232.com/?page_id=16
CANUSB connected CAN IF simple Hardware
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
Software setup
20
CONFIG_CAN=y
CONFIG_CAN_VCAN=y
CONFIG_CAN_RCAR=y <- Renesas Porter board only
CONFIG_CAN_SLCAN=y
CONFIG_USB_SERIAL=y
CONFIG_USB_SERIAL_FTDI_SIO=y
Add Kernel defconfig CAN driver and CANUSB
yocto local.conf
IMAGE_INSTALL_append = “ can-utils iproute2”
Add rootfs “can-utils” and “iproute2”
Setup CAN and CANUSB
CAN0
ip link set can0 type can bitrate 500000
ip link set can0 up
CANUSB
slcand -o -s 6 -t hw /dev/ttyUSB*
ip link set slcan0 up
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
Demonstration
21
Porter board(running AGL CES DEMO), M3(running CAN simulator) and CANUSB
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
Results
22
CAN data detail
Filtering CAN ID:124 -> 40
Thinning out time: **ms -> 100ms
No CAN Bus load can id/sec CPU load
(AMB + d-bus)
1 0% 0 6.7%
2 29% 1,447 35.88%
3 43% 2,063 86.29%
4 50% Unmeasurable
->data lost
Unmeasurable
->data lost
AMB and d-bus is heavy, and small CAN data handing difficult
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
Conclusion
23
Linux Kernel all ready use to CAN
OSS CAN Tool “can utils” is good software
CAN Signal handing resource is difficult
Next step
Define AGL public CAR CAN data format
AGL standard CAN simulator
New CAN handing FW support SocketCAN
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved.
Extra(Japanese How to Use Linux CAN )
24
http://qiita.com/yuichi-kusakabe/items/e5b50aa3edb712bb6916
Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. 25
Thank you!!!
yuichi.kusakabe@jp.fujitsu.com

More Related Content

What's hot

Telecommunication ---Unioriental
Telecommunication ---UniorientalTelecommunication ---Unioriental
Telecommunication ---Unioriental
Sherry Lee
 

What's hot (20)

Telecommunication ---Unioriental
Telecommunication ---UniorientalTelecommunication ---Unioriental
Telecommunication ---Unioriental
 
Raspberry pi Part 20
Raspberry pi Part 20Raspberry pi Part 20
Raspberry pi Part 20
 
Alpha memo july 1992
Alpha memo july 1992Alpha memo july 1992
Alpha memo july 1992
 
SAS IPTV Video Sys 1.2
SAS IPTV Video Sys 1.2SAS IPTV Video Sys 1.2
SAS IPTV Video Sys 1.2
 
PLNOG 8: Rafał Szarecki - Telco Group Network
PLNOG 8: Rafał Szarecki - Telco Group Network PLNOG 8: Rafał Szarecki - Telco Group Network
PLNOG 8: Rafał Szarecki - Telco Group Network
 
VRF Configuration
VRF ConfigurationVRF Configuration
VRF Configuration
 
Cubie board
Cubie boardCubie board
Cubie board
 
B pro-4g cellular bonding encoder
B pro-4g cellular bonding encoderB pro-4g cellular bonding encoder
B pro-4g cellular bonding encoder
 
More Mad Science for the Commodore 64 (ECCC 2015)
More Mad Science for the Commodore 64 (ECCC 2015)More Mad Science for the Commodore 64 (ECCC 2015)
More Mad Science for the Commodore 64 (ECCC 2015)
 
Iotlt48@fujitsu 20190215
Iotlt48@fujitsu 20190215Iotlt48@fujitsu 20190215
Iotlt48@fujitsu 20190215
 
Nettab 2006 Tutorial 3B part 2
Nettab 2006 Tutorial 3B part 2Nettab 2006 Tutorial 3B part 2
Nettab 2006 Tutorial 3B part 2
 
How to configure i pv6 services in the fttb c (no hgws) scenario
How to configure i pv6 services in the fttb c (no hgws) scenarioHow to configure i pv6 services in the fttb c (no hgws) scenario
How to configure i pv6 services in the fttb c (no hgws) scenario
 
Development of a 4K Main 10 Profile HEVC Encoder for Great Improvements in Co...
Development of a 4K Main 10 Profile HEVC Encoder for Great Improvements in Co...Development of a 4K Main 10 Profile HEVC Encoder for Great Improvements in Co...
Development of a 4K Main 10 Profile HEVC Encoder for Great Improvements in Co...
 
Cisco catalyst 3850-48t-s datasheet
Cisco catalyst 3850-48t-s datasheetCisco catalyst 3850-48t-s datasheet
Cisco catalyst 3850-48t-s datasheet
 
Pc 104 series 1 application showcase
Pc 104 series 1 application showcasePc 104 series 1 application showcase
Pc 104 series 1 application showcase
 
Configuration difference between ipv6 and ipv4
Configuration difference between ipv6 and ipv4Configuration difference between ipv6 and ipv4
Configuration difference between ipv6 and ipv4
 
High Performance KVM
High Performance KVMHigh Performance KVM
High Performance KVM
 
BGP Monitoring Protocol
BGP Monitoring ProtocolBGP Monitoring Protocol
BGP Monitoring Protocol
 
Introduction to AegisSAN Q500 Series
Introduction to AegisSAN Q500 Series Introduction to AegisSAN Q500 Series
Introduction to AegisSAN Q500 Series
 
SSTIC RUMP 2018 - Modmobjam
SSTIC RUMP 2018 - ModmobjamSSTIC RUMP 2018 - Modmobjam
SSTIC RUMP 2018 - Modmobjam
 

Viewers also liked

Chapter 6 - Process Synchronization
Chapter 6 - Process SynchronizationChapter 6 - Process Synchronization
Chapter 6 - Process Synchronization
Wayne Jones Jnr
 
Collection's Brief 2013
Collection's Brief 2013Collection's Brief 2013
Collection's Brief 2013
Tomasz Daktera
 
A CALL FOR ACTION TO STRENGTHEN HEALTHCARE FOR HEARING LOSS
A CALL FOR ACTION TO STRENGTHEN HEALTHCARE FOR HEARING LOSSA CALL FOR ACTION TO STRENGTHEN HEALTHCARE FOR HEARING LOSS
A CALL FOR ACTION TO STRENGTHEN HEALTHCARE FOR HEARING LOSS
Jimena Kerszenblat
 
rahul resume (1)(1)
rahul resume (1)(1)rahul resume (1)(1)
rahul resume (1)(1)
RAHUL KUMAR
 

Viewers also liked (17)

Widefield engineering presentation
Widefield engineering presentationWidefield engineering presentation
Widefield engineering presentation
 
Inter Process Comunication
Inter Process ComunicationInter Process Comunication
Inter Process Comunication
 
Signal Handling in Linux
Signal Handling in LinuxSignal Handling in Linux
Signal Handling in Linux
 
Chapter 4 - Threads
Chapter 4 - ThreadsChapter 4 - Threads
Chapter 4 - Threads
 
Autosar software component
Autosar software componentAutosar software component
Autosar software component
 
Connected Car Security
Connected Car SecurityConnected Car Security
Connected Car Security
 
Global Advanced Driver Assistance Systems (ADAS) Market: Trends and Opportuni...
Global Advanced Driver Assistance Systems (ADAS) Market: Trends and Opportuni...Global Advanced Driver Assistance Systems (ADAS) Market: Trends and Opportuni...
Global Advanced Driver Assistance Systems (ADAS) Market: Trends and Opportuni...
 
Chapter 6 - Process Synchronization
Chapter 6 - Process SynchronizationChapter 6 - Process Synchronization
Chapter 6 - Process Synchronization
 
Webinar presentation on AUTOSAR Multicore Systems
Webinar presentation on AUTOSAR Multicore SystemsWebinar presentation on AUTOSAR Multicore Systems
Webinar presentation on AUTOSAR Multicore Systems
 
AUTOSAR Memory Stcak (MemStack).
AUTOSAR Memory Stcak (MemStack). AUTOSAR Memory Stcak (MemStack).
AUTOSAR Memory Stcak (MemStack).
 
Ppt ch06
Ppt ch06Ppt ch06
Ppt ch06
 
Collection's Brief 2013
Collection's Brief 2013Collection's Brief 2013
Collection's Brief 2013
 
Angeles cobo segundo parcial
Angeles cobo segundo parcialAngeles cobo segundo parcial
Angeles cobo segundo parcial
 
El grito de independencia
El grito de independenciaEl grito de independencia
El grito de independencia
 
A CALL FOR ACTION TO STRENGTHEN HEALTHCARE FOR HEARING LOSS
A CALL FOR ACTION TO STRENGTHEN HEALTHCARE FOR HEARING LOSSA CALL FOR ACTION TO STRENGTHEN HEALTHCARE FOR HEARING LOSS
A CALL FOR ACTION TO STRENGTHEN HEALTHCARE FOR HEARING LOSS
 
Spanish!
Spanish!Spanish!
Spanish!
 
rahul resume (1)(1)
rahul resume (1)(1)rahul resume (1)(1)
rahul resume (1)(1)
 

Similar to How To Use Linux CAN Signal To AGL

Linux-wpan: IEEE 802.15.4 and 6LoWPAN in the Linux Kernel - BUD17-120
Linux-wpan: IEEE 802.15.4 and 6LoWPAN in the Linux Kernel - BUD17-120Linux-wpan: IEEE 802.15.4 and 6LoWPAN in the Linux Kernel - BUD17-120
Linux-wpan: IEEE 802.15.4 and 6LoWPAN in the Linux Kernel - BUD17-120
Linaro
 

Similar to How To Use Linux CAN Signal To AGL (20)

06 EPI: the European approach for Exascale ages
06 EPI: the European approach for Exascale ages06 EPI: the European approach for Exascale ages
06 EPI: the European approach for Exascale ages
 
Detailed explanation of Basic router configuration
Detailed explanation of Basic router configurationDetailed explanation of Basic router configuration
Detailed explanation of Basic router configuration
 
IVI Essential Requirements:BSP and Hardware.
IVI Essential Requirements:BSP and Hardware.IVI Essential Requirements:BSP and Hardware.
IVI Essential Requirements:BSP and Hardware.
 
JetStor X Storage Products 2017! New HOT products!
JetStor X Storage Products 2017! New HOT products!JetStor X Storage Products 2017! New HOT products!
JetStor X Storage Products 2017! New HOT products!
 
AGL Long Term Support
AGL Long Term SupportAGL Long Term Support
AGL Long Term Support
 
APRICOT 2012 - Living with the ever-growing BGP table: an OCN story
APRICOT 2012 - Living with the ever-growing BGP table: an OCN storyAPRICOT 2012 - Living with the ever-growing BGP table: an OCN story
APRICOT 2012 - Living with the ever-growing BGP table: an OCN story
 
APRICOT 2012 - Living with the ever-growing BGP table: an OCN story
APRICOT 2012 - Living with the ever-growing BGP table: an OCN storyAPRICOT 2012 - Living with the ever-growing BGP table: an OCN story
APRICOT 2012 - Living with the ever-growing BGP table: an OCN story
 
Samplab19
Samplab19Samplab19
Samplab19
 
TBE036 - IPV6 Solution ed06b.pptx
TBE036 - IPV6 Solution ed06b.pptxTBE036 - IPV6 Solution ed06b.pptx
TBE036 - IPV6 Solution ed06b.pptx
 
AMM_The Future of AGL-JTA
AMM_The Future of AGL-JTAAMM_The Future of AGL-JTA
AMM_The Future of AGL-JTA
 
OpenChain AutomotiveWG(OSS license tools()
OpenChain AutomotiveWG(OSS license tools()OpenChain AutomotiveWG(OSS license tools()
OpenChain AutomotiveWG(OSS license tools()
 
Approaching hyperconvergedopenstack
Approaching hyperconvergedopenstackApproaching hyperconvergedopenstack
Approaching hyperconvergedopenstack
 
02 ai inference acceleration with components all in open hardware: opencapi a...
02 ai inference acceleration with components all in open hardware: opencapi a...02 ai inference acceleration with components all in open hardware: opencapi a...
02 ai inference acceleration with components all in open hardware: opencapi a...
 
Large scale log pipeline using Apache Pulsar_Nozomi
Large scale log pipeline using Apache Pulsar_NozomiLarge scale log pipeline using Apache Pulsar_Nozomi
Large scale log pipeline using Apache Pulsar_Nozomi
 
Linux-wpan: IEEE 802.15.4 and 6LoWPAN in the Linux Kernel - BUD17-120
Linux-wpan: IEEE 802.15.4 and 6LoWPAN in the Linux Kernel - BUD17-120Linux-wpan: IEEE 802.15.4 and 6LoWPAN in the Linux Kernel - BUD17-120
Linux-wpan: IEEE 802.15.4 and 6LoWPAN in the Linux Kernel - BUD17-120
 
Operational Issues inIPv6 --from vendors' point of view--
Operational Issues inIPv6 --from vendors' point of view--Operational Issues inIPv6 --from vendors' point of view--
Operational Issues inIPv6 --from vendors' point of view--
 
2014/09/02 Cisco UCS HPC @ ANL
2014/09/02 Cisco UCS HPC @ ANL2014/09/02 Cisco UCS HPC @ ANL
2014/09/02 Cisco UCS HPC @ ANL
 
ENSA_Module_10.pptx
ENSA_Module_10.pptxENSA_Module_10.pptx
ENSA_Module_10.pptx
 
BitVisor Summit 8「3. AQC107 Driver and Changes coming to network API」
BitVisor Summit 8「3. AQC107 Driver and Changes coming to network API」BitVisor Summit 8「3. AQC107 Driver and Changes coming to network API」
BitVisor Summit 8「3. AQC107 Driver and Changes coming to network API」
 
20160713_ALS AGL-JTA CIAT tool for AGL
20160713_ALS AGL-JTA CIAT tool for AGL20160713_ALS AGL-JTA CIAT tool for AGL
20160713_ALS AGL-JTA CIAT tool for AGL
 

Recently uploaded

Vip Mumbai Call Girls Mira Road Call On 9920725232 With Body to body massage ...
Vip Mumbai Call Girls Mira Road Call On 9920725232 With Body to body massage ...Vip Mumbai Call Girls Mira Road Call On 9920725232 With Body to body massage ...
Vip Mumbai Call Girls Mira Road Call On 9920725232 With Body to body massage ...
amitlee9823
 
Hot Modals Call Girls (Delhi) Dwarka9711199171✔️ High Class Service 100% Saf...
Hot Modals Call Girls (Delhi) Dwarka9711199171✔️ High Class  Service 100% Saf...Hot Modals Call Girls (Delhi) Dwarka9711199171✔️ High Class  Service 100% Saf...
Hot Modals Call Girls (Delhi) Dwarka9711199171✔️ High Class Service 100% Saf...
shivangimorya083
 
Business Bay Escorts $#$ O56521286O $#$ Escort Service In Business Bay Dubai
Business Bay Escorts $#$ O56521286O $#$ Escort Service In Business Bay DubaiBusiness Bay Escorts $#$ O56521286O $#$ Escort Service In Business Bay Dubai
Business Bay Escorts $#$ O56521286O $#$ Escort Service In Business Bay Dubai
AroojKhan71
 
如何办理女王大学毕业证(QU毕业证书)成绩单原版一比一
如何办理女王大学毕业证(QU毕业证书)成绩单原版一比一如何办理女王大学毕业证(QU毕业证书)成绩单原版一比一
如何办理女王大学毕业证(QU毕业证书)成绩单原版一比一
opyff
 
Call Girls In Kotla Mubarakpur Delhi ❤️8448577510 ⊹Best Escorts Service In 24...
Call Girls In Kotla Mubarakpur Delhi ❤️8448577510 ⊹Best Escorts Service In 24...Call Girls In Kotla Mubarakpur Delhi ❤️8448577510 ⊹Best Escorts Service In 24...
Call Girls In Kotla Mubarakpur Delhi ❤️8448577510 ⊹Best Escorts Service In 24...
lizamodels9
 
Delhi Call Girls Saket 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Saket 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Saket 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Saket 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
shivangimorya083
 
一比一原版(PU学位证书)普渡大学毕业证学历认证加急办理
一比一原版(PU学位证书)普渡大学毕业证学历认证加急办理一比一原版(PU学位证书)普渡大学毕业证学历认证加急办理
一比一原版(PU学位证书)普渡大学毕业证学历认证加急办理
ezgenuh
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In Shankar vihar ≼🔝 Delhi door step delev...
Call Now ≽ 9953056974 ≼🔝 Call Girls In Shankar vihar ≼🔝 Delhi door step delev...Call Now ≽ 9953056974 ≼🔝 Call Girls In Shankar vihar ≼🔝 Delhi door step delev...
Call Now ≽ 9953056974 ≼🔝 Call Girls In Shankar vihar ≼🔝 Delhi door step delev...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办
一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办
一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办
ezgenuh
 
Sanjay Nagar Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalor...
Sanjay Nagar Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalor...Sanjay Nagar Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalor...
Sanjay Nagar Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalor...
amitlee9823
 
如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一
如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一
如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一
ozave
 
83778-77756 ( HER.SELF ) Brings Call Girls In Laxmi Nagar
83778-77756 ( HER.SELF ) Brings Call Girls In Laxmi Nagar83778-77756 ( HER.SELF ) Brings Call Girls In Laxmi Nagar
83778-77756 ( HER.SELF ) Brings Call Girls In Laxmi Nagar
dollysharma2066
 

Recently uploaded (20)

Vip Mumbai Call Girls Mira Road Call On 9920725232 With Body to body massage ...
Vip Mumbai Call Girls Mira Road Call On 9920725232 With Body to body massage ...Vip Mumbai Call Girls Mira Road Call On 9920725232 With Body to body massage ...
Vip Mumbai Call Girls Mira Road Call On 9920725232 With Body to body massage ...
 
Hot Modals Call Girls (Delhi) Dwarka9711199171✔️ High Class Service 100% Saf...
Hot Modals Call Girls (Delhi) Dwarka9711199171✔️ High Class  Service 100% Saf...Hot Modals Call Girls (Delhi) Dwarka9711199171✔️ High Class  Service 100% Saf...
Hot Modals Call Girls (Delhi) Dwarka9711199171✔️ High Class Service 100% Saf...
 
Chapter-1.3-Four-Basic-Computer-periods.pptx
Chapter-1.3-Four-Basic-Computer-periods.pptxChapter-1.3-Four-Basic-Computer-periods.pptx
Chapter-1.3-Four-Basic-Computer-periods.pptx
 
Business Bay Escorts $#$ O56521286O $#$ Escort Service In Business Bay Dubai
Business Bay Escorts $#$ O56521286O $#$ Escort Service In Business Bay DubaiBusiness Bay Escorts $#$ O56521286O $#$ Escort Service In Business Bay Dubai
Business Bay Escorts $#$ O56521286O $#$ Escort Service In Business Bay Dubai
 
Call Girls in Malviya Nagar Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts Ser...
Call Girls in Malviya Nagar Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts Ser...Call Girls in Malviya Nagar Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts Ser...
Call Girls in Malviya Nagar Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts Ser...
 
如何办理女王大学毕业证(QU毕业证书)成绩单原版一比一
如何办理女王大学毕业证(QU毕业证书)成绩单原版一比一如何办理女王大学毕业证(QU毕业证书)成绩单原版一比一
如何办理女王大学毕业证(QU毕业证书)成绩单原版一比一
 
Call Girls In Kotla Mubarakpur Delhi ❤️8448577510 ⊹Best Escorts Service In 24...
Call Girls In Kotla Mubarakpur Delhi ❤️8448577510 ⊹Best Escorts Service In 24...Call Girls In Kotla Mubarakpur Delhi ❤️8448577510 ⊹Best Escorts Service In 24...
Call Girls In Kotla Mubarakpur Delhi ❤️8448577510 ⊹Best Escorts Service In 24...
 
Delhi Call Girls Saket 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Saket 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Saket 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Saket 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Why Won't Your Subaru Key Come Out Of The Ignition Find Out Here!
Why Won't Your Subaru Key Come Out Of The Ignition Find Out Here!Why Won't Your Subaru Key Come Out Of The Ignition Find Out Here!
Why Won't Your Subaru Key Come Out Of The Ignition Find Out Here!
 
design a four cylinder internal combustion engine
design a four cylinder internal combustion enginedesign a four cylinder internal combustion engine
design a four cylinder internal combustion engine
 
一比一原版(PU学位证书)普渡大学毕业证学历认证加急办理
一比一原版(PU学位证书)普渡大学毕业证学历认证加急办理一比一原版(PU学位证书)普渡大学毕业证学历认证加急办理
一比一原版(PU学位证书)普渡大学毕业证学历认证加急办理
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In Shankar vihar ≼🔝 Delhi door step delev...
Call Now ≽ 9953056974 ≼🔝 Call Girls In Shankar vihar ≼🔝 Delhi door step delev...Call Now ≽ 9953056974 ≼🔝 Call Girls In Shankar vihar ≼🔝 Delhi door step delev...
Call Now ≽ 9953056974 ≼🔝 Call Girls In Shankar vihar ≼🔝 Delhi door step delev...
 
一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办
一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办
一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办
 
Sanjay Nagar Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalor...
Sanjay Nagar Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalor...Sanjay Nagar Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalor...
Sanjay Nagar Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalor...
 
Call Girls in Malviya Nagar Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts Ser...
Call Girls in Malviya Nagar Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts Ser...Call Girls in Malviya Nagar Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts Ser...
Call Girls in Malviya Nagar Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts Ser...
 
What Could Cause Your Subaru's Touch Screen To Stop Working
What Could Cause Your Subaru's Touch Screen To Stop WorkingWhat Could Cause Your Subaru's Touch Screen To Stop Working
What Could Cause Your Subaru's Touch Screen To Stop Working
 
How To Fix Mercedes Benz Anti-Theft Protection Activation Issue
How To Fix Mercedes Benz Anti-Theft Protection Activation IssueHow To Fix Mercedes Benz Anti-Theft Protection Activation Issue
How To Fix Mercedes Benz Anti-Theft Protection Activation Issue
 
John Deere 7430 7530 Tractors Diagnostic Service Manual W.pdf
John Deere 7430 7530 Tractors Diagnostic Service Manual W.pdfJohn Deere 7430 7530 Tractors Diagnostic Service Manual W.pdf
John Deere 7430 7530 Tractors Diagnostic Service Manual W.pdf
 
如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一
如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一
如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一
 
83778-77756 ( HER.SELF ) Brings Call Girls In Laxmi Nagar
83778-77756 ( HER.SELF ) Brings Call Girls In Laxmi Nagar83778-77756 ( HER.SELF ) Brings Call Girls In Laxmi Nagar
83778-77756 ( HER.SELF ) Brings Call Girls In Laxmi Nagar
 

How To Use Linux CAN Signal To AGL

  • 1. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. 02/08/2017 Yuichi Kusakabe SS Engineering Group Fujitsu TEN LIMITED How To Use Linux CAN Signal To AGL 1
  • 2. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. About Myself 2  Yuichi Kusakabe (Fujitsu TEN LIMITED)  Software Engineer of IVI about 10 years (for 16-bit and 32-bit architecture)  Linux Software Engineer(2011-2013)  Linux Software Lead Engineer(2013-Now)  BSP Porting/Customizing  Supporting for in-house software developers
  • 3. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. Agenda 3 What’s CAR CAN signal Standard Linux CAN IF & OSS CAN Tool How to use CAN signal to AGL Demonstration & Results Conclusion
  • 4. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. What’s CAR CAN Signal 4
  • 5. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. What’s CAR CAN Signal 5 Standard CAN Signal format(11bit). Data line: D+/D-/GND(want) Baud rate: 500kbps CAN ID: 11bit(0x000~0x7FF) Data size: 0~8byte CAN Bus load: 20~75% Standard CAN Signal is Low Speed(500kbps), But High frequency(**us). https://ja.wikipedia.org/wiki/Controller_Area_Network
  • 6. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. Standard Linux CAN IF & OSS CAN Tool 6
  • 7. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. Standard Linux CAN IF(SocketCAN) 7 Linux kernel all ready CAN IF with Socket CAN https://en.wikipedia.org/wiki/SocketCAN
  • 8. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. Standard Linux CAN IF(CAN Driver) 8 Linux kernel all ready CAN IF with Socket CAN https://www.kernel.org/doc/Documentation/networking/can.txt
  • 9. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. OSS CAN Tool(Powerful software) 9 can-utils easy to debug CAN Signal (read/write/play) https://github.com/linux-can/can-utils
  • 10. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. OSS CAN Tool(Powerful software) 10 https://github.com/linux-can/can-utils ID=333(11bit), DATA=33 send=can0 # cansend can0 333#33 ID=00004444(24bit), DATA=44 send=can0 # cansend can0 00004444#44 CAN data send(cansend) recv=can # candump can0 -ta root@porter:~# candump can0 -ta (1478869757.430017) can0 344 [8] FF EE 00 00 00 00 EE AA (1478869757.431290) can0 226 [8] E4 00 00 EE 00 EE EE 00 recv=all # candump any -ta CAN data recv(candump)
  • 11. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. How to use CAN signal to AGL 11
  • 12. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. AMB(Automotive Message Broker) 12 This time AGL provide AMB, but AGL remake new CAN Signal handing FW. https://github.com/otcshare/automotive-message-broker
  • 13. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. AMB Plugins 13 AMB provide simple plugin only, default is not use SocketCAN https://github.com/otcshare/automotive-message-broker
  • 14. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. What’s CANRAWPLUGIN 14 CAN signal filtering(setting SocketCAN) CAN ID xxx -> xx CAN signal thinning out CAN cycle xx ms -> xxx ms CAN data convert AMB format CANRAWPLUGIN is Simple SocketCAN AMB Plugins SocketCAN CANRAWPLUGIN AMB CORE CAN filtering thinning
  • 15. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. Demonstration & Results 15
  • 16. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. Target Hardware spec 16 http://elinux.org/R-Car/Boards/Porter AGL reference Hardware to Renesas R-CAR M2 Porter board http://panasonic.jp/sd/p-db/RP-SMGB32GJK.html 32GB microSDHC
  • 17. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. Target Hardware spec 17 http://elinux.org/R-Car/Boards/ CAN simulator running to AGL reference Hardware to Renesas R-CAR M3
  • 18. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. Target Hardware spec 18 http://www.can232.com/?page_id=16 R-CAR M3 not include CAN IF, CANUSB easy connect CANIF
  • 19. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. Target Hardware spec 19 http://www.can232.com/?page_id=16 CANUSB connected CAN IF simple Hardware
  • 20. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. Software setup 20 CONFIG_CAN=y CONFIG_CAN_VCAN=y CONFIG_CAN_RCAR=y <- Renesas Porter board only CONFIG_CAN_SLCAN=y CONFIG_USB_SERIAL=y CONFIG_USB_SERIAL_FTDI_SIO=y Add Kernel defconfig CAN driver and CANUSB yocto local.conf IMAGE_INSTALL_append = “ can-utils iproute2” Add rootfs “can-utils” and “iproute2” Setup CAN and CANUSB CAN0 ip link set can0 type can bitrate 500000 ip link set can0 up CANUSB slcand -o -s 6 -t hw /dev/ttyUSB* ip link set slcan0 up
  • 21. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. Demonstration 21 Porter board(running AGL CES DEMO), M3(running CAN simulator) and CANUSB
  • 22. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. Results 22 CAN data detail Filtering CAN ID:124 -> 40 Thinning out time: **ms -> 100ms No CAN Bus load can id/sec CPU load (AMB + d-bus) 1 0% 0 6.7% 2 29% 1,447 35.88% 3 43% 2,063 86.29% 4 50% Unmeasurable ->data lost Unmeasurable ->data lost AMB and d-bus is heavy, and small CAN data handing difficult
  • 23. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. Conclusion 23 Linux Kernel all ready use to CAN OSS CAN Tool “can utils” is good software CAN Signal handing resource is difficult Next step Define AGL public CAR CAN data format AGL standard CAN simulator New CAN handing FW support SocketCAN
  • 24. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. Extra(Japanese How to Use Linux CAN ) 24 http://qiita.com/yuichi-kusakabe/items/e5b50aa3edb712bb6916
  • 25. Copyright © 2016 FUJITSU TEN LIMITED. All rights reserved. 25 Thank you!!! yuichi.kusakabe@jp.fujitsu.com