Pocket PC Networking >> bluetooth connect error

by RmVkZXJpY28gQ2FzZWxsaQ » Mon, 09 May 2005 23:15:04 GMT

Hi,

I'm a vb programmer, I'm trying to write a simple application to connect my
desktop PC to my notebook (obviously both Windows XP sp2) using Bluetooth
Library (March Edition) from OpenNetCf.org. I'm following the example in C#
"2fBluetoothRemote.zip"


...

I translated in vb from the c# example:

Dim bc As New BluetoothClient
BluetoothRadio.PrimaryRadio.Mode = Bluetooth.RadioMode.Connectable
Cursor.Current = Cursors.WaitCursor
Dim bdi() As BluetoothDeviceInfo
bdi = bc.DiscoverDevices(12)
'binding the combo called cmbDevices, it populates correctly
...


'connecting the device selected by the user in the combo:
Dim EP As New Net.BluetoothEndPoint(CType(cmbDevices.SelectedValue, _
Net.BluetoothAddress), Net.Bluetooth.BluetoothService.SerialPort) 'no errors
yet
bc.Connect(EP) 'error!!!

when the connect method is executed, I get an error (translated from the
italian)
System.Net.SocketException : "Requested address not valid in its context" ...

any help appreciated

Thanks.



Similar Threads

1. H2210/2215 Bluetooth Problems in connected to Cingular Bluetooth Phone (Siemens S56)

Ok, I've posted related questions to this before, and now I have a "new",
yet related problem, that I simply can't resolve.

I am trying to connect to the internet with my H2210/2215 bluetooth enabled
PPC 2003 Pocket PC via my Siemens S56 bluetooth enabled phone (Cingular) via
GPRS and/or regular ISP.  I had it working fine for a couple weeks, although
I never really figured out why, and then my PPC crashed, needed a hard
reset, and now I can't get it working again.

What I do is set up a Bluetooth modem dial-up connection with Cingular's
settings provided by Siemans:
Ph: *99***1#, Extra Modem String: AT+CGDCONT=1,"IP", "isp.cingular", ID/PW:
 XXXX@XXXXX.COM /ZXY203DC9K0402
I then pair the device via the Bluetooth manager and try to dial up using
the above connection settings.  Same thing happens every time.  Quickly it
says "Connection Established", then it thinks for a minute or so and says
either the answering modem has disconnected or a long message that it cannot
connect.  In both cases, it asks me to check the settings.

I've tried everything I can think of.  Does anybody have any suggestions?
Thanks,
Jim


2. connecting mobile phone to the internet through bluetooth

3. Bluetooth connects then immediatley disconnects

I have an HP DV9610 with Bluetooth and a Palm 700wx also with Bluetooth. When 
I set up a pairing Vista finds the phone immediatley and the paring goes 
smoothly. As soon as it's done, in Bluetooth devices it says connected then 
immediately disconnects. This is repeatable. Whenever I go into the phone's 
Bluetooth properties in the Bluetooth Devices app and exit , it connects then 
disconnects. I have Windows Mobile Device center 6.1

I had Mobile Device center 6.0, but it wouldn't find the (WM5) phone even 
via USB. I installed 6.1 and the USB sync works fine. Now I am trying to set 
up the Bluetooth sync and a Bluetooh connection in general. With 6.0 I could 
connect with the phone (storage card) but not sync. The connection was stable 
and I could brows the phones storage, but now nothing at all with 6.1.

4. connect to a server via bluetooth and GPRS - Pocket PC Networking

5. force windowsce device to connect to specific Bluetooth NAP server

I am using bluetooth and a HP ipaq.  Using the "Bluetooth Manager" i can 
connect to a device providing NAP.  The "Bluetooth Manager"  offers a 
selection of devices and I chose the one I know is running NAP.  BUT I would 
like to force the ipaq to connect to a specific NAP provider.  Each time it 
"comes up" i want the ipaq to look for that specific MAC address and be a 
PANU to the specific MAC address.

Help please.  Is this a registry setting?

-- 
Maria Cruz
MTC Technologies.com

6. How do I make my app connect through bluetooth - Pocket PC Networking

7. How to use Bluetooth to connect two computers ?

I want to connect two computers (desktop and laptop) by Bluetooth adapters.
For that I want to plugin in each of the two computers an USB Bluetooth adapter and to
create something like a network.

In other words can I transfer and access the other computer as if I would have connected
them by a router?

Ken



8. "Permission denied" from pand when trying to connect Bluetooth