You Are Here:

Community: Developer Discussion Boards

#1 Old Controling a Nokia phone from a Windows Mobile PPC via bluetooth - 2006-05-16, 19:54

Join Date: May 2006
Posts: 6
kirkarmon
Offline
Registered User
Hi.

I would like to build an application that will run on my windows mobile 2003 ipaq that will control my nokia phone via bluetooth.

The objective is to place/accept calls using my ipaq and to send/receive sms to my ipaq. Since my ipaq has no phone capabilities i'd like it to 'route' the right commands to my bluetooth-connected nokia phone.

How can this be achieved?
Can I write a .net applicaiton for my ipaq ? or a j2me?
How do i connect and transfer command via bluetooth?
What commands do i need for the above tasks?

Any help/pointers/tutorials/samples will be apreciated

Some info:
My pocketPC : HP iPaq 5550 Windows mobile 2003 (has bluetooth)
My cellphone: does it matter? arn't all nokia'a alike?


Thanx, Kfir.
Last edited by kirkarmon : 2006-05-17 at 15:43.
Reply With Quote

#2 Old Re: Controling a Nokia phone from a Windows Mobile PPC via bluetooth - 2006-05-17, 03:04

Join Date: Mar 2006
Posts: 518
wang_shui
Offline
Super Contributor
Hi,

Here is a tutorial for bluetooth in j2me
http://www.benhui.net/modules.php?name=Bluetooth


Wang
Reply With Quote

#3 Old Exclamation Re: Controling a Nokia phone from a Windows Mobile PPC via bluetooth - 2006-05-21, 13:47

Join Date: Dec 2005
Posts: 1,159
Location: England,UK
jimgilmour1's Avatar
jimgilmour1
Offline
Forum Nokia Champion
If you use HP IPAQ you need to use Win CE 5.0 and this involves much emotion because it MS so you must see the MSDN TV epsiode

The Code Room: Building Mobile Apps and Bluetooth Enabled Kiosks

The excert reads

Quote:
The Code Room, watch the sparks fly, the egos flair, and the light bulbs go off as a solution is produced under pressure using the latest mobile bits from Microsoft including Bluetooth, Visual Studio 2005, the .NET Compact Framework 2.0, and SQL Server CE on the Smartphone.
They cannot get the mobile phone SP500 to work and there is and ultimately you sit back and .

I found it all very "eductional" but it shows how tough it is to write code for MS and why Nokia is so and easy to use.

The Code Room: Building Mobile Apps and Bluetooth Enabled Kiosks

The of course there is "making Windows CE easie for the user"
Making Windows CE for the user?

After you have read this you will wish you could use J2ME!

Jim
Last edited by jimgilmour1 : 2006-05-21 at 15:18.
Reply With Quote

#4 Old Re: Controling a Nokia phone from a Windows Mobile PPC via bluetooth - 2006-05-22, 14:33

Join Date: May 2006
Posts: 6
kirkarmon
Offline
Registered User
Basically what i want to know is how do i get the output/input streams from the cellphone and send them (in realtime) to the ipaq (or even PC for that matter)

Is there some kind of AT-command that sends a stream of bits over the bluetooth-serial port?
How is it done with headset and hands-free devices? how are the in-out streams passed to-and-from the cellphone ?

