C#/.NET wrapper for serial port WIN32 Comm API -
i looking way have control possible on serial port in c# application. problem need communicate device has no documentation except old c++ program written control it. i've tried use serialport class communicate device behaviour quite odd (i have repeat of commands, other commands dont work @ all). copy unmanaged program's behaviour, seems impossible serialport class, not provide access low-level functions , structures dcb example.
are there low-level wrappers serial communication available .net? maybe use reflection manipulate serialport innacessible members @ runtime?
for suggesting @ .net serialport class; frequent stack overflow answer provider on serial related issues, ben voigt, provides excellent insights on why wrapper around winapi turn out better idea using framework provided serialport:
a must read.
he refers winapi wrapper might reveal in future blog posts. if happen, answer original question.
also, there seems @ least 1 commercial solution providing requested functionality here.
another edit:
some more searching online has yielded this blog post apparently time when there no serialport class in .net... source code provided showing how wrap win32 api purpose.
edit
some users have pointed out above mentioned msdn blog post link dead.
the title of linked article was:
"use p/invoke develop .net base class library serial device communications", written john hind andpublished october 2002 can tell msdn article referring it:
unfortunately, microsoft seems serve editions of magazine down 2003:
fwiw, found half working online version elsewhere...
Comments
Post a Comment