94 | | * [https://github.com/linux-can/can-utils can-utils] - a set of userspace community tools that are most commonly used for CAN over Linux (does not require libsocketcan to compile or run) |
95 | | |
96 | | Other Software: |
97 | | * canutils (PTX) - five tools that are used and referenced in 'PTX dist' board support packages. These tools are not very featureful and no longer maintained. The 'canconfig' tool is used to configure the CAN interface as an alternative to the 'ip' tool and uses libsocketcan |
98 | | * libsocketcan - a library for people that want to configure and control CAN interfaces from C code (instead of using the 'ip' tool from the iproute2 package |
99 | | |
100 | | |
101 | | |
102 | | === IMX6 Kernel drivers - SocketCAN === |
| 94 | * [https://github.com/linux-can/can-utils can-utils] - a set of userspace community tools that are most commonly used for CAN over Linux |
| 95 | |
| 96 | |
| 97 | === IMX6 Kernel drivers - SocketCAN |
177 | | === PTX canutils and libsocketcan === |
178 | | The PTX flavor of canutils (http://git.pengutronix.de/?p=tools/canutils.git) provides five tools that are commonly found referenced online which contains the 'canconfig' utility (which uses libsocketcan) to configure the CAN interface as an alternative to the 'ip' tool. |
179 | | |
180 | | Freescale still uses canutils and the canconfig utility thus you will find it in some of the IMX online documentation. Gateworks moved to the more popular full-featured and maintained can-utils configuration utilities for its OpenWrt BSP and its Yocto v1.6 BSP. If you are using an older version of OpenWrt or Yocto BSP and have the 'canconfig' utility you can use these configuration instructions. |
181 | | |
182 | | Configure the following on a Ventana board: |
183 | | {{{ |
184 | | canconfig can0 bitrate 125000 |
185 | | ifconfig can0 up |
186 | | }}} |
187 | | |
188 | | To send from the Ventana board command prompt type: |
189 | | {{{ |
190 | | cansend can0 -i0x100 0x11 0x22 0x33 0x44 |
191 | | }}} |
192 | | |
193 | | To recieve (on another Ventana board, or from !CanAnalyzer USB Device) type the command: |
194 | | {{{ |
195 | | canecho can0 -v |
196 | | }}} |
197 | | |
198 | | Notes: |
199 | | * see #TransceiverSTBY above to enable the SocketCAN transceiver |
200 | | |
201 | | References: |
202 | | * https://community.freescale.com/docs/DOC-1437 |
203 | | |
204 | | === Android BSP === |
| 172 | |
| 173 | === Android BSP |