Re: Serial Port interfacing
From: Alex Moskalyuk (usenet_at_moskalyuk.com)
Date: 05/04/04
- Next message: Sharon Tal: "Re: C# doc generator"
- Previous message: suzy: "Re: where am i being called from? (web.config)"
- In reply to: Kevin: "Serial Port interfacing"
- Next in thread: Kevin: "Re: Serial Port interfacing"
- Reply: Kevin: "Re: Serial Port interfacing"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 4 May 2004 15:45:14 -0700
I've used the library from GotDotNet
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=9dde5cf3-4842-4d4b-baa7-73e09c4d5890
for my applications.
With the exception of few bugs and some error handling the library seems to
work fine.
Alex Moskalyuk
_________________________________
http://www.techinterviews.com
"Kevin" <anonymous@discussions.microsoft.com> wrote in message
news:8857E699-B6D0-4DB8-9198-3FABB70502D4@microsoft.com...
> Hi all,
>
> I am having a problem reading from a serial port, first of all I have now
resorted to using the MSComm ActiveX control on my Windows Forms to provide
me with the interface to my serial port. is there no other way to do this -
it has to be simple or well explained because I'm still new to the .NET
world and c#. I did stumble across an article on the MSDN site where I
downloaded a file NetSerialComm.exe - I think it was from one of the msdn
magazines? But anyway I don't know what the heck is going on here! there are
so many classes, I don't know which ones to instantiate or if I'm supposed
to write my own classes derived from these?! I would just like something
simple that would give me the capabilities of reading and writing to a
comport. I know that for reading a port is alot harder than writing to one
because you're not really in control, you basically have to do it on an
Event basis - but I don't know how to construct me form/class to raise an
event when data is coming through the port.
>
> Plainly put, that is why I resorted to the MSComm.ocx. But now when I set
my Card reader up and I plug it in and I swipe my transponder card the
OnComm event of the Active X control executes 3 times and I get 3 sections
of the number thats on the card! - where as in Hyperterminal I get 1 long
string. I have no Idea why the event would be raised 3 times? any
suggestions?
>
> I would like to break away from the MSComm control purely because I want a
.NET component, but this product I want to make will be sold so I am screwed
by open source liscence agreements!lol
>
> Please can someone give me some help or point me in a direction where I
can find this sort of stuff explained in plain english:)
>
> Thanks
> Kevin
- Next message: Sharon Tal: "Re: C# doc generator"
- Previous message: suzy: "Re: where am i being called from? (web.config)"
- In reply to: Kevin: "Serial Port interfacing"
- Next in thread: Kevin: "Re: Serial Port interfacing"
- Reply: Kevin: "Re: Serial Port interfacing"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|