jgeisler0303 / CANFestivino

Arduino Library Version of CANFestival CANopen Stack
GNU Lesser General Public License v2.1
51 stars 17 forks source link

How to make a simple sniffer? #6

Open alessio31183 opened 7 years ago

alessio31183 commented 7 years ago

First of all that for the great job ! What I have to do if I just wish to make a sniffer able to read data on the BUS with CANopen protocol taking values from external sensor (Inclinometer)?

jgeisler0303 commented 7 years ago

Well, CANopen is a pretty complicated protocol. If you really want to make a "sniffer" I would suggest you pass the raw CAN data to a PC and do the protocol stuff there.

Alternatively, if you just want to read one sensor, you need to know how access that sensors data (PDO, SDO, cobID). Then you can configure CANFestivino to read (pull, listen) that data and pass it on. If you don't know what PDO, SDO or cobID is, I suggest you first read up on how CANopen works.

alessio31183 commented 7 years ago

yes I'm trying to figure out better how the project works (dictionary making, functions....)