[XAP] Bluetooth Chat (Based on DllImport) - Windows Phone 7 Development and Hacking

Hi all,
I've spent some time to investigate about Bluetooth status on Windows Phone 7 using DllImport approach for some applications I'm developing.
This is a simple chat app between a WP7 device and a counterpart (i.e a PC, another WP7 device, ...) using bluetooth serial communication.
I tried this app by connect my WP7 device to a PC and to another WP7 device.
It permits to exchange text messages between each side, like a classic chat program.
Tested WP7 devices (LG Optimus 7, Nokia Lumia 800 and HTC Mondrian) are all dev-unloked.
Application main page have the following possible actions:
- Connect to a remote device (if selected it will open a new page where to choose previously paired device or to find new one)
- Act as server (if selected it creates a new serial connection using device port 10 and it will listen for new incoming connection from remote device)
- Disconnect (to stop a connection towards remote device, or to stop server mode)
- Send (it will be enable only when connected as client or server. If selected will send your message to counterpart).
- Settings (if selected it will open a new page where to set application option)
Note: at the moment there is no automatic notification about connection down event.
Thanks to Heathcliff74 and fiinix for their works on WP7
Note: This is a simple project to verify if all core procedures (connection open and close, send and receive messages, ...) are working in the right way.
Ciao
P.S 1: if you eant to test the app between WP7 device and a PC use this procedure:
- Start Bluetooth on WP7 device
- From PC search for WP7 device and pair it
- Start BlueChat on WP7 device in server mode
- From PC search for Device exported services: you'd see a SPP (AUX3) option, if yes select it and then PC will create a new local COM Port
- Open a Putty using this COM Port and start to write to WP7 device!
P.S. 2: if you eant to communicate between 2 WP7 devices:
- On device 1 go to bluetooth settings page and activate it (this is important because only when we are in this page the device is discoverable from outside)
- On device 2 open BlueChat and choose "Connect" button. In the "Connect To" page choose "Search" option and in some seconds you'd see device 1
- Select device 1 form the list. Before select "Done" button, on device 2 open BlueChat and starts it in Server mode
- Then on device 1 select "Done" button and the devices will be connected
- Now you can exchange data between the two devices

nice work!

Very cool! Would you mind sharing the source code? I assume it's done using the standard WinCE Bluetooth APIs, but I'd like to see how you made it work exactly as that may enable writing a BT File Transfer app that doesn't rely on full-unlock the way the current one does.

GoodDayToDie said:
Very cool! Would you mind sharing the source code? I assume it's done using the standard WinCE Bluetooth APIs, but I'd like to see how you made it work exactly as that may enable writing a BT File Transfer app that doesn't rely on full-unlock the way the current one does.
Click to expand...
Click to collapse
Project source code will be shared when it will be completed and fully functional (Actually it is finished at 60-70%)
I'm using a mix between Windows Mobile/Windows CE/Windows Embedded APIs.
This is only a test project to verify base bluetooth routines on multiple WP7 devices.
Main goal is transmit and receive file using OPP (Obex Object Push Profile) without the constraints of a Fully unlock device.
In this development phase, WP7 device can receive file through OPP but there are some problems on file trasmission.
In addition WP7 devices don't pair another phone device (for example pair a WP7 with an Android), and this requires efforts on pairing phase also.

I would like to suggest you something to send files...i'm bit a developer, i don't know even if it's possible...just tell me where i am failing with my theory
If, within your app, you decode a file in hexadecimal code to text, like this,
00 00 00 00 00 00 00
To
00000000000000 and injecting a string that sets nme and extension like
*namefile**.rar*00000000000000
And then you send this to an other WP with your app as a text that will decode the text to a file...
Is this possible? It only have the bug that doesn't work with other devices right but is possible?
Sent from my LG-E900 using Board Express

davide136 said:
I would like to suggest you something to send files...i'm bit a developer, i don't know even if it's possible...just tell me where i am failing with my theory
If, within your app, you decode a file in hexadecimal code to text, like this,
00 00 00 00 00 00 00
To
00000000000000 and injecting a string that sets nme and extension like
*namefile**.rar*00000000000000
And then you send this to an other WP with your app as a text that will decode the text to a file...
Is this possible? It only have the bug that doesn't work with other devices right but is possible?
Sent from my LG-E900 using Board Express
Click to expand...
Click to collapse
Ciao Davide,
the problem is in connection establishment between WP7 devices.
When they are connected, files will be exchanged using OPP rules so no problem on it.
As said in previous post, I can send to my WP7 device an image and save it into Media Hub (or where I want)
Unfortunately connection management on WP7 is not so comfortable and require some time to be deeply understood...

Yes i had misunderstood thanks to have cleared it
Sent from my LG-E900 using Board Express

