Changes between Version 4 and Version 5 of canbus


Ignore:
Timestamp:
08/31/2018 12:40:27 AM (6 years ago)
Author:
Tim Harvey
Comment:

remove references to older deprecated canutils/libsocketcan

Legend:

Unmodified
Added
Removed
Modified
  • canbus

    v4 v5  
    9292
    9393Userspace:
    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
    10398SocketCAN is a set of open source CAN drivers and a networking stack contributed by Volkswagon Research to the Linux kernel and was formerly known as Low Level CAN Framework (LLCF).
    10499
     
    175170 * source: https://gitorious.org/linux-can/can-utils
    176171
    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
    205174 * Freescale has not released can-utils or userspace utilities for CAN in Android
    206175 * Android requires standard socket programming to access the CAN0 socket interface.
     
    219188More notes in this thread here: [https://community.freescale.com/thread/307066]
    220189
    221 = CAN Bus Hardware =
    222 
    223 == NMEA 2000 Equipment ==
     190
     191= CAN Bus Hardware
     192
     193== NMEA 2000 Equipment
    224194Some examples of NMEA 2000 equipment we have tested our products with:
    225195 * [http://www.amazon.com/Lowrance-NMEA-2000-Network-Starter/dp/B002BBFE98/ref=sr_1_4?ie=UTF8&qid=1413221333&sr=8-4&keywords=lowrance+point+1 Lowrance NMEA 2000 Network Starter Kit] - Includes 2 terminatoring resistors, 1 2ft extension cable, 1 15ft extension cable, 2 T-connectors, and a power node connector
    226196 * [http://www.lowrance.com/en-US/Products/NMEA-2000/Point-1-en-us.aspx Lowrance POINT-1 GPS] - NMEA 2000 GPS (12V powered 250kbps bitrate)
    227197
    228 == Chip-Level ==
     198== Chip-Level
    229199An example chip that would interface to the Ventana board would be:
    230200- A CAN controller chip would be something like [http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en010406 Microchip MCP2515]
     
    232202
    233203
    234 = CAN Bus Development Tools =
     204= CAN Bus Development Tools
    235205 - Microchip APGDT002 Can Bus Analyzer:
    236206  - This product allows us to try CAN from a computer with a USB port.  This is for 'testing and development'
     
    246216
    247217
    248 = References =
     218= References
    249219 * CAN Bus Wikipedia: [http://en.wikipedia.org/wiki/CAN_bus]
    250220 * SocketCAN API: https://www.kernel.org/doc/Documentation/networking/can.txt