Read-only archive of the All About Symbian forum (2001–2013) · About this archive

PC Application for connecting Bluetooth when P800 in range

37 replies · 12,421 views · Started 05 July 2003

Hello folks,

I've written a small application that connects the P800 to your computers bluetooth serial port automatically whenever the P800 comes into bluetooth range.

I'm looking for some people to test it out and see if it has any problems.

You'll need to be running the Widcomm bluetooth drivers on your PC. With the widcomm drivers is a program called "Widcomm BTServer Spy Lite" (BTServerSpyLite.exe) You'll need that for my software to function. (You may have to search your HDD to find it, it doesnt seem to create any icons on the start menu/desktop when it is installed.)

The download, and instructions are on here:
http://www.ephebe.f2s.com/ProximityConnector.htm

A little bit of patience is required. Once the P800 is in range, it may take a minute or so before it connects. If the connection is lost, it will try to get it back, but it may take a minute or so again.

Any feedback would be appreciated.

Andy

I followed your instructions on the web site but got stuck at the point where you say

<<Start P800 Proximity Connector. Enter the Device Address for your P800, which you get from the screen above. Note: Dont enter *my* device address, use your own. Browse and choose the log file that BT Server Spy Lite is creating.>>

I don't seem to have the Proximity Connector or I can't find it. I'm using Windows 2000 not XP - does that make a difference?

Mark.

Hi Mark,

There's a download link at the top right of the page. Try the basic download ( - the first link after the red update), if that gives an error message when you try to start it, get the setup.exe version.

Andy.

I've already downloaded the software and looks promising 8) .
Your instructions are very easy to follow, and since I'm using XP,
I did downloaded the extra file and save it into system/system32.

Unfortunately, I wasn't able to test it coz, I left my BT usb dongle in my office. 😮ops:

Tomorrow, when I get back to work, I'll definitely give you some feedback.

This is what I've been looking and waiting for, thanks. Hope it works for me. 😃

I'll keep my fingers crossed for you!

So far, it seems to work for everyone that's tried it (or, at least nobody has complained that it doesn't work.)

It's nice to have the P800 synch with my PC as soon as I get home in the evening. I dont even have to go upstairs anymore.... Get home, take my shoes off, sync my calendar, and surf via opera. All without fiddling with the PC. nice.

Andy.

just one minor, teeny weeny comment... when I was entering my device address, the cursor was not going to the next address field. But as I said, it's just a teeny tiny inconvinience, but if you could fix that the TAB-key puts the cursor to the next logical field then it would be super. 😃

Thanks for your great contribution.

bugger. I meant to fix that, and then promptly forgot about it. I'll get onto it now...

EDIT: All done. Files are uploaded.

Andy

Well, I'm well impressed, excellent piece of work.

It worked first time on my 7650 and so far so good.

Excellent! Thanks very much for the feedback. I managed to test with my 7650, but by connecting through the P800 version of mRouter. It's good to have confirmation that it works with the 7650 software!

Cheers,

Andy.

I'll go as far as to say that it's WAY more reliable than using the manual method. I could never get it to make more than one connection in a row without first killing all the BT processes. Sometimes I'd have to reboot. This works everytime.

I wish they would hurry up and start using Microsofts BT supported SDK so that perhaps we will hopefully get a bit more stability.

Now if there is way to use the LAN connection of my P.C. from my 7650 to gain Internet access, it would give my phone a whole lease of life 😃

Will you be finding someway to do away with having to use the BTServer spy?

It'd be nice to get rid of the BTServer Spy Lite bit, but unfortunately, there doesnt seem to be another way of telling if your PC has discovered your phone. I guess it could be done with the BT Developers software/kit that Widcomm sells, but I couldnt see a price for that on their site, and I suppose that if I have to ask how much it is, I couldn't afford it anyway.

As for getting on the internet using BT.. There certainly used to be a few threads in the 7650 forum about doing exactly that. Although, to be fair it was more about getting your cable/adsl connection over to your phone through bluetooth. If you're having to go through the LAN, and possibly a proxy server it's probably a bit harder work. I used to be able to use WebViewer to browse over bluetooth (on the 7650). Have you tried that? When it asks you to select an access point, just click cancel, and then it gets the page anyway.

Andy.

Andy,

Following your comments from my query in the 3650 forum, I've installed and downloaded all the relevenat bits, but I'm stuck.

On starting your Connector app, I get a popup error window that tells me that I'm missing MSCOMM32.OCX.

Where can I get it, or should I install your app some other way than just trying to run the .exe?

I'm running Windows XP.

Thx

>D

Hi David,

If you go back to the download page, at the top right hand side you'll see a download link to MSCOMM.OCX, try putting that in either the program folder, or the WINDOWS/SYSTEM32 folder. If that still doesnt work, get the setup.exe version of the program, which seems to work for everyone so far.

Good luck!

Andy

Got it! I didn't see that stuff on the RHS as it was outside the default width of myt browser.

Seems to work just fine with my 3650 and the MSI BToes bluetooth dongle!

Many thanks!

Glad you got it up and running! Nice to see it working with P800's 7650's and 3650's!

Bo'Selecta!

Andy

hi ephebe,

W😮W this works! So far it's very stable, and oh, I noticed you've fixed the cursor-next-field problem, great.

As it is, the program rocks.

Wishlist:
1) to have only 1 program to launch, instead of the 2.
2) to have the option to minimize the application to the system tray or the task bar.
3) to be able to clear the trace-log automatically either setting by time or by size.

