在原始数据流中定位数据(如压力等)

发布于 2024-10-21 14:28:40 字数 192 浏览 5 评论 0原文

我是串行端口分析的新手,我希望得到一些帮助。我的具体问题是...

如果我有来自串行端口分析程序的原始数据,我将如何找到温度、压力、能量等测量值? 我应该在原始数据中寻找什么来帮助我识别这些计量单位? 从原始数据中提取相关数据的最佳方法是什么?

如果您能为我提供这方面的任何帮助,我将不胜感激。我不知道该怎么做。

多谢。

I am a newbie to Serial Port Analysis and I would appreciate some help on this. my specific question is...

If I have raw data from a serial port analyzer program, how will I locate measures like temperature, pressure, energy etc?
What should I look for in the raw data that will help me identify these units of measure?
What is the best way the extract relevant data from this raw data?

I would be very grateful if you can provide me any help with respect to this. I am unable to figure out how to do this.

Thanks a lot.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风向决定发型 2024-10-28 14:28:40

据我所知,执行此操作的最佳方法是找到“重置”标识符,也称为“流结束”标识符或序列。我假设数据是连续流而不是一次性传输。

如果数据连续循环,您需要找到传输开始(或结束)的位置,然后从那里开始计量捕获。大多数设备都会有相关的手册或文档,为您提供结束序列(或可选的开始序列)以及它们识别数据的方法。

例如,设备可以通过连续发送 4 个全零字节来结束消息,然后通过发送一个标识传感器的字节和另外两个包含数据的字节再次开始,然后发送下一个传感器等。

然后您将观看4 个零字节条目的流,然后开始一次捕获 3 个字节,一个用于传感器,两个用于数据,直到您再次连续看到 4 个零字节条目。

The best way that I know of to do this is to find the "reset" identifier, also called the "End of Stream" identifier or sequence. I am assuming that the data is a continuous flow not a one-time transmission.

If the data is continuously cycling, you need to find where the transmit begins (or ends) and then start metering your capture from there. Most devices will have an associated manual or documentation that give you the end sequence (or optionally the start sequence) and then the method by which they identifier their data.

For instance, the device may end a message by sending 4 all zero bytes in a row, then begin again by sending one byte that identifies the sensor, and another two bytes with the data, followed by the next sensor etc.

You would then watch the stream for 4 zero byte entries, and then start capturing 3 bytes at a time, one for the sensor and two for the data, until you saw 4 zero byte entries in a row again.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文