Hi kykjones,

> 
> What I've done:
> 
> Webapi bluetooth
> 
> 1st...search for info...not much though... only pages like
> "https://wiki.mozilla.org/WebAPI/WebBluetooth"..although it says at the
> beginning that might be obsolete... and certainly it must be since the
> methods that seem to be the one we need "listenRfcommSocket"...we cannot
> simply find them in the source code
> "https://github.com/mozilla/releases-mozilla-release/blob/master/dom/bluetooth/nsIDOMBluetoothAdapter.idl";.
> 

I've just updated the page to fit the API we current have for Firefox OS v1.3,
please visit https://wiki.mozilla.org/WebAPI/WebBluetooth again. However,
please note that only certified apps have permission to use Bluetooth API.

> 2nd...
>     Low level things: at OS level..we created the port (rfcomm0),
>     sniffered..and everything went fine...
> 
>     on b2g:
> 
>               - the device has been successfully paired
>               - querying the device "getpaireddevice", it is successfully 
> identified and
>               the info is presented
>               - when we invoke the "connect" method (which we believe is the
>               listenRfcommSocket replacement..) with no profiles (no 
> including the 2nd
>               parameter) ...  b2g crashes (it says "b2g has crashed")
>               - when we invoke the "connect" method with the profile 
> "0x1101", same
>               error: b2g crashes (it says "b2g has crashed)
>               - when we invoke the "connect" method with the profile "0x1108" 
> (which we
>               know doesnt exist,) it says "Connection fail error" but b2g 
> doesnt crash
>               

Unfortunately, currently Gecko Bluetooth is unable to deal with profiles other 
than HFP, HSP,
A2DP, AVRCP and OPP, which means you can't just connect with or listen to a 
service other
than these 5. That's why sharing files worked fine.

We're planning to start refining Bluetooth API on Firefox OS 1.4, please keep 
your eyes on
https://wiki.mozilla.org/WebAPI/WebBluetooth to the latest plan of Bluetooth 
for FxOS.

Please feel free to mail me if you still have problems. Thank you.

Eric Chou
Mozilla Taiwan
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to