-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDocWiki.txt
More file actions
65 lines (48 loc) · 2.09 KB
/
DocWiki.txt
File metadata and controls
65 lines (48 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
J'ai regroupé ici toutes les avancées faites par chacun sur le "forum" :
http://www.dealabs.com/bons-plans/prise-wifi-/85521?page=36
Il faut remplacer l'IP 192.168.0.25 par votre IP.
Le login/Mot de pase par défaut est admin/admin ; Adapter en fonction de vos besoins
Acces aux pages web hebergées par la prise
===========================================
http://admin:admin@192.168.0.25/rd.asp
puis Administration > System Command
Liste des commandes :
---------------------
GpioForCrond 1 : Allumer
GpioForCrond 0 : Eteindre
GetInfo I : Intensite courante
GetInfo V : Tension courante en milli-Volts
GetInfo W : Consommation courante en centi-Watts
GetInfo E : Conso depuis le dernier reset, en mWatts/h
Utilisation avec wget
======================
Eteindre :
wget -O - -q --post-data="command=GpioForCrond%200&SystemCommandSubmit=Apply" http://admin:admin@192.168.0.25/goform/SystemCommand
Allumer :
wget -O - -q --post-data="command=GpioForCrond%201&SystemCommandSubmit=Apply" http://admin:admin@192.168.0.25/goform/SystemCommand
Lire le résultat de la commande :
wget -O - -q http://admin:admin@192.168.0.25/adm/system_command.asp
Utilisation avec curl
======================
Utilisation via un formulaire web
==================================
Voir le fichier Command.html
Accés telnet
=============
telnet 192.168.0.25
login admin
pwd admin
Allumer : GpioForCrond 1
Eteindre : GpioForCrond 0
Autre méthode, utilisant "gpio" :
Allumer : gpio l 1 4000 1 0 0 4000
Eteindre : gpio l 1 0 4000 1 0 4000
Pour information, "gpio" comporte sa propre aide :
# gpio
Usage: gpio w - writing test (output)
gpio r - reading test (input)
gpio i (<gpio>) - interrupt test for gpio number
gpio l <gpio> <on> <off> <blinks> <rests> <times>
- set led on <gpio>(0~24) on/off interval, no. of blinking/resting cycles, times of blinking
Cette fonction a été déduite sur base d'un post en anglais concernant le module NEATO : http://www.robotreviews.com/chat/viewtopic.php?f=20&t=17844&start=40
Toutes les commandes Telnet ci-dessus peuvent être passée dans Administration/System Command...