View previous topic :: View next topic |
Author |
Message |
Hooligan VDS Developer
Joined: 28 Oct 2003 Posts: 480 Location: California
|
|
Back to top |
|
|
Hippo Contributor
Joined: 08 Feb 2005 Posts: 53
|
Posted: Sun Mar 20, 2005 7:26 pm Post subject: |
|
|
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
|
|
Back to top |
|
|
Hooligan VDS Developer
Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Mon Mar 21, 2005 2:47 pm Post subject: |
|
|
Absolutely! It works great for me also...
Was the example I created explanitory enough?
Hooligan
_________________ Hooligan
Why be normal? |
|
Back to top |
|
|
Hippo Contributor
Joined: 08 Feb 2005 Posts: 53
|
Posted: Mon Mar 21, 2005 4:49 pm Post subject: |
|
|
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 |
|
|
Hooligan VDS Developer
Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Mon Mar 21, 2005 5:11 pm Post subject: |
|
|
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 |
|
|
DaveR Valued Contributor
Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Thu Oct 02, 2008 12:39 pm Post subject: |
|
|
Thank you hooligan!!!
_________________ cheers
Dave |
|
Back to top |
|
|
Hooligan VDS Developer
Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Mon Oct 06, 2008 2:41 pm Post subject: |
|
|
Here is a replacement dll. This fixes a bug where the comport sometimes only opens at 9600 baud...
Enjoy,
Description: |
|
Download |
Filename: |
comport.zip |
Filesize: |
17.32 KB |
Downloaded: |
1847 Time(s) |
_________________ Hooligan
Why be normal? |
|
Back to top |
|
|
switz Newbie
Joined: 06 Dec 2008 Posts: 3
|
Posted: Sat Dec 06, 2008 7:20 pm Post subject: |
|
|
Does anyone have an example using this DLL? I want to read and write to the serial port.
Thanks, Bob
|
|
Back to top |
|
|
Hooligan VDS Developer
Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Sat Dec 06, 2008 7:23 pm Post subject: |
|
|
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 |
|
|
switz Newbie
Joined: 06 Dec 2008 Posts: 3
|
Posted: Sat Dec 06, 2008 8:12 pm Post subject: Flow control |
|
|
I found the example very nice work did you write it? Is there flow control capabilities?
Thanks, Bob
|
|
Back to top |
|
|
Hooligan VDS Developer
Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Sun Dec 07, 2008 6:50 pm Post subject: |
|
|
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 |
|
|
switz Newbie
Joined: 06 Dec 2008 Posts: 3
|
Posted: Sun Dec 07, 2008 8:29 pm Post subject: |
|
|
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 |
|
|
Hooligan VDS Developer
Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Mon Dec 08, 2008 2:07 am Post subject: |
|
|
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 |
|
|
|