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

Polux
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

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: 12742
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 693 times
Been thanked: 572 times
Contact:

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.

Giovanni


Return to “General Support”

Who is online

Users browsing this forum: No registered users and 2 guests