Currently I am looking into the canbus protocol that has been used on this Bafang ecosystem. I know thanks to this repo how the frameID is build. But one thing I don't seem to understand, what OPT code is used? Based on the 3 bits used in the frameID for the OPT command, it looks like almost every frameID is a WRITE_CMD (which seems logical), or an OPT_HARDWARE_VERSION (which seems odd).
So which values needs to be used in the OPT command?
These ones:
Hello Everybody,
Currently I am looking into the canbus protocol that has been used on this Bafang ecosystem. I know thanks to this repo how the frameID is build. But one thing I don't seem to understand, what OPT code is used? Based on the 3 bits used in the frameID for the OPT command, it looks like almost every frameID is a WRITE_CMD (which seems logical), or an OPT_HARDWARE_VERSION (which seems odd).
So which values needs to be used in the OPT command? These ones:
or these ones:
I hope someone could answer this for me.
Already thanks for the hero that could help me.
Kind regards, Teun