Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
cours:oc:gr9_16_17:gr9_16_17 [2017/01/17 16:10] epersenda |
cours:oc:gr9_16_17:gr9_16_17 [2017/02/19 20:58] (Version actuelle) epersenda [Design] |
||
---|---|---|---|
Ligne 26: | Ligne 26: | ||
^Equipement ^Lien ^Quantité ^Prix^ | ^Equipement ^Lien ^Quantité ^Prix^ | ||
| Carte RaspberryPi 2 Model B | [[https://www.seeedstudio.com/Raspberry%20Pi%202%20Model%20B%20w&%20ARMv7%20Quad%20Core%201GB%20RAM-p-2289.html|seeedstudio link]] | 1 | 39,5€ | | | Carte RaspberryPi 2 Model B | [[https://www.seeedstudio.com/Raspberry%20Pi%202%20Model%20B%20w&%20ARMv7%20Quad%20Core%201GB%20RAM-p-2289.html|seeedstudio link]] | 1 | 39,5€ | | ||
- | | Grove Pi+ | [[http://www.gotronic.fr/art-module-grovepi-103010002-23075.htm|gotronic link]] | 1 | 36,6€ | | + | | <del>Grove Pi+</del> | [[http://www.gotronic.fr/art-module-grovepi-103010002-23075.htm|gotronic link]] | 1 | <del>36,6€</del> | |
- | | PMODPMON1 (voltmètre+ampermètre) | [[http://www.lextronic.fr/P28439-module-pmod-moniteur-dalimentation.html|lextronic link]] | 1| 22,84€ | | + | | <del>PMODPMON1 (voltmètre+ampermètre)</del> | [[http://www.lextronic.fr/P28439-module-pmod-moniteur-dalimentation.html|lextronic link]] | 1| <del>22,84€</del> | |
| Hub USB | [[https://www.amazon.fr/CSL-ordinateurs-Ultrabooks-lalimentation-%C3%A9lectrique/dp/B01HGA9TG2/ref=sr_1_1?s=computers&ie=UTF8&qid=1476187277&sr=1-1&keywords=hub+usb+aliment%C3%A9|amazon link]] | 1 | 17.85€ | | | Hub USB | [[https://www.amazon.fr/CSL-ordinateurs-Ultrabooks-lalimentation-%C3%A9lectrique/dp/B01HGA9TG2/ref=sr_1_1?s=computers&ie=UTF8&qid=1476187277&sr=1-1&keywords=hub+usb+aliment%C3%A9|amazon link]] | 1 | 17.85€ | | ||
| Câble usb Male/femelle 15cm | [[http://www.materiel.net/cable-adaptateur-usb/startech-com-cable-d-extension-male-femelle-usb-2-0-de-15-2-m-90212.html?LGWCODE=90212%3B60841%3B1784&affcode=adwords_shop&gclid=Cj0KEQjw4fy_BRCX7b6rq_WZgI0BEiQAl78nd2Q1xk1oud4iHUUsC9aNccDHrqZtTIghFqgVtBr9e78aAmgx8P8HAQ|materiel.net link]] | 2 | 11,98€ | | | Câble usb Male/femelle 15cm | [[http://www.materiel.net/cable-adaptateur-usb/startech-com-cable-d-extension-male-femelle-usb-2-0-de-15-2-m-90212.html?LGWCODE=90212%3B60841%3B1784&affcode=adwords_shop&gclid=Cj0KEQjw4fy_BRCX7b6rq_WZgI0BEiQAl78nd2Q1xk1oud4iHUUsC9aNccDHrqZtTIghFqgVtBr9e78aAmgx8P8HAQ|materiel.net link]] | 2 | 11,98€ | | ||
| Câble usb retractable Male/Male micro | [[http://www.cdiscount.com/telephonie/accessoires-portable-gsm/cable-enrouleur-usb-micro-usb/f-1442025-ism3700922100266.html?idOffre=127518379#mpos=3|cdiscount link]] | 2 | 13,8€ | | | Câble usb retractable Male/Male micro | [[http://www.cdiscount.com/telephonie/accessoires-portable-gsm/cable-enrouleur-usb-micro-usb/f-1442025-ism3700922100266.html?idOffre=127518379#mpos=3|cdiscount link]] | 2 | 13,8€ | | ||
- | | Cable groovePi | [[http://www.gotronic.fr/art-lot-de-5-cables-grove-20-cm-19054.htm|gotronic link]] | 1 | 3,30€| | + | | <del>Câble groovePi</del> | [[http://www.gotronic.fr/art-lot-de-5-cables-grove-20-cm-19054.htm|gotronic link]] | 1 | <del>3,30€</del>| |
| Jumper Femelle/femelle | - | - | - | | | Jumper Femelle/femelle | - | - | - | | ||
- | | Total ||| 142,57€| | + | | Total ||| 83,13€| |
Ligne 122: | Ligne 122: | ||
Fichier SketchUp: (ECHELLE 1:100) | Fichier SketchUp: (ECHELLE 1:100) | ||
[[https://drive.google.com/file/d/0B-AGqqBLH05SdG1Nei1KUEZqUEU/view?usp=sharing|Lien externe]] | [[https://drive.google.com/file/d/0B-AGqqBLH05SdG1Nei1KUEZqUEU/view?usp=sharing|Lien externe]] | ||
+ | |||
+ | == Images de l'objet == | ||
+ | |||
+ | Objet monté: | ||
+ | |||
+ | {{:cours:oc:gr9_16_17:image_monte.jpg?200|}} | ||
+ | {{:cours:oc:gr9_16_17:img_20170219_132836.jpg?200|}} | ||
+ | {{:cours:oc:gr9_16_17:img_20170219_132901.jpg?200|}} | ||
+ | {{:cours:oc:gr9_16_17:img_20170219_132936.jpg?200|}} | ||
+ | |||
+ | Objet démonté: | ||
+ | |||
+ | {{:cours:oc:gr9_16_17:photo_demonte.jpg?200|}} | ||
+ | |||
+ | Vue éclaté: | ||
+ | |||
+ | {{:cours:oc:gr9_16_17:vue_eclate.png?200|}} | ||
+ | |||
+ | == Schéma Wcomp == | ||
+ | |||
+ | {{:cours:oc:gr9_16_17:wcomp.png?200|}} | ||
+ | |||
+ | == Distribution (GIT)== | ||
+ | Lien du git: https://github.com/Buisson/BeansFlhubber | ||
+ | |||
+ | Tout le code des différentes parties du projet se trouve sur ce lien | ||
+ | |||
+ | Le serveur a été développé avec nodeJS et est hébergé sur un serveur distant. | ||
+ | L'application Wcomp a été développé avec sharkDevelop | ||
+ | |||
+ | ==Hard/Soft== | ||
+ | |||
+ | * Hardware: Raspberry pi2 modèle B | ||
+ | * OS: Raspbian (Jessie) 4.4.21-v7+ | ||
+ | |||
+ | * Software: Machine Windows 64bit avec WComp et Node.js installés | ||
+ | ==How To== | ||
+ | **Besoins** | ||
+ | |||
+ | Pour utiliser les différents services développés, vous devez au préalable installer plusieurs composants sur votre machine hôte (testé avec Windows 10 64bit). | ||
+ | |||
+ | * Installez SharpDevelop 3.2, ainsi que l'AddIn SharpWComp-3.2. | ||
+ | * Installez Node.js. Dans le dossier serveur/sources/nodejs, lancer la commande : "npm install". | ||
+ | * Logiciel Device Spy. | ||
+ | |||
+ | **Ordre de lancement** | ||
+ | |||
+ | Objet Connecté: | ||
+ | |||
+ | Commencez par branchez l'objet connecté : | ||
+ | |||
+ | * Branchez le câble ethernet ; | ||
+ | * Branchez les deux prises d'alimentation : celle de la RaspberryPi et celle du hub. | ||
+ | |||
+ | Au démarrage, la RaspberryPi va lancer le script Python (grace au fichier /etc/rc.local) et ainsi devenir l'objet connecté FlHubber. | ||
+ | Services | ||
+ | Serveur Node.js | ||
+ | |||
+ | Dans le dossier serveur/sources/nodejs, lancer le serveur Node.js avec la commande : node ./server.js | ||
+ | Schéma de composition WComp | ||
+ | |||
+ | *Déplacez toutes les DLL du dossier wcom/bin dans votre répertoire WComp (généralement Documents/WComp.NET/Beans). | ||
+ | *Ouvrez SharpDevelop. | ||
+ | *Créez un nouveau fichier "C# Container" dans la catégorie "WComp.NET". | ||
+ | *Dans le menu "WComp.NET", choisissez "Import (Replace)..." et sélectionnez le fichier "FlHubber.wcc" présent dans le dossier wcom/sources. | ||
+ | *Cliquez sur le bouton "Start", lié au Bean "FlHubberService", qui va lancer le Bean serveur. | ||
+ | *Lancez le logiciel "Device Spy", sélectionnez l'objet "PyUPnP_Flhubber", copiez l'adresse de l'objet. | ||
+ | *Dans le schéma WComp, sélectionner le Bean FlHubber (de type PyUPnP_Flhubber), et copier l'adresse dans l'Uri (dans les propriétés). | ||
+ |