forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


A comport dll as freeware...

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Other Product Support/Announcements
View previous topic :: View next topic  
Author Message
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Wed Feb 02, 2005 12:16 am    Post subject: A comport dll as freeware... Reply with quote

I had a dll written for me that allows you to open, read, write and close a COM port. I've been given permission, by the author, to offer it up as freeware, so long as I stipulate that there will be Absolutely NO support provided!!! I've included a very simple script to help show its usage.
Enjoy! Cool



comport.zip
 Description:

Download
 Filename:  comport.zip
 Filesize:  17.23 KB
 Downloaded:  2261 Time(s)


_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
Hippo
Contributor
Contributor


Joined: 08 Feb 2005
Posts: 53

PostPosted: Sun Mar 20, 2005 7:26 pm    Post subject: Reply with quote

Thanks for this DLL, I saw it a while ago but only recently tried it out.

I've used it successfully to write/read commands to/from a modem attached to a Com Port, such as AT, AT&V etc. Nice work Smile
Back to top
View user's profile Send private message
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Mon Mar 21, 2005 2:47 pm    Post subject: Reply with quote

Absolutely! It works great for me also... Smile
Was the example I created explanitory enough?

Hooligan

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
Hippo
Contributor
Contributor


Joined: 08 Feb 2005
Posts: 53

PostPosted: Mon Mar 21, 2005 4:49 pm    Post subject: Reply with quote

Yeah the included documentation was good, enough to get me going. The included example helped me along.

The only thing which was interesting was the write/read cycle. With your example you would write,stop,read - which would mean that the read value was help somewhere in a buffer, since most devices respond immediatly after writing to them.

How I implement this was to do a read cycle right after a write cycle to return values. eg if you send a 'AT' to a modem you will recieve an 'OK' immediatly back.

You program also worked doing this, returning the 'OK' once you clicked on read, hence my thoughts that the returned value is stored in a buffer.
Back to top
View user's profile Send private message
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Mon Mar 21, 2005 5:11 pm    Post subject: Reply with quote

Yes, most 16550 compatible UARTs have both receive and transmit FIFO buffers built in. If you are using Win2k or XP, you can control them through Device Manager. Go to Device Manager, Ports, COM1, properties, port settings, advanced. It is not that big of a buffer, so don't rely on it too heavily for storage, (performing an immediate read after a write is safest for this reason...)
Glad to see it is of use to others...

Hooligan

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Thu Oct 02, 2008 12:39 pm    Post subject: Reply with quote

Thank you hooligan!!!
_________________
cheers

Dave
Back to top
View user's profile Send private message
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Mon Oct 06, 2008 2:41 pm    Post subject: Reply with quote

Here is a replacement dll. This fixes a bug where the comport sometimes only opens at 9600 baud...

Enjoy,



comport.zip
 Description:
bug fix

Download
 Filename:  comport.zip
 Filesize:  17.32 KB
 Downloaded:  1847 Time(s)


_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
switz
Newbie


Joined: 06 Dec 2008
Posts: 3

PostPosted: Sat Dec 06, 2008 7:20 pm    Post subject: Reply with quote

Does anyone have an example using this DLL? I want to read and write to the serial port.
Thanks, Bob
Back to top
View user's profile Send private message
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Sat Dec 06, 2008 7:23 pm    Post subject: Reply with quote

There is an example included in the zip file...
If you have any specific questions, go ahead and post them.

Hooligan

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
switz
Newbie


Joined: 06 Dec 2008
Posts: 3

PostPosted: Sat Dec 06, 2008 8:12 pm    Post subject: Flow control Reply with quote

I found the example very nice work did you write it? Is there flow control capabilities?
Thanks, Bob
Back to top
View user's profile Send private message
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Sun Dec 07, 2008 6:50 pm    Post subject: Reply with quote

Thank you... I wrote the example script. I had the dll written for me. There is the Windows supported flow control capabilities (both h/w and xon/xoff), but there is no support for controlling the h/w handshake lines individually (RTS, CTS, DTR, etc.)

Hooligan

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
switz
Newbie


Joined: 06 Dec 2008
Posts: 3

PostPosted: Sun Dec 07, 2008 8:29 pm    Post subject: Reply with quote

Do you remember how much it cost to get the DLL written, and how would I contact them to make additions for more control?
I think this would be good, and I also would like to put it out as freeware.
Thanks, Bob
Back to top
View user's profile Send private message
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Mon Dec 08, 2008 2:07 am    Post subject: Reply with quote

Actually, it was written for me by someone at my work. I would have to justify the requirement to have it expanded on in the same way.... Although, I could ask him if he would be interested in doing it on the side and how much he would want to do it.... If this is something you would like me to pursue, send me a PM with a brief description of what you want, and I'll be happy to ask. I have no idea if he would even be interested or not...

Hooligan

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Other Product Support/Announcements All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group