Library get data from a sample module through a control board
2016-01-14 02:05
316 查看
1. System Architechure
This system aim to get sample data from Module. Module output data by RS485. But Library has only USB communication way to get data. Thus need a RS485 control board to get data from Module and send it to library. System architechure diagram is as following.2. Communication
Communication procedure is shown as below.here,
L is library.
C is control board.
M is module.
First, normal condition.
Created with Raphaël 2.1.0LLCCMMI need Module's data.OK.Wait C to prepare for dataGive me your data.Data for you.Have got the data ?YES.Give me Module's data.Data for you.Finish
Second, control board no feedback. The module respond slowly.
Created with Raphaël 2.1.0LLCCMMI need Module's data.OK.Wait C to prepare for dataGive me your data.Have got the data ?Timeout 1 timesData for your.Have got the data ?YES.Give me Module's data.Data for your.Finish
If timeout 3 times, library should output a error tips.
Third, module no feedback.
Created with Raphaël 2.1.0LLCCMMI need Module's data.OK.Wait C to prepare for dataGive me your data.TimeoutHave got the data ?No.Stop read data
If control board fail to get the data from module, library should output a error tips.
相关文章推荐
- Android中的PopupWindow详解
- POJ-3349-Snowflake Snow Snowflakes - hash
- HASH表的模板实现
- TCP HTTP 与 SOCKET
- [Ugirls爱尤物] No.037 赵伊彤 喜欢吗?喜欢就告诉她!
- ios逆向工程-静态分析
- 下定决心:放弃芯片,拥抱互联网!
- CROSSTOOL-NG建立交叉编译工具链
- javaNIO
- linux 系统下IntelliJ IDEA的安装及使用
- Android Lolipop 屏蔽隐式Intent检查引发的错误
- shell脚本ping -w用法
- xxxTests-Info.plist Error in Xcode(删除test target)
- c++如何分割带有逗号的字符串
- GLSL内建函数详解
- Spark SQL性能优化
- 【quick遇到的陷阱】node的onExit()和onEnter()
- Divide and conquer:Aggressive Cows(POJ 2456)
- IOS 今天学到太多的知识了,赶快记录下来
- Django学习笔记《序》