Chapter 13 Device Logic (Pawn)
13.2.3.4 Functions
native rM2M_TxStart(flags=0);
triggers a connection to the server with subsequent synchronisation of all memory areas (measurement
data, configuration, position data, device log, files,...) between the device and the server. Only those
memory areas are transmitted whose content has been changed. If the device is in "online" mode and
an active connection to the server is established then this function only triggers synchronisation. The
established connection is not disconnected beforehand and then re-established.
Important note:
In "online" mode new measurement data that are stored in the internal flash
via the "rM2M_RecData()" function are transferred to the server immediately. Calling the
"rM2M_TxStart()" function is thus not necessary to transfer the measurement data in this case.
Calling the function and the related synchronisation of all memory areas after generating every
single measurement data record would lead to a much higher volume of data. The same also
applies to transfer of the configurations. However it is recommended to call the "rM2M_
TxStart()" function occasionally (e.g. every 2h) even in "online" mode since not all memory
areas are automatically synchronised.
Parameter
Explanation
flags
Configuration flags for the connection establishment
Bit0 (RM2M_TX_POSUPDATE):
If set, the GSM position data is also
updated.
Bit2 (RM2M_TX_REFRESH_
CONFIG):
If set, a connection to the maintenance
server is also established
Bit3 (RM2M_TX_SUPPRESS_
POSUPDATE):
If set, this suppresses the update of the
GSM position data that is automatically
executed by the firmware every 24h
Bit4 (RM2M_TX_POSUPDATE_
ONLY):
If set, only the GSM position data is
updated when the connection is
established. Measurement data,
configurations etc. are not
synchronised.
Explanation
Return value
l
OK, if successful
l
ERROR_SIM_STATE, if a connection is not possible due to the current
SIM state (see "SIM state" in chapter "Constants" on page 124)
l
ERROR_MODEM_DISABLED, if the connection cannot be established
due to the supply voltage being too low
l
ERROR_TXITF, if the connection cannot be established due to the TX
interface configuration (e.g. TX interface not open)
l
< OK, if another error occurs (see "Return codes for general purposes" in
chapter "Constants" on page 118).
Rev. 05
129
Summary of Contents for myDatalogEASY V3
Page 2: ......
Page 13: ...Chapter 2 Declaration of conformity Chapter 2 Declaration of conformity Rev 05 13 ...
Page 14: ......
Page 42: ......
Page 76: ......
Page 88: ......
Page 102: ......
Page 110: ......
Page 116: ......
Page 234: ......
Page 244: ......
Page 252: ......
Page 254: ......
Page 266: ......
Page 276: ......