christoph2 / pyxcp

ASAM XCP in Python
http://pyxcp.rtfd.org
GNU Lesser General Public License v3.0
207 stars 64 forks source link

Handle ERR_CMD_UNKNOWN in GET_COMM_MODE_INFO #144

Closed chrisoro closed 1 year ago

chrisoro commented 1 year ago

Types of changes

According to the XCP spec, the GET_COMM_MODE_INFO command is optional. I noticed that an error handler for ERR_CMD_UNKNOWN was present for all other optional commands, but missing for this one. So, I've added it accordingly.

christoph2 commented 1 year ago

OK, was missing. Nobody is required to use (but everybody should use) the following start-up sequence...

 x.connect()
 if x.slaveProperties.optionalCommMode:
     x.getCommModeInfo()