| Voir le sujet précédent :: Voir le sujet suivant |
| Auteur |
Message |
|
|
Spyou Guru de domotique
Inscrit le: 22 Mar 2007 Messages: 146
|
Posté le: 16 Fév 2008 14:55 Sujet du message: Début d'installation domotique |
|
|
A l'occaz d'une demande de photo sur un montage 1wire, j'ai pris quelques clichés, si çà intéresse.
Attention, c'est loin d'être parfait niveau intégration dans le paysage, j'en suis encore a bosser sur la partie fonctionnement
http://www.spyou.org/domotique/IMG_5448.JPG -> Le "serveur 1wire" .. en fait, une bete fonera hackée, avec, en petit bonus, comme vous pourrez le lire sur l'étiquette, l'utilisation d'un des GPIO de la bête pour une petite fonction bien utile. La Fonera fais tourner un petit soft tout con "ser2net" qui permet, via le réseau, de dialoguer avec le port série.
http://www.spyou.org/domotique/IMG_5447.JPG -> La "boite noire". Un montage basé sur le LinkOEM de ibuttonlink.com qui permet de dialoguer en ascii avec le bus 1wire sans se prendre la tête, ce qui permet d'utiliser ser2net et de déporter toute l'intelligence domotique ou on veut sur le réseau de la maison, voir sur internet. Il est directement branché au port série de la Fonera, les deux discutant en TTL, pas besoin d'électronique en plus.
Seule petite bidouille a ce niveau, le LinkOEM supporte mal le Redboot de la fonera qui cause sur le port série, il faut donc pouvoir le rebooter. C'est l'utilité du GPIO qui sort de la fonera. En faisant tomber la ligne GPIO a la fin du boot de la fonera, ca coupe l'alimentation du LinkOEM, puis on le remonte, et tout fonctionne a merveille.
http://www.spyou.org/domotique/IMG_5446.JPG -> Après avoir joué avec des LM7805 pendant un temps, je me suis vite rendu compte qu'avec une grosse longueur de câble et des composants qui tirent un peu (retro éclairage LCD par exemple) on arrive tres vite aux limites du régulateur. J'ai donc opté pour une vieille alim de lecteur de cartouche SUN qui en plus me donne un petit rack libre pour ranger Fonera, LinkOEM et premier départ de bus 1wire ... ca ne gâche rien et elle a la patate.
Autre avantage, si vous vous plantez dans votre câblage (genre court circuit) cette alim se met simplement en défaut et coupe la sortie. Pas de plomb qui saute, pas de transfo qui fond, pas de composant qui brule, tout va bien
Et enfin, cerise sur le gâteau, comme sur toutes les prises molex d'alim, on trouve une masse, un +5vDC et un +12vDC ... C'est le bonheur
http://www.spyou.org/domotique/IMG_5442.JPG -> Tout mon bus 1wire est en RJ45 (4 paires, une pour le 1wire, une pour le +5 et le +12vDC, il en reste deux pour jouer). Pour les endroits ou j'ai besoin de splitter mon câble en deux, j'ai opter pour des coupleurs 3 entrées femelles (pas évident a trouver, et çà coute les yeux de la tete, soit environ 3/4 euro piece). Ça fait plutôt propre, ça permet de connecter/déconnecter a la volée, c'est chouette, même si un peu gros.
http://www.spyou.org/domotique/IMG_5444.JPG -> Ca, c'est pour les endroits ou j'ai besoin de faire partir plus d'un split. Ce sont des modules pour panneaux de brassage que j'ai récupéré dans une benne. La connexion a l'arrière est triviale, toutes les broches d'une même couleur sont reliées ensemble : http://www.spyou.org/domotique/IMG_5445.JPG Bien sur, c'est pas joli, c'est donc réservé aux endroits genre sous sol, arrière de bureau, descente d'escalier, etc ..
http://www.spyou.org/domotique/IMG_5441.JPG Pour finir, le breadboard ou je test mes projets en cours.
En haut vous avez un DS2408 cablé pour piloter un ecran LCD qui est parti sur un autre montage pour l'instant.
A droite il y'a un DS2438 en cours de test pour un système de détection de pluie (la théorie dans un verre d'eau marche très bien, reste a voir la pratique )
Et au milieu il y'a un DS2406 qui pilote deux led et qui ne sers a rien
Le tout étant principalement utilisé pour monitorer la température. Rdv dans la section 1wire pour les divers montages que je décrirai quand j'aurais un moment (le bête ds18b20 au bout d'un fil, le détecteur jour/nuit, l'écran LCD piloté par un ds2408, le pilotage de radiateurs avec des ds2406, détection d'ouverture de porte, et tout ce que j'aurais imaginé d'ici la ) |
|
| Revenir en haut |
|
 |
Esteban Membre Actif
Inscrit le: 18 Fév 2007 Messages: 37 Localisation: Los Paises Bajos
|
|
| Revenir en haut |
|
 |
