Re: Serial Port interfacing

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Alex Moskalyuk (usenet_at_moskalyuk.com)
Date: 05/04/04


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



Relevant Pages

  • Re: Programming for serial IO cards
    ... > It connects into the serial port and can be used to control things like ... but you realize that's digital control card ... (I'm no electronics technician but, for the most part, you probably won't ...
    (comp.os.linux.hardware)
  • Re: Programming for serial IO cards
    ... > It connects into the serial port and can be used to control things like ... Then you should do some reading about serial programming, ... Serial-Programming-HOWTO is probably a very good place to start for you. ...
    (comp.os.linux.hardware)
  • Re: Storyline Variant: Blood Seige
    ... as are card ideas. ... [I decided on the title Lord so ... I always thought Blood Siege was a neat card but never got much use ... or they may take an undirected action to take control of the ...
    (rec.games.trading-cards.jyhad)
  • Re: Rugby twat banned for drink-driving
    ... I'm not condoning drink driving - but reading this it seems to me like ... The liberal-left hardliners have no sympathy and would ... resignation to the forces that control all our lives, ... And no, I don't condone drinking and driving, but that is mainly due ...
    (rec.sport.rugby.union)
  • Re: Splain please re: mixer, alsa, pulseaudio and tvtime??
    ... You could have killed the pulseaudio daemon. ... channels without the sound server adding another layer (such as ... trying to figure out various possible control combinations. ... *However* my tv tuner card has no sound output receptacle, ...
    (Fedora)