Recent Changes - Search:
You are here: Projects » NabazTag
NabazTag

Navigation

Home
Blog
ChangeLog
CV
Contact
Pictures
Projects
    HomeBugz
    g15web
    BeeLine2GEarth
    Alert
    JTF
    NabazTag
    Webdo
    Prius Fan
    Mtp Target 2
    Methodologies
    Mtp Target
    Ryzom
    Mtp Share
    Wpkg Sync
    Snowballs
    Cara Proxy
    NeL
    Mankind
    Mtp TurretParty
    Outcast
    Mtp Web
    GDCK
    MLib
    Mtp Chat
    XT2
    Old School
    Momentum3
    Momentum2
    Momentum
    Regulate
    DaKoolPlan

NabazTag

If you don't know what is a nabaztag, take a look here

The goal of this page is to add all information about the communication between the toy and the server.

Lot of work were made by Edouard on this page.

All information that are in italics are just supposition or unknown. Feel free to complete if you have more information. Everybody can edit this page by clicking "edit" on the bottom of this page.

Ad-Hoc mode Configuration

There's 2 web page on the Nabaztag a.htm and b.htm

a.htm

Display the configuration form.

b.htm

Execute the form. It accepts GET values:

NameValueComment
q1???
r1???
kSSIDName of the Wifi network
l0 / 1Authentication mode (0:Open/1:Shared)
nWEP KeyWep key in hexa or text form (11:22:33:44:55:66:77:88:99:AA:BB:CC:DD)
fon / offDHCP enabled
g IP address (if DHCP not used)
h Mask (if DHCP not used)
i Gateway (if DHCP not used)
j IP address of DNS server (if DHCP not used)
con / offProxy enabled
d Proxy server address
e Proxy server port
ap.nabaztag.comAddress of the violet server
b80Port of the server
yUpdateupdate or update and reboot

NabazTag to Server

NameValueComment
sn000000000000Serial Number of the Nabaztag
v14Version of the Nabaztag (here 1.4)
st0 / 1Status. First request is always 0 and then always 1
ts00230210???
sd0002#sdv sd Value
tc00230210???
tn00203077???

sd Values

This is the way the Nabaztag warns the server that something change on it.

ValueComment
0002Nabaztag finished an event. In this case 'ts' contains the EventId? of the finised event.
0003We press its head
0004We long press its head
XXXXWe move its ears position with our hands''

Notes:

  • Each time there's a 'sd', there's also a 'ts' value. These 2 values are linked.
  • 'tc' and 'tn' are some pointer/index on events.

Example: http://193.149.99.27/vl/FR/p3.jsp?sn=000000000000&v=14&st=01&ts=00230210&sd=0002&tc=00230210&tn=00203077

Server to NabazTag

The answer of the server is a binary packet that contains a set of message.

Header

A packet always begins with a byte with the value 7F. Then one or more messages follow. It ends with a byte with the value FF followed by one or more garbage 0A. If we remove the garbage, everything works fine.

Comment
Header 7F
#msg Message 1
#msg Message 2
#msg ...
#msg Message N
Footer FF
Garbage 0A
(optional) Garbage 0A

Message

OffsetSizeComment
001#msgtype Message Type
013Message Length (N)
04N#msgtype03 Message Content (N is the Message Length)

Message Types

TypeComment
03Delay Message
04Led Message
05Download Message

Message Type 03

Delay before each query.

OffsetSizeComment
001Delay in deci-seconds (01=10s, 02=20s ...), default=03

Example: a complete packet 7F0300000101 will set the delay between 2 queries to 10 seconds.

Message Type 04

Led and Ears Patterns.

OffsetSizeComment
0047FFFFFFF
042#ledp Led Pattern 1
062#ledp Led Pattern 2
082#ledp Led Pattern 3
102#ledp Led Pattern 4
122#ledp Led Pattern 5
142#ledp Led Pattern 6
162#ledp Led Pattern 7
182#ledp Led Pattern 8
201#earp Left Ear Pattern
211#earp Right Ear Pattern
221#nosep Nose Pattern 1
231(optional) #nosep Nose Pattern 2. If you set a color, it will display the color1, color2, off, and loop
...1(optional) #nosep Nose Pattern N. I tried with N=16 and it works

Led Pattern

YYY XXX means that all three led are in Yellow (Y) and then all led are off (X).

There are too much values, don't know if there s logical way to create these number.

Tempo is just here to say that the switching between color are fast or not. 2s is slow, -2s is fast.

ValueTempoColor Pattern
0100 YYY XXX
0101 BXB XYX
0102 BBB XXX
0103 BXB BXX XXB XBX BXX
0104 BXX XBX BXX XBX XXB XBX XXB XBX
0105 YBX XYB YBX XBY BYX
0106 RXR XXX
01072sXRX RXR XXX
01081sXRX RXR XXX
01090sXRX RXR XXX
010A-1sXRX RXR XXX
010B-2sXRX RXR XXX
010C-3sXRX RXR XXX
010D-2sXXW XWX WXX
010E-1sXXW XWX WXX
010F0sXXW XWX WXX
01101sXWX XXX
01111sWXX XWX XXW
01120sWXX XWX XXW
0113-1sWXX XWX XXW
01140sPXX XPX XXP XPX
01150sXPX XXX
01160sPXP XXX
01170sPPP XXX
01182sLLL XXX
011A2sLLL XXX
011B2sLLL XXX
011C2sLLL XXX
011D0sLXX XLX LLX LLL XLL ...
011E0sLXX XLX LLX LLL XLL ...
011F0sLXX XLX LLX LLL XLL ...
2000 All black
40000sBXX BXB XXB ...
80001sBXX XBX BXX XBX XXB XBX XXB XBX
F0001sYYY XXX
.........

Ears Pattern

When the Ears Pattern change, a little music is playing and ears move. Value is between 00 and 10 (included).

Warning: The value 11 makes ear to loop always and always and do really weird things, don't use this value or above.

Nose Pattern

This is a one byte value that select a color:

ValueColor
00Off
01Red
02Green
03Yellow
04Blue
05Purple
06Light Blue
07White
08Pale White
09Pale Pink
0APale Green
0BPale Yellow
0CPale Blue
0DPale Purple
0EPale Light Blue
0FOrange

Example: a complete packet 7F040000177FFFFFFF01030000000000000000000000000000011001FF will set the 3 led to random blue, left ear to one position, right ear to one position behind and the nose blink red.

Message Type 05

TODO

Message Type 06

Repeat the last message.

OffsetSizeComment
0047FFFFFFF

Example: a complete packet 7F060000047FFFFFFFFF will make the Nabaztag repeates the last message.

Edit - History - Print - Recent Changes - Search
Page last modified on December 31, 2010, at 06:02 PM
PmWiki Valid XHTML Valid CSS Section 508