views:

290

answers:

2

Hi, all

Currently I am doing a project involves a bluetooth communication setup between a PDA and a small embedded device. This small embedded device can only be communicated with a virtual serial port over a bluetooth link.

The PDA is the ipaq running with windows mobile 6, and I am using c#.

I had done a program which can communication with the serial port over bluetooth. But the only issue is every time I run this program, I have to active the bluetooth radio, and manually pairing this device with the pda via the bluetooth manager. What I want to do is when running this program, it can establish the bluetooth connection between the pda and the embedded module.

So I am using functions from the 32feet prject. This is one issue is I cant make the virutal serial port part, as I think the 32feet project can only make virual serial ports for the window bluetooth stack but not the widcomm bluetooth stact, which the ipaq is using.

Therefore, are there any existing c# classes or stacks that can make virtual serial port under widcomm for windows mobile 6.

Thanks

A: 

See my answer at http://stackoverflow.com/questions/2004730/widcomm-bluetooth-how-to-open-the-virtual-com. I generally recommend using a direct sockets (BluetoothClient) connection. That seems better to me than having to create a virtual serial port, which is difficult on various platforms, and then open it, and then gets no errors when the peer device goes out of range etc etc. :-)

Alan

alanjmcf
A: 

Hello,

Thanks for your reply.

I have checked with that post, but there is one little issue.

The embedded module can only support the serial port communication over bluetooth. On a PC or on the PDA, I can always manually make the bluetooth connection and setup the virtual serial port through the bluetooth manager. Once finish this step, I have to, and the only way to, communicate this module through a TTY terminal. (On a PC, I am using PuTTy, while on a PDA I am using vxHpc to test). This module can send data through the serial communication.

This module does not come with any SDK or documentations, I think it can only communication with a serial communication.

Also, the PDA is a ipaq handhold, and I think it comes with the widcomm module only. Am I right if I say this one can not use the windows bluetooth stack?

This is the only issue left. I can setup the bluetooth communication and pair with both device. But I cant use the serial port communication. And if I dont use the serial port communications, I cant get information I needed from this module.

Kind regards,

Y

i13m