-
Notifications
You must be signed in to change notification settings - Fork 72
Fix xwalk BT extension for bluez5(Tizen common 3.0) #460
base: master
Are you sure you want to change the base?
Fix xwalk BT extension for bluez5(Tizen common 3.0) #460
Conversation
Testing patch series with ciscoaphao/tizen-extensions-crosswalk@bf23247 as its head.
|
@@ -1,10 +1,10 @@ | |||
#!/bin/bash | |||
|
|||
pkg-config --exists capi-network-bluetooth && echo "tizen_capi" && exit 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain why this part is necessary?
Thanks for the patch. I'm not entirely familiar with this code, so my only question after looking at the bluez4 version is whether you don't need to initialize |
Hi,
I only noticed in my bluez5 testing a crash in that initialization for the moment. But you are right, most often there is a callback for the interface and the macro G_CALLBACK_CANCELLABLE_1, required a wrapped CancellableWrap()
Reboot the STB and run as root: |
There are 2 Tizen/BT html demos
By launching examples/bluetooth.html, some APIs are missing for bluez5 (setName(), setPowered() |
@baleboy and @poussa can probably help me here since my memory of all this is blurry. As I recall, the "official" way of using the Bluetooth APIs in Tizen 3.0 (at least which we were testing at the time) was through Tizen's C API code, which is why The change you've made reverses this check. It's not wrong, but I'm also not sure this is the design we want to follow (Francesco and Sakari can provide more information). Is the objective here just to build the BlueZ code? In that case, does passing |
During integration of xwalk on tizen 3.0, the BT adapter was not responding and crashes each time the adapter is powered on (after dbus replies)
After comparison with bluez4 porting, it seems there are missing callbacks.
How to test: On the Tizen device:
// Activate BT radio
Launch/deploy a Web application calling BT APIs for guest user. (e.g. Settings.wgt)
(expected:
Adapter should display name "BlueZ 5.19" and scanning should work.)