Data Upload
1. Data Transmission Switch
1.1 Upper Computer Sets Data Transmission Switch
Command: 0x7330
| Parameter | Type | Description |
|---|---|---|
| enable | bool | Data transmission switch |
| robot | int | Current robot number |
json
{
"enable": true,
"robot": 1
}1.2 Upper Computer Queries Data Transmission Switch
Command: 0x7331
| Parameter | Type | Description |
|---|---|---|
| robot | int | Current robot number |
json
{
"robot": 1
}1.3 Controller Replies with Data Transmission Switch
Command: 0x7332
| Parameter | Type | Description |
|---|---|---|
| enable | bool | Data transmission switch |
| robot | int | Current robot number |
json
{
"enable": false,
"robot": 1
}2. Data Upload Parameters
2.1 Upper Computer Sets Data Upload Parameters
Command: 0x7333
| Parameter | Type | Range/Value | Description |
|---|---|---|---|
| dataCollectTime | int | [0, 999999]s | Data collection cycle |
| dataUploadTime | int | [0, 999999]s | Data upload cycle |
| fileSuffix | string | "csv", "txt" | File format |
| filepath | string | - | File path |
| password | string | - | Password |
| robot | int | [1, 4] | Robot number |
| sendInfoFileFlag | bool | - | Whether to send documentation file |
| serverIP | string | - | Server IP |
| serverPort | int | (0, 65535] | Port number |
| uploadMode | string | Default "FTP" | Upload method |
| username | string | - | Username |
json
{
"dataCollectTime": 1.0,
"dataUploadTime": 30.0,
"fileSuffix": "csv",
"filepath": "",
"password": "",
"robot": 1,
"sendInfoFileFlag": false,
"serverIP": "192.168.1.14",
"serverPort": 21,
"uploadMode": "FTP",
"username": ""
}2.2 Upper Computer Queries Data Upload Parameters
Command: 0x7334
| Parameter | Type | Range | Description |
|---|---|---|---|
| robot | int | [1, 4] | Robot number |
json
{
"robot": 1
}2.3 Controller Replies with Data Upload Parameters
Command: 0x7335
| Parameter | Type | Range/Value | Description |
|---|---|---|---|
| dataCollectTime | int | [0, 999999]s | Data collection cycle |
| dataUploadTime | int | [0, 999999]s | Data upload cycle |
| fileSuffix | string | "csv", "txt" | File format |
| filepath | string | - | File path |
| password | string | - | Password |
| robot | int | [1, 4] | Robot number |
| sendInfoFileFlag | bool | - | Whether to send documentation file |
| serverIP | string | - | Server IP |
| serverPort | int | (0, 65535] | Port number |
| uploadMode | string | Default "FTP" | Upload method |
| username | string | - | Username |
json
{
"dataCollectTime": 1.0,
"dataUploadTime": 30.0,
"fileSuffix": "csv",
"filepath": "",
"password": "",
"robot": 1,
"sendInfoFileFlag": false,
"serverIP": "192.168.1.14",
"serverPort": 21,
"uploadMode": "FTP",
"username": ""
}3. Data Format
Note: Upper computer setting and querying are performed in four iterations
3.1 Upper Computer Sets Data Format
Command: 0x7336
| Parameter | Type | Range | Description |
|---|---|---|---|
| format | string | - | Data format, format representation: Robot-R1_Year-Month-Day_Hour-Minute-Second, see data format for detailed description |
| robot | int | [1, 4] | Current robot number |
| type | int | [1, 4] | Current format type being set |
type Value Description:
| Value | Description |
|---|---|
| 1 | Documentation file name |
| 2 | Documentation file content |
| 3 | Data file name |
| 4 | Data file content |
json
{
"format": "Robot-R1_ $Y%-$m%-$d%_ $H%-$M%-$S%",
"robot": 1,
"type": 1
}3.2 Upper Computer Queries Data Format
Command: 0x7337
| Parameter | Type | Range | Description |
|---|---|---|---|
| robot | int | [1, 4] | Current robot number |
| type | int | [1, 4] | Current format type being set |
json
{
"robot": 1,
"type": 1
}3.3 Controller Replies with Data Format
Command: 0x7338
| Parameter | Type | Range | Description |
|---|---|---|---|
| format | string | - | Data format, format representation: Robot-R1_Year-Month-Day_Hour-Minute-Second |
| robot | int | [1, 4] | Current robot number |
| type | int | [1, 4] | Current format type being set |
json
{
"format": "Robot-R1_ $Y%-$m%-$d%_ $H%-$M%-$S%",
"robot": 1,
"type": 1
}