From 0709fc32997c6e83b49e1311b000ba9717b87fb6 Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Wed, 14 Nov 2018 12:44:57 +0900 Subject: Add tachometer for horizontal mode Add tachometer for horizontal mode. Change-Id: Ia5ae863dc1b2bfc6c282015c5c01a47c60cc429c Signed-off-by: zheng_wenlong --- demo3/horizontal/tachometer/README.md | 69 +++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 demo3/horizontal/tachometer/README.md (limited to 'demo3/horizontal/tachometer/README.md') diff --git a/demo3/horizontal/tachometer/README.md b/demo3/horizontal/tachometer/README.md new file mode 100644 index 0000000..89807ca --- /dev/null +++ b/demo3/horizontal/tachometer/README.md @@ -0,0 +1,69 @@ +Information +==== +
This is sample application for af-steering-wheel-binding. +
At above of the screen will display usb-camera(UVC camera) video. +
At bottom of this screen will display the can information. +
Right now it can get VehicleSpeed,EngineSpeed,TransmissionMode information from af-steering-wheel-binding. +
Or you can change to use low-level-can-servcie. + +* Hardware: Renesas m3ulcb +* Software: Daring Dab 4.0.0 +* Application name: tachometer +* Test Device: Logitech c920r + +How to compile and install +==== +
These is a sample recipe for tachometer, you can just add that recipes into your project and bitbake. +
Sample Recipes: tachometer_git.bb + +How to use +==== +
1, If the camera has been connected, you can select the camera corresponding to the device ID, and set FPS , +
pixel parameters, open ON/OFF switch on the right, you can see the camera display content. +
2, operation steering-wheel device corresponding function, you can see vehicle speed, engine speed, transmission mode changes. + +Kernel configure +==== +
You need to enable some kernel configure to enable usb camera. +* CONFIG_VIDEOBUF2_VMALLOC=y +* CONFIG_MEDIA_USB_SUPPORT=y +* CONFIG_USB_VIDEO_CLASS=y +* CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y + +CAN data +==== +* engine.speed +
canid: 1C4 +
offset: 0 +
bitsize: 16 +
sample: cansend vcan0 1C4#FFFF000000000000 + +* vehicle.average.speed +
canid: 0B4 +
offset: 40 +
bitsize: 16 +
sample: cansend vcan0 0B4#0000000000FFFF00 + +* fuel.level +
canid: 612 +
offset: 40 +
bitsize: 8 +
sample: cansend vcan0 612#0000000000FF0000 + +* Transmission.SiftPosition.neutral +
canid: 3BC +
offset: 12 +
bitsize: 1 +
sample: cansend vcan0 3BC#0008000000000000 + +* Transmission.SiftPosition.driving +
canid: 3BC +
offset: 40 +
bitsize: 1 +
sample: cansend vcan0 3BC#0000000000800000 + +* Transmission.SiftPosition.parking +
canid: 3BC +
offset: 10 +
bitsize: 1 +
sample: cansend vcan0 3BC#0020000000000000 -- cgit 1.2.3-korg