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

Serial communication between nrf52840 and desktop application

Hi,

We are using nrf52840 to develop a cryptocurrency hardware wallet. We want that user can verify that the device is authenticate. In order to authenticate, the desktop application sends a secret message to the microcontroller then the microcontroller signs the message with the a private key and returns the signature to the application and then the app checks if the signature with the corresponding public key.

In order to do the communication, I am simply reading and writing from microcontroller and application to the serialport connection between the device using serialport npm package. I just want to know if this is a good practice for communication? Is there any better method by which I can make the microcontroller and application connect with each other.

Thanks in advance.

Related