CXDL Command - Automatic Datalog Sending
Configures automatic sending of datalog (LOG) records to the specified destination.
What is it for?
| Use case | Description |
|---|---|
| 🔄 Automatic synchronization | Send history when reconnecting |
| 📶 Data recovery | Transmit offline stored positions |
| 📡 Multiple channels | Alternate between WiFi/GPRS/BLE |
| 🔁 Configurable retries | Control sending persistence |
Commands
Configure automatic sending
SCXDLa,bb..bb,ccc,dddCancel pending sending
SCXDLECancels pending report sending but keeps data in LOG.
Query
QCXDLResponse
RCXDLa,bb..bb,ccc,dddParameters
| Parameter | Description | Values | Default |
|---|---|---|---|
| a | Enable | 0 = Disabled, 1 = Enabled | 0 |
| bb..bb | Sending destination | TRM, GPRS, WIF, BTH, ALL | - |
| ccc | Retries | 0 = Infinite, 1-999 = Amount | 0 |
| ddd | Time between retries | Tenths of second (100 = 10s) | 0 |
Destinations
| Destination | Description |
|---|---|
| TRM | Serial terminal (USB/RS232) |
| GPRS | Cellular connection |
| WIF | WiFi |
| BTH | Bluetooth |
| ALL | Alternates between WIF and GPRS automatically |
The ALL destination keeps the channel open until it becomes impossible to continue, then switches to the other destination automatically.
Examples
Automatic sending via WiFi without limit
>SCXDL1,WIF,0,0<Sends all LOG records via WiFi, retrying infinitely without pause.
GPRS sending with 3 retries every 10 seconds
>SCXDL1,GPRS,3,100<Attempts to send 3 times with 10 seconds wait between attempts.
Alternating WiFi/GPRS sending
>SCXDL1,ALL,0,50<Alternates between WiFi and GPRS, retrying infinitely every 5 seconds.
Cancel ongoing sending
>SCXDLE<Response: >RCXDLEOK<
Operation Flow
-
Configure destination:
>SCXDL1,TRM,1,1< -
Generate LOG record:
>GCQ00H;@LOG< -
Device sends automatically:
>RCQ00000000000000-2778128-064258630020907F0000000000000130606FFFF1518;#0002;ID=869084063093789;*30< -
Disable automatic sending:
>SCXDL0<
Compatibility
💾Firmware:v1.05.00
SP-IOT
SM-IOT
See Also
- DL Command - Datalog query and management
- @LOG Destination - Save reports in LOG
Last updated