background image

Design Service,Production Service

www.inno-maker.com

Support:

[email protected] www.inno-maker.com/wiki

Bulk Price:

[email protected]

4

Software Description

1. CAN Communication Test Demo

Run demo for two Raspberry Pi

(1) Prepare two USB-CAN module and two Raspberry Pi board. Connect the H and L port of
USB-CAN module to other’s port, and then insert into the USB Host of Raspberry PI board.

(2) Down the the demo image from INNO wiki page:

http://www.inno-maker.com/wiki/doku.php?id=usb_can

Or

http://www.inno-maker.com/wiki/

Note :You must use a TF card at least than 16Gb, Otherwise it will write failed.

(3) Execute commands to visited the test demo.

(4) Execute following commands in serial terminal. You should see the “can 0” socket can device.
ifconfig –a

(5) Set one Pi as receiver, execute following commands in serial terminal. Now this Raspberry pi
is blocked.
./can0_receive

Содержание USB-CAN MODULE

Страница 1: ...Design Service Production Service www inno maker com Support support inno maker com www inno maker com wiki Bulk Price sales inno maker com 1 USB CAN MODULE User Manual...

Страница 2: ...y experienced engineer interfacing to expensive industrial equipment yet simple enough for home use by an amateur hobbyist Features 1 Compatible with Raspberry Pi Zero Zero W 2B 3B 3B 2 Full support f...

Страница 3: ...ce www inno maker com Support support inno maker com www inno maker com wiki Bulk Price sales inno maker com 3 Hardware Description 1 Pin Out Configuration 2 120 Ohm resistor setting Disable 120 Ohm r...

Страница 4: ...s port and then insert into the USB Host of Raspberry PI board 2 Down the the demo image from INNO wiki page http www inno maker com wiki doku php id usb_can Or http www inno maker com wiki Note You m...

Страница 5: ...ce www inno maker com Support support inno maker com www inno maker com wiki Bulk Price sales inno maker com 5 6 Set other Pi as sender execute following commands can0_send 7 You should see that the r...

Страница 6: ...ki Bulk Price sales inno maker com 6 Run demo for only one Raspberry Pi In this case you also can insert two USB CAN module into a Raspberry PI board to test You should see two can socket can 0 and ca...

Страница 7: ...r as possible to the TCP IP protocols to allow programmers familiar with network programming to easily learn how to use CAN sockets 1 Preparations Elimination the need for software drivers when you ru...

Страница 8: ...iki Bulk Price sales inno maker com 8 Step 2 Locate the interface to can0 or other name you wish to use The name will show when you execute ifconfig a Step 3 Bind the socket to can0 Step 4 Disable sen...

Страница 9: ...ki Bulk Price sales inno maker com 9 Step 6 Send message to the can bus You can use the return value of write to check whether all data has been sent successfully Step 7 Close can0 device and disable...

Страница 10: ...can bus For more Socket CAN detail please refer to below link https www kernel org doc Documentation networking can txt Version Descriptions Version Description Author Date E mail V1 0 0 0 First edit...

Отзывы: