Skip to content
Alexander Nitsch edited this page Aug 25, 2018 · 3 revisions

Note: This information applies only to the old CECH-ZCM1 models, not the newer CECH-ZCM2 models.

The Move controller ships with a working debug interface. It is, however, disabled by default.

Enabling debug mode is a matter of simply changing the flag at address 0x20000B00 in the MCU's SRAM to any non-zero value. Use Feature report 0xF1 to do this. You will recognize a Move controller in debug mode by an additional USB ACM interface that will show up when checking with lsusb for instance. The controller can still be used as usual, of course.

If in debug mode, the Move's "debug task" will output all sorts of information, most of it Bluetooth-related.

Also running on the device is a "monitor task" which allows to query and modify certain low-level features of the device as well as internals of the underlying RTOS. It operates on a simple text interface that offers 33 different commands:

Command Description
tsk Reference all task informations
terTsk Terminate task
sem Reference all semaphore informations
sigSem Signal semaphore
flg Reference all flag informations
setFlg Set flag
clrFlg Clear flag
mbx Reference all MailBox informations
mpf Reference all Fixed Memory Pool informations
getTim Reference system time
cyc Reference all cyclic handler information
stpCyc Stop cyclic handler
trcFlg Trace Flag Control
dbgLog Output Trace log
chkStack Check Stack Area
sndUsb Send USB DATA
rcvI2c Receive I2C DATA
sndI2c Send I2C DATA
idleTime Analyze CPU Usage Rate
clk Reference System Clock Freq
battery Reference Battery Information
flashRP Set Read Protection for Flash memory
flashErase Erase the EEP area in Flash memory
iniCnfDat Initial Configuration Data in Flash
sphrFreq Set Sphere Frequency
setTempOfst Set the temperature Offset
getTemp Get the temperature from the DS7505 sensor
ver Reference Firmware Version
btTest Enable the BT testmode
sndBccmd Send the BCCMD to BT (BT testmode only)
tglBtSdt Toggle the BT-SDT line status (BT testmode only)
getBtSdt Get the BT-SDT line status
getBtPs Get the BT-PSKEY data (BT testmode only)