Library get data from a sample module through a control board

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.
System Architechure Diagram


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.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章