473,748 Members | 2,594 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

RS232 communication

Any sample program for rs232 communication?
Nov 16 '05 #1
2 3563
Have a look at http://www.codeproject.com/dotnet/DotNetComPorts.asp

This wraps the Win32 api, .NET 2.0 should include serial communication
support.

Chris

"AlirezaH" <al******@abcgr p.com> wrote in message
news:eI******** ******@TK2MSFTN GP09.phx.gbl...
Any sample program for rs232 communication?

Nov 16 '05 #2
What kind of implementation are you looking for? A SerialPort class
exists within .NET Framework 2.0 and by downloading Visual C# Express
Beta you can get that. Of course, the words Express and Beta might be
showstoppers for using within a commercial product, but I was able to
quickly type up an RS232 terminal using just classes within the new .NET.

For implementations under 1.1, the CodeProject file mentioned by
Christopher Kimbell is a good example, another one is using a commercial
library (http://www.moskalyuk.com/blog/archives/000205.html) and yet
another free one exists on GotDotNet
(http://www.gotdotnet.com/Community/U...-93391fc4c196).

Alex Moskalyuk
AlirezaH wrote:
Any sample program for rs232 communication?

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2211
by: nchap99 | last post by:
hello, Does anybody know if Microsoft Dot Net supports the RS232 type of connection. As far as I know Visual basic 6 supports RS232 connection format. Thanks,
6
7644
by: Przemo | last post by:
Hi, Do you know some good RS232C class? There is one in VB.NET 101 Examples, but I think it is poor. 1. I can't for e.g. read into my application all data received. I must tell how many bytes I would like to read. If I specify too many exception occures, if too less there are still some data in buffer.
0
1224
by: Stefan | last post by:
The WIN32 API function 'GetCommConfig' Can be used to retrieve the Configuration settings. It is defined as follows structure COMMCONFIG { int dwSize; short wVersion; short wReserved; DCB dcb; int dwProviderSubType; int dwProviderOffset; int dwProviderSize;
4
1708
by: Jan | last post by:
Hello people, Can somebody tell where I can find a good site for info about rs232 communication with VB.net. TIA
2
3624
by: KCUK | last post by:
I have created a software to receive data from an equipment through RS232 communication. It is a simple application of the RS232 class. The software does receive strings from the equipment every time an event is triggered on it. The Expecting reading data is expected like this example: {Rd,d:02123579ABCDEF000098EB18, ......... If so, I can retrieve wanted data from this returned string. However, the Actual reading data is rather not...
0
1660
by: kvu95111 | last post by:
Hi All, I have wrote a simple program using RS232 protocol. However, I have the following problem in hand. I used the software to receive data from a RFID reader (you may simply treat it like a barcode scanner) through RS232 communication. The software does receive strings from the reader every time an event is triggered (i.e. a tag is read by the reader). I'm sure the Expecting reading data should look similar to this: ...
0
1221
by: Sleurhutje | last post by:
Hi, I need to write an app in VS2005 VB.NET that communicates with a Siemens TC65 GSM Terminal. The app that does the outside is OK but communicating with RS232 is a bit of a problem. Sometime the serial port is COM5 or higher and I can't connect to it using System.IO.Ports.SerialPort. Since this project is extremely low budget, I'm not able to use third party tools foor better communication. Also I want to know a good procedure to...
0
2016
by: soniyaperuma | last post by:
hi, i am doing project on communication protocols ,i want a code in vb for pc to pc communication using rs232,if any one know please send it to me including form for the code thank you.
2
2234
by: tiynkaran | last post by:
Hi, Could anybody answer my question I tried to capture unknown rs232 format contant by using vb6 mscomm1 with the setting of 9600,n,8,1 result getting is fun charactors. Expecting suggestion from anybody else please.
0
8996
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
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,...
1
9333
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9254
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...
1
6799
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
6078
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
4608
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
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.