Controlling a Com Port without using the MSCOMM control.
Posted on 2005-05-12
I have an application, written in Access 2002 & VBA. I plan on redistributing this application using the access runtime.
I need to be able to output to a pole display hooked up to a comm port. I don't want to use the mscomm method because after reading some things about it, I think it will cause too much grief.
Using Open and Write to the comm port won't work as far as I know because I also want to send configuration commands to the display, not just text.
I would prefer being able to communicate directly using the correct driver. Honestly, I'm not sure exactly what to do here.
Here's what I need to do, someone can hopefully guide me in the right direction :->
On program startup, using VBA, I need to be able to configure the pole display correctly, in case something has gone wrong.
I need to reset the display
Set the Comm port
Set the Baud Rate
Set the Parity
Set the Command Type (although I'm not even sure which command type to use)
During program operation I need to be able to
Send text to the display
Clear the display
The Pole Display I am using is a PartnerTech CD7220. It’s hooked up via USB, but winds up communicating through one of the computer’s comm ports.
I've exhausted every avenue with Partner Tech. Although they were very nice, they didn't know much about using the display with Access.
One more thing - if anything I've stated above about not being able to do, is in-correct, please let me know.