ftsrg / BME-MODES3

Model-based Demonstrator for Smart and Safe Systems
https://inf.mit.bme.hu/research/projects/modes3
16 stars 8 forks source link

Implement section occupancy query component #42

Closed benedekh closed 8 years ago

benedekh commented 8 years ago

So far this component was deployed on Arduino as a C++ code. It communicated with the network through MQTT. The objective was to query the section occupancies through RJ45 ('telephone cable') using S88 protocol and transfer this information (sections occupancy vector) through the network.

Main questions regarding this issue:

  1. Where is component is going to be deployed? E.g. Arduino, BBB, Raspberry Pi
  2. What language is this component going to be implemented in? C++, Java, etc.
  3. If it is going to be implemented in a language different from C++, then how the S88 protocol is going to be simulated (e.g. shift-register with timers implemented in C++ for Arduino)?
  4. Are we going to transfer the whole occupancy vector for the network or each section's occupancy will be transferred separately?
zsoltmazlo commented 8 years ago

Previously we have agreed with @hegyibalint that the implementation remains on the Arduino platform, but we should attach the device to a raspberry pi over uart instead having an individual ethernet connection. Therefore everything remains the same (programming language, device, even the algorithm) except the communication form, which will be implemented on the raspberry pi.

On Tue, 13 Sep 2016, 10:07 Benedek Horvath, notifications@github.com wrote:

Assigned #42 https://github.com/FTSRG/BME-MODES3/issues/42 to @zsoltmazlo https://github.com/zsoltmazlo.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/FTSRG/BME-MODES3/issues/42#event-787180988, or mute the thread https://github.com/notifications/unsubscribe-auth/AF0bSC0IIOO6ID6xoFUdbRSsGzZDLt3nks5qplmzgaJpZM4J7Zdq .

Üdvözlettel, Mázló Zsolt

benedekh commented 8 years ago
benedekh commented 8 years ago

As I see the ticket cannot be closed yet, because:

  1. Only the byte[] -> int conversion (converts the section occupancy vector to a number whose bits can be examined) submodule/component is implemented yet.
  2. Getting data from UART is still missing. -> See the checkboxes in the previous comment.
  3. The Ardunio C++ code is not updated yet. -> See the checkboxes in the previous comment.
benedekh commented 8 years ago

44 and #45 refine this issue.