How to send string to shell command parser ?

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

Moderators: utzig, lbednarz, tfAteba, barthess, RoccoMarco

Posts: 22
Joined: Thu Apr 28, 2016 11:52 am
Been thanked: 6 times

Re: How to send string to shell command parser ?

Postby Polux » Thu Jul 25, 2019 3:39 pm

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 ?


User avatar
Site Admin
Posts: 13008
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 742 times
Been thanked: 620 times

Re: How to send string to shell command parser ?

Postby Giovanni » Thu Jul 25, 2019 5:07 pm

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


Return to “General Support”

Who is online

Users browsing this forum: No registered users and 2 guests