Systemy Membre un peu timide !
Inscrit le: 25 Fév 2008 Messages: 4
|
Posté le: 25 Fév 2008 14:30 Sujet du message: FONera + 1-Wire ? |
|
|
Hi,
im from Germany and i speak no french.
Is it right you have connect a 1-Wire Network on the FONera?
Over the GPIO?
What für HardWare and what for SoftWare you are running?
Many Thanks Systemy. |
|
| Revenir en haut |
|
 |
Spyou Guru de domotique
Inscrit le: 22 Mar 2007 Messages: 146
|
Posté le: 25 Fév 2008 16:33 Sujet du message: Re: FONera + 1-Wire ? |
|
|
| Systemy a écrit: | Hi,
im from Germany and i speak no french.
Is it right you have connect a 1-Wire Network on the FONera? |
| Systemy a écrit: | | Over the GPIO? |
No, over the embeded serial port.
| Systemy a écrit: | | What für HardWare and what for SoftWare you are running? |
I'm running a simple ser2net to access the serial port. A linkoem stamp from ibuttonlink.com is pluggued onto the serial port of the fonera. Thus i can simply access the linkoem stamp via a standard TCP port over the ser2net software and speak with him with simple set of ascii commands.
The power-PIO of the fonera is used to remotely hard-reset the linkoem stamp just in case.
Trad :
Oui, j'ai connecté un bus 1wire a la fonera. A travers un stamp linkoem de chez www.ibuttonlink.com. Du coup je peux y acceder via un daemon ser2net avec un set de commandes ASCII simple.
Le GPIO power de la fonera ne sers qu'a rebooter le stamp en cas de crash.
voila voila  |
|
| Revenir en haut |
|
 |
Systemy Membre un peu timide !
Inscrit le: 25 Fév 2008 Messages: 4
|
Posté le: 25 Fév 2008 18:39 Sujet du message: Re: FONera + 1-Wire ? |
|
|
Hi,
| Spyou a écrit: | | No, over the embeded serial port. |
Do you have a new kernel Compiled?
How do you suppress the Boot- and the Kernel- Messages on the RS232 interface?
Does the Messages on the RS232 not interfere the 1-Wire?
| Spyou a écrit: | | I'm running a simple ser2net to access the serial port. |
Can you send me the ipkg-Packet for ser2net?
Or can you send me the ser2net-Binary?
Under what for a Kernal do you use the ser2net on the FONera?
Do you use OpenWRT Kamikaze 2.6.xx.yy?
| Spyou a écrit: | | A linkoem stamp from ibuttonlink.com is pluggued onto the serial port of the fonera. |
What is the Name of the Device?
What is in the Device? A DS2480B RS232 to 1-Wire-Adapter?
Can you send me a Photo of the Device please?
| Spyou a écrit: | | Thus i can simply access the linkoem stamp via a standard TCP port over the ser2net software and speak with him with simple set of ascii commands. |
Is this a Linux or Win(XP) - PC?
What for 1-Wire-Devices do you have?
What for 1-Wire-Devices do you have on the FONera testet?
| Spyou a écrit: | | The power-PIO of the fonera is used to remotely hard-reset the linkoem stamp just in case. |
Can you make a Sketch of the Circuit please?
You do you make the reset?
What for Software do you use for control the GPIO?
Can you make Photos of Inside the FONera please?
Many Thanks from Germany. |
|
| Revenir en haut |
|
 |
