PDA

View Full Version : C# SerialPort - can't send data via (virtual) com-port


n2daico
23-10-2007, 12:15 AM
Hi!

I want to write a little remote software for my pda (HTC Prophet), with which i can control some things of my laptop.
My problem is, that i can't send data via the com-port from my pda to the laptop (it's a virtual com-port because they are connected via bluetooth).
I'm using Visual Studio 2005, OS is Windows Vista, PDA is a Windows Mobile 5!
Is there anybody that can help me with solving that problem? Which settings do I have to chose so that I can establish the connection via com-port? If necessary I can also post some code!

Greetings and thanks,
Nico

gingercat
23-10-2007, 11:54 AM
i can't send data via the com-port from my pda to the laptop

What programming language (version of the NETCF) are you using?

Can't send as in?
- Can't create port?
- Exceptions thrown?
- Data sent but not received?
- Haven't written the code yet?

Not sure I'll be able to help, but a bit more info on the problem will help people to help you.

Gingercat.

n2daico
23-10-2007, 04:44 PM
-C# with .Net 2.0
-No exceptions
-Laptop receives no data (checked that with a com-port listener)
-I already have the code

concerning the bluetooth settings in vista:
-com-port 6 (incoming)
-can't set an outgoing port for the laptop on the pda (only for other paired mobile phones)

Do you need further information?

Greetings and thanks,
Nico

n2daico
24-10-2007, 10:37 PM
No ideas and hints?

fluxist
25-10-2007, 12:54 AM
Does the bluetooth stack on your laptop support the Serial Port service?

n2daico
26-10-2007, 11:50 AM
I think so! It's the Widcomm BT stack!

n2daico
29-10-2007, 10:25 AM
??

No other ideas or hints?

n2daico
06-11-2007, 04:21 PM
I need more information...so please help me :)