473,748 Members | 5,230 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2407
http://www.htservices.com/Tools/VBan...unications.htm

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

Have fun.
"Kevin" <km**@iafrica.c omwrote 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************* *************** **...icrosof t.com,
«*Clint*» <Pv******@hotma il.coma écrit*:
http://www.htservices.com/Tools/VBan...unications.htm

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

Have fun.
"Kevin" <km**@iafrica.c omwrote 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
2280
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 not the expensive SDK from WIDCOMM to use the bluetooth programming interfaces. But, as I know most pocket PCs with integrated bluetooth chips use the WIDCOMM bluetooth stack. So my questions are as follows: 1) Is it possible to...
3
8043
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
5786
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) }; btsp.fReturnAuthenticated = TRUE; btsp.fReturnRemembered = TRUE;
0
972
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 (http://msdn.microsoft.com/msdnmag/issues/02/10/NETSerialComm/default.aspx). I'm trying to get to grips with inheritance and the examples in the above, but have stumbled trying to do the following: From the code available at the above link, I've got the examples working. I'm trying to...
4
2233
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
5431
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 dongle, ive tried a another dongle with widicom software as I was having problems with the IVT bluesoleil software. that seems to have got rid of some other problems,
6
8510
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 bluetooth device and how to send files to the pc in vb.net? i would really really appreciate your help!!
1
2436
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 where it runs the bluetooth application as a hidden program to send the audio file. It is where when i click the button send, it will operate the file transfer wizard in the bluetooth application and when i click the bluetooth button it should operate...
1
6089
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 barcode scanner. After a lot of searching the Internet, I have come to the conclusion that something using RFCOMM would be best. Unfortunately, Bluetooth programming books are not exactly plentiful and finding a book on RFCOMM is almost...
0
8830
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9544
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9372
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9247
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8243
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4606
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.