Outils pour utilisateurs

Outils du site


projets:oc:oc_2013_2014:bbright

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
projets:oc:oc_2013_2014:bbright [2014/02/19 22:47]
etudiant_oc_2013_2014 [Project Files:]
projets:oc:oc_2013_2014:bbright [2014/02/20 13:34] (Version actuelle)
etudiant_oc_2013_2014 [Project Files:]
Ligne 69: Ligne 69:
   - PhidgetContainer (Bean_BBRIGHT):​ http://​www.flickr.com/​photos/​113754118@N06/​12611899743/​   - PhidgetContainer (Bean_BBRIGHT):​ http://​www.flickr.com/​photos/​113754118@N06/​12611899743/​
   - DataBaseContainer (Bean_DataBase):​ http://​www.flickr.com/​photos/​113754118@N06/​12611806275/​   - DataBaseContainer (Bean_DataBase):​ http://​www.flickr.com/​photos/​113754118@N06/​12611806275/​
- 
- 
 ==== Specifications of the interface of high added value service ==== ==== Specifications of the interface of high added value service ====
   - Monitoring user's dental hygiene   - Monitoring user's dental hygiene
Ligne 85: Ligne 83:
   * **.wcc of the embedded container**   * **.wcc of the embedded container**
      * WCC Embedded ​      * WCC Embedded ​
