Code: |
AS + 402 |
Symbolic: |
bccMonStart |
This command will start the data stream for an existing variable monitor (or all monitor of the owner) on the connected device. Request parameters are the following:
Offset |
Type |
Label |
Description |
---|---|---|---|
0 |
U32 |
OWNER |
Owner ID |
4 |
U32 |
ID |
Monitor ID, or 0xFFFFFFFFF for all owner's monitor. |
8 |
U16 |
FREQ |
Data stream frequency [hz] |
10 |
U32 |
WDT |
Watchdog time [ms] (initial) |
On success, a bccAck is received with the following data:
Offset |
Type |
Label |
Description |
---|---|---|---|
0 |
U16 |
FREQ |
Applied (real) data stream frequency [hz] |
Notes:
•the device can reply with a different frequency than required. In this case you can accept the new frequency or stop the monitor or try again by changing something in the monitor definition.
On failure, a bccNack is received. Specific errors:
NACK code |
Description |
Extra data |
---|---|---|
nackNotFound |
Monitor not found on device |
|
nackIllegalArgs |
Illegal parameter |
U16 What illegal 1=Frequency 2=WD time |
After success, you will receive bccData message at applied frequency (or less if device overloaded), with the following data:
Type |
Label |
Description |
---|---|---|
U32 |
ID |
Monitor ID |
B[] |
DATA |
Data according monitor variable definition |
Notes:
•the PID field for data message is set to 0 when monitor is created and it is incremented by one after each data transmission (progressive).