[I'm looking for a way to bi-diractionally transfer a call as done for SMS]

Thanx K.
Reply With Quote

#5 Old Thumbs down Re: Controling a Nokia phone from a Windows Mobile PPC via bluetooth - 2006-05-22, 17:24

Join Date: Dec 2005
Posts: 1,159
Location: England,UK
jimgilmour1's Avatar
jimgilmour1
Offline
Forum Nokia Champion
Quote:
My cellphone: does it matter? arn't all nokia'a alike?
Answer No.

Are all bluetooth headset the same ? no.


Connection to a headset is via serial port.
Only Series 60 phones have AT commands to bluetooth and these are not standard. AT commands are used for Data (modem) unless you mean shutdown the phone. There is a repsonse from phone when set correctly

+CRING: VOICE for normal speech.
+CRING: ASYNC for asynchronous transparent

I cannot find any other bluetooth connected AT commands because the interface is really a emulator.
To answer any call using send the command "ATA" will answer the call
the response will be seen will hopefully be be as above.

Java connects via the serial port to the bluetooth.

Can you "pair" your IPAQ via bluetooth like you do with the phone?.
If you can you are nearly there surely?.

This is how my headset repsonds to service searches and any
[client:] A service has been found 'M3000 by Plantronics' 1108' as 'Headset'

[client:] The connection URL is: btspp://00038945d304:1;authenticate=true;encrypt=false

[client:] A service has been found 'M3000 by Plantronics' 111e' as 'Handsfree'

[client:] The connection URL is: btspp://00038945d304:2;authenticate=true;encrypt=false

[client:] A service has been found 'M3000 by Plantronics' 1203' as 'Generic Audio'
[client:] The connection URL is: btspp://00038945d304:1;authenticate=true;encrypt=false

This is the bluetooth url give by the headset to connect to the device

I have connected to PC using widcomm v1.4, under Windows 2000, but sadly I cannot find a way to send audio into the headset under Windows XP, even though I have "paired" with it under blue tooth. I can get the narrator to talk to my headset under windows 2000 aand send audio to headset

See the archive forum at the following link for information on IPAQ to Nokia pairing.

http://discussion.forum.nokia.com/fo...p/t-39824.html

In the article the author writes that the IPAQ firmware may need updgrading which may have an answer.

I cant test this because I only have an old wince emulator.

If you need Java help I may be able to find it.
Jim
Last edited by jimgilmour1 : 2006-05-22 at 17:52.
Reply With Quote

#6 Old Re: Controling a Nokia phone from a Windows Mobile PPC via bluetooth - 2006-05-22, 23:37

Join Date: May 2006
Posts: 6
kirkarmon
Offline
Registered User
HI Jim,

Unfortunately I was unable to fully understand your response. Probably because my post was not informative enough. (Let me explain what I dont know/understand)

I have no dedicated headset/hands-free in the desired solution. Instead, I want my iPaq to act as one (HS or HF)

So the real goal is to pair the ipaq to a cellphone. (iPaq runs Windows Mobile 2003). when the phone rings (for an incomming call) the ipaq should ring and i should be able to pick up the call in my ipaq (leaving my cellphone in my backpack the entire time) the call will be entirely conducted from the ipaq when the cellphone will "proxy" the call.
Hence, I will talk in the ipaq's microphone, and hear my conversation-partner from the ipaq speaker.

I know i can answer calls using ATA. I know i can basically send any AT_command via "serial"-BT ports. i dont know how to transfer the call's from the cellphone to my ipaq and backwards.

The only constraints on the solution is that i already have an ipaq (5550, windows mobile 2003). I am willing to buy a new phone for that cause.

Some directive questions:
1) can i disguise my ipaq as a HF/HS for a cellphone?
2) should/can i use a "serial port" on my ipaq to transfer the mic from my ipaq to the cellphone ? Are there AT-commands for that?
3) Can the task above be done in Java?
4) Can Windows mobile 2003 run any java application? j2me as well?
5) Can this be done using the .net compact framework 2?
6) am i going to have a hard time with the BT stacks?


I am really sorry i am repeating myself. It is due to my misunderstanding of your previous posts.

I will very much appreciate if you could guild me through. I am a newbie to this entire BT-bridging thing...

Thanx, Kfir.
Reply With Quote

#7 Old Re: Controling a Nokia phone from a Windows Mobile PPC via bluetooth - 2006-05-23, 17:22

Join Date: Dec 2005
Posts: 1,159
Location: England,UK
jimgilmour1's Avatar
jimgilmour1
Offline
Forum Nokia Champion
Quote:
1) can i disguise my ipaq as a HF/HS for a cellphone?
No its fixed in firmware,only with undocumented calls. Ms document calls (laugh!)
Quote:
2) should/can i use a "serial port" on my ipaq to transfer the mic from my ipaq
to the cellphone ? Are there AT-commands for that?
no

Quote:
3) Can the task above be done in Java?
no its a Windows Mobile formely windows CE machine

4) Can Windows mobile 2003 run any java application? j2me as well?
no, Only windows CE unless you load linux

Quote:
5) Can this be done using the .net compact framework 2?
Maybe in Windows Mobile for Pocket PC Phone Edition Windows Mobile 5.
Nice if you can afford it! . Java is free

Quote:
6) am i going to have a hard time with the BT stacks?
Oh yes!.
Full of emotion




So I think what you want is for yor IPAq to "emulate" a bluetooth headset.

1) how are you going to make the IPAQ simulate the bluetooth profile code HEADSET 0x1108 and HeadSetAudioGateway 0x1112 ?

2) you cannot turn off the Major Device: Computer

needs Major device:Audio Video and MinorDevice:Headset and ServiceClass: Audio

3) I have just been out to try an IPAQ POCKET PC Phone Edition
at the shop with my nokia 6310i and yes I paired to it,
but my Nokia still sees IPAQ as a Computer because as stated above the
Major Device is Computer. This is burned in firmware! for the IPAQ.

Take a look at the new SPV M5000 phone/PDA and it does not support bluetooth headset! by default.
This is why the author rambles on about the earphones!.
http://www.msmobilenews.com/page/1055/


At this price I expect everything including 3G Video calling via my headset.
Nokia bluetooth has view screen product that displays video calls.




The IPAQ uses bluetooth 1.0 but not does seem to support A2DP,
Logitec make stereo headphones which means they supply software for it.

Back to the phone problem .
You need Windows Mobile for Pocket PC Phone Edition from Microsoft to develop with
from http://www.microsoft.com/windowsmobi...e/default.mspx
and then you need some call software and a supplier. See this link
http://www.nikotel.com/nikotalk-pock...-download.html
but I dont know if they use a phone.
I now cover the files needed for the Bluetooth Audio codec which you must have on your IPAQ to do ANY audio.

btaudio.sys
portcls.sys
stream.sys
kuser.dll
wdmaud.drv
without the codec you have nothing perhaps you could simply try and get a version of VIOP namely Skype running for the IPAQ Pocket PC Phone Edition.
why cant you use a bluetooth headset to the phone?.
When I asked a similar question to your I was told

