AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need help speeding up serial port

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
aobrien



Joined: 14 Feb 2008
Posts: 31

PostPosted: Wed Feb 20, 2008 11:34 pm    Post subject: Need help speeding up serial port Reply with quote

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
View user's profile Send private message
TodWulff



Joined: 29 Dec 2007
Posts: 99

PostPosted: Sat Mar 01, 2008 11:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
evandevon



Joined: 22 Apr 2008
Posts: 18

PostPosted: Sun Jun 29, 2008 7:25 pm    Post subject: Possible Solution?!?!? Reply with quote

Hi,
I've lost so much sleep over this tonight...

See my other posts

http://www.autohotkey.com/forum/viewtopic.php?p=204820#204820
http://www.autohotkey.com/forum/viewtopic.php?p=204821#204821

I think a possible solution could be to use serialterm (no install needed) to display input in a command prompt and CMDret scripts (do a forum search) to capture the prompt display into a variable but I haven't tried it yet.
see:
http://www.autohotkey.com/forum/viewtopic.php?t=8606&start=0

Hope this helps both of us...

Evs
_________________
Inventing problems that need solutions...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group