469,604 Members | 2,381 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,604 developers. It's quick & easy.

RS 232 and Bluetooth Comms Routine

I would appreciate it if anyone could help or advise on coding for comms.

I am using C# and need to be able to open a comms port, send a command to a
device, receive the data back and close the port.

Also need to be able to set up the comms parameters Baud rate stop bits
parity etc.

Can anyone please advise or help me.

Much appreciated

Kevin
Apr 17 '07 #1
2 2270
http://www.htservices.com/Tools/VBan...unications.htm

http://www.codeworks.it/net/VBNetRs232.htm

Have fun.
"Kevin" <km**@iafrica.comwrote in message
news:f0**********@wblv-ip-nnrp-1.saix.net...
>I would appreciate it if anyone could help or advise on coding for comms.

I am using C# and need to be able to open a comms port, send a command to
a
device, receive the data back and close the port.

Also need to be able to set up the comms parameters Baud rate stop bits
parity etc.

Can anyone please advise or help me.

Much appreciated

Kevin

Apr 18 '07 #2
Hi,

Just look at the MSDN online help. It exists an example and a tutrial on how
to program bluetooth and COM Port devices.

You can also use the windows API :

- CreateFile : Open the COM port
- ReadFile : Read data
- WriteFile : Send data
- CloseHandle : Free the allocated handle for COM.

Sincerly,

Shell
Le 18/04/07 5:49, dans 0C**********************************@microsoft.com,
«*Clint*» <Pv******@hotmail.coma écrit*:
http://www.htservices.com/Tools/VBan...unications.htm

http://www.codeworks.it/net/VBNetRs232.htm

Have fun.
"Kevin" <km**@iafrica.comwrote in message
news:f0**********@wblv-ip-nnrp-1.saix.net...
>I would appreciate it if anyone could help or advise on coding for comms.

I am using C# and need to be able to open a comms port, send a command to
a
device, receive the data back and close the port.

Also need to be able to set up the comms parameters Baud rate stop bits
parity etc.

Can anyone please advise or help me.

Much appreciated

Kevin

Apr 18 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Thomas_Germany | last post: by
3 posts views Thread by Tor Erik Sønvisen | last post: by
1 post views Thread by cmartin64x | last post: by
reply views Thread by Malcolm Allard | last post: by
4 posts views Thread by Boki | last post: by
6 posts views Thread by jabslim | last post: by
1 post views Thread by Z.K. | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.