| View previous topic :: View next topic |
| Author |
Message |
aobrien
Joined: 14 Feb 2008 Posts: 31
|
Posted: Wed Feb 20, 2008 11:34 pm Post subject: Need help speeding up serial port |
|
|
I recently posted a Serial ( COM ) Port Console Script. It turns out that port.dll is only able to send a byte out of the serial port once every 15.6ms. Running the exact same loop, but not connecting to the COM port will execute a line of code in less than 1ms.
The device that I am trying to communicate with times out before I can send the entire message.
So, I need to find an alternative to port.dll.
Wisely uses the CreateFile function here http://www.autohotkey.com/forum/viewtopic.php?t=26533&highlight=serial and looking at Micorsoft's website http://msdn2.microsoft.com/en-us/library/aa363858.aspx it seems like it might be able to accomplish what I need.
Wisely's script seems incomplete for my needs. I can see how to open/close a COM port, but I don't see how to send/receive bytes.
Is there anyone out there that is familar with this CreateFile function or have any better ideas on how I can use AHK to send/receive serial port data.
Thanks. |
|
| Back to top |
|
 |
TodWulff
Joined: 29 Dec 2007 Posts: 99
|
Posted: Sat Mar 01, 2008 11:11 pm Post subject: |
|
|
Any luck with this, yet? I too have successfully developed an AHK based tool set around port.dll. I too am frustrated with the extremely slow throughput of the tool.
It IS a flexible tool (giving the dev the latitude to programmatically control ALL of the lines independently), and I haven't yet found something else as robust. Have you had any luck in your search to either speed up port.dll, or find an appropriate alternate?
As info, I have come across ActiveComPort from ActiveXperts. I am chasing this possibility...
Please keep up the search and post any success in this thread. I will reciprocate, if I come up with a viable alternate...
Thanks. L8R.
-t |
|
| Back to top |
|
 |
evandevon
Joined: 22 Apr 2008 Posts: 18
|
|
| Back to top |
|
 |
|