AnsweredAssumed Answered

Thread Router Eligible Device GPIO Control

Question asked by Santiago Roman on Jun 21, 2020
Latest reply on Jun 29, 2020 by Estephania Martinez

Hello community,

 

I've started a Thread project, which I intend to modify so that I control the LEDs of a node 2 over the air, pressing the switches in node 1.

I'm currently using the "frdmkw41z_wireless_examples_thread_router_eligible_device_freertos" example, and managed to add external LEDs and control them through the demo provided.

Nevertheless, I would like to use external switches to control more LEDs, since my evaluation kit (PAN4620) only has 2 working switches (SW2 and SW3; SW1 is reset).

Thus, how can I manage the link between gKBD_EventPBn_c (n: number of event) and the GPIO input (SW pressed).

Also, the use of APP_AppModeHandleKeyboard in router_eligible_device_app.c does not seem clear to me, can't figure out where it is invoked.

 

Finally, looking forward, I would like to control the input of the GPIO through a recurrent function, leaving the switch case from APP_AppModeHandleKeyboard behind. Therefore, where is the main loop of the app to append this function and ensure the demo keeps working.

 

Thanks in advance,

Santiago

Outcomes