Micro Bluetooth 4.0 USB Adapter mod
Durante queste giornate di pioggia estiva, non potendo andare in giro con la moto, e macinare chilometri come dovrei... mi sono fatto rapire da uno speciale di Digitalia sulla tecnologia iBeacon in puro stile NERD.
Mi sono subito documentato sulla fattibilità di creare un "faro" iBeacon a casa, magari utilizzando uno dei Raspberry che conservo nel cassetto per giocare.
Facendo la spunta sul materiale HW in mio possesso.. mi ricordo che non possiedo un adattatore USB 4.0 (particolare del tutto irrilevante e facilmente risolvibile), tanto che appena mi è capitata l'occasione, ne ho acquistato uno.
Qui iniziano i primi problemi... nella "grossa catena di distribuzione" la scelta era limitata al Sitecom CN-524 ed avendo particolare fretta, non ho badato molto alla compatibilità con linux, avendo ben impresso la completa compatibilità con Windows e Mac.
Appena arrivato a casa, installato e configurato il piccolo raspberry, mi accorgo che la periferica non viene riconosciuta in alcun modo..
Un NERD non demorde.. e si affida a ricerche mirate sui più disparati motori di ricerca e nei meandri della rete... finché spunta una pagina web..
Adventures in Bluetooth 4.0 – Part 1: Initializing a CSR 8510 A10 aka Sitecom CNT-524
Dal post, si evince.. che la suddetta scheda non è abilitata per default alla modalità Bluetooth HCI mode; il perspicace ragazzo, esegue un debug approfondito sul servizio che abilita la modalità Bluetooth HCI mode e riesce mediante un tool a rendere permanente la modifica (nel mio caso non senza smadonnamenti).
Vi allego copia della procedura funzionante da lui perfettamente descritta e vi rimando al post in questione
" Finally I had got it working with (at least) OS X Mavericks and on Linux.
For the story, CSR8510 A10 chip is a dual-mode chip. On your dongle, and mine (“It Works” – Micro Bluetooth 4.0 USB Adapter from Darty in France), the dongle boot in HID mode by default (VID 0A12 PID 100B). Even with a Linux computer, i could’nt get the dongle to work in HCI mode (Bluetooth mode so – VID 0A12 PID 0001).
If you have a computer that is running Windows (7 – 64bits for me) you can modify the “initial device bootmode”.
To change the device bootmode :
Download the BlueSuite to modifiy “BlueCore Persistent Store” :http://www.kcwirefree.com/docs/BlueSuite_2_5.zip
Unplug your Bluetooth dongle
Install the BlueSuite Software (default options)
Plug your Bluetooth dongle in another port than previously
Run CSR BlueSuite 2.5.0 / PSTool as Administrator
With the first window : Choose Transport = USB then Port = \\.\csr0 and click OK
In the Filter box, type bootmode then click on the item “Initial device bootmode”
Note the hex number in case something goes wrong (mine was 0002), then change to 0000
Click on the Set button then click on the Close button
Wait some seconds then unplug your Bluetooth dongle.
Finally, run your OS X or Linux host with the dongle plugged-in and your Bluetooth dongle will now work out of the box
With this modification, your Bluetooth dongle, will always start in HCI mode.
Some information about the dual-mode in Bluetooth USB :http://www.ie.ksu.edu.tw/data/bluetooth/28/docs/hid_dual_boot_dongle.html
Hope it will work for you too.