I wanted to start using the python-can library because of its multiple-device library. I tried to start slow, and just run the j1939_logger.py. After discovering -h for help and finding out the correct parameters, I was able to start it up with:
j1939_logger.py -i pcan -c PCAN_USBBUS1
I found that the bus got locked up (other devices are also scanning it). Come to find out the default bitrate for the interface is 500K, when actually J1939 bitrate is defined by spec to be 250K because of legacy devices. The help doesn't indicate an argument to set the bitrate to a different value, so I decided to look at the script. So when I look at the script, all I see is this:
So where is the actual code for the logger?