I have a virtual canbus interface Simulator setup (vcan0) on my linux vm, How do I create a can bus device in Cumulocity to use it
You need an agent to integrate it Cumulocity IoT.
As you have a linux OS, best way to start might be thin-edge.io. There is no canbus plugin available yet but would be a good starting point to install thin-edge.io and write a small canbus plugin to map the data to the local mqtt broker so it can be directly forwarded to Cumulocity IoT (or other clouds).
hi @Stefan_Witschel I have installed thin-edge.io on my ubuntu Vm.how can I create a canbus plugin to map the virtual can interface (vcan) data to mosquitto, Any tutorial for creating it or any articles about it ?
also the data generated is using the command
and output using:
vcan0 202  A3 3A 56
vcan0 301  FD D9 8A 22 FE 45 94
vcan0 75B  01 9E F3 10 3F B6 5E 45
vcan0 2EE  28 77 CD
vcan0 68F  8D A5 A5
vcan0 1EE  82 31 96 79
vcan0 603  D7 75 49 6E 8C
vcan0 75C  AE AE 52 4C 5E 21 EE 2E
vcan0 4AD  3A 89
vcan0 389  AD C5 E3 0
I have to map such data to Cumulocity
You need any component written in the programming language of your choice to
- get the data of your canbus. e.g. In python you can easily call shell commands and work with the output
- map & send the data to the thin-edge MQTT API
For that you need to implement a MQTT client that connects to the local MQTT Broker of thin-edge.io and send the data to the right topic and format so it can be processed in Cumulocity IoT.
Here are some examples: