Data Upload
Set Data Upload Switch
Command Code: 0x5721 DATAUPLOAD_ENABLE_SET
Send
json
{
"robot": 1,
"enable": true
}| Parameter | Type | Description |
|---|---|---|
| robot | int | Robot number |
| enable | bool | Whether to upload data (true-upload, false-no upload) |
Query Data Transfer Status
Command Code: 0x5722 DATAUPLOAD_ENABLE_INQUIRE
Send
json
{
"robot": 1
}| Parameter | Type | Description |
|---|---|---|
| robot | int | Robot number |
Return Data Transfer Status
Command Code: 0x5723 DATAUPLOAD_ENABLE_RESPOND
Response
json
{
"robot": 1,
"enable": true
}| Parameter | Type | Description |
|---|---|---|
| robot | int | Robot number |
| enable | bool | Whether to upload data (true-upload, false-no upload) |
Set Data Transfer Parameters
Command Code: 0x5724 DATAUPLOAD_PARM_SET
Send
json
{
"robot": 1,
"uploadMode": "FTP",
"fileSuffix": ".csv",
"serverIP": "192.168.1.100",
"serverPort": 21,
"username": "admin",
"password": "password",
"filepath": "/data",
"dataCollectTime": 60.0,
"dataUploadTime": 300.0,
"sendInfoFileFlag": true
}| Parameter | Type | Description |
|---|---|---|
| robot | int | Robot number |
| uploadMode | string | Upload method (e.g. FTP) |
| fileSuffix | string | File format (e.g. .csv) |
| serverIP | string | Server IP address |
| serverPort | int | Port number |
| username | string | Username |
| password | string | Password |
| filepath | string | Path |
| dataCollectTime | double | Data collection cycle (seconds) |
| dataUploadTime | double | Data upload cycle (seconds) |
| sendInfoFileFlag | bool | Whether to send the description file |
Query Data Transfer Parameters
Command Code: 0x5725 DATAUPLOAD_PARM_INQUIRE
Send
json
{
"robot": 1
}| Parameter | Type | Description |
|---|---|---|
| robot | int | Robot number |
Return Data Transfer Parameters
Command Code: 0x5726 DATAUPLOAD_PARM_RESPOND
Response
Return parameters are the same as 0x5724 (Set Data Transfer Parameters)
Set Upload Data Format
Command Code: 0x5727 DATAUPLOAD_FORMAT_SET
Send
json
{
"robot": 1,
"type": 1,
"format": "datafile"
}| Parameter | Type | Description |
|---|---|---|
| robot | int | Robot number |
| type | int | Data type (1, 2, 3, 4) |
| format | string | Description document file name |
Query Data Format
Command Code: 0x5728 DATAUPLOAD_FORMAT_INQUIRE
Send
json
{
"robot": 1,
"type": 1
}| Parameter | Type | Description |
|---|---|---|
| robot | int | Robot number |
| type | int | Data type (1, 2, 3, 4) |
Return Data Format
Command Code: 0x5729 DATAUPLOAD_FORMAT_RESPOND
Response
json
{
"robot": 1,
"type": 1,
"format": "datafile"
}| Parameter | Type | Description |
|---|---|---|
| robot | int | Robot number |
| type | int | Data type (1, 2, 3, 4) |
| format | string | Description document file name |