XDL120 | User Manual
19 | 25
Data subj ect to change without notice
Bosch Connected Devi ces and Sol utions
Start the datalogger server on the UDP port configured using the datalogger.exe using the command prompt on
Windows. Alternatively, the Python script datalogger.py can be used to start the server (please refer to section 3.4 for
the python installation). The arguments of the server call are as follows:
datalogger.exe server [-h] [-i SERVER_IP] [-p SERVER_PORT] [-t TIMEOUT] [-f
{pandas,csv,hdf,xlsx,json,msgpack,parquet}] [-o OUTPUT] [-c OFFSET]
or
python datalogger.py server [-h] [-i SERVER_IP] [-p SERVER_PORT] [-t TIMEOUT] [-f
{pandas,csv,hdf,xlsx,json,msgpack,parquet}] [-o OUTPUT] [-c OFFSET]
Optional arguments:
-h, --help
show this help message and exit
-i SERVER_IP, --ip SERVER_IP
The IP address of the interface connected to the
network the XDK is on. IPv4 only. Default is 0.0.0.0
(listen on all interfaces).
-p SERVER_PORT, --port SERVER_PORT
The port the datalogger should listen on. Defaults
to 6666.
-t TIMEOUT, --timeout TIMEOUT
Timeout in seconds to wait for a connection.
Default is 120s.
-f {pandas,csv,hdf,xlsx,json,msgpack,parquet}, --format
{pandas,csv,hdf,xlsx,json,msgpack,parquet}
List of available format to convert the bin file.
Default is csv.
-o OUTPUT, --output OUTPUT
Target file name. Default is 'WLAN_Data_Log'
--overwrite
Overwrite bin file and all files produced conversion
if they exist. Default is to prompt if bin file exist.
Will not check if files exist before conversion.
-c OFFSET,--temperature_correction OFFSET
Temperature correction factor. Default is -2.1K.
See section 3.8 for details.
Press button 1 on XDK within the configured timeout interval to start logging.
Data will now be saved as .bin file on computer.
Press button 1 again to stop logging. When stopped, the server will convert the .bin file to defined format: .csv (default),
pandas, hdf xlsx, json, msgpack, or parquet.
For explanation on the file content, see Table 9.
The XDL120 also supports to stream data via Enterprise WPA2 WLAN network for increased security. To enable WPA2
Enterprise connection and communication, make sure that in the wlan.txt file
WLAN_ENTERPRISE
and
WLAN_SERVICEPACK_UPDATE
are set to
true
apart from providing the right credentials for
WLAN_SSID,
WLAN_USERNAME
and
WLAN_PASSWORD.
Please be aware that making the
WLAN_SERVICEPACK_UPDATE
as
true
is a
pre-requisite for any bare-metal XDK to support Enterprise WPA2 connection and leaving this as
true
will update the
WiFi chip every single time it boots. Therefore, it is advised that the user should set
WLAN_SERVICEPACK_UPDATE
to
false
after the first time (for example, while re-using the data logger application or after ~one minute since the first device
boot-up). After this, follow the same steps that were mentioned before.