Spyou Guru de domotique
Inscrit le: 22 Mar 2007 Messages: 146
|
Posté le: 25 Fév 2008 21:37 Sujet du message: Re: FONera + 1-Wire ? |
|
|
| Systemy a écrit: | | Does the Messages on the RS232 not interfere the 1-Wire? |
It does. That's the purpose of the hard-reset-configured-GPIO.
| Systemy a écrit: | Can you send me the ipkg-Packet for ser2net?
Or can you send me the ser2net-Binary?
Under what for a Kernal do you use the ser2net on the FONera?
Do you use OpenWRT Kamikaze 2.6.xx.yy? |
Google is your friend. http://downloads.openwrt.org/kamikaze/packages/mips/
| Systemy a écrit: | What is the Name of the Device?
What is in the Device? A DS2480B RS232 to 1-Wire-Adapter?
Can you send me a Photo of the Device please? |
Please read my first answer. It is a *LINKOEM* stamp from *IBUTTONLINK.COM*.
| Systemy a écrit: | Is this a Linux or Win(XP) - PC?
What for 1-Wire-Devices do you have?
What for 1-Wire-Devices do you have on the FONera testet?
Can you make a Sketch of the Circuit please?
You do you make the reset?
What for Software do you use for control the GPIO?
Can you make Photos of Inside the FONera please? |
Google is you friend too. You have got photos of the fonera (old and new) here :
http://images.google.fr/images?q=fonera+2200&ie=UTF-8&oe=utf-8&rls=org.mozilla:fr:official&client=firefox-a&um=1&sa=N&tab=wi
Google is you friend too for GPIOs. simple echo 0 > /proc/gpio/7_out is enough to drive them.
The circuit is ground to ground, TX to RX and RX to TX. more simple & you die
The only original work is for the hard reset of the stamp. I have a optotriac to isolate my ethernet network from the 1wire network (i don't like mixed network and idea that people can discharge heavy load on my ethernet via the 1wire who goes outside of the house). It's a quite simple work with TLP circuits that are triggered by the power GPIO of the fonera. Power led OFF = 1wire network OFF. Power led ON = 1wire network ON.
I don't think linux or windows is important on the final working host. This is a FreeBSD right now, but main code is written in Perl, so it can work on almost every OS.
And i have mainly ds18b20, ds2406, ds2438 and ds1990 running on my 1wire network right now. |
|
| Revenir en haut |
|
 |
Systemy Membre un peu timide !
Inscrit le: 25 Fév 2008 Messages: 4
|
Posté le: 25 Fév 2008 23:23 Sujet du message: |
|
|
Hi,
can you make a small Drawing please?
I have google for a ser2net for FONera, but this packet does not work with my Kamikaze 2.6.16 Kernel.
MAny Thanks. |
|
| Revenir en haut |
|
 |
Spyou Guru de domotique
Inscrit le: 22 Mar 2007 Messages: 146
|
Posté le: 26 Fév 2008 0:49 Sujet du message: |
|
|
| Systemy a écrit: | Hi,
can you make a small Drawing please? |
Sure, but of what ?
| Systemy a écrit: | | I have google for a ser2net for FONera, but this packet does not work with my Kamikaze 2.6.16 Kernel. |
Try the latest one ... 2.6.21_5 i think. |
|
| Revenir en haut |
|
 |
Systemy Membre un peu timide !
Inscrit le: 25 Fév 2008 Messages: 4
|
Posté le: 26 Fév 2008 10:24 Sujet du message: |
|
|
Hi,
| Spyou a écrit: | | It's a quite simple work with TLP circuits that are triggered by the power GPIO of the fonera. Power led OFF = 1wire network OFF. Power led ON = 1wire network ON. |
| Spyou a écrit: | | Systemy a écrit: | | Hi, can you make a small Drawing please? |
Sure, but of what ? |
How you connected the GPIO, the TTL and the 1-Wire-Bus together.
| Spyou a écrit: | | Systemy a écrit: | | I have google for a ser2net for FONera, but this packet does not work with my Kamikaze 2.6.16 Kernel. |
Try the latest one ... 2.6.21_5 i think. |
Thanks i will test it.
By. |
|
| Revenir en haut |
|
 |
Spyou Guru de domotique
Inscrit le: 22 Mar 2007 Messages: 146
|
Posté le: 26 Fév 2008 10:47 Sujet du message: |
|
|
| Systemy a écrit: | Hi,
| Spyou a écrit: | | It's a quite simple work with TLP circuits that are triggered by the power GPIO of the fonera. Power led OFF = 1wire network OFF. Power led ON = 1wire network ON. |
| Spyou a écrit: | | Systemy a écrit: | | Hi, can you make a small Drawing please? |
Sure, but of what ? |
How you connected the GPIO, the TTL and the 1-Wire-Bus together. |
Just like i said .. ground to ground, RX to TX and TX to RX between the fonera and the linkoem and the OW gateway of the linkoem to the 1wire bus.
for the GPIO, the PIO output of the fonera on and ground on one side, power supply and power input of the linkoem on the other side. Pin numbers depend on the chip you have. My TLP use 1 & 2 for PIO and ground and 7 & 8 for power input & output. |
|
| Revenir en haut |
|
 |
domotest Membre Actif
Inscrit le: 06 Juin 2008 Messages: 10
|
Posté le: 06 Juin 2008 18:57 Sujet du message: |
|
|
Bonjour à vous tous!
je suis en train de découvrir le one-wire et suis très intéressé par la bidouille de Spyou sur la Fonera. (Spyou que je remercie d'avoir partagé son idée!)
Je sais que ce topic a plus d'un an mais:
Est ce que qqun a flasher dernièrement une fonera avec OpenWrt pour installer ser2net ?
j'ai sous la main une fonera avec le firmware 0.7.2 r3 ; ai je une chance de reussir à mettre OpenWrt dessus?
Bon w.e!  |
|
| Revenir en haut |
|
 |
napo7 P'tit Dieu de domotique
Inscrit le: 05 Mar 2007 Messages: 157
|
Posté le: 09 Juin 2008 14:39 Sujet du message: |
|
|
Salut
j'ai moi aussi une fonera en 7.2.r3, mais j'ai pas encore réussi à installer dd-wrt ou openWrt dessus: il faut d'abord ouvrir SSH, et j'y arrive pas encore (redescendre le firmware en 7.1 apparemment, avec des reset, mais ca marche pas chez moi)
Si j'y arrive, je posterais ici ma recette miracle
Il est vrai que ca fait une UC pas cher, et électriquement économique (5W !!!) (Pour ceux qui l'ignorent, la Fonera se vends à 25 euros frais de port inclus sur le site de fon) |
|
| Revenir en haut |
|
 |
|
|
|
|
Vous ne pouvez pas poster de nouveaux sujets dans ce forum Vous ne pouvez pas répondre aux sujets dans ce forum Vous ne pouvez pas éditer vos messages dans ce forum Vous ne pouvez pas supprimer vos messages dans ce forum Vous ne pouvez pas voter dans les sondages de ce forum
|
|