-
Notifications
You must be signed in to change notification settings - Fork 3
Commands: System
BPI Services Dev edited this page Feb 11, 2019
·
4 revisions
The main iMatch device. Provides the following functions:
-
datetimereturns the current datetime of the iMatch whenparamsis left empty. Needs to be set on startup! The datetime format is an 8-tuple:(year, month, day, weekday, hours, minutes, seconds, subseconds) -
inforeturns firmware version, revision and build data in the response along with a flag indicating iffastflashis supported in the firmware. -
echoreturns the suppliedparamsasdatain the response. -
ledsets the specified led to the specified color. Theparamsformat is a 2-tuple(led,color).-
ledpossible values are either 1 (left led) or 2 (right led) -
colorpossible values are:- 0 (off)
- 1 (red)
- 2 (green)
- 3 (yellow)
- 4 (blue)
- 5 (cyan)
- 6 (magenta)
- 7 (white)
-
-
flashflashes 128 bytes to the firmware. Theparamsformat is a base64 string of the firmware bytes.-
flash_loadedtells the device that the firmware upload is complete and to restart into the new version. Theparamsformat is a 3-tuple(total length, checksum, skip CRC).
-
-
firmware_updatetells the device to listen for raw bytes iffastflashis supported in the firmware. This can be determined from the response of theinfomethod. Theparamsformat is a 3-tuple(total length, checksum, skip CRC). Once in the raw bytes mode, the firmware can be transmitted 256 bytes at a time.