How To's

How to physically connect a device

How do I
This article regards viewing device text printf or Zephyr Logging based logs. For accessing TDF data stored on the data logger see WIP.

Prerequisites

  • Infuse-IoT Capable hardware with:
    • Zephyr's Logging (CONFIG_LOG) enabled
    • Serial or the programmer port.
  • Python tools

Device Logs

There are a few different ways to connect to a device:

  • Accessing text logs and ePackets over RTT/Serial/PyOCD using infuse gateway.
  • Accessing the text logs over Bluetooth using infuse bt_log.

This method uses infuse gateway to receive text logs and command gateways over serial links. This method can be used to only receive text logs by using the -d flag (while will display data only).

Text logs and ePacket data are exchanged over the epacket_serial device in devicetree. Refer to hardware configuration of the firmware to determine which peripheral to use if there are multiple present.
  • Note the name of the microcontroller you are connecting to. e.g. for the nRF52840 - nRF52840_xxAA.
  • Connect your JLink programmer
  • To connect to an nRF52840_xxAA board run:
infuse gateway --rtt nRF52840_xxAA

or replace with your board name as required.

You should now be connected to the board, wait for data to appear in the terminal.