CAN
CAN Bus Interface
- Overview
- Driver
- Tethered Samples
- Standalone Samples
CAN bus interface module for automotive and industrial networks
Key features • Support CAN V2.0B | Resources PID: 0x030001 |
Driver Scripts go hand-in-hand with DUELink official firmware. See the Driver Scripts page for further details.
| Function | Description |
|---|---|
Bitrate(b) | Sets the b bitrate (125K, 250K, 500K, 1M) |
RxFull() | Returns 1 if there is a received CAN message. |
RxRd() | Reads a received message. Returns the ArbID of the message or -1 if none. b9 is a 9-byte array contains the message body, with first element containing DLC followed by 0 to 8 bytes of data. |
TxFree() | Returns 1 if ready for new data, or previous transmit request succeeded. |
TxReq(i,l,b9) | Request to send a message with i EID and l length of the b9 data array. Returns 1 if a message was posted or 0 if busy to take a new one. |
DVer() | This driver version. |
The Code!
CAN Driver
loading...
These Tethered samples assume the driver is installed, see the Driver Tab.
- Python
- MicroPython
- JavaScript
- .NET
- Arduino
Python Sample
loading...
MicroPython Sample
loading...
JavaScript Sample
loading...
.NET Sample
loading...
Arduino Sample
loading...
These samples show how to run DUELink Standalone.
- Script
- Arduino
This example runs using the default DUELink Internal Engine using its Scripting Language, and it expects the driver to be loaded first, see the Driver Tab.
Standalone Script Sample
loading...
See Arduino page for more info.
Standalone Arduino Sample
loading...
Ordering Info
| Product | Part Number | Price |
|---|---|---|
| DUELink CAN | GDL-CMCAN-B | $14.95 |