Adding commands to NSH
Hello,
I am trying to make an application that uses NSH to communicate with a running process. The idea is to include apps/nshlib, but to use my own start-up code so that the main process (a PID controller) starts up in the background.
The idea is to have the process run at startup and add various commands to change the control of the background process.
Does anyone have a suggestion on the best way to do this?
Right now I see my options as either cloning the nsh_console and parsing my new commands in nsh_parse, or creating a number of named applications and passing command line arguments. Both of those seem like inefficient approaches.
I'm still new to embedded systems and slowly learning Nuttx. I'm guessing there's a more straight-forward way that I'm missing.
I appreciate any suggestions.
-Chris
RSS Feed