Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi
Do any of you have the golden recepy of how to parse or interpretate UART strings?
I guess all systems with a UART to the developer in some extend have a command parser....
What I would like is the system to feature command history like in linux prompts.

Sample code, ideas and links are all welcome....

Regards
OD
Posted

1 solution

There is no such a thing like 'the golden receipt'.
UART strings are, generally speaking, binary data and you have to parse it according to the communication protocol (e.g MODBUS).
If you have control on the embedded device then you might choose (or invent) the best protocol that fits your needs.
 
Share this answer
 
Comments
Member 10251450 17-Dec-13 5:38am    
Absolute correct. Though in order to make test commands with parameter handling through serial port is more or less common for many projects.
What I am actually hunting for is a light weight version of a linux shell (without IP).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900