RS 232 and Bluetooth Comms Routine

K

Kevin

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
 
S

Samir BOUZID

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 (e-mail address removed),
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top