navisluni said:
Hi all,
I've spent some time to investigate about Bluetooth status on Windows Phone 7 using DllImport approach for some applications I'm developing.
This is a simple chat app between a WP7 device and a counterpart (i.e a PC, another WP7 device, ...) using bluetooth serial communication.
I tried this app by connect my WP7 device to a PC and to another WP7 device.
It permits to exchange text messages between each side, like a classic chat program.
Tested WP7 devices (LG Optimus 7, Nokia Lumia 800 and HTC Mondrian) are all dev-unloked.
Application main page have the following possible actions:
- Connect to a remote device (if selected it will open a new page where to choose previously paired device or to find new one)
- Act as server (if selected it creates a new serial connection using device port 10 and it will listen for new incoming connection from remote device)
- Disconnect (to stop a connection towards remote device, or to stop server mode)
- Send (it will be enable only when connected as client or server. If selected will send your message to counterpart).
- Settings (if selected it will open a new page where to set application option)
Note: at the moment there is no automatic notification about connection down event.
Thanks to Heathcliff74 and fiinix for their works on WP7
Note: This is a simple project to verify if all core procedures (connection open and close, send and receive messages, ...) are working in the right way.
Ciao
P.S 1: if you eant to test the app between WP7 device and a PC use this procedure:
- Start Bluetooth on WP7 device
- From PC search for WP7 device and pair it
- Start BlueChat on WP7 device in server mode
- From PC search for Device exported services: you'd see a SPP (AUX3) option, if yes select it and then PC will create a new local COM Port
- Open a Putty using this COM Port and start to write to WP7 device!
P.S. 2: if you eant to communicate between 2 WP7 devices:
- On device 1 go to bluetooth settings page and activate it (this is important because only when we are in this page the device is discoverable from outside)
- On device 2 open BlueChat and choose "Connect" button. In the "Connect To" page choose "Search" option and in some seconds you'd see device 1
- Select device 1 form the list. Before select "Done" button, on device 2 open BlueChat and starts it in Server mode
- Then on device 1 select "Done" button and the devices will be connected
- Now you can exchange data between the two devices
Click to expand...
Click to collapse
THX,but it can not support chinese chat ~

281463288 said:
THX,but it can not support chinese chat ~
Click to expand...
Click to collapse
Can you explain which problem have you got?
Some issues with chinese chars?

navisluni said:
Can you explain which problem have you got?
Some issues with chinese chars?
Click to expand...
Click to collapse
Sorry for late~
Like this

It seems to be sending an extra character "C" sometimes when you start the chat from the server. It works on Samsung Focus and tested with Lumia 800 also.
We have a review up on wpxbox.com

Source code
Hi,
Would it be possible to post your source code so that we can try some implementations and see if we can push things along further.
I know you said you'd try to tidy it up before you post the code but maybe you've got too busy to do this. Any code or even your entire VS solution/project would be appreciated.
Also, has anyone had this working on an HTC Titan (1)?
Thank you.

BBBB102 said:
Hi,
Would it be possible to post your source code so that we can try some implementations and see if we can push things along further.
I know you said you'd try to tidy it up before you post the code but maybe you've got too busy to do this. Any code or even your entire VS solution/project would be appreciated.
Also, has anyone had this working on an HTC Titan (1)?
Thank you.
Click to expand...
Click to collapse
Ciao BBBB102,
improvements on bluetooth communication have been ported to BluePhoto project (the bluetooth logic is the same).
Check the thread on XDA.
BR

Related

2 Questions: Bluetooth connectivity & Cursor?

