UPDATED 8/20/14
Some minor changes were made to the process to get the Bluetooth API available. I confrmed this after re-flashing my device.
I have sucessfully unblocked access to the bluetooth stack on the Tizen Wearable SDK. This feature was removed from the wearable SDK and I have discovered how to re-enable this. This will allow you to write apps that can communicate with any available bluetooth device using the Tizen Wearable SDK.
1. Download this file from tizens website - download.tizen.org/releases/2.2.1/latest/repos/tizen-main/armv7l/packages/armv7l/wrt-plugins-tizen-0.4.80-1.1.armv7l.rpm
2. From a command prompt cd into your folder where sdb.exe is kept. (ie. tizen/tools/ )
3. Enter command ./sdb root on to put gear 2 into root mode.
4. Next push downloaded file above onto your gear. (ie. ./sdb push ~/Downloads/wrt-plugins-tizen-0.4.80-1.1.armv7l.rpm /tmp/ )
(There is a space between the tizen file and the /tmp/ which places the file into the tmp folder on the gear 2)
5. Shell into your gear 2. (ie. ./sdb shell )
6. At the command prompt, make the file system writable. (ie. mount -o remount,rw / )
7. Change to the tmp directory and install the rpm file. (ie. cd tmp ) (ie. rpm -i --force --nodeps --replacefiles wrt-plugins-tizen-0.4.80-1.1.armv7l.rpm
8. If successful you should have NO OUTPUT and only a new command prompt.
9. Type reboot on the command prompt on the gear 2 and it restarts.
10. Start the Wear IDE and try to use the Bluetooth API Calls and it should work.
Below is a sample Wear App
var adapter = tizen.bluetooth.getDefaultAdapter();
console.log(adapter.address);
Before this would result in a null listing on the console, but now you should have the bluetooth address in the console. I have verified discovery works and other Bluetooth functions.
Happy Building!!
:laugh:
Some minor changes were made to the process to get the Bluetooth API available. I confrmed this after re-flashing my device.
I have sucessfully unblocked access to the bluetooth stack on the Tizen Wearable SDK. This feature was removed from the wearable SDK and I have discovered how to re-enable this. This will allow you to write apps that can communicate with any available bluetooth device using the Tizen Wearable SDK.
1. Download this file from tizens website - download.tizen.org/releases/2.2.1/latest/repos/tizen-main/armv7l/packages/armv7l/wrt-plugins-tizen-0.4.80-1.1.armv7l.rpm
2. From a command prompt cd into your folder where sdb.exe is kept. (ie. tizen/tools/ )
3. Enter command ./sdb root on to put gear 2 into root mode.
4. Next push downloaded file above onto your gear. (ie. ./sdb push ~/Downloads/wrt-plugins-tizen-0.4.80-1.1.armv7l.rpm /tmp/ )
(There is a space between the tizen file and the /tmp/ which places the file into the tmp folder on the gear 2)
5. Shell into your gear 2. (ie. ./sdb shell )
6. At the command prompt, make the file system writable. (ie. mount -o remount,rw / )
7. Change to the tmp directory and install the rpm file. (ie. cd tmp ) (ie. rpm -i --force --nodeps --replacefiles wrt-plugins-tizen-0.4.80-1.1.armv7l.rpm
8. If successful you should have NO OUTPUT and only a new command prompt.
9. Type reboot on the command prompt on the gear 2 and it restarts.
10. Start the Wear IDE and try to use the Bluetooth API Calls and it should work.
Below is a sample Wear App
var adapter = tizen.bluetooth.getDefaultAdapter();
console.log(adapter.address);
Before this would result in a null listing on the console, but now you should have the bluetooth address in the console. I have verified discovery works and other Bluetooth functions.
Happy Building!!
:laugh:
Last edited: