Servers by jDrones

Is there a ChibiOS module (for shell access) available or planned?

(Ivan) #1

I’ve been using the NSH module (load module nsh) for some time, however, my controllers are now running ChibiOS instead of NuttX.

Is there a module (or any other way) to access the ChibiOS command shell?
If not, is anything planned for this… and what would be the ETA?


(Amilcar Lucas) #2

Not there I know of. BTW do you know that we now have lua scripting support? You can extend the flight code functionality without recompiling.

(Mark Whitehorn) #3

Which NuttX shell functions would be useful to you in ArduPilot?

(Ivan) #4

I use several basic Linux commands such as cd, ls, mkdir, pwd, rm, cp, dd and xd.
Those are the ones I can think of off the top of my head. I also use the mtd command to check status.

(Mark Whitehorn) #5

At a higher level, are you only doing SD card file management using the nsh shell?
I don’t recall the “mtd” command; where is it documented?
Do you use “top”?

(Ivan) #6

At a high level - yes, mostly file management. I’d say the most important commands for me are dd/cp and ls.

The “mtd” command is not a must have, but it is listed in the Builtin Apps section of my devices when I enter the “help” command. Not sure where it is documented though.

No - I don’t use top.

(Mark Whitehorn) #7

now I remember what “mtd” was for; also related to non-volatile storage.
With ArduPilot, I think non-volatile storage is currently used only for parameters and logs.
Since log manipulation is slow over USB anyway, I usually just pull the SD card if it’s accessible.

In your workflow for ArduPilot, what other needs do you have to manipulate files on the SD card?
I assume LUA scripts would reside on SD…

(Ivan) #8

Not much else I can think of WRT file manipulation needs at the moment.

(Ivan) #9

Hi Mark - based on the questions you asked me on this thread, I was assuming (or possibly hoping) that you may be in a position to help materialize the capability I was asking about - meaning to add some form of ChibiOS shell access.

Please let me know whether my assumption was correct, or if I was totally missing the mark on that… or anything in between :slight_smile:

(Mark Whitehorn) #10

Hello Ivan. I was just wondering whether there would be any advantage to having a shell for ChibiOS, but if its only use would be for SD card management I doubt whether it would be worth the coding effort or flash space. PX4 uses the shell to do system init under NuttX, and that does provide some extra flexibility for starting and stopping process manually, along with some tools like “top”, but I (personally) don’t see any significant need for such things when running ArduPilot.

(Ivan) #11

I see. Just to clarify though, the needs/uses for shell access that I enumerated in this thread (being mainly disk mgmt) are what I was needing at the moment. That’s not to say I wouldn’t have need for any other shell-access capabilities in the near future that mirror what was available in NSH.

Are you aware of any other means available to access a ChibiOS shell on a Pixhawk controller? I’ve tried connecting serial cables to it using PuTTY and linux screen command (both of which worked with NSH per the instructions in this link) to no avail. Is the shell simply disabled and completely unreachable?

(Mark Whitehorn) #12

As far as I know, there is no shell in the current ChibiOS build for ArduPilot…