Question 1: I don't know what all would be involved with this, but I was thinking about trying to write a small app that would create another form of input for the PPC that would basically setup a connection to a computer (laptop) via Bluetooth and then let you type on the computer for the PPC input. So my question is first, is this possible and second what all would be required?
Question 2: Somewhat in parallel with the first question. Would there be a way to create a cursor type thingie that was only visible/active when a program or input type was running/selected?
I am open to any thoughts, suggestions, code, and or criticisms. The thought behind this app is that although it isn't that often, but I occasionally have to put in a decent amount of text into some programs, so if I could type on my laptop (no need for PPC keyboard thing), then that would save some time. Reasoning behind the Bluetooth is that I am going to get the XDA II and my laptop has BT.
Thanks, and really like the site...
suggsjc,
from the makers of tDclock and tDlaunch
goto to
http://www.excite.co.jp/world/url/?...ptools/&wb_lp=JAEN&wb_dis=2&wb_co=excitejapan
its a program called rCE ver 0.0.6 their description (the're chinese)
"The screen of WindowsCE connected by ActiveSync is displayed on Windows, and it can be made to carry out remote operation of the WindowsCE. A keyboard and mouse operation are possible."
download here http://www.nakka.com/soft/ptools/download/tdlaunch006_ppc2002.zip
source here
http://www.nakka.com/soft/ptools/src/tdlaunch006src.zip
have fun!
Pocket pc remote control does what you want I think or Pocket controller.

WM2005: Problem Resolution Center is HERE!!!

Wassup All,
This thread is dedicated to problem resolution. So if you have a prob let us know. And for those who know how to fix the problem post your solution here and let everyone be happy!
BTW, here is a set of solutions for:
1) those whose WM5 lockups during the night (haven't had this for a week or so after applying the following):
a. Make sure your Today Items are compatible with WM5 (disable suspicious items by unchecking Settings->Today->Item name box);
b. Disable HKCU\Control Panel\Phone\Sleep by putting 0 value;
2) those whose GPRS connection drops when putting/receiving a call:
a. Make sure your HKLM\ConnMgr\Planner\Settings\SuspendResume contain ~GPRS! value
b. Power off your device after 5sec of GPRS connection establishment
c. Try to place/recv a call
3) those whose Bluetooth over ActiveSync have stopped working unexpectedly:
a. Make sure your desktop PC have at least one network adapter enabled (if you have no adapters you may install MS Loopback software adapter from network adapters section of hardware installation wizard)
b. On your PPC, check ActiveSync->Connections->Syncrhonize all PCs using this connection box
4) those who have dual sim card and changing of cards using flight mode off/on takes so much time:
a. Whenever you need to change sim card start Wireless Modem application, choose Irda from the drop list and tap Start. Then tap Stop and close Wireless Modem. Now you can turn off flight mode in much faster way.
5) Caller ID filter to be used during the night or busy sessions:
a. Assign a ringtone to VIP contact using Contacts->Ringtone
b. Find any silent wave/wma/mp3 file and place it to \windows or \windows\rings folder
c. When you need to receive only VIP calls choose this silent audio file from your Phone->Options->Ringtone drop list
6) To disable automatic repeat of reminder:
Set "0" to HKCU\ControlPanel\Notifications\Reminders\AutoSnooze\AutoSnoozeMins value
7) To enable MMS reception:
Try this http://forum.xda-developers.com/viewtopic.php?p=142617
Re: WM5: Problem Resolution Center
Is there anybody who progressed with ArcSoft MMS/Inbox integration?
This thread is an excellent idea. Here are a few questions/issues I am facing with WM5.
- The Alram Bug is back My alarms don't ring. Sometimes they ring once and instead of repeating, like they are supposed to, they just go back to sleep. They will only continue when i turn on the phone (whever that may be).
- ActiveSync is always running on the PPC. If I kill it manually, it comes back after a while.
- Can I hide the BT icon in the system try? Can I control the display (hide/unhide) the system tray?
- Can i customize the soft buttons (Phone, Contacts) at the bottom? i.e. assign other programs to those buttons and change the label?
- Camera and record hardware buttons do't work. This has been widely reported and I believe its under investigation.
humayunl said:
- The Alram Bug is back My alarms don't ring. Sometimes they ring once and instead of repeating, like they are supposed to, they just go back to sleep. They will only continue when i turn on the phone (whever that may be).
Click to expand...
Click to collapse
In your particular case let's try the following: while your system is powered (power off value does not turn off your device) a set of automatic snoozes will be performed and each snooze will prolong time of power-off.
So, change HKCU\ControlPanel\Notifications\Reminders\AutoSnooze\AutoSnoozeMins to a value less than the value of system Power Off.
Example of alarm that repeats every 2 mins on a system that suppose to power-off after 3 mins of idleness:
a. Set up value of Power off (Settings->System->Power->Advanced->Turn off device if not used for) to 3 mins
b. Set the registry value to 2 mins
- Can I hide the BT icon in the system try? Can I control the display (hide/unhide) the system tray?
Click to expand...
Click to collapse
You can control appearance of the icon by moving \Windows\Startup\BTIcon.lnk file to and from \Windows\Startup\ folder. Example, I want tray icon so I leave the file in \Windows\Startup\ folder. Now I don't want tray icon so I move \Windows\Startup\BTIcon.lnk file to a different place and soft-reset my device to get the changes take effect. Moving operations can be performed using Windows Explorer (Cut function)
- Can i customize the soft buttons (Phone, Contacts) at the bottom? i.e. assign other programs to those buttons and change the label?
Click to expand...
Click to collapse
Place path and name for your applications at the value 1 of HKLM\Software\Microsoft\Shell\Rai\:MSCProg and HKLM\Software\Microsoft\Shell\Rai\:MSContacts registry branches.
Here is an example of starting calculator when pressing Contacts button:
HKLM\Software\Microsoft\Shell\Rai\:MSContacts\1 = calc.exe OR \windows\calc.exe
WARNING! Changing of CProg branch will lead to remap of your Green Phone Button too.
ActiveSync is always running on the PPC. If I kill it manually, it comes back after a while.
Click to expand...
Click to collapse
I also noticed that and changed many reg values so don't remembler what helped. First try to uncheck this checkbox "ActiveSync->Connections->Syncrhonize all PCs using this connection" when not using activesync and soft-reset your device to see if it helps. Let me know on your progress pls.
Camera and record hardware buttons do't work. This has been widely reported and I believe its under investigation.
Click to expand...
Click to collapse
These seems to depend on your boot rom version. I have 1.2 and I upgraded from W2k3SE 2.20chs with nb.nbf only and my buttons work Ok.
PocketIE starting with blank page
Starting PocketIE with a blank page is a bit faster than loading a default page with graphics.
1) Navigate your PocketIE to "about:blank" (type and open in the address bar)
2) Open Tools->Options and set current page as your home page
Now, each time you start your PocketIE a blank page will be fastly loaded
ActiveSync4 on NT-based OS that don't have SPs installed
If you haven't updated your OS with service pack you can still install ActiveSync4 and use it for Bluetooth or IrDA synchronizations.
1) Login with Administrative privelege
2) Open your Windows Explorer and open properties of "setup.exe" file. Choose Compatibility tab, check "Run this program in compatibility mode for" box and select Windows 2000 option
3) Run setup.exe
TomTom51/WM2005/BlueTooth problems
Can someone help me?
About every minute TTN5.1 is loosing the Bluetooth GPS
(EMTAC Crux II/BTGPS) but soon after finds it again.
I'm using de TomTom5patch but can not use com5.
Also installed Bluetoothtools, using com4 for the BTGPS.
Com 5 is in use according to Bluetoothtools
(http://www.bluetooth.jazztel.es/).
Within TTN5.1 i can select the BTGPS correctly on com4.
It identifies itself as the BTGPS.
I'm not using "New Outgoing Port" or "New Incomming Port"
because i'm not sure if this is necessary.
If it's necessary, what port must I use?
Can the settings done by the TomTom5patch be reversed and how?
Which settings are affected by this patch?
How do i disable Infrared on the Himalaya?
How do i disable BT within TomTom?
My main issues seem to be
MMS- Cant get to work at all
GPRS- Cant get internet over GPRS
Camera and Notes button- Can live without these
i have the same problem with tomtom my bluetooth keeps droping out.
i'm using tomtom5.0 and the tomtom com5 patch
with the deflut microsoft bluetooth
i set my outgoing port to com5 and tomtom5.0 can find it but like i said it drops out alot
and one more side note i put my com5patch file in my tartup folder but after i soft-reset and try to start tomtom. tomtom can't find com5 so i have stop tomtom and manuly go start the com5patch
this kinda sucks so if anyone can help that would be great
Active Sync cannot work at all
I got problem with active sync, and xbackup. It always said database error, and all option on Hima's Active sync setting greyed out.
does anyone get the same problem? How to solve it? thx
IMate->WM2k5 said:
Wassup All,
This thread is dedicated to problem resolution. So if you have a prob let us know. And for those who know how to fix the problem post your solution here and let everyone be happy!
BTW, here is a set of solutions for:
4) those who have dual sim card and changing of cards using flight mode off/on takes so much time:
a. Whenever you need to change sim card start Wireless Modem application, choose Irda from the drop list and tap Start. Then tap Stop and close Wireless Modem. Now you can turn off flight mode in much faster way.
Click to expand...
Click to collapse
Hi, if I remember correctly, the STK from WM2K5 is not working with any STK SIM card. May I know how you managed to make it work?
Thanks
WM05
is there any location i can get wm05 for PDA2K
Re: WM05
gwassef said:
is there any location i can get wm05 for PDA2K
Click to expand...
Click to collapse
obviously not in this thread... jerk
problem:
media player 10 turns the screen back on when changing tracks despite 'screen toggle' being active.
Re: TomTom51/WM2005/BlueTooth problems
Dodger said:
About every minute TTN5.1 is loosing the Bluetooth GPS
(EMTAC Crux II/BTGPS) but soon after finds it again.
I'm using de TomTom5patch but can not use com5.
Also installed Bluetoothtools, using com4 for the BTGPS.
Com 5 is in use according to Bluetoothtools
(http://www.bluetooth.jazztel.es/).
Click to expand...
Click to collapse
Automatic disconnect is known feature of Pocket Bluetooth Tools it automatically disconnects after 1 minute of BT inactivity. As I remember you can stop this feature by taping on clock icon at your today so your clock icon should not have white color but should be grey. Warning! By disabling automatic disconnect feature your battery draining rate may increase.
Within TTN5.1 i can select the BTGPS correctly on com4.
It identifies itself as the BTGPS. I'm not using "New Outgoing Port" or "New Incomming Port" because i'm not sure if this is necessary.
If it's necessary, what port must I use?
Click to expand...
Click to collapse
Sorry don't have TT & BT GPS. Haven't you tried Settings->GPS Wizard for setting up your GPS?
0) Pair your GPS using serial profile
1) Set COM9 to Settings->GPS->Programs tab->"GPS program port:"
2) Set COM0, if not using ActiveSync over BT, or COM1, if using AS over BT, to Settings->GPS->Hardware tab->"GPS hardware port:"
3) Make sure your Settings->GPS->Access tab->"Manage GPS automatically" is checked
4) Open your TT and select COM9 in your device configuration window
OR
0) Pair your GPS using serial profile
1) Select your device through Settings->Connection->Bluetooth->Com Ports->New Outgoing Port->Your GPS Device
2) Tap Next
3) Select any port under "Port:", e.g. COM8
4) Open your TT->GPS Device Configuration->Select Com8
Try to check if your GPS works... if not, continue with the following:
4.1) Open Settings->GPS Wizard, Assign hardware com port to COM8 (Hardware tab) and Assign program com port to COM9 (Programs tab), check the "Manage GPS automatically" in Access tab
4.2) Select COM9 in your TT.
Good Luck! ;-)
How do i disable Infrared on the Himalaya?
Click to expand...
Click to collapse
Infrared for reception of files is disabled by unchecking Settings->Connection->Beam->Receive all incoming beams box
GPRS- Cant get internet over GPRS
Click to expand...
Click to collapse
Assuming that you know your internet access point name, user name and password for your operator (if you don't know try to visit your operator's website):
1. Tap on Settings->Connections->Connections->Advanced->Select Networks->New under "Programs that automatically connect to the Internet should connect using:"
2. Enter your ISP name under "Enter a name for these settings:", e.g. Turbo-GPRS
3. Select "Modem" tab
4. Tap on "New"
5. Enter a name for connection under "enter a name for the connection:", e.g. turbo.gprs, and choose Cellular line (GPRS) under "Select a modem:". Don't leave "Cellular Line" but choose "Cellular line (GPRS)"!!!
6. Tap "Next"
7. Enter your provider's access point name, e.g. internet
8. Tap "Next"
9. Fill corresponding user credentials and tap Finish
10. Run Internet Explorer or Inbox to connect to the Internet
vbexpert said:
Hi, if I remember correctly, the STK from WM2K5 is not working with any STK SIM card. May I know how you managed to make it work?
Click to expand...
Click to collapse
Sorry don't have STK enabled sim but STK application runs and displays that "No application is installed on current SIM".
btw, my dual SIM card changes cards using Radio On/Off function not STK
Re: WM05
defroster said:
media player 10 turns the screen back on when changing tracks despite 'screen toggle' being active.
Click to expand...
Click to collapse
Just tested track change in the following order:
0) Didn't cradle
1) Run WMP
2) Unset "Screen Toggle" option so it is "None"
3) Loaded 5 mp3s to SD
4) WMP automatically scanned SD for new content
5) Started to play my library's all music
6) All five tracks and overall repeat were performed without turning backlight on again
Does anyone else have this prob???
Registry Settings -> Software Settings
Dear All,
Please pay attention that after making changes, installing new software or doing your usual software settings it is advisable to power off your device before soft-resetting.
Example, I recently setup my Inbox mail accounts and soft resetted my device in a usual way. After a soft reset I found out that none of my accounts was actually kept. So, I did setup again, powered off my device and soft-resetted it. After soft-reset all mail accounts were saved and were workable
Solution for TomTom51/WM2005/BlueTooth problems
Hi all,
I think I've found a solution.
TTN5 works for me perfect now, but when I activate the
compass so it will display itself on the navigation screen,
then the GPS is lost (and found again) about every minute.
When I deactivate the compass, there is no problem at all!
So, try this and let me know if this solves your problem.
avengerpenguin said:
My main issues seem to be
MMS- Cant get to work at all
Click to expand...
Click to collapse
Keep your eye on this thread:
http://forum.xda-developers.com/viewtopic.php?p=142617#142617

