Active Topics

 


Reply
Thread Tools
Posts: 52 | Thanked: 49 times | Joined on Feb 2008
#1
Is there such a thing as a event that is activated via bluetooth from a cell phone when it rings? I am writing a script that connects to my razr and waits for it to ring. Once it rings, it will look up the incoming phone number with either whitepages.com (free) or cnam.info (pay), and return the name and number of the incoming caller using the dbus messaging system. Effectively, this will turn the tablet into a CallerID with name unit for a cell phone. I already have something like this written on a windows platform, over a usb cable, but I would love to adapt this to the tablet. So far, just using command line options, I can CAT to the port, and am able to grab the phone number (after issueing the commands by ECHOing them to the port), but keeping a persistent connection to the phone via bluetooth will wear the battery down very quickly, so I almost need some type of event driven function.
Anyway, if anyone has any ideas, I would love to hear them.
 
Jaffa's Avatar
Posts: 2,535 | Thanked: 6,681 times | Joined on Mar 2008 @ UK
#2
I'm not aware of any standard BT functionality to get a phone to broadcast a Bluetooth event to any paired, but not connected, devices when it receives an incoming call.

It's possible there are phone specific features for it; but I suspect you'll have to maintain the connection.
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
 
Posts: 118 | Thanked: 26 times | Joined on Feb 2008
#3
How about simulating a headset or something like that? It might wreak havoc with trying to receive the call on the mobile (since it might try to pump audio to the headset), but that should be configurable on the phone side. Given the insane stand-by times headsets get with their tiny batteries, I am sure that it doesn't require a constant BT connection.

Martin
 
Posts: 52 | Thanked: 49 times | Joined on Feb 2008
#4
As I understand it, that is part of the HSP protocol, which, if i am not mistaken, bluez doesn't support yet? At least the OS2008 port doesn't. I was reading a thread on the development of phonelink, and noticed that it has preliminary incoming call/sms support, so it might be interesting to watch that development. Anyway, I am not going to give up just yet. Thanks to all who have answered.
 
Posts: 118 | Thanked: 26 times | Joined on Feb 2008
#5
Why does bluez need to support it? I thought it gave access to sockets on all layers of the bluetooth stack - so you can just have your app implement HSP by using a low-level enough interface to bluez.
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#6
Originally Posted by liquid217 View Post
As I understand it, that is part of the HSP protocol, which, if i am not mistaken, bluez doesn't support yet? At least the OS2008 port doesn't. I was reading a thread on the development of phonelink, and noticed that it has preliminary incoming call/sms support, so it might be interesting to watch that development. Anyway, I am not going to give up just yet. Thanks to all who have answered.
Link, please? That's very interesting, and I'd like to check it out.
 
Posts: 52 | Thanked: 49 times | Joined on Feb 2008
#7
here is the link to the phonelink thread
http://www.internettablettalk.com/fo...ight=phonelink

In the script I am working on, I am using the shell script "dbus-bluez-rfcomm" from the kbdd project
http://fanoush.wz.cz/maemo/#kbdd

I changed the protocol on line 56, to say DUN instead of SPP. i then used it to bind to rfcomm0. I tried substituting DUN with HSP, and the script failed. Honestly, I am not too familiar with bluez, so i've pretty much gotten here by trial and error.
 
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#8
On a similar angle, is there a way to get the N810 to detect when I press my BT headset button (any?). I'd love to be able to have it "press the spacebar" to pause and resume playback.
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#9
Yes, there is. You'll need dbus-scripts installed; then you'll need to make an entry to handle the dbus messages from button-press and button-release. (Sorry I'm a bit vague here, I haven't done that yet, I just know that it does send dbus messages and that dbus-scripts is how to q+d respond to them.)

Then use xte to output the spacebar, or whatever.
 

The Following User Says Thank You to Benson For This Useful Post:
Posts: 605 | Thanked: 137 times | Joined on Nov 2005 @ La Rochelle, France
#10
As sais in the phonelink thread, I could amit a DBus Message with the caller information ...
 
Reply


 
Forum Jump


All times are GMT. The time now is 17:47.