Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,810,679 Members 41,406 Now Online
XDA Developers Android and Mobile Development Forum

Gear 2 Access to Bluetooth Stack in Tizen SDK UNBLOCKED!

Tip us?
 
ScDoc8
Old
(Last edited by ScDoc8; 21st August 2014 at 01:57 AM.) Reason: Updated
#1  
Junior Member - OP
Thanks Meter 10
Posts: 11
Join Date: Jun 2014
Talking Gear 2 Access to Bluetooth Stack in Tizen SDK UNBLOCKED!

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!!
The Following 6 Users Say Thank You to ScDoc8 For This Useful Post: [ Click to Expand ]
 
gidi
Old
#2  
Senior Member
Thanks Meter 20
Posts: 284
Join Date: May 2006
Quote:
Originally Posted by ScDoc8 View Post
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.

You must do this in Ubuntu 12.04 as the building tools GBS and Gerritt work only with Linux.

Step 1 - Download the Developer Tools for Tizen including Gerritt Build System (GBS) and Gerritt. Register for Gerritt access on Tizens webpage and configure your computer to build rpm packages.

Step 2 - Download the wrt-plugins-tizen.git package from gerritt under framework and build it successfully on your computer.

Step 3 - Make sure your gear 2 is rooted and using sdb, push the recently compiled wrt-plugins-tizen.rpm onto a folder on the gear 2.

Step 4 - Using sdb, login to the shell on the gear 2. (ex: ./sdb shell)

Step 5 - CD to the folder with the new rpm wrt-plugins-tizen.rpm file is located.

Step 6 - Change the filesystem on the gear to read/write from read only. Ex: Sh$ mount -o remount,rw /

Step 7 - Install the wrt-plugins-tizen.rpm over the already installed version. Ex: Sh$ rpm -ivh wrt-plugins-tizen.rpm -nodeps --force

Step 8 - Restart your Gear 2 and you should be able to call the methods and functions for Bluetooth in the Tizen
(Ex: 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!!
Hi there,

Does that mean that BT communication with an iPhone (apart from the BT hands free profile) may indeed be possible?
 
ScDoc8
Old
#3  
Junior Member - OP
Thanks Meter 10
Posts: 11
Join Date: Jun 2014
Quote:
Originally Posted by gidi View Post
Hi there,

Does that mean that BT communication with an iPhone (apart from the BT hands free profile) may indeed be possible?
Yes, it seems possible and I am working on this now.
 
gidi
Old
#4  
Senior Member
Thanks Meter 20
Posts: 284
Join Date: May 2006
Dude, I wanna give you a hug!
Share some info whenever you have smth new!


Sent from my iPhone using Tapatalk
 
ash99
Old
#5  
Senior Member
Thanks Meter 48
Posts: 323
Join Date: Mar 2006
Can you post the compiled wrt-plugins-tizen.rpm file?
 
gidi
Old
#6  
Senior Member
Thanks Meter 20
Posts: 284
Join Date: May 2006
I am checking this thread every hour. Should I consult a shrink?


Sent from my iPhone using Tapatalk
 
Skin1980
Old
#7  
Recognized Developer
Thanks Meter 1,849
Posts: 1,130
Join Date: Nov 2009

 
DONATE TO ME
Let me understand... You need this for....?

Sent from my SM-G900F using XDA Free mobile app
If I deserve you can buy me a beer
 
gav83collins
Old
#8  
gav83collins's Avatar
Senior Member
Thanks Meter 733
Posts: 1,938
Join Date: Dec 2010
Location: Bunbury-Western Australia
Quote:
Originally Posted by Skin1980 View Post
Let me understand... You need this for....?

Sent from my SM-G900F using XDA Free mobile app
I'm gonna look into my iPhone I've never tried with my gears I can't stand apple. I only have my iPhone to stay up to date with the jailbreaking scene
Galaxy S5 G900f
ROM Omega latest
KERNEL testing
STATE Rooted / UnLocked
RECOVERY twrp

Also S4 I9506 & S3 I305T
iPhone 4 ios7 jb
IPad mini ios 7 jb

Evo3D
multi booting x9 roms currently

Galaxy Gear 1 & Gear 2 SM-V700 / SM-R380
STATE Rooted/BusyBox
ROM TizenMod V3.0

Gear <S4 <Note2 <S3 <Evo3D <S2 <dhd <Omnia HD <Omnia 2 < Omnia 1
(not including iphones)
 
gidi
Old
#9  
Senior Member
Thanks Meter 20
Posts: 284
Join Date: May 2006
Quote:
Originally Posted by Skin1980 View Post
Let me understand... You need this for....?

Sent from my SM-G900F using XDA Free mobile app

Skin, my man, could this result in a ROM with direct control over BT profiles? In that case, direct connection between Gear and iPhone could be possible.

BT hands free profile is already supported by the iPhone. Enabling other profiles on the watch could maybe lead to enabling notifications.


Sent from my iPhone using Tapatalk
 
gav83collins
Old
(Last edited by gav83collins; 18th August 2014 at 01:41 PM.)
#10  
gav83collins's Avatar
Senior Member
Thanks Meter 733
Posts: 1,938
Join Date: Dec 2010
Location: Bunbury-Western Australia
Quote:
Originally Posted by gidi View Post
Skin, my man, could this result in a ROM with direct control over BT profiles? In that case, direct connection between Gear and iPhone could be possible.

BT hands free profile is already supported by the iPhone. Enabling other profiles on the watch could maybe lead to enabling notifications.


Sent from my iPhone using Tapatalk
I've got these installed I'm gonna try that bt profile unlocking and five that a whirl. I see there's no gear related apps in Cydia. Appstore or for the gear on galaxy app store


Galaxy S5 G900f
ROM Omega latest
KERNEL testing
STATE Rooted / UnLocked
RECOVERY twrp

Also S4 I9506 & S3 I305T
iPhone 4 ios7 jb
IPad mini ios 7 jb

Evo3D
multi booting x9 roms currently

Galaxy Gear 1 & Gear 2 SM-V700 / SM-R380
STATE Rooted/BusyBox
ROM TizenMod V3.0

Gear <S4 <Note2 <S3 <Evo3D <S2 <dhd <Omnia HD <Omnia 2 < Omnia 1
(not including iphones)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes