Outils pour utilisateurs

Outils du site


Panneau latéral

Accueil

Select other language :


Apprentissage

Enseignements

Enseignements Département Informatique SI5 et Master IFI

Enseignements Département Bâtiment Polytech'Nice

Autres Formations française et étrangère

Activités administratives, Ingénierie et Innovation Pédagogiques

Apprentissage Département Informatique SI5/Master 2 ingénierie informatique EUR DS4H


Recherche

Valorisation de la Recherche

Dépôts Logiciels à l’Agence de Protection des Programme (APP)

Valorisation des résultats de recherche et transfert

Diffusion de la Culture scientifique et Technologique

Communications de presse

Séminaire ENSI Tunis

Pédagogie Innovante

Relations industrielles et socio-économique

Organisation de Manifestations

  • Conférence sur les FabLabs, Alexandre Schneider, Professeur Agrégé en Génie Mécanique, Université de Reims Champagne-Ardenne Web
  • Journées UbiMob'14 Site Web

Animation de la Recherche

U-Santé

Privé

Outils

Sources d'Informations

projets:oc:oc_2013_2014:bbright

Smart Objects and Services

Project Presentation

Name :

BBright

Group Composition :
  • Fabien Belli
  • Cyril Gorrieri
  • Suzy Paeta
  • Maurice Rambert

Scenario :

The user takes the toothbrush to brush his teeth. A timer is lunched and the red LED lights on. After three minutes the red LED lights off and the green LED lights on to point out the fact that the user can stop to brush his teeth. Then he replaces the brush in its support. The green LED lights off to indicate the action is over.

Object Shape :

Name of the contact at Reims :

Philippe Ravaux

Sketch of the Object from Reims :
Picture of the Object without instruments and electronics :
Picture of the Object with instruments and electronics outside on the same table (put some circles and arrows on the picture to show where you're going to integrate all of these) :
Picture of the finished Object (all is integrated):
Demonstration Video :

Hardware specifications :

List :

Specifications and interface of the service on the object

  • The system embedded in the object BBright is connected to UPNP protocol. When one of four toothbrushes is used, BBright emit a event brushStateChanged(),containing port number and state (empty or no) , to services subscribed to events (here it is a Bean_Server)
  • When Bean_Server receive a event, it trigger BrushEvent() who trigger brushing time
  • Then if recommended brushing time is cast, BeanServer emit changeLeD() to BBright subscribed to event SetLedState() (which turn off or on a led)
  • CSV files (format “Numero de log ;Numero de la brosse à dent;Date de brossage;Durée de brossage;”) are stored in which the machine is connected to a Bean_Server
  • Bean_DataBase is too subscribed to event EventBrush() which wait a event emited by UPNP BBRIGHT
  • The Bean_Server is connected to WebService http://users.polytech.unice.fr/~rambert/ws.php to obtain informations (brushing frequency minimal and maximal, brushing duration minimal and maximal, toothbrush change minimal and maximal)

Specifications of the interface of high added value service

  1. Monitoring user's dental hygiene
  2. Users informed about their brushing time
  3. Improve dental hygiene
  4. Storing informations about brushing time, date and number toothbrush
  5. Others services can connect à this UPNP protocol

Project Files:

. wcc of the two containers (embedded and on the remote PC) :
Beans added for the embedded container (for the service on the object) ** (DLL and Source code for each of them)

This class is the nearer of the component (here it's proximity sensor and micorupters). It's used to add a bouce tolerance, when an event occure, it wait a certain times before send a new envent. This event inform when a brush is taken or release.

This class subsribe of the event send by the previus class, and gether all the event in order to send just one event with rich information (like the number of the brush that send the event).

This class replace a simple threshold component because it seems that the usual component don't work in our project.

Beans added for the remote PC container (for the high added value service on the PC) ** (DLL and Source code for each of them)

This class do many things. First of all it subscribe to event send by the embedded container and send an event with rich values, this value are send only when brush are release and contain the duration of the use of the brush. Secondly, he managed all the LED of the object and according to the event, it swith red/green light on/off. Finally, it get the best frequency time to use a brush through webservices, and when the time is over, it switch the appropriate light on.

This service class is used to pick up the value of the best time frequency through webservices.

  • DataBase container

This container is used to store event emited by the high added value service, our container is able to save it into a .csv file, with the path specified in property.

This class is used with JSON DLL listed above, to send parsed object from the high added value service to the database service in JSON format.

This class is a simple definition of a Log.

This class is used to write a Log object into a CSV file.

This class contain a method that it called when the high added value service send an event, this method create a Log object and save it into a csv file thanks to the LogsManagment class.

Chesklist to install the embedded service on the object
  1. Get the IP adress of the phidjet in order to connect with putty (or any ssh client)
  2. Send the wcc of embedded container (linked above) in the default home directory
  3. Send BBright.dll and Beans.dll in the same folder (all the DLL listed above)
  4. lauch this command :
mono Container.exe –r /root/Beans –l /root/PhidgetContainerExported.wcc –n BBright

Be careful to use absolute path.

Chesklist to install the remote service/application on the PC

Hight added value service

  1. Copy the BBright.dll into the Bean folder of SharpDevelop (usually C:\Program Files (x86)\SharpDevelop\3.0\Beans)
  2. Copy the DLL of the embedded container in the same folder (copy all the DLL listed above)
  3. Open Sharp Develop and create a new C# container project
  4. In WComp section, choose import option
  5. Pick up the wcc for the remote PC container (linked above)
  6. Change the IP adresse and the port of the proxy, you can catch it through Device Spy.
  7. Select the option “Bind to UpNP Device” in WComp tab.

DataBase

  1. Follow the Hight added value service's steps, but you replace the IP of the proxys, by the IP that can be found in Device Spy.

Results of the relations with Reims (being factual without personal opinion)

There are many difference between what we ask and what we received :

  • We wanted to put the phidget down at the horizontal but finally the phidget was behind at the vertical
  • We wanted to add baskests to put two toothpaste but finally not even one was realise
  • We sent a design of what we wanted and we receive totally something else (in our sketch the support for teethbrush was fixed to the socle but finally there were 4 supports to each teethbrush that ware removable).

We were warn the day before that the object couldn't be modified anymore.

Once we received the object, we tried to put our sensors and leds but for sensors we didn't have enought space to put them (missing some millimeters 2-4).

Prospects :

Possible extensions of the object

The BBright object is focused only on the toothbrushes management. We could add two receivers for toothpaste, one for adults and the other for kids, which could evaluate the weight variation.

Possible extension of the service on the Object

If two receivers for toothpaste are added, two events related to the variation of the weight of the two toothpaste have to be added to the service.

Possible extension of the high added value Service

According to the toothpaste, we can also calculate the toothpaste change frequency.

Possible GUI for data visualization

Like in the human weight or size, we can show a graph with the recommended values and the user's one.

projets/oc/oc_2013_2014/bbright.txt · Dernière modification: 2014/02/20 13:34 par etudiant_oc_2013_2014