-        * [[https://​drive.google.com/​file/​d/​0B7w-0zGVI5c1MnYtWE1FY0cyeWs/​edit?​usp=sharing]]+        ​* PhidgetContainerExported.wcc :  
 +          ​* [[https://​drive.google.com/​file/​d/​0B7w-0zGVI5c1MnYtWE1FY0cyeWs/​edit?​usp=sharing]] 
 +        * PhidgetContainer.cs :  
 +          * [[https://​drive.google.com/​file/​d/​0B7w-0zGVI5c1WWxaMmJDY0RYSlE/​edit?​usp=sharing]]
   * **.wcc on the remote PC**    * **.wcc on the remote PC** 
-     * WCC of the hight added value :  +     * WCC of the high added value :  
-        * [[https://​drive.google.com/​file/​d/​0B7w-0zGVI5c1UmhDTGZrWHMwS2c/​edit?​usp=sharing]]+        ​* ServeurContainer.wcc :  
 +          ​* [[https://​drive.google.com/​file/​d/​0B7w-0zGVI5c1UmhDTGZrWHMwS2c/​edit?​usp=sharing]] 
 +        * ServeurContainer.cs :  
 +          * [[https://​drive.google.com/​file/​d/​0B7w-0zGVI5c1WWxaMmJDY0RYSlE/​edit?​usp=sharing]]
      * WCC of the database :       * WCC of the database : 
-        * [[https://​drive.google.com/​file/​d/​0B7w-0zGVI5c1bk5Wc1pMM3lBdFU/​edit?​usp=sharing]]+        ​* DataBaseContainer.wcc :  
 +          ​* [[https://​drive.google.com/​file/​d/​0B7w-0zGVI5c1bk5Wc1pMM3lBdFU/​edit?​usp=sharing]] 
 +        * DataBaseContainer.cs :  
 +          * [[https://​drive.google.com/​file/​d/​0B7w-0zGVI5c1cnNFSWFDZGhWbDQ/​edit?​usp=sharing]]
  
 ==  Beans added for the embedded container (for the service on the object) ** (DLL and Source code for each of them) == ==  Beans added for the embedded container (for the service on the object) ** (DLL and Source code for each of them) ==
- * BBrigh.dll (this DLL contain the beans of all the object below)+  ​* BBrigh.dll (this DLL contain the beans of all the object below)
      * [[https://​drive.google.com/​file/​d/​0B6C5fyyBS3aoY2lHZ296YV92WXM/​edit?​usp=sharing]]      * [[https://​drive.google.com/​file/​d/​0B6C5fyyBS3aoY2lHZ296YV92WXM/​edit?​usp=sharing]]
-  * BrushBean.cs (represent a brush) ​+  * BrushBean.cs (represent a brush)
      * [[https://​drive.google.com/​file/​d/​0B6C5fyyBS3aocE83R0ZpZVVNRkk/​edit?​usp=sharing]]      * [[https://​drive.google.com/​file/​d/​0B6C5fyyBS3aocE83R0ZpZVVNRkk/​edit?​usp=sharing]]
 +
 +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.
 +
   * BrushsControllerBean.cs (managed each brush) ​   * BrushsControllerBean.cs (managed each brush) ​
      * [[https://​drive.google.com/​file/​d/​0B6C5fyyBS3aoalVJVzF5NHRuQ1U/​edit?​usp=sharing]]      * [[https://​drive.google.com/​file/​d/​0B6C5fyyBS3aoalVJVzF5NHRuQ1U/​edit?​usp=sharing]]
 +
 +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).
   * BThreshold.cs (our own threshold) ​   * BThreshold.cs (our own threshold) ​
      * [[https://​drive.google.com/​file/​d/​0B6C5fyyBS3aoeXEzWmFjcTdlUkk/​edit?​usp=sharing]]      * [[https://​drive.google.com/​file/​d/​0B6C5fyyBS3aoeXEzWmFjcTdlUkk/​edit?​usp=sharing]]
 +
 +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) == == Beans added for the remote PC container (for the high added value service on the PC) ** (DLL and Source code for each of them) ==
Ligne 109: Ligne 123:
  
      * **High added value**      * **High added value**
-       * DLL of the proxy of the embedded container +        ​* DLL of the proxy of the embedded container 
-         ​* [[https://​drive.google.com/​file/​d/​0B7w-0zGVI5c1Uk1RTkozYTZoazA/​edit?​usp=sharing]]+          * [[https://​drive.google.com/​file/​d/​0B7w-0zGVI5c1Uk1RTkozYTZoazA/​edit?​usp=sharing]]
         * ServerBean.cs (managed brush event and switch led)         * ServerBean.cs (managed brush event and switch led)
           * [[https://​drive.google.com/​file/​d/​0B6C5fyyBS3aoUExxZGZQMEFPd2s/​edit?​usp=sharing]]           * [[https://​drive.google.com/​file/​d/​0B6C5fyyBS3aoUExxZGZQMEFPd2s/​edit?​usp=sharing]]
 +
 +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.
 +
         * WebServices.cs (get frequency value in webservices)         * WebServices.cs (get frequency value in webservices)
           * [[https://​drive.google.com/​file/​d/​0B6C5fyyBS3aobUV3cDRwanpVSlk/​edit?​usp=sharing]]           * [[https://​drive.google.com/​file/​d/​0B6C5fyyBS3aobUV3cDRwanpVSlk/​edit?​usp=sharing]]
 +This service class is used to pick up the value of the best time frequency through webservices.
  
      * **DataBase container**      * **DataBase container**
-       * DLL of the high added value  +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.  
-         ​* [[https://​drive.google.com/​file/​d/​0B7w-0zGVI5c1YnRvVkhhMjRsLWc/​edit?​usp=sharing]] + 
-        * DataBase.cs (managed a CSV database) +        * DLL of the high added value  
-          * [[https://​drive.google.com/​file/​d/​0B6C5fyyBS3aoSEJSZE9oem5GX3c/​edit?​usp=sharing]]+          * [[https://​drive.google.com/​file/​d/​0B7w-0zGVI5c1YnRvVkhhMjRsLWc/​edit?​usp=sharing]]
         * DataTransfert.cs (JSON object used to communicate with the High added value)         * DataTransfert.cs (JSON object used to communicate with the High added value)
           * [[https://​drive.google.com/​file/​d/​0B6C5fyyBS3aoQV9TX2ZJWmx5WHM/​edit?​usp=sharing]]           * [[https://​drive.google.com/​file/​d/​0B6C5fyyBS3aoQV9TX2ZJWmx5WHM/​edit?​usp=sharing]]
 +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.
         * Logs.cs (object witch reprent a LOG)         * Logs.cs (object witch reprent a LOG)
           * [[https://​drive.google.com/​file/​d/​0B6C5fyyBS3aoeGNVdFJYSHVMWEU/​edit?​usp=sharing]]           * [[https://​drive.google.com/​file/​d/​0B6C5fyyBS3aoeGNVdFJYSHVMWEU/​edit?​usp=sharing]]
 +This class is a simple definition of a Log.
         * LogsManagment.cs (service class to write in CSV file)         * LogsManagment.cs (service class to write in CSV file)
           * [[https://​drive.google.com/​file/​d/​0B6C5fyyBS3aocHgxMnQ3SUJyLW8/​edit?​usp=sharing]]           * [[https://​drive.google.com/​file/​d/​0B6C5fyyBS3aocHgxMnQ3SUJyLW8/​edit?​usp=sharing]]
 +This class is used to write a Log object into a CSV file.
 +        * DataBase.cs (managed a CSV database)
 +          * [[https://​drive.google.com/​file/​d/​0B6C5fyyBS3aoSEJSZE9oem5GX3c/​edit?​usp=sharing]]
 +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 ​ == == Chesklist to install the embedded service on the object ​ ==
   - Get the IP adress of the phidjet in order to connect with putty (or any ssh client)   - Get the IP adress of the phidjet in order to connect with putty (or any ssh client)
   - Send the wcc of embedded container (linked above) in the default home directory   - Send the wcc of embedded container (linked above) in the default home directory
-  - Send BBright.dll and Beans.dll in the same folder+  - Send BBright.dll and Beans.dll in the same folder ​(all the DLL listed above)
   - lauch this command :    - lauch this command : 
-<code bash>​mono ...</​code>​+<code bash>​mono ​Container.exe –r /root/Beans –l /​root/​PhidgetContainerExported.wcc –n BBright</​code>​ 
 +Be careful to use absolute path.
  
 == Chesklist to install the remote service/​application on the PC == == Chesklist to install the remote service/​application on the PC ==
 **Hight added value service** **Hight added value service**
   - Copy the BBright.dll into the Bean folder of SharpDevelop (usually C:\Program Files (x86)\SharpDevelop\3.0\Beans)   - Copy the BBright.dll into the Bean folder of SharpDevelop (usually C:\Program Files (x86)\SharpDevelop\3.0\Beans)
-  - Copy the DLL of the embedded container in the same folder.+  - Copy the DLL of the embedded container in the same folder ​(copy all the DLL listed above)
   - Open Sharp Develop and create a new C# container project   - Open Sharp Develop and create a new C# container project
   - In WComp section, choose import option   - In WComp section, choose import option
   - Pick up the wcc for the remote PC container (linked above)   - Pick up the wcc for the remote PC container (linked above)
   - Change the IP adresse and the port of the proxy, you can catch it through Device Spy.   - Change the IP adresse and the port of the proxy, you can catch it through Device Spy.
-  - Select the option "​Bind ​ti UpNP Device"​ in WComp tab.+  - Select the option "​Bind ​to UpNP Device"​ in WComp tab.
  
 **DataBase** **DataBase**
Ligne 149: Ligne 174:
  
 ==== Results of the relations with Reims (being factual without personal opinion) ==== ==== 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 : ==== ==== Prospects : ====
projets/oc/oc_2013_2014/bbright.1392846443.txt.gz · Dernière modification: 2014/02/19 22:47 par etudiant_oc_2013_2014