====== Projets Objets Connectés et Services (OCS) ====== ==== Title of the Project : Talking Lamp ==== // When a lamp can replace an important parents role // ==== GROUP GR7 ====

MAIN INFORMATIONS about the Project

Name of the members of the Group

Scenario of the project


This project is based on telling stories by passing the RFID tags in front of the lamp which can be turned on automatically depending on its light sensor integrated. Each object is equipped with a modifiable tag and a weather bottom.

The main scenarios
I) Tony goes to sleep but he needs someone to tell him a story before sleeping.

Unfortunately, his parents aren't available at the moment. So that, Tony will ask his intelligent talking lamp to tell him a story.

All he has to do is to choose a card referring to a specific story and show it to the bear. The bear will start telling the story. After that, the lamp will be turned off automatically to let the boy sleeps.

II) Tony's parents are very busy and can't stay all the time with Tony. Fortunately, the talking lamp can reduce this problem by giving the parents the chance to upload their own story or just a simple advice to their son (in an .mp3 audio file) and to send it to the lamp via mail (predefined email to the lamp) during their work. Finally, Tony can use his golden modifiable card to listen to his parent recordings.

III) Tony and is parents can know the weather each morning by just clicking on the weather bottom on the lamp.

==== Connected Object Description ==== == Sketch of our object == == 3D - CAD description of our object == == 3D of the new object == == Real design of the object == == Archive of propositions from the designers team == Design_1 .
Design_2 . ==== Hardware Specifications and Distribution of the connected Object ==== == Hardware specifications ==
The light sensor is used to turn on/off the lamp (which is connected via the relays) and the Yellow led depending on its measurements.

The RFID is used to detect a tag and send its ID number to another module that will interact with the web service (via the wifi adapter) to retrieve the audio file associated.Then, the usb audio adapter is used to play the file directly on the speaker.

