Format of the Text File being Used to Synchronise in AIRS

Note that since V2.2, AIRS does not use text files anymore for storage but utilises the internal SQLlite system! The following text file is only used for synchronisation purposes!

The filename of the synchronisation file represents the milliseconds since 01.01.1970 of the time when the sychronisation took place.

The format of the file is rather simple:

The first line is the timestamp of starting the local sensing session

Fri Jul 15 14:09:32 GMT+01:00 2011

Following this initial line, you will find the following structure for each sensor value measurement

#4;PR;5.0

The ‘#’ character is a marker for the beginning of the line. The ‘;’ is a delimiter between the sections of the entry. The first entry is the time in milliseconds from the original timestamp, as described above. Here the value was sensed 4 milliseconds after starting. The second entry is the sensor symbol that was sensed (here ‘PR’ for proximity sensor). The third entry is the value for this sensor (here a float of 5.0) – see list of supported sensors below for the description of values for each sensor!

Some sensors, like GI, BT or WF, can have multi-line entries (e.g., when sensing several Bluetooth devices). Each value here is separated with a new line character. A parser can use the new line followed by ‘#’ as a delimiter.