IRNAS / ppk2-api-python

Power Profiling Kit 2 unofficial python api.
http://irnas.eu
GNU General Public License v2.0
145 stars 37 forks source link

Question / Issue on opcodes in PPK2_Command() #44

Open DargarWhiteFang opened 3 months ago

DargarWhiteFang commented 3 months ago

Hi

I noticed OpCode 0x11 is duplicated, listed as both "TRIGGER_EXT_TOGGLE" and "SET_POWER_MODE" -> is that double-assignment correct?

I also have some general questions on the API:

  1. Are there any documents available to explain the op-codes, arguments (if any), and expected replies?
  2. Is the opcode list in ppk2_api.py complete?
NejcKle commented 1 month ago

Hello @DargarWhiteFang

The double assignment is correct and the list is complete. The TRIGGER_STOP command seems to be deprecated, but is still included in the list.

AFAIK there is no document to describe the OP codes and the return values. We used the official pc-nrfconnect-ppk app and the PPK1 Python API from @wlgrd to create the PPK2 Python API.