Using CSR8510 dongle to pair Sony pads

https://github.com/MiSTer-devel/Main_MiSTer/wiki

Moderators: Mug UK, Zorro 2, Greenious, spiny, Sorgelig, Moderator Team

User avatar
Shazz
Atari Super Hero
Atari Super Hero
Posts: 575
Joined: Wed Aug 27, 2003 9:27 am
Location: Crétin des Alpes dauphinoises

Using CSR8510 dongle to pair Sony pads

Postby Shazz » Sat Apr 27, 2019 12:37 am

Hi,

I bought a cheap USB BT dongle said to be based on a CSR8510 chip.
It is somewhat recognized by MiSTer:

Code: Select all

[   38.966294] usb 1-1: new full-speed USB device number 2 using dwc2
[   39.146488] usb 1-1: New USB device found, idVendor=0a12, idProduct=0001, bcdDevice=25.20
[   39.146501] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[   39.146508] usb 1-1: Product: JL AC69 A10


But quickly some errors occur:

Code: Select all

[  248.163082] Bluetooth: hci0: failed to register connection device
[  249.856361] Unable to handle kernel NULL pointer dereference at virtual address 00000010
[  249.864557] pgd = 5d7eae90
[  249.867423] [00000010] *pgd=00000000
[  249.871198] Internal error: Oops: 17 [#1] SMP ARM


When I enter in MiSTer pairing mode without any pad:

Code: Select all

[   47.445188] Bluetooth: hci0: last event is not cmd complete (0x0f)
[   59.179266] sysfs: cannot create duplicate filename '/devices/platform/soc/ffb40000.usb/usb1/1-1/1-1.2/1-1.2:1.0/bluetooth/hci0/hci0:48'
[   59.179280] CPU: 0 PID: 1435 Comm: kworker/u5:1 Not tainted 4.19.0-socfpga-r1 #11
[   59.179285] Hardware name: Altera SOCFPGA
[   59.179305] Workqueue: hci0 hci_rx_work
[   59.179333] [<c01121b0>] (unwind_backtrace) from [<c010db80>] (show_stack+0x20/0x24)
[   59.179348] [<c010db80>] (show_stack) from [<c0b869dc>] (dump_stack+0x8c/0xa0)
[   59.179364] [<c0b869dc>] (dump_stack) from [<c02e6344>] (sysfs_warn_dup+0x6c/0x78)
[   59.179376] [<c02e6344>] (sysfs_warn_dup) from [<c02e6474>] (sysfs_create_dir_ns+0xcc/0xe0)
[   59.179391] [<c02e6474>] (sysfs_create_dir_ns) from [<c0b8bdb0>] (kobject_add_internal+0xb4/0x2e4)
[   59.179404] [<c0b8bdb0>] (kobject_add_internal) from [<c0b8c044>] (kobject_add+0x64/0xc0)
[   59.179423] [<c0b8c044>] (kobject_add) from [<c04d40e4>] (device_add+0x104/0x610)
[   59.179440] [<c04d40e4>] (device_add) from [<c0a99470>] (hci_conn_add_sysfs+0x40/0x68)
[   59.179454] [<c0a99470>] (hci_conn_add_sysfs) from [<c0a7fc84>] (hci_conn_complete_evt+0xd4/0x3f8)
[   59.179467] [<c0a7fc84>] (hci_conn_complete_evt) from [<c0a87fd0>] (hci_event_packet+0x215c/0x2c98)
[   59.179480] [<c0a87fd0>] (hci_event_packet) from [<c0a78250>] (hci_rx_work+0x178/0x25c)
[   59.179498] [<c0a78250>] (hci_rx_work) from [<c0143324>] (process_one_work+0x228/0x51c)
[   59.179511] [<c0143324>] (process_one_work) from [<c01442b0>] (worker_thread+0x68/0x5dc)
[   59.179525] [<c01442b0>] (worker_thread) from [<c01498a8>] (kthread+0x140/0x170)
[   59.179537] [<c01498a8>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[   59.179542] Exception stack(0xded7ffb0 to 0xded7fff8)
[   59.179550] ffa0:                                     00000000 00000000 00000000 00000000
[   59.179559] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   59.179566] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   59.179619] kobject_add_internal failed for hci0:48 with -EEXIST, don't try to register things with the same name in the same directory.
[   59.191917] Bluetooth: hci0: failed to register connection device
[   61.216447] Bluetooth: hci0: command 0x041b tx timeout
[   62.994467] Unable to handle kernel NULL pointer dereference at virtual address 00000010
[   63.002668] pgd = 92b03dc7
[   63.005537] [00000010] *pgd=00000000
[   63.009232] Internal error: Oops: 17 [#1] SMP ARM
...

(Is the Logitech K400r BT ?) On the screen it says

Code: Select all

Got device: 38:B1...
Pairing...

RequestConfirmation (/org/blue
Confirm passkey (yes/no): Con
Creating device failed: org.b
Add to trust list...
Connecting...
Done.


And when I plug a Sony PS3 pad, nothing is triggered at the BT level:

Code: Select all

[  279.564872] input: Sony PLAYSTATION(R)3 Controller Motion Sensors as /devices/platform/soc/ffb40000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:054C:0268.0009/input/input9
[  279.635354] input: Sony PLAYSTATION(R)3 Controller as /devices/platform/soc/ffb40000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:054C:0268.0009/input/input8
[  279.650481] sony 0003:054C:0268.0009: input,hiddev1,hidraw3: USB HID v81.11 Joystick [Sony PLAYSTATION(R)3 Controller] on usb-ffb40000.usb-1.2/input0


Same for PS4 pad in pairing mode, nothing happen.

Can I conclude this dongle doesn't work ?

Thanks!
...8bits are enough...

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4700
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Using CSR8510 dongle to pair Sony pads

Postby Sorgelig » Sat Apr 27, 2019 2:05 am

CSR8510 works fine. I have several such dongles from different manufacturers.
It;s most likely USB problem. Make sure you use powered HUB. Also try to change port on USB hub.

User avatar
Shazz
Atari Super Hero
Atari Super Hero
Posts: 575
Joined: Wed Aug 27, 2003 9:27 am
Location: Crétin des Alpes dauphinoises

Re: Using CSR8510 dongle to pair Sony pads

Postby Shazz » Sat Apr 27, 2019 3:56 pm

My hub is powered, I tried to change ports.. same results.
I tried other hubs, same results.

Is there a way to check this is a real CSR8510 without opening it :) ?
Or any command I can try to debug it ? (on MiSTer or on my linux laptop)
...8bits are enough...

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4700
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Using CSR8510 dongle to pair Sony pads

Postby Sorgelig » Sat Apr 27, 2019 5:36 pm

plug to Windows. Windows 10 shows the chip name as device in Bluetooth options.


Return to “MiSTer”

Who is online

Users browsing this forum: No registered users and 4 guests