Thank you! 😃

this tool sounds really interesting and i'm dying to try it out!

how do i find out if my bluetooth device uses the widcomm stack? i'm using a billionton usb bluetooth dongle.

pls advise. thanks!

el

I am not albe to find BTServerSpyLite.exe file in win xp professional. can anybody tell me where it will be?

thanks

[quote="shireesh"]I am not albe to find BTServerSpyLite.exe file in win xp professional. can anybody tell me where it will be?

thanks[/quote]

normally it can be found in the ZIP or EXE(but usually can be opened by winzip also). Sometimes it is not installed or extracted automatically, you have to go into the zip/exe file and extract it yourself.

Hope you find the file coz this auto-connect is really helpfull.

I use an MSI BToes bluetooth dongle. The BTServerSpyLite.exe wasn't installed at all ... but it was on the CD-ROM supplied with the dongle.

Since getting this working with my Nokia 3650, I've noticed an annoying minor problem.

Whilst it usually connects without trouble, I seem to get a lot of disconnects. It then reconnects automatically again.

This doesn't happen with a regular user initiated connection from the PC end - though I do have the mRouter problem where I have to deselect the COM port, close, reselect the COM port and close again before each connection.

Ok, here are a few answers to the last few queries....

* How to tell if you are using the Widcomm bluetooth software...
If you have a "My Bluetooth Places" icon on your desktop you are running the widcomm software.

*Oh No! My dongle didnt come with the Widcomm Software.
Fear not, chances are that your dongle uses the CSR bluetooth chipset(Nearly all dongles do). If you uninstall your current bluetooth software, and then try to install the widcomm software. This is the version that I use. When you run that .exe file it extracts a lot of files to a directory of your choosing, and in there is BTServerSpyLite. (you'll need that too).

* Where is BTServer Spy Lite?
Bt Server Spy Lite is not part of the windows operating system. It is a program that comes with the Widcomm bluetooth software. Sometimes it is not installed as part of the setup procedure, sometimes it is, but I have never seen any icons created for it in the start menu. Search on your HDD for BTServerSpyLite.exe If you cant find it, find the archive that your bluetooth drivers came in, and look in there. It may be in there.

* Can I make things minimize to the system tray?
Yes, you'll need "trayit": http://www.teamcti.com/trayit/trayit.htm
Its great, and its free!

*The log generated by BT Server Spy Lite gets HUGE!
I know 😞 The way to clear it down is simply to make sure that under the logging options you dont have "append to file" checked. Then you have to close the program, and start it again. You can leave Proximity Connector running while you do this. It doesnt matter. You may get disconnected and then reconnected again. I'm going to have a play with the scheduling options in win2000/XP. Thinking about creating a scheduled task to start BTSSL every 4hours, but also setting the scheduler to kill the program if it last for more than say 3hrs 55 minutes. That should work, but I havent had chance to try it...

I dont really want to get into long discussions about bluetooth drivers. They've been discussed to death in these forums already, so if you have any questions do a quick search. There is also this thread over in the esato forums that may be helpful, though you should note that some of the links in the thread are now no longer availble.

Good luck

Andy

[quote="davidgu"]Since getting this working with my Nokia 3650, I've noticed an annoying minor problem.

Whilst it usually connects without trouble, I seem to get a lot of disconnects. It then reconnects automatically again.

This doesn't happen with a regular user initiated connection from the PC end - though I do have the mRouter problem where I have to deselect the COM port, close, reselect the COM port and close again before each connection.[/quote]

Hmm. I don't get that with my P800. It does happen if I stop and start the BTSSL program to clear the log, or if I restart the proximity connector.

See if you can spot any pattern to whats happening, and let me know.

A.

I think I've got it licked. It seemed to be down to not starting the ServerSpy and the Proximity Connector in the right order and at the right time.

I had them both starting automatically in the Startup program group. I think ServerSpy got confused as it was starting before th BT stack was properly configured.

When I start them manually, all seems OK.

Now, I have a *different* problem!

When I break the BT connection, either by turning off my phone or going out of range, both the PC *and* the phone loose pairing info. When I turn my phone back on, the PC asks for a new pairing code, then the phone, and the auto authorisation has to be set up on both sides too. The link then drops, re-establishes and all is OK.

I don't get this loss of pairing info when I do a manual connection from the PC and then break it, so it would seem to be some quirk of the way that the Proximity Connector sets up the connection.

My WIDCOMM drivers are dated 23/10/2002, version 1.3.2.7. BTServerSpyLite is version 1.7.5.

Glad you got the first bit sorted out...

I've tried to replicate the problem you're having with my 7650, but without any luck. The pairing & set as authorised information seems to be remembered by both devices. We're running the same version of the widcomm software.

To make the PC establish a connection with the phone, all you have to do it make the outbound COM port stir into activity. It doesnt need any data sending through it, it just needs to be opened and closed. You can do this manually from a dos prompt by issuing " MODE COM4: " (or whatever your outgoing port is). I guess it is performing the same function as unticking, and ticking a COM port in the mRouter.

My advice probably isn't that useful, but I'd suggest deleting all pairing / authorisation information in both your phone and PC, then re-establishing the pairing. If that doesnt work, I'd try re-installing the bluetooth drivers. 😞

Sorry

A.

Great stuff!

Two last questions:

1. Does the P800 need to be in BT "Discoverable" mode for this app to work?

2. What is the danger of running in "Discoverable" mode all the time as opposed to running in "On" mode?

BTnewbie,

eric