Skip to content

Native Configuration file

Dmitry edited this page Feb 21, 2019 · 4 revisions

Since 6LBR version 1.4.0, an additional configuration file is used on Native platform to provide extra configuration parameters. The long term goal is to move all the configuration of 6lbr.conf and nvm.dat files into this new configuration file. The parameters are stored in this file using the well-known .INI syntax.

Sections

[global]

This section is currently not used

[native]

  • select.timeout=<msec> : Timeout of the select() call in the main loop, it can be increased to reduce to CPU usage of 6LBR (at the expense of the reactiveness)
  • slip.xxx=... : Slip parameters of the default slip-radio configured in 6lbr.conf. The following parameters are supported; see the slip section below for the description of the parameters. (Note that 'slip.' must be prepended to the parameters in this section).
    • timeout
    • retransmit
    • serialize_tx_attrs
    • deserialize_rx_attrs
    • crc8
    • reboot
    • channel
    • pan_id
    • null_mac
    • ip

[slip]

  • device=<path> : Path to the serial device used to communicate with the slip-radio. The default value is empty.
  • baudrate=<number> : Baudrate to use to communicate with the slip-radio. The default value is 115200.
  • dtr_rts=<bool> : Status of the DTR and RTS pins when opening the slip-radio device. The default value is 1.
  • flow_control=<bool> : Flag to enable HW flow control (RTS/CTS) on the slip-radio device. The default value is 0.
  • host=<string> : Name or IP address of the remote host handling the serial server. The default value is empty. This is only used to connect 6LBR to a Cooja simulation.
  • port=<port> : Port of the remote serial server. The default value is 60001.
  • timeout=<msec> : Timeout for receiving an Ack for a packet to sent. The default value is 200msec but it should be increased when the CSMA is performed on the slip-radio or when TSCH is used.
  • retransmit=<number> : Maximum number of packet retransmission after ACK timeout. The default value is 0. If the CSMA layer is performed on the slip-radio, the value 1 should be used, especially if no CRC is used.
  • send_delay=<msec> : Delay in msec between the transmission of two packets to the slip-radio. The default value is 0.
  • serialize_tx_attrs=<bool> : Flag to add packet attributes when sending a packet to the slip-radio. The default value is 1. The corresponding configuration must be properly set in the slip-radio or the packet will be dropped by the slip-radio.
  • deserialize_rx_attrs=<bool> : Flag to extract packet attributes when receiving a packet from the slip-radio. The default value is 0. The corresponding configuration must be properly set in the slip-radio or the packet will be dropped by the BR.
  • crc8=<bool> : Flag to enable CRC control and verification of the packet exchanged with the slip-radio. The default value is 0. The corresponding configuration must be properly set in the slip-radio or the packet will be dropped.
  • reboot=<bool> : Flag to indicate if the slip-radio firmware support the reboot command. The default value is 1.
  • channel=<bool> : Flag to indicate if the slip-radio firmware support the set channel command. The default value is 1.
  • pan_id=<bool> : Flag to indicate if the slip-radio firmware support the set pan-id command. The default value is 1.
  • null_mac=<bool> : Flag to indicate if the slip-radio firmware support the configuration of a null mac address. The default value is 1.
  • ip=<bool> : Flag to select if the slip-radio expect 802.15.4 packets or IPv6 packets. Default value is 0. The corresponding configuration must be properly set in the slip-radio or the packet will be dropped.

[network.route]

  • dest=<ipv6 address> : IP address of the target host of the route.
  • via=<ipv6 address> : IP address of the next hop to use to reach the target.

[node-info.export]

  • enable=<bool> : Enable or disable the functionality at BR startup
  • global=<bool> : Dump date in one global file or a file per node
  • filename=<string> : Name of the dump file if global file is used
  • path=<path> : Path of the dump subdirectory if a file per node used
  • interval=<sec> : Interval between dumps in seconds
Clone this wiki locally