CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

the Wii nunchuk I2C data

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Guest








the Wii nunchuk I2C data
PostPosted: Wed Dec 26, 2007 7:55 pm     Reply with quote

Hello. I have got the I2C data between Wii and Nunchuk use the Logic analyse equipment. The nunchuk's address is 0XA4. Below is the all I2C communication data. But I have a trouble. what's the relation between starting 0x40(Master send 16 bytes) and the 0x20(Slave return 16bytes)?
The return 16 bytes is the different when change the 0x40(16 bytes).
The 0x00(6 bytes)is the nunchuk states data.
0xa4 write 0xf0, 0x55
0xa4 write 0xfb, 0x00
0xa4 write 0xfa
0xa4 read 0x00, 0x00, 0xa4, 0x20, 0x00, 0x00

0xa4 write 0xf0, 0xaa
0xa4 write 0x40, 0XB6, 0XC9, 0XD8, 0X6D,0XFE,0X1B
0xa4 write 0X46,0X02,0X1C,0X9C,0XC4,0XEF,0XF8
0xa4 write 0X4C,0X03,0X78,0XDD,0X90
0xa4 write 0x20
0xa4 read 0X57,0X0C,0X50,0X02,0X4E,0X45,0X1E,0X01
0xa4 read 0X57,0X0C,0X50,0X02,0X4E,0X45,0X1E,0X01
0xa4 write 0x30
0xa4 read 0X57,0X0C,0X50,0X02,0X4E,0X45,0X1E,0X01
0xa4 read 0X57,0X0C,0X50,0X02,0X4E,0X45,0X1E,0X01

0xa4 write 0x00
0xa4 read 0XDF,0X82,0XE3,0X8C,0X30,0X49

Anyone know the relation between 0x40(16bytes) and 0x20(bytes) ?
Guest








Wii I2C data
PostPosted: Thu Dec 27, 2007 1:57 am     Reply with quote

0xa4 write f0 55
0xa4 write fb 00
0xa4 write fa
0xa4 read 00 00 a4 20 00 00
0xa4 write f0 aa
0xa4 write 40 7a f7 1b 99 03 a2
0xa4 write 46 ab f9 44 3d e7 68
0xa4 write 4c 8a 75 5c fa
0xa4 write 20
0xa4 read 0x80,0xd4,0xa2,0x70,0xa1,0xd8,0x29,0x30
0xa4 read 0x2d,0x79,0x98,0x56,0x32,0x8d,0xeb,0x4d
0xa4 write 30
0xa4 read 0x80,0xd4,0xa2,0x70,0xa1,0xd8,0x29,0x30
0xa4 read 0x2d,0x79,0x98,0x56,0x32,0x8d,0xeb,0x4d

0xa4 write 0x00
0xa4 read 0x8f,0xd0,0xcc,0xeb,0x9c,0x13

Hi. Dear All. Above is the data what I get the nunchuk and wiimote I2C. I don't know the relation between the 0x40(wii sent 16byte key) and the return 0x20(nunchuk return 16 bytes). Below is the 0x00-0xff data what use the logic analyse write the nunchuk 00-ff data. Who know this relation? Let's discuss together! [email protected]

0x 0---0x81, 0x81, 0xad, 0x7f, 0x7b, 0xbf, 0x 0, 0x 0, 0x 0, 0x 0, 0x 0, 0x 0, 0x 0, 0x 0, 0x 0, 0x 0,
0x10---0x 0, 0x 0, 0x 0, 0x 0, 0x 0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7c,
0x20---0x7c, 0x7d, 0x7b, 0x 9, 0xaf, 0xae, 0xad, 0x13, 0xdf, 0x18, 0x81, 0xe3, 0x20, 0x81, 0xeb, 0x40,
0x30---0x7c, 0x7d, 0x7b, 0x 9, 0xaf, 0xae, 0xad, 0x13, 0xdf, 0x18, 0x81, 0xe3, 0x20, 0x81, 0xeb, 0x40,
0x40---0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0x50---0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0x60---0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0x70---0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0x80---0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0x90---0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xa0---0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xb0---0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xc0---0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xd0---0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xe0---0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xf0---0x55, 0x 0, 0x 0, 0x 0, 0x 0, 0x 0, 0x 0, 0x 0, 0x 0, 0x 0, 0x 0, 0x 0, 0xa4, 0x20, 0x 0, 0x 0,
L.Belanger
Guest







PostPosted: Sun Dec 30, 2007 11:37 am     Reply with quote

O RLY?

Wrong place to ask this...
kd5uzz



Joined: 28 May 2006
Posts: 56

View user's profile Send private message

PostPosted: Sun Dec 30, 2007 4:25 pm     Reply with quote

http://www.ccsinfo.com/forum/viewtopic.php?t=32753&highlight=wii
Guest








Thank guys
PostPosted: Tue Jan 01, 2008 8:36 pm     Reply with quote

Thank guys. But it does not explain the key (0x40--0x4f) and the decrypt(0x20--0x2f). It only to read the 6 state data. I want to do a nunchuk use a MCU now.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group