Author Topic: Detecting who is calling me  (Read 30238 times)

Knoxito

  • Guest
Detecting who is calling me
« on: April 09, 2008, 10:35:16 AM »
Good morning.

Is it possible to detect what's the phone number using the bluetooth communication between my mobile and my application? I make:

1. Create the Radio for the bluetooth.
2. Create my Device.
3. Link the radio and the device (wclClient).

Then, when my mobile receives a call, the event OnData raises, but I don't know where can I take the information about the caller.

Thanks in advance,

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Detecting who is calling me
« Reply #1 on: April 09, 2008, 11:59:02 AM »
Good day!

You need to switch phone into the mode when it will report the called ID (I don't remember the AT command right now). Then the phone will send you the coller ID as an AT command.

Knoxito

  • Guest
Re: Detecting who is calling me
« Reply #2 on: April 09, 2008, 12:49:40 PM »
Thanks, Mike.

I'm sending the supposed AT command ("AT#CID=1") in the Demo application and it returns me an "ERROR".

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Detecting who is calling me
« Reply #3 on: April 09, 2008, 01:10:59 PM »
AT+CLIP=1

Phone will report something lile:
RING

+CLIP: "+375299421774",145

for incomming call

Knoxito

  • Guest
Re: Detecting who is calling me
« Reply #4 on: April 09, 2008, 01:17:36 PM »
It works properly. Again, thanks a lot.

tvoirol

  • Guest
Re: Detecting who is calling me
« Reply #5 on: April 22, 2008, 08:24:16 PM »
I was successful at using this command for a Samsung SGH-A707 model.  However, for a Motorola RAZR 3M, it doesn't work.  The phone just returns "ERROR" when I try to enter the at+clip=1 command.  Is there any workaround for this, or is this just a feature that is dependent on the phone?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Detecting who is calling me
« Reply #6 on: April 22, 2008, 09:38:35 PM »
Connect to HendsFree profile, not to serial port or Dialup networking

tvoirol

  • Guest
Re: Detecting who is calling me
« Reply #7 on: April 28, 2008, 04:56:54 PM »
If I set my phone to find the hands free profile of the device, it says no devices found.  Additionally, if I set the Bluetooth Radios to Discoverable, it raises an exception and says feature not supported.  Does this mean that my Bluetooth API (Bluesoliel) does not support conneting to the Handsfree profile?  If this is the case, is there another Bluetooth API that would support this feature?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Detecting who is calling me
« Reply #8 on: April 28, 2008, 05:59:41 PM »
wclClient.BluetoothParams.Service = UUIDs.HandsfreeAudioGatewayServiceClass_UUID;
or
wclClient.BluetoothParams.Service = UUIDs.HandsfreeServiceClass_UUID;

tvoirol

  • Guest
Re: Detecting who is calling me
« Reply #9 on: May 30, 2008, 11:23:03 PM »
Is it possible you could elaborate on this code snippet?  I am not sure where this would fit into the demo or how to implement this.  Is it possible to create a hands free profile sample?  If we could demonstate this type of functionality, it would be a perfect fit for our application.

Thanks

TV

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Detecting who is calling me
« Reply #10 on: May 31, 2008, 12:21:37 AM »
There is no simple way to create HandsFree profile on PC side. First at all the driver should support it. Secondly you need to have Audio server running on PC. Currently Audio servers not implemented yet

tvoirol

  • Guest
Re: Detecting who is calling me
« Reply #11 on: May 31, 2008, 02:51:32 PM »
For our application, it is not a requirement that the user uses the PC as an audio gateway.  Ideally, we simply want the PC to notify the user when there is an incoming call and what is the caller id of that call.  Additionaly, we would like the PC to be able to place calls through the phone.  I was able to accomplish this using the above sample on the Samsung phone.  However, the Motorola phone would continually return ERROR with the exact same phone.  Does this just mean that certain phones are incompatible?  We would really like a solution that covers the majority of phones out there.  Is there any way to accomplish this, or is it just too device specific at this point?  If this is a very complex task, my company maybe willing to pay for some custom software development.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Detecting who is calling me
« Reply #12 on: May 31, 2008, 03:01:53 PM »
Good day!

I have no Motorola AT commands set and can't check which command do it for Motorola.

GSM foundation published standard fr GSM modems where AT+CLIP described. If motorola does not follow the standard (and it does not) then you need find its AT commands set and check which command to it.

SamH

  • Guest
Re: Detecting who is calling me
« Reply #13 on: October 12, 2008, 04:44:53 PM »
I know this thread is old but I just got into this and foudn the answer.

I don't have a Motorola Razr But tried it on my other Motorola phane and it worked.

You need to enter AT+MODE=2 first to enable the extended at commands and then AT+CLIP=1 will work.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Detecting who is calling me
« Reply #14 on: October 12, 2008, 09:18:56 PM »
Thanks for the info. It is really very usefull!

 

Sitemap 1 2 3 4 5 6 7