6\r\n chunk1\r\n 8\r\n somedata\r\n E\r\n in\r\n\r\nchunks.\r\n 0\r\n \r\n
Enumerate devices on the system and return a device list.
Command
Response
Command
{
"agent":[
{
"command":"enumerateDevices"
}
]
}
Response
{
"agent":[
{
"command":"enumerateDevices",
"statusCode":0,
"devices":[
"COM1",
"COM3",
"COM6"
]
}
]
}
Get information about the Digilent agent.
Command
Response
Command
{
"agent":[
{
"command":"getInfo"
}
]
}
Response
{
"agent":[
{
"command":"getInfo",
"statusCode":0,
"version":{
"major":1,
"minor":0,
"patch":0
}
}
]
}
Note: Not yet implemented as of Digilent Agent 1.2.1. Get the active device.
Command
Response
Command
{
"agent":[
{
"command":"getActiveDevice"
}
]
}
Response
{
"agent":[
{
"command":"getActiveDevice",
"statusCode":0,
"device":"COM3"
}
]
}
Set the active device.
Command
Response
Command
{
"agent":[
{
"command":"setActiveDevice",
"device":"COM3"
}
]
}
Response
{
"agent": [
{
"command": "setActiveDevice",
"statusCode": 0
}
]
}
Put the active device in JSON command mode.
Command
Response
Command
{
"agent":[
{
"command":"enterJsonMode"
}
]
}
Response
{
"agent":[
{
"command":"enterJsonMode",
"statusCode":0
}
]
}
Release the active device and free the hardware resource. Command
Response
Command
{
"agent":[
{
"command":"releaseActiveDevice"
}
]
}
Response
{
"agent":[
{
"command":"releaseActiveDevice",
"statusCode":0
}
]
}
Save the provided binary data as the specified file in a temp directory.
Command
Response
Command
{
"agent":[
{
"command":"saveTempFile",
"fileName":"openscope-mz-firmware.hex"
}
]
}
Response
{
"agent":[
{
"command":"saveTempFile",
"statusCode":0
}
]
}
Upload new firmware to the active device.
Command
Response
{
"agent":[
{
"command":"updateFirmware",
"firmwarePath":"openscope-mz-firmware.hex",
"enterBootloader": true
}
]
}
Response
{
"agent": [
{
"command": "updateFirmware",
"statusCode": 0
}
]
}
Update the offline browser version of WaveForms Live.
Command
Response
{
"agent":[
{
"command":"updateWaveFormsLiveBrowser",
"updateZipFileName":"waveforms-live-0.1.0.zip"
}
]
}
Response
{
"agent": [
{
"command": "updateWaveFormsLiveBrowser",
"statusCode": 0
}
]
}
Get the status of the firmware update process.
Command
Response
Response
{
"agent":[
{
"command":"updateFirmwareGetStatus"
}
]
}
Response
{
"agent": [
{
"command": "updateFirmwareGetStatus",
"statusCode": 0,
"status": "uploading",
"progress" 25
}
]
}