How to send string to shell command parser ?

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Polux
Posts: 27
Joined: Thu Apr 28, 2016 11:52 am
Been thanked: 7 times

Re: How to send string to shell command parser ?

Post by Polux »

Hi
Thanks for the reply.
I currently have serial shell ready. The next step is to have CAN, because it is way simpler. And I already have working code.
At the end, the ethernet would be a nice-to-have feature, but have currently no priority.

I had a look at the code. I could probably create a device with all standard methods to read, write, put, get,...
Then I send data through the queues handling, which will be read by the shell when it reads the stream.
Same thing in the reverse direction. I read the queue, to have the shell output.

Am I wrong if I say it is very close to the serial-USB device driver ?

Angelo
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: How to send string to shell command parser ?

Post by Giovanni »

I think I/O Queues as used by the serial driver are easier to handle and a better fit.

Giovanni
Post Reply