Hi everybody

After some very hard days trying to find documentation....I have to surrender.. 
That's why I'm asking for help...

Here is the the goal of our test:

We need to read information from a device (a BT GPS, for this proof of 
concept). This gadget expose the serialized info through a serial port...or at 
least is what we see when we test it in win/lin environments...

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";.

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
                
                
So...at this point...we do not know if the problem is the implementation of the 
spp...or,of course,if we are writing a sh***ty code...but in this case, in 
addition to our guiltiness, the lack of information does not help ;)

Guys, have any of you had similar fights with this profile? (btw, sending and 
receiving files..work fine)

The masters of the universe in these matters...could give me a hand? I would 
give my kingdom for a simply link with richer information...or if any of you 
know that this is a known bug, then apologies

Thank you all in advance
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to