This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can I control 51822 to connect or disconnect with a device on PC side?

Hi,

I want write a demon running on linux to control the 51822 dongle to connect or disconnect with mobile phones.

Now I have one idea, which is using string as command sent via UART to control connection state. But I am not sure if this action will block something.

Also I found this https://github.com/NordicSemiconductor/pc-nrfutil It seems a API, but also I am sure as I cannot find document for it.

Can these two method work? Or any other solution? 

  • Place a uart bridge between PC and the SoC. In firmware keep the uart reading arrangement as interrupt based. Further you do accordingly to the uart cmds you send from PC to this SoC. The nordic sdk gives you a uart handler for the tx completion and further in main context you manipulate your data and make it work as you want to. That is one of the easiest solution i would say. Hope this would have helped you.

Related