Wednesday, May 8, 2013

Embedded Front End Integration

The architecture of the entire integrated system can be viewed in the project architecture section of the blog.



The bus stop transmits a string of data continuously to the bus stop every second. The data structure used here is String. The string consists of two parts the first part denotes the bus number, and the next part of the string consists of the bus stop that it is heading to. For example the bus number 21 transmits “2133” before reaching the bus stop 33. The first part of the sting “21” is the bus number and the next part of the string “33” is the bus stop that it is heading to.

The code which is running at the bus stop continuously checks if it is receiving any data from the bus and when this happens, it parses this data to obtain the bus number and the bus stop and functions to display visual information on the LED Matrix and play audio information using the MP3 Shield are called.  It then re transmitted to the bus the bus number and the address of the next bus stop it has to go to.

We tested the system using 2 buses and 2 bus stops. The bus stops were around 200 meters apart. 
We had the pseudo server and the android server running at one bus stop to which the other bus stop communicated using TCP/IP.

Each bus stop looked like this:

The video for the actual demonstration was also recorded.


No comments:

Post a Comment