基于UART的嵌入式目标命令行接口/解释器 - 不是unix [英] UART based command line interface/interpretator for embedded target - not unix

查看:95
本文介绍了基于UART的嵌入式目标命令行接口/解释器 - 不是unix的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

你们中有没有人知道如何解析或解释UART字符串?

我想所有带有UART的系统都是开发人员在某种程度上有一个命令解析器....

我想要的是具有命令历史记录的系统,如在linux提示中。



样品代码,创意和链接都欢迎....



问候

OD

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

推荐答案

没有像'黄金收据'这样的东西。

UART一般来说, strings 是二进制数据,你必须根据通信协议解析它(例如 MODBUS ) 。

如果您对嵌入式设备有控制权,那么您可以选择(或发明)符合您需求的最佳协议。
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.


这篇关于基于UART的嵌入式目标命令行接口/解释器 - 不是unix的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