Giter Club home page Giter Club logo

canio2's Introduction

canio2

Author: Gruzovator
Contact: [email protected]

License

BSD License: see LICENSE doc

Description

canio2 project is C++/Python libs to control CAN/CANopen/CANopen-like (e.g. PMD Magellan controller) devices.

canio2 C++ lib is header only. canio2 python2 binding is done via boost.python.

Binaries are built for Windows and QNX (Python version - 2.7).

Tips:

  • canio2 lib has a plugins system to use different CAN interfaces (e.g. IXXAT USB-to-CAN). You can add support for your CAN interfaces, see can_plugin.hpp and ixxat plugin example.
  • to run python script place canio2.pyd and plugin dll (e.g. plg_ixxat.dll) into the script folder.
  • async CAN events can be handled via triggers/waiters subsystem.

Python script example

import canio2
from canio2 import CANopenNode

module = canio2.make_module('ixxat')
iface = module.make_iface('HW104122','1000K')
io_service = canio2.IOService(iface)

NODE_ID = 1
node = CANopenNode(NODE_ID, io_service)
if node.reset(5000) == False:
    print 'Error: Boot Timeout'
else:
    print 'Boot OK'
print 'Node State:', node.state

device_type= node.ru32(0x1000,0)
print 'Device Type:',hex(device_type)

canio2's People

Contributors

gruzovator avatar

Watchers

GeekZone avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.