CANStick

CAN Bus made simple.

What is CANStick?

CANStick is an easy to use USB to CAN adapter for computers, chromebooks, mobile devices, and other embedded devices. CANStick supports APIs for popular languages and is so easy to use that you will be up in running
in 10 minutes or less.

Designed for developers

Tools and APIs are designed for developers by developers. Our test suite enables test driven development. Get involved in the BETA program or development channels!

10 Minutes or Less

Up and running in 10 minutes or less! Code examples and instructional videos available for all major platforms. Install instantly with your favorite package manager.

Maker-centric

Open Source developer SDKs available for Raspberry Pi, Arduino, Beaglebone, and other platforms with Yocto recipes and Debian/Ubuntu packages.

Mobile-friendly

SDKs and example Applications for Chromebooks, Tablets, and Phones running on Chrome OS, and Android KitKat, Lollipop, Marshmallow, and Nougat.

(OSS) Open-source software

Development is done in Github open-source repos to provide transparency, easy customization, community support, and easy cross-compiling for new targets.

Permissive Licensing

Software licenses for open-source software is permissive with an Apache License. Closed source applications are easily extendable with Javascript plug-ins.

Features

Get Started

Python

Python 2.x and 3.x


    import canstick
    canstick.init(CANSTICK_29BIT,0x20)
    canstick.send("hello world!")
                     

C/C++

Support for GNU, CLang, Keil, Green Hills, Microsoft Visual Studio compilers across C99 C11 and C++ 99, C++11, C++14

    
    #include <stdint.h>
    #include "canstick.h"
    int main(int argc, char **argv)
    {
        canstick_init(CANSTICK_29BIT,0x20); // initialize with source address 0x20
        canstick_send("hello world!");
    } 
   

Java/Android

Support for Java 8, Java 9, and Java 10, both OpenJDK and Sun Java SDKs


     import io.canstick;
     public class HelloCANStick {
          public static void main(String[] args) {
               CANStick device = new CANStick(CANSTICK_29BIT, 0x20);
               device.send("hello world!");
          }
     }
                   

Full Documentation

View the full project source code and documentation and get involved!.

More on GitHub