473,387 Members | 1,485 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 2396
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Thomas_Germany | last post by:
I would like to develop a smart device bluetooth application for pocket PC 2003. As I know, Pocket PC 2003 includes the microsoft bluetooth stack. My intention is to use the SDK from mircrosoft and...
3
by: Tor Erik Sønvisen | last post by:
Hi I'm making a server-side solution in Python and need to be able to communicate through bluetooth. Is there any bluetooth-packages out there for python? regards tores
1
by: cmartin64x | last post by:
Hi, I am trying to make this simple code work but I have no success doing so: BLUETOOTH_DEVICE_SEARCH_PARAMS btsp = { sizeof(btsp) }; BLUETOOTH_DEVICE_INFO btdi = { sizeof(btdi) }; ...
0
by: Malcolm Allard | last post by:
Hi, I'm new to the world of Visual Studio .Net (but have done a fair bit of VB6 coding). I'm playing with the sample RS232 code from the MSDN website...
4
by: Boki | last post by:
Hi All, I am going to use some Bluetotoh API, should I include some special DLL or just call it directly? Best regards, Boki.
2
by: colin | last post by:
Hi, Im having a tiresome amount of trouble with using a bluetooth serial link. The receiving end is a bluetooth-rs232 module conected to my embeded system. The PC has a little usb bluetooth...
6
by: jabslim | last post by:
excuse me, im a newbie programmer and i need a code on how to to be able to send files from a mobile phone to a pc through bluetooth in vb.net can anyone post a code here on how to detect a...
1
by: gringgos | last post by:
hi, friends... Currently i am doing a project based on bluetooth and Visual Basic 6.0. But i am unable to find any solution regarding bluetooth. But my supervisor gave her idea about do a code...
1
by: Z.K. | last post by:
I know this is probably not the correct newsgroup, but I can't find anywhere else that is appropriate to post it in. I need to figure out how to write a bluetooth program to access a bluetooth...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.