Outils pour utilisateurs

Outils du site


divers:nabaztag:protocole_version_http

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édentesRévision précédente
Prochaine révision
Révision précédente
divers:nabaztag:protocole_version_http [20/08/2011 22:05] – [Les Connexions] cyrilledivers:nabaztag:protocole_version_http [19/05/2012 00:18] (Version actuelle) – modification externe 127.0.0.1
Ligne 4: Ligne 4:
 Le Lapin étudié est un **Nabaztag:Tag** : version avec le nombril (micro et lecteur RFID). Le Lapin étudié est un **Nabaztag:Tag** : version avec le nombril (micro et lecteur RFID).
  
-Le bytecode utilisé n'est pas la dernière version éditée par Violet puisqu'on ne veut pas bosser avec XMPP, mais avec HTTP seulement. +**Le bytecode utilisé est celui du projet OpenNab**. Ce n'est pas la dernière version éditée par Violet puisqu'on ne veut pas bosser avec XMPP, mais avec HTTP seulement. Il s'agit de celui du projet OpenNab. Ce bytecode été modifier pour utiliser des URLs adaptées au projet OpenNab qui utilise PHP:
- +
-Du coup les URLs contenues dans le bytecode ont été adaptées (sauvagement):+
   * /locate.php   * /locate.php
   * /vl/p4.php   * /vl/p4.php
Ligne 67: Ligne 65:
     * sd>=8000: mouvement d'oreilles     * sd>=8000: mouvement d'oreilles
     *      * 
