This repository was archived by the owner on Jan 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
canio2 library is C++/Python libs to communicate with CAN/CANopen/CANopen-like devices
License
gruzovator/canio2
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
canio2 project is C++/Python libs to do different I/O operations in
CAN/CANopen/CANopen-like (e.g. PMD Magellan controller) networks(devices).
canio2 C++ lib is header only.
canio2 python 2 binding is done via boost.python.
canio2 lib has a plugins system to use different CAN interfaces (e.g. IXXAT
USB-to-CAN).
Binaries were successfully built on Windows and QNX (Python version - 2.7).
##############################
#--- 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)
About
canio2 library is C++/Python libs to communicate with CAN/CANopen/CANopen-like devices
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published