== Array of the purchases == | Type | Reseller | Reference | Quantity | Unit price (€) | Link on the Web page of the product | Total price (€) | |Lecteur RFID 1024_0 |Gotronic |25500 |1|54.9|http://www.gotronic.fr/art-carte-a-2-relais-3051-12110.htm |54.9 | |Interface 8/8/8 + hub SBC1073 |Gotronic |25445 |1 |143.5 |http://www.gotronic.fr/art-carte-a-2-relais-3051-12110.htm |143.5 | |Carte RFID T5577 3915 |Gotronic |32150 |10 |1.8 |http://www.gotronic.fr/art-carte-a-2-relais-3051-12110.htm |18 | |adaptateur-usb-audio-3401 |Gotronic |25520 |1 |10.9 |http://www.gotronic.fr/art-carte-a-2-relais-3051-12110.htm |10.9 | |Wi-Fi USB Adapter 3703_2 for SBC1073 |Gotronic |2535 |1 |34.9 |http://www.gotronic.fr/art-carte-a-2-relais-3051-12110.htm |34.9 | |Led 5mm rouge L53IT |Gotronic |3035 |1 |0.15 |http://www.gotronic.fr/art-carte-a-2-relais-3051-12110.htm |0.15 | |Led 5 mm jaune L53YT |Gotronic |3036 |1 |0.15 |http://www.gotronic.fr/art-carte-a-2-relais-3051-12110.htm |0.15 | |Led 5 mm verte L53GT |Gotronic |3037 |1 |0.15 |http://www.gotronic.fr/art-carte-a-2-relais-3051-12110.htm |0.15 | |Pack of 10 connecting cables M / F BBJ9 |Gotronic |12313 |2 |1.95 |http://www.gotronic.fr/art-carte-a-2-relais-3051-12110.htm |3.90 | |Pack of 10 connecting cables M/M BBJ8 |Gotronic |12319 |1 |1.95 |http://www.gotronic.fr/art-carte-a-2-relais-3051-12110.htm |1.95 | |Capteur de lumière 1143_0 |Gotronic |31302 |1 |7 |http://www.gotronic.fr/art-carte-a-2-relais-3051-12110.htm |7 | |Haut-parleur HP508 miniature - 8 Ω - 50 mm |Gotronic |5518 |1 |0.7 |http://www.gotronic.fr/art-carte-a-2-relais-3051-12110.htm |0.7 | |Cordon jack CA35S05 |Gotronic |48248 |1 |0.9 |http://www.gotronic.fr/art-carte-a-2-relais-3051-12110.htm |0.9 | |Bornier à vis |Gotronic |1 |3168 |2.15 |http://www.gotronic.fr/art-carte-a-2-relais-3051-12110.htm |2.15 | |Ampoule Led “standard” 8W - 230VAC (E27) |Gotronic |LAL1K3C |1 |17.9 |http://www.gotronic.fr/art-carte-a-2-relais-3051-12110.htm |17.9 | |Carte 2 a relays 3051 |Gotronic |25495 |1 |17.6 |http://www.gotronic.fr/art-carte-a-2-relais-3051-12110.htm |17.6 | == Excel File of the purchases == List of the project materials . ==== Software Specifications and Distribution of the connected Object ==== == Software Specifications of the connected Object == **i) Services exposed by the connected object for device specifications** - play sound via url in streaming - turn light with a boolean parameter (threshold of the light sensor) - play sound via text to speech (web service weather) - turn on led - turn off led We pushed a very simpler logic in our embedded platform in order to make it generic as we can. so that, this logic has just the ability to control the big light of the lamp and the speaker that is connected via the usb audio modulator. The object can also play sound via bean of text to speech through url. We put also the RFID reader and the light sensor in the object because they are already attached to it unlike other technologies that can be separated from the original object. ** 2) Application Protocol over Bluetooth link of the object ** * We don't have neither bluetooth neither mobile application in our project ** 3) Web service to modify a specific mp3 file of the object via sending an email to the object ** * Actually we developed a Java web application that check a predefined email for the object (every 10 seconds) for unread mail coming with a special authentication in the mail subject. Then if yes, it update the mp3 file existing for this tag in our database with the new attached one. == Software Distribution of the connected Object == *** Embedded Software in the connected object** __We have to install many things before starting the development of our project:__ * WComp, SharpDevelop, Device Spy, Phidget Control Panel, Bonjour from Apple Click here to find all off the sequential parts: click here or here and here * Binary distribution of the developed software for the object and how to install * Sources distribution of the developed software and how to build the binary distribution (ex. sources of new beans for WComp): *** Java web application** *This application is developed on Netbeans8.2 with MySQL. We used the gmail APIs in order to access the mail and retrieve the new mp3 file. *This is a representation diagram of the application: click here
*This is the source for all the Java application click here ==== Software Specifications and Distribution of the high level service for the user ==== This main purpose of this project is to play mp3 file and access to web service weather (RFID reader and a bottom). In order to accomplish that, we put our project in the middle of an orchestration that's fulfill also web services that can be accessed by the object like the web service REST for weather and the Web application that is located in the local host (it can be migrated later into the cloud). Finally, with this way of prototyping and accomplishing our object, we can have at the end a really smart connected lamp. == Software Specifications of the High Level Service for the user == Actually, our project is communicating with the orchestration by receiving request (events) based on the UPnP Universal Plug and Play to consume a certain web service like in our case the weather an text to speech. Also, it receives events to start playing a story stored on the local-host and not the object itself. We are using the Web Service Weather from google vis the REST method ( [[https://docs.google.com/document/d/1Ykg9NJPZQH7dqQZfPtaexKevcYTLYl7JJU6xgIkVCWc/edit|explained here]]) with an HTTP GET request. Also, we are using the web service text to speech related to the weather. == Software Distribution of the High Level Service for the user == // Here, put all the files needed to build, to compile and to deploy all your software developments for the high level service// This part is about * All the instructions on what must be on how to generate a new device and declare all events. * Binary distribution of the developed software for the object and how to install [[https://docs.google.com/document/d/1Ykg9NJPZQH7dqQZfPtaexKet|WS Weather]], [[https://docs.google.com/document/d/1Ykg9NJPZQH7dq| Text to speech]], * Sources distribution of the developed software and how to build the binary distribution [[https://docs.google.com/document/d/1Ykg9NJPZQH7dq| source]] ==== VIDEO PICTURES and SCREENSHOTS ==== the results of our project: VIDEO for demonstrations PICTURES of the object looking like a finished one SCREENSHOTS of sofware applications and developments simplebooklet.com ==== INSTRUCTIONS AND REMINDERS ==== == INSTRUCTIONS : == - // Warning : everything must be written in english ....// - // Warning : every added file (ex. figures, picture, sources, binaries, video ...) must be added through a web links on a Web repository. You can use such a syntax to integrate the link in this page :// [[http://example.com|Lien externe]] - //For more informations on DokuWiki syntax go to// [[https://www.tigli.fr/doku.php?id=wiki:syntax|syntax dokuwiki]]