Quote:
Why cannot you use the SKYPE software for free calls from your IPAQ.
http://www.theregister.co.uk/2004/09/10/pocketpc_skype/

To transfer audio across the network you need the GSM 6.10 codec which is already installed on the IPAQ.
Quote:
in the words similar of the film
"Your mission should you accept it is to program using Windows mobile for Pocket PC Phone Edition and make that call"



Jim
Last edited by jimgilmour1 : 2006-05-23 at 17:31.
Reply With Quote

#8 Old Re: Controling a Nokia phone from a Windows Mobile PPC via bluetooth - 2006-05-23, 17:43

Join Date: May 2006
Posts: 6
kirkarmon
Offline
Registered User
Jim.
Thanx for your reply.

I think i got it this time - i'm pretty screwed!

Unfortunately, Windows mobile 5 is not supported on my ipaq (5550), a big thanks to HP.

I was unable to understand if this task can be done using Java? and... for some reason you claim that wm 2003 can't run java code - well, it can! I have a jvm for windows mobile 2003 and it runs java beautifully.

So if you think that there is a way to pair the ipaq as a head-set (not necessarily using the official bluetooth profile, i mean it in the functionally way) using java without slashing my veins i'd appreciate further guidance.


(and the reason i can't use a HS is because (a) i dont have one, (b) i have an ipaq, and (c) i dont want to carry yet another appliance over the cellphone and ipaq that i need/use)

once again, i thank you for your time.

K.
Reply With Quote

#9 Old Re: Controling a Nokia phone from a Windows Mobile PPC via bluetooth - 2006-05-23, 18:17

Join Date: Dec 2005
Posts: 1,159
Location: England,UK
jimgilmour1's Avatar
jimgilmour1
Offline
Forum Nokia Champion
Quote:
I have a jvm for windows mobile 2003 and it runs java beautifully.
Its a bit difficult to tell WITHOUT an IPAQ and only an emulator debug

But does it support JSR82 bluetooth spec.
Can you do import javax.bluetooth.*;
from the code?

I hope so because then you can load and program the blue tooth as described in the the link which will solve your problems.

Quote:
On the Ipaq HP PocketPC 5500 you can use Familiar 0.8.1 with SableVM (JDK1.3.1 only AWT is supported) with BlueZ PAN Profile.
BlueZ is a free bluetooth stack which the source is available and seems to have been ported to IPAQ.


IPAQ 5500 and Java Bluetooth

So they people seem to have solved your java bluetooth problems and you can create your programs and connect to the profiles.

I cannot do much else as I dont have any hardware to test this and I feel that this will be outside of the Nokia Forum for Bluetooth phones.

in Google use the following to access all "IPAQ Java Development"

Good Luck you will find Java all much easier

Jim
Last edited by jimgilmour1 : 2006-05-23 at 19:00.
Reply With Quote

#10 Old Re: Controling a Nokia phone from a Windows Mobile PPC via bluetooth - 2006-05-25, 21:50

Join Date: Dec 2005
Posts: 1,159
Location: England,UK
jimgilmour1's Avatar
jimgilmour1
Offline
Forum Nokia Champion
To tidy this up I have found a sourceforge.net project which allows calls to be made on a phone and contains the source.

Quote:
FMA can also allow you to pickup and dial calls directly from your PC. FMA is fun and much more; whatever you want it to be, it is whatever a mobile phone should have :-)
http://fma.sourceforge.net/index2.htm

Jim
Reply With Quote

#11 Old Re: Controling a Nokia phone from a Windows Mobile PPC via bluetooth - 2006-05-27, 19:36

Join Date: May 2006
Posts: 6
kirkarmon
Offline
Registered User
I read the code they are only able to make the phone pick up the call. they do not transfer the audio back and forth (at least as far as i saw)

I think that if i get a free bt stack that implements the hands-free profile i might be able to make it happen. (most probably using java, many jvms out there for windows moblie, ibm's j9 for instance)

any thought on this are welcome

Thanx anyway.
Reply With Quote

#12 Old Re: Controling a Nokia phone from a Windows Mobile PPC via bluetooth - 2006-05-29, 13:49

Join Date: Dec 2005
Posts: 1,159
Location: England,UK
jimgilmour1's Avatar
jimgilmour1
Offline
Forum Nokia Champion
I think this may be what you are looking for in BlueZ Additions


BlueZ is a free ware bluetooth GPL license


Quote:
This code can be used to emulate the computer as a headset
or handsfree device (as opposed to talking to a headset, this
code connects to a phone).
Click this link

Handsfree and Headset support for Bluez

Jim
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Series 60 Concept Emulator (SDK Beta 0.2 Linux) not working mattbee Mobile Java Tools & SDKs 1 2003-06-10 12:43
Nokia and bluetooth - or.... where is THE phone ???? Oliman Bluetooth Technology 2 2003-03-23 15:15
7650 Bluetooth Modem with Toshiba Tecra 9000 Windows XP - RESOLVED Now! d0lph1n Bluetooth Technology 5 2003-02-07 12:25

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia