SK Pang Electronics RSP-PICAN FD DUO ISO User Manual

Pican fd duo isolated can-bus board for raspberry pi 4

Advertisement

Quick Links

Product name
Model number
Manufacturer
PiCAN FD DUO ISO Rev B 1.0
PiCAN FD DUO Isolated
USER GUIDE V1.0
PICAN FD Duo Isolated CAN-Bus Board for Raspberry Pi 4
RSP-PICAN FD DUO ISO
SK Pang Electronics Ltd
SK Pang Electronics Ltd Ó 2022
www.skpang.co.uk
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RSP-PICAN FD DUO ISO and is the answer not in the manual?

Questions and answers

Summary of Contents for SK Pang Electronics RSP-PICAN FD DUO ISO

  • Page 1 PiCAN FD DUO ISO Rev B 1.0 PiCAN FD DUO Isolated USER GUIDE V1.0 Product name PICAN FD Duo Isolated CAN-Bus Board for Raspberry Pi 4 Model number RSP-PICAN FD DUO ISO Manufacturer SK Pang Electronics Ltd SK Pang Electronics Ltd Ó 2022 www.skpang.co.uk...
  • Page 2 Contents Table of Contents Introduction ......................1.1. Features ................................3 Hardware Installation ..................... 1.2. Plug-in Screw Terminals ..........................4 1.3. 120W Terminator ............................4 1.4. LED ..................................4 Software Installation ....................1.5. Installing CAN Utils ............................5 1.6. Bring Up the Interface ..........................5 Python Installation and Use ..................SK Pang Electronics Ltd Ó 2022 www.skpang.co.uk...
  • Page 3 • Reinforced galvanic isolation • Arbitration Bit Rate upto 1Mbps • Data Bit Rate up to 8Mbps • CAN FD Controller modes • Mixed CAN2.0B and CANFD mode • CAN2.0B mode • Conforms to ISO11898-1:2015 • High speed SPI Interface • CAN connection via 4way plug-in screw terminal • 120Ω terminator ready • LED indicator • Four fixing holes, comply with Pi Hat standard • SocketCAN driver, appears as can0 and can1 to application • Interrupt RX on GPIO25 and 05 2. Hardware Installation Before installing the board make sure the Raspberry is switched off. Carefully align the 40way connector on top of the Pi. Use spacer and screw (optional items) to secure the board. SK Pang Electronics Ltd Ó 2022 www.skpang.co.uk...
  • Page 4 Function CAN_L CAN_L CAN_H CAN_H GND GND n/c n/c 1.3. 120 W Terminator There is a 120W fitted to the board. To use the terminator solder a 2way header pin to JP1 and JP2 then insert a jumper. 1.4. LED There is a red LED fitted to each channel. This is connected to GPIO04 and GPIO26. 3. Software Installation It is best to start with a brand new Raspbian image. Download the latest from: https://www.raspberrypi.org/downloads/raspbian/ After first time boot up, do an update and upgrade first. sudo apt-get update sudo apt-get upgrade sudo reboot Add the overlays by: SK Pang Electronics Ltd Ó 2022 www.skpang.co.uk...
  • Page 5 /sbin/ip link set can0 up type can bitrate 500000 dbitrate 2000000 fd on sample-point .7 dsample-point .7 Connect the PiCAN FD Duo ISO to your CAN network via plug-in screw terminal. To send a CAN 2.0 message use : cansend can0 7DF#0201050000000000 This will send a CAN ID of 7DF. Data 02 01 05 – coolant temperature request. To send a CAN FD message with BRS use : cansend can0 7df##15555555555555555 To send a CAN FD message with no BRS use : cansend can0 7df##05555555555555555 Connect the PiCAN to a CAN-bus network and monitor traffic by using command: candump can0 SK Pang Electronics Ltd Ó 2022 www.skpang.co.uk...
  • Page 6 /sbin/ip link set can0 up type can bitrate 500000 dbitrate 2000000 fd on sample-point .7 dsample-point .7 Now start python3 and try the transmit with CAN FD and BRS set. python3 import can bus = can.interface.Bus(channel='can0', bustype='socketcan',fd = True) msg = can.Message(arbitration_id=0x7de,extended_id=False,is_fd = True, bitrate_switch = True,data=[0,0,0,0,0,0x1e,0x21,0xfe, 0x80, 0, 0,1,0]) bus.send(msg) SK Pang Electronics Ltd Ó 2022 www.skpang.co.uk...
  • Page 7 PiCAN FD DUO ISO Rev B 1.0 To received messages and display on screen type in: notifier = can.Notifier(bus, [can.Printer()]) Documentation for python-can can be found at : https://python-can.readthedocs.io/en/stable/index.html More expamles in github: https://github.com/skpang/PiCAN-FD-Python-examples SK Pang Electronics Ltd Ó 2022 www.skpang.co.uk...

Table of Contents