Skip to content

HydraFW HydraNFC v2 guide dnfc Trigger

bvernoux edited this page Sep 12, 2020 · 1 revision

HydraFW HydraNFC Shield v2 SPI2 Trigger

This guide is updated towards firmware release HydraBus v1 HydraNFC Shield v2 firmware v0.1 Beta (HydraFW (HydraBus v1/HydraNFC Shield v2) v0.1-beta-50-g550cc50-dirty 2020-08-26)

The trigger command allows the Hydrabus to be used as an external trigger (For an oscilloscope for instance).

When started, the trigger will continuously read data on the current protocol. If the data set by the filter is matched, it will output a high state on the PB3 pin.

Configuration syntax

  • show Show current trigger parameters

  • filter with freeform string. Sets the trigger data

  • start to run the trigger

Configuration example

Set trigger on SPI2, using "Hello world\n" :

dnfc2> trigger filter "Hello world\x0a"
Current trigger data :
48 65 6C 6C 6F 20 77 6F  72 6C 64 0A              |  Hello world. 
dnfc2> trigger show
Current trigger data :
48 65 6C 6C 6F 20 77 6F  72 6C 64 0A              |  Hello world. 
uart1> trigger start