forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Method to Get Sixaxis BT Address and Link Key?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS3 Development
View previous topic :: View next topic  
Author Message
BTBefuddled



Joined: 08 May 2009
Posts: 2
Location: Santa Cruz, CA

PostPosted: Wed May 13, 2009 5:17 am    Post subject: Method to Get Sixaxis BT Address and Link Key? Reply with quote

I work for a company that makes Bluetooth headsets. One of our products causes the Sixaxis controller to lock up - the controller doesn't respond to any buttons or joystick movement. We have a Bluetooth protocol analyzer I can use to troubleshoot, but I need the BT address of the Sixaxis and the link key between the controller and the console. Since the controller and console are paired over the USB cable I can't get that information in the normal manner over the air. I can get the console's BT address and the link key between the console and the headset by extracting that information from the headset. Is there a similar method for extracting the controller BT address and link key from the Sixaxis or alternately from the console? Thanks in advance.
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Wed May 13, 2009 5:32 am    Post subject: Reply with quote

For the Sixaxis MAC address, just scan it with "hcitool scan" or similar. You might need to use the sixpair utility to pair it with your host MAC first.

There is no authentication or encryption, so there's no link key.
Back to top
View user's profile Send private message
Brandon



Joined: 11 Dec 2007
Posts: 17

PostPosted: Fri May 15, 2009 2:17 am    Post subject: Reply with quote

if you don't have linux on a ps3 use sixpair to register the mac address of your computer in the sixaxis, then use hcidump while pressing the ps button, then you should see the mac address
Back to top
View user's profile Send private message
BTBefuddled



Joined: 08 May 2009
Posts: 2
Location: Santa Cruz, CA

PostPosted: Fri May 15, 2009 3:21 am    Post subject: Reply with quote

Thanks, both.

The key was that the Bluetooth link is unencrypted. I just assumed the link would be encrypted and that I would need the link key. I can get the BT address of the console from our headset. I just type the console BT address into the BT analyzer and set analyzer to sniff for "any" master - bingo! I can now trace the BT interaction between the console and the controller and between the console and the headset.

Both of you mentioned the MAC address of the controller. I assume that the MAC address would be the same as the BT address. Getting the contoller BT address would still be useful if I couldn't get the console BT address from the headset.

Thanks again.
Back to top
View user's profile Send private message
Brandon



Joined: 11 Dec 2007
Posts: 17

PostPosted: Fri May 15, 2009 3:43 am    Post subject: Reply with quote

yeah you can get the ps3 bd address from the sixaxis too using sixpair
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS3 Development All times are GMT + 10 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