View Single Post
Posts: 291 | Thanked: 398 times | Joined on Jan 2011 @ USA
#196
Hi, thank you all for your contribution to this helpful thread. I finally got my new gtab 10.1 connected to my n900 and able to use its internet connection. It's a little tricky at first but once I understood the whole process it seems simple enough.

The only tricky part is when to press the "use for Internet connection" under Bluetooth setting [ Profiles ] in my GTab,

It need to be pressed before the script is activated, and then there's only like 1 or maybe 2 sec window to activate the script on n900 before it times out. If successful, the big bluetooth icon on the lower right coner of my GTab task bar should popup in bright blue color, otherwise, the whole process has to be done again.

I will create a small program in QT to simplify the whole process.

Here's what i have in mind for the program.

1. Click Program Icon to initiate the connection:
  • Program will turn on the bluetooth if it's not on and then connect to dbus to listen to device connection signal from GTab.
2. User click "user Internet connection" on GTab:
  • Program will run "tether.sh start", and continue to monitor the dbus signal for disconnection then run "tether.sh stop" and maybe turn bluetooth off as well then quit itself until user click on the icon again.

What do you guys think, simple enough?

Hell, Maybe I just write the whole thing without using tether.sh script. or maybe not because some command has be run as root.

Last edited by khuong; 2011-08-01 at 19:47.