defaient Posted March 7, 2011 Posted March 7, 2011 Hi How can I use the serial ports? I've tried it using commg.dll but it's limited to 252600 (or something like this). I need to work with 921600 baud rate. Does it matter if my port is RS232 /RS422/ RS485? thanks!
Mat Posted March 7, 2011 Posted March 7, 2011 http://www.autoitscript.com/forum/topic/45842-serial-port-com-port-udf Not tried it, but it's the first thing I think of when people ask about serial ports. AutoIt Project Listing
martin Posted March 7, 2011 Posted March 7, 2011 HiHow can I use the serial ports? I've tried it using commg.dll but it's limited to 252600 (or something like this). I need to work with 921600 baud rate. Does it matter if my port is RS232 /RS422/ RS485?thanks!The commg udf allows you to use any value up to 2000,000 but the hardware limitations might mean that high rates don't work. It could be that the udf has comments saying that only certain baud rates are allowed but that was only true until a couple of years ago.I don't know if RS422 or 485 work. If you use a RS232 to 485 adapter then I imagine it should work but otherwise I don't know. Maybe someone has experience with this. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
aion1987 Posted June 6, 2018 Posted June 6, 2018 Good day is the first time I write in the forum. I am using the commg.dll V2.83 and apparently I have a problem to establish comunicasion at speeds greater than 256000 baud. I am using the Putty program with which I was able to communicate at speeds of 921600 and 2000000. The IC also has communication to 115200 but this speed is not a problem. Has anyone been able to solve this problem?
Moderators JLogan3o13 Posted June 6, 2018 Moderators Posted June 6, 2018 @aion1987 did you happen to notice this post is more than 7 years old? AutoIt as a language has grown by leaps and bounds in that time; what worked way back in 2011 may not work the same today. In the future, please create a new thread rather than resurrecting dead ones. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now