USBtin CAN Gateway

From Domoticz
Jump to navigation Jump to search

Introduction

The USBtin Can Gateway is an efficient and inexpensive way to connect a Can bus to Domoticz.

All information about hardware, firmware, etc... are available on the original site : https://www.fischl.de/usbtin/

This gateway is supported by domoticz as a usb to serial device, so the USBtin.cpp class offer a way to communicate on a bus Can using a high level layer.

Actually, only Multibloc V8 protocol is supported, but possibilities are limitless (CanOpen, J1939, Nmea, etc...), any developer can implement any protocol !

Instructions

Insert the USBtin gateway in a USB port before hardware creation in Domoticz.

If all is ok, you will see multiple choice in the "port serie" field. The gateway may appear with "/dev/ttyACMx" or under "/dev/serial/by-id/USB-Microchip-Technology..."

Actualy, as stated above, only Multibloc_V8 protocol is supported.

So only the switch named "Multibloc_V8" is usable in the hardware settings:

When hardware starts, here is the type of log we should see:

Startup logs

Currently, the gateway is always start with 250KB/s in Active mod.

For developper only: Developper who would like to integrate new protocol and do what he wants,will have to add som additional settings in the class USBtin.cpp.

CAN Layers descriptions

Description of Multibloc V8 implementation: Multibloc V8