-  * **tc**:+  * **tc**: L'IDentifiant du programme (message) en cours. L'ID est encodé en Hexa (ex: tc=12d13c), alors que dans le message (programme) il était en décimal (ex: ID 1233212;). 
 + 
 +Peut-être: 
 +  * The “tc” parameter in the GET request contains the ID of the currently-running program, and the “tn” parameter contains the ID of the previous program. Something funny seems to happen when switching from one to the other (http://nabaztag.magicmonkey.org/dokuwiki/random-things-i-ve-learnt).
  
  
Ligne 101: Ligne 102:
 ==== Les Messages ==== ==== Les Messages ====
  
-=== Delay Message (type=0x03) ===+=== Interval de communication (type=0x03) ===
  
   [03,1]78   [03,1]78
  
-=== Leds & Ears Message Position (type=0x04) ===+=== Ambience (type=0x04) === 
 + 
 +Leds, Ears, Service
  
   [04,23]7fffffff00000000000000000000000000000000000000   [04,23]7fffffff00000000000000000000000000000000000000
  
 === Download Message (type=0x05) === === Download Message (type=0x05) ===
 +
 +=== Reboot (type=0x09) ===
  
 === Message (type=0x0a) === === Message (type=0x0a) ===
 +
 +==== Exemples ====
 +
 +1er Ping après allumage :
 +  /vl/p4.php?sn=002185ba6195&v=65808&st=1&sd=0&tc=0&h=4
 +  packetHead: 7f
 +  block[1]: [MessageBlock,0a,15]ID 2147483647;
 +  block[2]: [AmbientBlock,04,23]7fffffff0eff0000000000000000000000000000000000
 +  block[3]: [Block,03,1]0a
 +  packetTail: ff0a
 +  /vl/p4.php?sn=002185ba6195&v=65808&st=1&sd=0&tc=7fffffff&h=4
 +  packetHead: 7f
 +  block[1]: [AmbientBlock,04,23]7fffffff0eff0000000000000000000000000000000000
 +  block[2]: [Block,03,1]0a
 +  block[3]: [MessageBlock,0a,0]
 +
 +Weather (1) to Storm (5):
 +  AbientBlock->SetServiceValue() Override ambient 1 to 5
 +  block[1]: [AmbientBlock,04,23]7fffffff01050000000000000000000000000000000000
 +  block[2]: [Block,03,1]78
 +  block[3]: [MessageBlock,0a,0]
 +
 +Weather (1) to Storm (5) and Market (2) to Neutral (3):
 +  AbientBlock->SetServiceValue() Override ambient 1 to 5
 +  AbientBlock->SetServiceValue() Override ambient 2 to 3
 +  block[1]: [AmbientBlock,04,23]7fffffff01050203000000000000000000000000000000
 +  block[2]: [Block,03,1]78
 +  block[3]: [MessageBlock,0a,0]
 +
 +Market (2) to Neutral (3):
 +  AbientBlock->SetServiceValue() Override ambient 2 to 3
 +  block[1]: [AmbientBlock,04,23]7fffffff02030000000000000000000000000000000000
 +  block[2]: [Block,03,1]78
 +  block[3]: [MessageBlock,0a,0]
 +  
 +Taichi
 +  AbientBlock->SetServiceValue() Override ambient 14 to 255
 +  block[1]: [AmbientBlock,04,23]7fffffff0eff0000000000000000000000000000000000
 +  block[2]: [Block,03,1]78
 +  block[3]: [MessageBlock,0a,0]
 +
 +Play Dice:
 +  GET /vl/p4.php?sn=002185ba6195&v=65808&st=1&sd=3&tc=7fffffff&h=4
 +   addToLog(4) >>> dice: set state [message]
 +   addToLog(3) >>> dice: rolling dice and getting 2
 +   block[1]: [AmbientBlock,04,23]7fffffff0eff0000000000000000000000000000000000
 +   block[2]: [Block,03,1]78
 +   block[3]: [MessageBlock,0a,108]ID 1233212;MU broadcast/vl/plugins/dice/files/fr/get.mp3;MW;MU broadcast/vl/plugins/dice/files/fr/2.mp3;MW;
 +  GET /vl/plugins/dice/files/fr/get.mp3
 +  GET /vl/plugins/dice/files/fr/2.mp3
 +  GET /vl/p4.php?sn=002185ba6195&v=65808&st=1&sd=2&tc=12d13c&h=4
 +   addToLog(4) >>> dice: set state [message]
 +   addToLog(3) >>> dice: end of message ; waiting for another one
 +   block[1]: [AmbientBlock,04,23]7fffffff0eff0000000000000000000000000000000000
 +   block[2]: [Block,03,1]78
 +   block[3]: [MessageBlock,0a,15]ID 2147483647;
 +
 +Play a MP3 URL:
 +
 +  simpleplay: ping type=0
 +  simpleplay: ping CurrentID=2147483647
 +  simpleplay: media reference=4792979
 +  simpleplay: now playing http://192.168.1.38:81/vl/plugins/dice/files/en/4.mp3
 +  /vl/p4.php?sn=002185ba6195&v=65808&st=1&sd=0&tc=7fffffff&h=4
 +  block[1]: [AmbientBlock,04,23]7fffffff0eff0000000000000000000000000000000000
 +  block[2]: [Block,03,1]78
 +  block[3]: [MessageBlock,0a,77]ID 4792979;ST http://192.168.1.38:81/vl/plugins/dice/files/en/4.mp3;PL 1;MW;
 +  
 +  simpleplay: ping type=2
 +  simpleplay: ping CurrentID=4792979
 +  simpleplay: media reference=4792979
 +  simpleplay: http://192.168.1.38:81/vl/plugins/dice/files/en/4.mp3 reached the end ; back to default state
 +  /vl/p4.php?sn=002185ba6195&v=65808&st=1&sd=2&tc=492293&h=4
 +  block[1]: [AmbientBlock,04,23]7fffffff0eff0000000000000000000000000000000000
 +  block[2]: [Block,03,1]78
 +  block[3]: [MessageBlock,0a,15]ID 2147483647;
 +
  
divers/nabaztag/protocole_version_http.txt · Dernière modification : 19/05/2012 00:18 de 127.0.0.1

Sauf mention contraire, le contenu de ce wiki est placé sous les termes de la licence suivante : CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki