|
| Iniciado por samuel.esprit, 02,nov. 2009 18:43 - 4 respuestas |
| |
| | | |
|
| |
| Publicado el 02,noviembre 2009 - 18:43 |
Bonjour,
Je souhaite communiquer avec un boitier d'entrée-sortie (sollae systems CIE-H10) Mais je ne sais vraiment pas comment faire. Je me connecte bien avec "SocketConnecte" mais je ne sais qu'elle chaine lui envoyer. La seule chose dont je dispose, c'est le code html ci-dessous. Quelqu'un ou quelqu'une peut il m'aider.
Merci. Sam
Example No HTML File 0. … omitted … 1. <table background="cie_h10.gif" border=0 cellpadding=0 cellspacing=0 width=494 height=630> 2. <tr valign=top> 3. <td align=left colspan=5 height=370></td> 4. </tr> 5. <tr height=16> 6. <td width=88></td> 7. <td width=120 class="B" align=right><? io_echo($ci0); ?></td> 8. <td width=13><? io_echo_equ($i0, 0, "<img src=h10_y_off.gif border=0>", "<img src=h10_y_on.gif border=0>"); ?></td> 9. <td width=24></td> 10. <td width=13><? io_echo_equ($o0, 0, "<a href=index.html?o0=1><img src=h10_g_off.gif border=0></a>", "<a href=index.html?o0=0><img src=h10_g_on.gif border=0></a>"); ?></td> 11. <td width=140 class="B" align=left><? io_echo($co0); ?></td> 12. <td width=96></td> 13. </tr> 14. <tr height=6> 15. <td colspan=5></td> 16. </tr> 17. <tr height=16> 18. <td width=88></td> 19. <td width=120 class="B" align=right><? io_echo($ci1); ?></td> 20. <td width=13><? io_echo_equ($i1, 0, "<img src=h10_y_off.gif border=0>", "<img Boot & F/W Upgrade For User’s HTML Ver. 1.1 Sollae Systems Co., Ltd. - 10 - http://www.sollae.co.kr src=h10_y_on.gif border=0>"); ?></td> 21. <td width=24></td> 22. <td width=13><? io_echo_equ($o1, 0, "<a href=index.html?o1=1><img src=h10_g_off.gif border=0></a>", "<a href=index.html?o1=0><img src=h10_g_on.gif border=0></a>"); ?></td> 23. <td width=140 class="B" align=left><? io_echo($co1); ?></td> 24. <td width=96></td> 25. </tr> 26. … |
| |
| |
| | | |
|
| | |
| |
| Publicado el 09,noviembre 2009 - 00:31 |
je sais le faire sous windows xp. jj mrjj@wwanadoo.fr |
| |
| |
| | | |
|
| | |
| |
| Publicado el 18,marzo 2010 - 19:15 |
Aurait tu trouver, comment dialoguer par socket, par contre par HTTP, la syntaxe est HTTP://ADRESSEIP/index.html?o7=0 Pour passer la sortie 7 à OFF ...
Merci pour vos réponses, conernant le dialogue par socket ... |
| |
| |
| | | |
|
| | |
| |
| Publicado el 11,diciembre 2019 - 08:23 |
Bonjour, désolé de déterrer ce sujet. Mais j'ai aujourd'hui exactement la même problématique. J'ai des boîtiers CIE-H10 avec lesquels je voudrais pouvoir dialoguer par Socket depuis WD (v21). Avez-vous trouver quelque chose d'intéressant depuis le temps ?
Merci
Bien cordialement,
FredB |
| |
| |
| | | |
|
| | |
| |
| Publicado el 11,diciembre 2019 - 10:51 |
Bon finalement j'ai réussi en passant par http. C'est surement pas le plus propre mais ça a le mérite de fonctionner. Je n'ai pas besoin de contrôler les CIE-H10 mais juste de lire leurs états. Si ça peut aider voici le code que j'utilise :
Procedure COLLECTE_IO(sADDRESSE_IP est une chaîne) sREPONSE_REQUETTE_HTTP est une chaîne sType est une chaîne sRESULTAT est une chaîne
SI httpRequête(sADDRESSE_IP) ALORS sREPONSE_REQUETTE_HTTP = HTTPDonneRésultat(httpRésultat) sType = "i" sRESULTAT = EXTRACTION(sREPONSE_REQUETTE_HTTP,sType) sType = "o" sRESULTAT += EXTRACTION(sREPONSE_REQUETTE_HTTP,sType) SINON sRESULTAT = "-1" FIN RENVOYER sRESULTAT
Procedure EXTRACTION(sREQUETTE,sType) sTmp est une chaîne sVAL est une chaîne POUR nCpt = 0 A 7 sTmp = ExtraitChaîne(sREQUETTE,2,sType+nCpt+"_btn""><img src=h10_y_o") SI Gauche(sTmp,1) = "n" ALORS sVAL += "1" SINON sVAL += "0" FIN FIN RENVOYER sVAL
Par contre je suis toujours preneur d'un bout de code en mode socket pour optimiser.
Merci
Bon dev 
FredB |
| |
| |
| | | |
|
| | | | |
| | |
|