External Bluetooth modem for Hermes

Hello,
I have recently upgraded my MDA Vario II with Schap's 3.30c in Spanish (nice work, btw). I'm trying to use another 3G phone as an external modem for the Hermes due to cheaper rates here in Spain, but I cannot make the connection.
The other mobile phone is an LG U8210, and both devices pair correctly. I do configure the connection via Bluetooth and I enter as dialing numbre on the Hermes *99#, same as when using the Hermes as a modem with the PC.
It seems to try to connect with the LG, but then drops the connection so I was wondering if the problem is on the dialing number I'm entering.
If anybody is using an external mobile phone as a bluetooth modem for the PDA, could you please post your modem configuration?
Many thanks.
P.S: I've searched the forums and it seems some people are using this setup, but none of them say anything about "special" parameters.
anyone can help? Please.
I'm not using WM6, but I sometimes connect my Hermes (latest official WM5)
via bluetooth to a Nokia 6260 which then dials a gprs connection.
settings:
modem: bluetooth
number: *99#
on the username/password page, in the advanced settings, I have:
general:
baudrate 115200
uncheck wait for dialtone
extra dial string (most likely, this is your problem)
+cgdcont=1,"IP","internet.proximus.be"
(internet.proximus.be is the accesspoint I need to use)
check cancel if not connected for 120s
port settings:
8, none, 1, hardware
(three next unchecked)
tcp/ip:
use server assigned
uncheck slip
check software compression
check ip header compression
servers:
check use server assigned
Most likely, you don't have the extra dialstring set. I'm not sure what
you should set (I would suggest using the same one as the one I have, but
with the name of your accesspoint). Without this string, I also couldn't
dial.
For test purposes, you can first try to dial a regular phone number: this
doesn't require an extra dial string. That way you can tell if the modem
works correctly.
(FWIW, the same configruation is also usable over an IR connection )
Best of luck,
Jörg
Thanks V J. I'll try and let u know if it works.
Hi again.
I've just tried but it seems that config screens are not the same ones.
settings:
modem: bluetooth
number: *99#
Click to expand...
Click to collapse
This is fine. I had the same number to dial
on the username/password page, in the advanced settings, I have:
general:
baudrate 115200
uncheck wait for dialtone
extra dial string (most likely, this is your problem)
+cgdcont=1,"IP","internet.proximus.be"
(internet.proximus.be is the accesspoint I need to use)
check cancel if not connected for 120s
port settings:
8, none, 1, hardware
(three next unchecked)
Click to expand...
Click to collapse
I don't have these settings. Nothing about baudrate or extra dial string can be setup on my Hermes. I only have the IP settings stuff.
tcp/ip:
use server assigned
uncheck slip
check software compression
check ip header compression
servers:
check use server assigned
Click to expand...
Click to collapse
Same config here
Most likely, you don't have the extra dialstring set. I'm not sure what
you should set (I would suggest using the same one as the one I have, but
with the name of your accesspoint). Without this string, I also couldn't
dial.
For test purposes, you can first try to dial a regular phone number: this
doesn't require an extra dial string. That way you can tell if the modem
works correctly.
(FWIW, the same configruation is also usable over an IR connection )
Best of luck,
Jörg
Click to expand...
Click to collapse
Tried adding the dial string on the *99# number, but it does not work either. It doesn't even appear to try to dial on the other phone. And if I try to enter a normal number, as it is searching for a modem, it says there is no modem on the entered number...
I guess I'll have to google a bit more as it is more likely to be abnormal behaviour of my LG phone.
Anyway, anyother ideas are welcomed.
Thanks!
Here are all my steps:
First I have a screen where I can choose the name of the connection and
the modem. After choosing "bluetooth" and "next", I get a list of paired
devices that support the DUN profile; here I select my Nokia 6260 which
has been paired beforehand.
Next page is the phone number.
Next page has username, password and domain; plus a button labeled
"Advanced". The soft keys are now labeled back and finish.
I click the button Advanced, which brings up a screen with 4 tabs:
general, port settings, tcp/ip and servers.
Then general tab is where I can find the extra dial-string commands.
There must be a way in WM6 to get to these settings, as they are very
standard modem settings.
Jörg
Sorry, double post...
(browser issues)
Jörg
I just upgraded my TyTN with the official wm6 upgrade... and also lost that general tab. Like you, I can't get the TyTN to connect via my other mobile...
Anyone know if there is a registry string that can be added and filled in as extra dial string?
(I have mailed HTC support Europe)
(a search on google yields that this is a common issue on many wm6 devices)
Jörg
It seems you've found the same as I have in google. If I can get anything new, I'll keep u posted.
Cheers for the help anyway.
I found a workaround for my situation (where I use a Nokia 6260 als bluetooth modem).
The 6260 runs Symbian 60 v2.x, and it has this setting:
Menu > Settings > Connection > GPRS
where you can enter an access point. When I enter internet.proximus.be (the same one as the one I'd put in the extra dial string), the TyTN doesn't need an extra dial string to be able to use this connection. I suspect this setting adds tells the Nokia to alter the dialstring so that it works.
On Meinnesyys (or however it is written) blog, it is mentioned that the similar workaround is possible when the device used as modem is running Windows Mobile:
http://www.pocketpcmag.com/blogs/index.php?blog=3&p=1282&more=1&c=1&tb=1&pb=1#more1282
So the extra dial string is not necessary when the modem runs Symbian or WM... As these features are NOT well documented (I guessed the Symbian workaround by reading the referenced blog), perhaps other phones might have similar settings?
Jörg

Bluetooth and ActiveSync enemies???

I have been trying all weekend to Sync my 8525 and my HP laptop via Bluetooth and it will not work! They are both paired and I can do just about everything with them both but sync with ActiveSync. I can use the phone as a modem, transfer files, use the laptop as an external stereo speaker and as a speaker phone but it will not sync with freakin' Activesync! Both the Laptop and the 8525 serial ports are set at Com8. When attempting to sync via bluetooth on the phones active sync all I get is:
"Cannot connect using Bluetooth to a PC that supports ActiveSync. You may be out of range. Would you like to create a Bluetooth partnership with a different PC?"
Oh my LORD!! This is becoming soooo anoying! I have tried searching here and through Google, I have tried just about everything to get this crap to work and so far NOTHING!!!!
I am at wits end! Please if you can help it would save my sanity!
-Cingular 8525
-Windows Mobile 6 Professional (OEM Rom downloaded from HTC website)
-Rom version 3.62.502.3
-Radio version 1.54.07.00
Thank You!
acuraman2004 said:
Both the Laptop and the 8525 serial ports are set at Com8.
Click to expand...
Click to collapse
Looks wrong to me, as PDA's COM8 is not laptop's COM8. I suggest you delete all the serial ports, and delete the partnership itself on both PDA and laptop. Then let ActiveSync establish it back as it wants.
Koterpillar said:
Looks wrong to me, as PDA's COM8 is not laptop's COM8. I suggest you delete all the serial ports, and delete the partnership itself on both PDA and laptop. Then let ActiveSync establish it back as it wants.
Click to expand...
Click to collapse
I have tried that before, and it still gave me the same message when trying
to sync. The laptop usually sets the com port to 8 and the phone sets the com port to 0, however this does not seem to sync. I will try it again tonight to see if maybe I missed something. Thank you for your suggestion.
If anyone else has any ideas I would love to try them.
Thank You!
For what it's worth, I'm able to sync my 8525 via Bluetooth ActiveSync with my Windows XP Professional notebook. It took a little finegaling, but I was able to make it happen. Unfortunately, the notebook is at home, and the phone is not allowed into my office. If you don't get it resolved by this evening, I'll try to post my settings after I get home.
Joe
marinerjoe said:
For what it's worth, I'm able to sync my 8525 via Bluetooth ActiveSync with my Windows XP Professional notebook. It took a little finegaling, but I was able to make it happen. Unfortunately, the notebook is at home, and the phone is not allowed into my office. If you don't get it resolved by this evening, I'll try to post my settings after I get home.
Joe
Click to expand...
Click to collapse
Thank you very much, from one Joe to another!
So......Huston we still have a problem. Deleting the two devices and repairing did not seem to correct the issue.
Hmmm. I have experienced this before, and have fixed it....somehow. Sorry. I have a Dell laptop (yeah ok, wotever!). Established activesync partnership via usb to start. Told phone to find new BT gear, paired with laptop, ticked every box that the laptop presented, including 'allow device to access activesync service'. In BT settings, laptop has activesync box ticked in list of services available. To connect, I go into comm manager, turn on activesync, menu, connect via bluetooth. All sweet. Running WM6.1, had it working on most of the WM6 roms too.
what bluetooth stack are you using on you laptop?
Umm.. would that be 'WIDCOMM Bluetooth Software 5.0.1.2609'? Dunno - whatever is installed on the Dell Inspiron 6400. Would be happy to provide any further info, if you can tell me exactly what it is you want and where I find it....
XtreMe_G said:
what bluetooth stack are you using on you laptop?
Click to expand...
Click to collapse
Does this help any?
ads2112 said:
Umm.. would that be 'WIDCOMM Bluetooth Software 5.0.1.2609'? Dunno - whatever is installed on the Dell Inspiron 6400. Would be happy to provide any further info, if you can tell me exactly what it is you want and where I find it....
Click to expand...
Click to collapse
oh, sorry ads2112, should have been clearer, i was asking acuraman2004 wat his bluetooth stack was, not you.......you dont have any problems with ur bluetooth and activesync right?
XtreMe_G said:
oh, sorry ads2112, should have been clearer, i was asking acuraman2004 wat his bluetooth stack was, not you.......you dont have any problems with ur bluetooth and activesync right?
Click to expand...
Click to collapse
You know what I am not sure as to where that information would be located on the laptop. I will search for the information once I get home from work and post it. Thank you for the reply.
Joe
acuraman2004 said:
I have been trying all weekend to Sync my 8525 and my HP laptop via Bluetooth and it will not work! They are both paired and I can do just about everything with them both but sync with ActiveSync. I can use the phone as a modem, transfer files, use the laptop as an external stereo speaker and as a speaker phone but it will not sync with freakin' Activesync! Both the Laptop and the 8525 serial ports are set at Com8. When attempting to sync via bluetooth on the phones active sync all I get is:
"Cannot connect using Bluetooth to a PC that supports ActiveSync. You may be out of range. Would you like to create a Bluetooth partnership with a different PC?"
Oh my LORD!! This is becoming soooo anoying! I have tried searching here and through Google, I have tried just about everything to get this crap to work and so far NOTHING!!!!
I am at wits end! Please if you can help it would save my sanity!
-Cingular 8525
-Windows Mobile 6 Professional (OEM Rom downloaded from HTC website)
-Rom version 3.62.502.3
-Radio version 1.54.07.00
Thank You!
Click to expand...
Click to collapse
Didn't have quite the same problem that you are having, but was having trouble. I found these instructions and took care of mine right away. The author, and the link to the site are listed in the instructions. I copied them to notepad so as not to lose them. Hopefully this will work for you.
BlueTooth Sync
I got my bluetooth to work by following Hazymat's guide: Here (http://www.modaco.com/Active_Sync_over_BlueSoleil_Blutooth-t232696.html) Excerpt:
Thanx to a Hazymat over on xda-dev I managed to get it all working, his guide, for anyone else finding this:-
1) On your computer, go into bluetooth settings. Check bluetooth is ON and set to discoverable. Add an incoming COM port, eg. COM5.
2) On ActiveSync on your computer, go into connection settings. Tick all the boxes. If the COM port is greyed out, untick it, close the settings box, go back in, now tick it and set the COM port to eg. COM5.
3) On the K Jam go into bluetooth settings, and remove the connection to your computer.
4) On your K Jam go into ActiveSync, click 'menu' > 'connect via bluetooth' then you should see a message saying 'cannot find an existing bluetooth partnership with a PC that supports ActiveSync. Would you like to set up a partnership now?'
5) Click YES - you are taken to the Bluetooth settings screen.
6) Now click 'new partnership. As soon as you do this, the K Jam will search, and as long as your computer has bluetooth discoverable turned on, your computer will eventually be displayed. Check the computer name showing on the K Jam is the same as the name you gave the bluetooth profile on your computer.
7) On K Jam, click your computer name then NEXT.
Now enter a passcode - any four digit number (remember it) then next
8) When you do this, your computer will pop up with a message saying "a bluetooth device is requesting authorisation". Open this message and type in the code that you gave the K Jam. The next screen on the computer will tell you that it was successful - click FINISH.
9) Back on the K Jam, the screen will now be showing the services available. AS LONG AS YOU FOLLOWED STEP 1 and 2, ActiveSync will be an option, and you need to tick this and press FINISH on the K Jam.
10) Close bluetooth settings, now in ActiveSync screen click MENU > Connect via bluetooth. Your ActiveSync program on the computer should eventually pop up and connect.
The only port you worry about is the incoming pc one. Active Synch does the rest. You must see acitivesync as a service when you connect. I did not see it until I updated my Toshiba Bluetooth stack from thier website. Creating other ports can stop the synch from working.
Steve Sharp said:
Didn't have quite the same problem that you are having, but was having trouble. I found these instructions and took care of mine right away. The author, and the link to the site are listed in the instructions. I copied them to notepad so as not to lose them. Hopefully this will work for you.
BlueTooth Sync
I got my bluetooth to work by following Hazymat's guide: Here (http://www.modaco.com/Active_Sync_over_BlueSoleil_Blutooth-t232696.html) Excerpt:
Thanx to a Hazymat over on xda-dev I managed to get it all working, his guide, for anyone else finding this:-
1) On your computer, go into bluetooth settings. Check bluetooth is ON and set to discoverable. Add an incoming COM port, eg. COM5.
2) On ActiveSync on your computer, go into connection settings. Tick all the boxes. If the COM port is greyed out, untick it, close the settings box, go back in, now tick it and set the COM port to eg. COM5.
3) On the K Jam go into bluetooth settings, and remove the connection to your computer.
4) On your K Jam go into ActiveSync, click 'menu' > 'connect via bluetooth' then you should see a message saying 'cannot find an existing bluetooth partnership with a PC that supports ActiveSync. Would you like to set up a partnership now?'
5) Click YES - you are taken to the Bluetooth settings screen.
6) Now click 'new partnership. As soon as you do this, the K Jam will search, and as long as your computer has bluetooth discoverable turned on, your computer will eventually be displayed. Check the computer name showing on the K Jam is the same as the name you gave the bluetooth profile on your computer.
7) On K Jam, click your computer name then NEXT.
Now enter a passcode - any four digit number (remember it) then next
8) When you do this, your computer will pop up with a message saying "a bluetooth device is requesting authorisation". Open this message and type in the code that you gave the K Jam. The next screen on the computer will tell you that it was successful - click FINISH.
9) Back on the K Jam, the screen will now be showing the services available. AS LONG AS YOU FOLLOWED STEP 1 and 2, ActiveSync will be an option, and you need to tick this and press FINISH on the K Jam.
10) Close bluetooth settings, now in ActiveSync screen click MENU > Connect via bluetooth. Your ActiveSync program on the computer should eventually pop up and connect.
The only port you worry about is the incoming pc one. Active Synch does the rest. You must see acitivesync as a service when you connect. I did not see it until I updated my Toshiba Bluetooth stack from thier website. Creating other ports can stop the synch from working.
Click to expand...
Click to collapse
Dude thank you! I will try that as soon as I get home!
I have it working on my desktop PC in front of me. Here's my setup:
PC:
IVT BlueSoleil v5 I think (the one that costs money but has a new slick interface)
Device Name: PokerPro
Device Type: Desktop
Accessibility: Allow other Bluetooth devices to find this device, Allow other Bluetooth devices to connect to this device
Services: Bluetooth Serial Port (COM4), Bluetooth Serial Port (COM5), Bluetooth Advanced Audio, Bluetooth Object Push, Bluetooth File Transfer, Bluetooth Personal Area Network. All have Security On (i.e. a secure connection).
Serial Ports: COM4: Direction Incoming. COM5: Direction Incoming.
Microsoft ActiveSync:
Connection Settings:
Allow USB connections
Allow connections to one of the following: COM4
This computer is connected to: Automatic
Open ActiveSync when device connects
I >don't< have "Allow wireless connection on device when connected to the desktop" set.
On my Phone:
Running WM6 (Windows CE 5.2.1933) (note not WM6.1) and Schap's 4.01 full rom
Bluetooth device name: "Dir Someone" (my name). I don't have OBEX enabled.
Within the Bluetooth settings:
PokerPro shows up as a device. If I select it, it shows Wireless Stereo (not ticked) and ActiveSync (ticked). This is the important bit - ActiveSync needs to show up as a service under your PC paired connection.
Mode: Turn On Bluetooth is ticked, but "Make device visible to other devices" is not ticked.
COM Ports: I don't have anything there aside from "New Outgoing Port".
FTP: Enable Bluetooth Explorer is ticked
Security: Authentication (Passkey) required is not ticked.
ActiveSync: I have "Synchronise all PCs using this connection" ticked, with the default " 'USB " selected.
When I select "Connect via Bluetooth", I get a message on my desktop saying the phone has connected, and ActiveSync turns green and starts spinning.
If I recall correctly, it took me a couple of goes before the ActiveSync service appeared under the PC paired connection (the bit in italics above). I don't recall how I got that working but it was just a matter of deleting the connection and letting them discover each other again I think.
I did a bunch of research and found a few articles that I read at the time, but because I'm using BlueSoleil it was slightly different for my setup. But you can get the general idea of what you need to do here.
Check My post here, it is on the butoom of the page!!
http://forum.xda-developers.com/showthread.php?t=347472
hth,
Stuart
Steve Sharp said:
The only port you worry about is the incoming pc one. Active Synch does the rest. You must see acitivesync as a service when you connect. I did not see it until I updated my Toshiba Bluetooth stack from thier website. Creating other ports can stop the synch from working.
Click to expand...
Click to collapse
I don't see "Activesync as a service" on my Cingular 8525. now AT&T, and I have their latest software. How do I get an update?
Steve Sharp said:
Didn't have quite the same problem that you are having, but was having trouble. I found these instructions and took care of mine right away. The author, and the link to the site are listed in the instructions. I copied them to notepad so as not to lose them. Hopefully this will work for you.
BlueTooth Sync
I got my bluetooth to work by following Hazymat's guide: Here (http://www.modaco.com/Active_Sync_over_BlueSoleil_Blutooth-t232696.html) Excerpt:
Thanx to a Hazymat over on xda-dev I managed to get it all working, his guide, for anyone else finding this:-
1) On your computer, go into bluetooth settings. Check bluetooth is ON and set to discoverable. Add an incoming COM port, eg. COM5.
2) On ActiveSync on your computer, go into connection settings. Tick all the boxes. If the COM port is greyed out, untick it, close the settings box, go back in, now tick it and set the COM port to eg. COM5.
3) On the K Jam go into bluetooth settings, and remove the connection to your computer.
4) On your K Jam go into ActiveSync, click 'menu' > 'connect via bluetooth' then you should see a message saying 'cannot find an existing bluetooth partnership with a PC that supports ActiveSync. Would you like to set up a partnership now?'
5) Click YES - you are taken to the Bluetooth settings screen.
6) Now click 'new partnership. As soon as you do this, the K Jam will search, and as long as your computer has bluetooth discoverable turned on, your computer will eventually be displayed. Check the computer name showing on the K Jam is the same as the name you gave the bluetooth profile on your computer.
7) On K Jam, click your computer name then NEXT.
Now enter a passcode - any four digit number (remember it) then next
8) When you do this, your computer will pop up with a message saying "a bluetooth device is requesting authorisation". Open this message and type in the code that you gave the K Jam. The next screen on the computer will tell you that it was successful - click FINISH.
9) Back on the K Jam, the screen will now be showing the services available. AS LONG AS YOU FOLLOWED STEP 1 and 2, ActiveSync will be an option, and you need to tick this and press FINISH on the K Jam.
10) Close bluetooth settings, now in ActiveSync screen click MENU > Connect via bluetooth. Your ActiveSync program on the computer should eventually pop up and connect.
The only port you worry about is the incoming pc one. Active Synch does the rest. You must see acitivesync as a service when you connect. I did not see it until I updated my Toshiba Bluetooth stack from thier website. Creating other ports can stop the synch from working.
Click to expand...
Click to collapse
Steve Sharp - thanks a TON for this post...I've been trying to get Activesync to work on my Tilt for about 3 weeks now.
thanks!

Bluetooth API?

Hey,
i want to start programming an app for my HD2 which should connect one of my bluetooth devices by starting it. I only know a bit about programming under desktop-windows. Where do I find a reference for the programmers api on WM6.5 / where can i look for the commands i need?
//Edit: The functions i found in the MSDN are for connecting - communicating - closing in this way, but i only want to connect a profile (serialport for tmc) and end.
Hope you can help. Thanks.
125
Found the 32Feet.net SDK but still i can't get the procedures i need.
Nobody with information on programming bluetooth apps?
Somebody must have down something similiar in the past or?
These?:
http://www.codeproject.com/KB/windows/BluetoothDevicesDiscovery.aspx
http://www.mobile-soft-dev.blogspot.com/2010/03/c-wrapper-for-nearby-bluetooth-devices.html
Thanks for the links. Ok that is how to enumerate the devices and i could do a connection over winsock, but still i can't find information on not really do a connection but only pair the bt device so other applications can use it afterwards. Damn
(More Information: App should be used on WIDCOMM stack to connect tmc and start navigation after that to get rid of the annoying selector window which disappears to quick)

Categories

Resources