CSV output

  1. CSV string structure

  2. Item structure

  3. Item types

  4. CSV example

CSV string structure

  • Each received radio packet corresponds to one text line (CSV string).

  • CSV string consists of items separated by commas.

  • At the end of CSV string is inserted CR character (Carriage Return, ASCII code 0x0D) and LF character (Line Feed, ASCII code 0x0A).

../../_images/output_01.png
  • Item no. 1 usually is: relative time stamp of received packet, cnt started by powerup (stamp)

  • Item no. 2 usually is: type of device (dev)

  • Item no. 3 usually is: identification number of sensor assigned by pairing process (idn)

  • Item no. 4 usually is: packet type (ptype)

  • Item no. 5 usually is: packet sequence number 0 to 15 (pcnt)

  • Item no. 6 usually is: receive signal strength indication (rssi)

  • Item no. 7 usually is: value no. 1.

  • Item no. 8 usually is: value no. 2.

  • etc.

Item structure

  • Each item consists of three parts (description, unit, value).

  • Separate char is at least one space.

  • For better readability can be added more spaces.

../../_images/output_02.png

Item types

../../_images/output_03.png ../../_images/output_04.png ../../_images/output_05.png ../../_images/output_06.png

CSV example

stamp [sec] 0000011210.476 , dev [-] opto    , idn [-] 15443 , ptype [-] trap    , pcnt [-] 14 , rssi [dBm] -022 , counter [imp]     0000001538 , ipu     [imp/kWh] 0000010000 , power   [W]       0000000012

stamp [sec] 0000011214.199 , dev [-] clip    , idn [-] 01342 , ptype [-] trap    , pcnt [-] 08 , rssi [dBm] -040 , power   [W]       0000000001 , power   [W]       0000001054 , power   [W]       0000000000

stamp [sec] 0000011214.465 , dev [-] temp    , idn [-] 00543 , ptype [-] trap    , pcnt [-] 11 , rssi [dBm] -049 , temp    [deg]     00000022.6

stamp [sec] 0000011215.762 , dev [-] water   , idn [-] 00857 , ptype [-] trap    , pcnt [-] 07 , rssi [dBm] -045 , counter [imp]     0000001804 , ipu     [imp/m3]  0000002000 , flow    [L/h]     0000000023

stamp [sec] 0000011210.697 , dev [-] plug    , idn [-] 00205 , ptype [-] trap    , pcnt [-] 15 , rssi [dBm] -045 , state   [on/off]  0000000001 , power   [W]       0000000124