Sony PS3 Wireless controller and PANDORA


retoxdafreak

Still Fresh
Joined
Jan 18, 2011
Messages
1
Hi guys...


Just ordered my PANDORA today and I was wondering whether my PS3 Wireless Controller would work with the PANDORA (of cource best wirelessly ;-). Any experiences with that? Would it theoretically work?


Is there any working wireless controller solution available?


In case it doesn`t work any suggestions for a good external controller?


Thanx in advance... retox
 
There's something in the file archive for it (can't get the link at the moment). Haven't tried it myself though.


Edit: It was the first thing in there, IIRC
 
Last edited by a moderator:
In addition to that, there is a script created that allows Xbox360 wireless pads (PC type with receiver) to work on the Pandora for both desktop useage and within N64 emu Mupen64, though the receiver needs a hub. Coming soon will be the iCP from Craig & Co and that will link via BT to the Pandora and act as a perfect controller. They are planning controller shaped grips to fit it, to make it more ergonomic. People have probably gotten WiiMotes to work aswell.


So there are plenty of options for wireless controllers.
 
Is there a pnd for this ? If I was to run it without, does it need to be done from the terminal ?
 
Nope. No PND. It's just an executable you can drop and run from anywhere though. But it is a terminal utility. This is one of those cases where, while a PND could be made. It's just not that practical. Especially since it looks like it only needs to be run once.
 
Nope. No PND. It's just an executable you can drop and run from anywhere though. But it is a terminal utility. This is one of those cases where, while a PND could be made. It's just not that practical. Especially since it looks like it only needs to be run once.

I tried running it from the terminal but it said it was an unrecognised command. I'm guess I've done something wrong.


I browsed to the directory where I'd unzipped it and typed: sixpair_arm
 
Couple of things:


1. Make sure it's executable


chmod 775 ./sixpair


2. Make sure it's either:


a. In the executable Path (probably isn't if you just extracted it somewhere)


b. you type it like: ./sixpair (the ./ tells it to look for the executable RIGHT HERE)


Please note that there are GUI ways of doing both of these things, but it is generally easier to just do it from terminal.


The reason it's easier from the terminal in this case is because it is a "console" application, and doesn't have a gui of it's own.


If all you need to do is change the file permissions on a file it's pretty much the same as in Microsoft products. Right click the file in the file manager and choose the Permissions tab. Then check the box that says "allow executing file as a program".


Launching console applications from within the file manager generally has no noticeable effect. They launch in the background. Scripts (those ending in .sh, typically) will ask what you want to do, launch in terminal is an option.
 
Last edited by a moderator:
Anyone was able to make this work?


I have a High Speed USB Hub connected to my Pandora. Then run sixpair and it looks it's working properly:


sudo ./sixpair_ARM


Current Bluetooth master: XX:XX:XX:XX:XX:XX


Setting master bd_addr to XX:XX:XX:XX:XX:XX


But now what do I have to do? If I turn on the gamepad, the ligths start blinking and the pad doesn't work...
 
Anyone was able to make this work?


I have a High Speed USB Hub connected to my Pandora. Then run sixpair and it looks it's working properly:


sudo ./sixpair_ARM


Current Bluetooth master: XX:XX:XX:XX:XX:XX


Setting master bd_addr to XX:XX:XX:XX:XX:XX


But now what do I have to do? If I turn on the gamepad, the ligths start blinking and the pad doesn't work...
Stupid question, but you did turn the Pandora's bluetooth receiver on, right?
 
Thanks for everyone's advice. Just to confirm, will I need a USB hub to do this ?
 
Stupid question, but you did turn the Pandora's bluetooth receiver on, right?

Of course, BT was enabled before starting the process. If you don't enable it before executing sixpair, it errors.

Thanks for everyone's advice. Just to confirm, will I need a USB hub to do this ?

The Pandora USB host is High Speed ONLY, so if you want to plug Low Speed and Full Speed devices to it, you NEED to use a High Speed hub or it will not work (and also it looks like it disables the port until you reboot the Pandora). You should be able to avoid using the hub by connecting the gamepad to the On-The-Go USB port, but I cannot confirm this because I have not the required cable to test this. The On-The-Go port is supposed to support Low, Full and High Speed devices.


So... nobody can confirm this working?
 
Stupid question, but you did turn the Pandora's bluetooth receiver on, right?

Of course, BT was enabled before starting the process. If you don't enable it before executing sixpair, it errors.

Thanks for everyone's advice. Just to confirm, will I need a USB hub to do this ?

The Pandora USB host is High Speed ONLY, so if you want to plug Low Speed and Full Speed devices to it, you NEED to use a High Speed hub or it will not work (and also it looks like it disables the port until you reboot the Pandora). You should be able to avoid using the hub by connecting the gamepad to the On-The-Go USB port, but I cannot confirm this because I have not the required cable to test this. The On-The-Go port is supposed to support Low, Full and High Speed devices.


So... nobody can confirm this working?

I'd prefer to get a cable for the on-the-go port rather than a usb hub.
 
The On-The-Go port seems the most portable option, but I don't have the cable to test it right now, and that cables are sometimes difficult to find. The only thing that can be problematic if you use the OTG port is the current consumption. OTG ports when in HOST mode are supposed to supply up to 100 mA, and IIRC Sixaxis and Dual Shock 3 gamepads request 500 mA to the bus so maybe they will be rejected when plugged in.


Anyway, the gamepad is supposed to be plugged to the pandora only one time (to pair it), so it's not that bad to use a hub one time and then forget it.
 
ok now what about the other way around, how does the pandora communicate with the ps3, in other words, can the pandora be used as a joypad and especially a keyboard for ps3? i was thinking of buying a mini blutooth keyboard for my ps3 and than though, hmm....will i be able to use pandora keyboard to type on ps3?
 
[


I'd prefer to get a cable for the on-the-go port rather than a usb hub.

I thought I'd got one but it doesn't seem to work for me. Is there something that needs to set/change to make use of OTG. What I bought did say it was OTG, although not sure now.


Any ideas?
 
[


I'd prefer to get a cable for the on-the-go port rather than a usb hub.

I thought I'd got one but it doesn't seem to work for me. Is there something that needs to set/change to make use of OTG. What I bought did say it was OTG, although not sure now.


Any ideas?

Open a terminal and type these two lines:


sudo su -


[Maybe you will be asked for your password]


echo host > /sys/devices/platform/musb_hdrc/mode


Then close the terminal.


If these doesn't work, try again, but adding a new line:


sudo su -


[Maybe you will be asked for your password]


modprobe g_zero


echo host > /sys/devices/platform/musb_hdrc/mode


Also make sure the device you are plugging to the port doesn't demand more than 100 mA (use a self powered device or a low power device, like a pendrive, a mouse, a keyboard...). Playstation 3 pads IIRC demand 500 mA so maybe they will not work with OTG ports.


I haven't the right cable, so I cannot test it myself :(
 
[


I'd prefer to get a cable for the on-the-go port rather than a usb hub.

I thought I'd got one but it doesn't seem to work for me. Is there something that needs to set/change to make use of OTG. What I bought did say it was OTG, although not sure now.


Any ideas?

Open a terminal and type these two lines:


sudo su -


[Maybe you will be asked for your password]


echo host > /sys/devices/platform/musb_hdrc/mode


Then close the terminal.


If these doesn't work, try again, but adding a new line:


sudo su -


[Maybe you will be asked for your password]


modprobe g_zero


echo host > /sys/devices/platform/musb_hdrc/mode


Also make sure the device you are plugging to the port doesn't demand more than 100 mA (use a self powered device or a low power device, like a pendrive, a mouse, a keyboard...). Playstation 3 pads IIRC demand 500 mA so maybe they will not work with OTG ports.


I haven't the right cable, so I cannot test it myself :(

Tried the first and didn't work.


tried the second and modprobe g_zero returns


FATAL: Error inserting g_zero (/Lib/modules/2.6.27.46-omap1/kernel/drivers/usb/gadget/g_zero.ko): device or resource busy


Edit: Seems my usb doesn't work at all. Had to reboot but still no luck with OTG. Oh well will wait and try and get an other adapter.
 
Last edited by a moderator:
Maybe tomorrow I'll be able to get a cable and test it, but only MAYBE. The cable I can get borrowed has been successfully used with a Beagleboard, so it should also work with the Pandora.
 
Well, I got the adapter and done some tests. Here are my findings:


1.- The OnTheGo works perfect in HOST mode, but it's in DEVICE mode by default. To enable HOST mode you have to type "sudo modprobe g_zero" in the terminal.


2.- Sometimes the devices are not recognized by the bus when attached. If you plug a device and it's not recognized (and you have already done the "modprobe stuff"), you have to do the "echo stuff" I wrote in the post above.


3.- As I suspected, OnTheGo HOST can supply only 100 mA, so high power devices (like unfortunately the Playstation 3 Sixaxis and DualShock 3 controllers) will not work unless you use a self powered hub between the port and the device.


Here is what I done to enable HOST mode. You can see the gamepad is recognized, but it doesn't work (gamepad leds stay off) because it requests 500 mA to the bus and thus it doesn't complete enumeration.



Code:
doragasu-pandora:~$ sudo su -

Password: 

~ # lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

~ # modprobe g_zero

~ # lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 002: ID 054c:0268 Sony Corp. Batoh Device

~ # lsusb -v


Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Device Descriptor:

  bLength                18

  bDescriptorType         1

  bcdUSB               2.00

  bDeviceClass            9 Hub

  bDeviceSubClass         0 Unused

  bDeviceProtocol         0 Full speed (or root) hub

  bMaxPacketSize0        64

  idVendor           0x1d6b Linux Foundation

  idProduct          0x0002 2.0 root hub

  bcdDevice            2.06

  iManufacturer           3 Linux 2.6.27.46-omap1 ehci_hcd

  iProduct                2 OMAP-EHCI Host Controller

  iSerial                 1 ehci-omap.0

  bNumConfigurations      1

  Configuration Descriptor:

    bLength                 9

    bDescriptorType         2

    wTotalLength           25

    bNumInterfaces          1

    bConfigurationValue     1

    iConfiguration          0 

    bmAttributes         0xe0

      Self Powered

      Remote Wakeup

    MaxPower                0mA

    Interface Descriptor:

      bLength                 9

      bDescriptorType         4

      bInterfaceNumber        0

      bAlternateSetting       0

      bNumEndpoints           1

      bInterfaceClass         9 Hub

      bInterfaceSubClass      0 Unused

      bInterfaceProtocol      0 Full speed (or root) hub

      iInterface              0 

      Endpoint Descriptor:

        bLength                 7

        bDescriptorType         5

        bEndpointAddress     0x81  EP 1 IN

        bmAttributes            3

          Transfer Type            Interrupt

          Synch Type               None

          Usage Type               Data

        wMaxPacketSize     0x0004  1x 4 bytes

        bInterval              12

Hub Descriptor:

  bLength               9

  bDescriptorType      41

  nNbrPorts             3

  wHubCharacteristic 0x0009

    Per-port power switching

    Per-port overcurrent protection

  bPwrOn2PwrGood       10 * 2 milli seconds

  bHubContrCurrent      0 milli Ampere

  DeviceRemovable    0x00

  PortPwrCtrlMask    0xff

 Hub Port Status:

   Port 1: 0000.0100 power

   Port 2: 0000.0100 power

   Port 3: 0000.0100 power

Device Status:     0x0001

  Self Powered


Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Device Descriptor:

  bLength                18

  bDescriptorType         1

  bcdUSB               2.00

  bDeviceClass            9 Hub

  bDeviceSubClass         0 Unused

  bDeviceProtocol         0 Full speed (or root) hub

  bMaxPacketSize0        64

  idVendor           0x1d6b Linux Foundation

  idProduct          0x0002 2.0 root hub

  bcdDevice            2.06

  iManufacturer           3 Linux 2.6.27.46-omap1 musb-hcd

  iProduct                2 MUSB HDRC host driver

  iSerial                 1 musb_hdrc

  bNumConfigurations      1

  Configuration Descriptor:

    bLength                 9

    bDescriptorType         2

    wTotalLength           25

    bNumInterfaces          1

    bConfigurationValue     1

    iConfiguration          0 

    bmAttributes         0xe0

      Self Powered

      Remote Wakeup

    MaxPower                0mA

    Interface Descriptor:

      bLength                 9

      bDescriptorType         4

      bInterfaceNumber        0

      bAlternateSetting       0

      bNumEndpoints           1

      bInterfaceClass         9 Hub

      bInterfaceSubClass      0 Unused

      bInterfaceProtocol      0 Full speed (or root) hub

      iInterface              0 

      Endpoint Descriptor:

        bLength                 7

        bDescriptorType         5

        bEndpointAddress     0x81  EP 1 IN

        bmAttributes            3

          Transfer Type            Interrupt

          Synch Type               None

          Usage Type               Data

        wMaxPacketSize     0x0004  1x 4 bytes

        bInterval              12

Hub Descriptor:

  bLength               9

  bDescriptorType      41

  nNbrPorts             1

  wHubCharacteristic 0x0011

    Per-port power switching

    No overcurrent protection

  bPwrOn2PwrGood        5 * 2 milli seconds

  bHubContrCurrent      0 milli Ampere

  DeviceRemovable    0x02

  PortPwrCtrlMask    0xff

 Hub Port Status:

   Port 1: 0000.0103 power enable connect

Device Status:     0x0001

  Self Powered


Bus 002 Device 002: ID 054c:0268 Sony Corp. Batoh Device

Device Descriptor:

  bLength                18

  bDescriptorType         1

  bcdUSB               2.00

  bDeviceClass            0 (Defined at Interface level)

  bDeviceSubClass         0 

  bDeviceProtocol         0 

  bMaxPacketSize0        64

  idVendor           0x054c Sony Corp.

  idProduct          0x0268 Batoh Device

  bcdDevice            1.00

  iManufacturer           1 Sony

  iProduct                2 PLAYSTATION(R)3 Controller

  iSerial                 0 

  bNumConfigurations      1

  Configuration Descriptor:

    bLength                 9

    bDescriptorType         2

    wTotalLength           41

    bNumInterfaces          1

    bConfigurationValue     1

    iConfiguration          0 

    bmAttributes         0x80

      (Bus Powered)

    MaxPower              500mA

    Interface Descriptor:

      bLength                 9

      bDescriptorType         4

      bInterfaceNumber        0

      bAlternateSetting       0

      bNumEndpoints           2

      bInterfaceClass         3 Human Interface Device

      bInterfaceSubClass      0 No Subclass

      bInterfaceProtocol      0 None

      iInterface              0 

        HID Device Descriptor:

          bLength                 9

          bDescriptorType        33

          bcdHID               1.11

          bCountryCode            0 Not supported

          bNumDescriptors         1

          bDescriptorType        34 Report

          wDescriptorLength     148

         Report Descriptors: 

           ** UNAVAILABLE **

      Endpoint Descriptor:

        bLength                 7

        bDescriptorType         5

        bEndpointAddress     0x02  EP 2 OUT

        bmAttributes            3

          Transfer Type            Interrupt

          Synch Type               None

          Usage Type               Data

        wMaxPacketSize     0x0040  1x 64 bytes

        bInterval               1

      Endpoint Descriptor:

        bLength                 7

        bDescriptorType         5

        bEndpointAddress     0x81  EP 1 IN

        bmAttributes            3

          Transfer Type            Interrupt

          Synch Type               None

          Usage Type               Data

        wMaxPacketSize     0x0040  1x 64 bytes

        bInterval               1

Device Status:     0x0000

  (Bus Powered)


Then I tested it with a Card Reader that only needs 100 mA to work, and it worked flawlessly.


So there's no way to plug PS3 gamepads to the Pandora without using a HUB, no matter what port you use.
 
Back
Top