Skip to Content

CXDL Command - Automatic Datalog Sending

Configures automatic sending of datalog (LOG) records to the specified destination.


What is it for?

Use caseDescription
🔄 Automatic synchronizationSend history when reconnecting
📶 Data recoveryTransmit offline stored positions
📡 Multiple channelsAlternate between WiFi/GPRS/BLE
🔁 Configurable retriesControl sending persistence

Commands

Configure automatic sending

SCXDLa,bb..bb,ccc,ddd

Cancel pending sending

SCXDLE

Cancels pending report sending but keeps data in LOG.

Query

QCXDL

Response

RCXDLa,bb..bb,ccc,ddd

Parameters

ParameterDescriptionValuesDefault
aEnable0 = Disabled, 1 = Enabled0
bb..bbSending destinationTRM, GPRS, WIF, BTH, ALL-
cccRetries0 = Infinite, 1-999 = Amount0
dddTime between retriesTenths of second (100 = 10s)0

Destinations

DestinationDescription
TRMSerial terminal (USB/RS232)
GPRSCellular connection
WIFWiFi
BTHBluetooth
ALLAlternates 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

  1. Configure destination:

    >SCXDL1,TRM,1,1<
  2. Generate LOG record:

    >GCQ00H;@LOG<
  3. Device sends automatically:

    >RCQ00000000000000-2778128-064258630020907F0000000000000130606FFFF1518;#0002;ID=869084063093789;*30<
  4. Disable automatic sending:

    >SCXDL0<

Compatibility

💾Firmware:v1.05.00
SP-IOT
SM-IOT

See Also

Last updated