Jump to content
Sign in to follow this  
defaient

Serial Port - high baud rate

Recommended Posts

defaient

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!

Share this post


Link to post
Share on other sites
Mat

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.

Share this post


Link to post
Share on other sites
martin

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!

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.

Share this post


Link to post
Share on other sites
aion1987

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?

Share this post


Link to post
Share on other sites
JLogan3o13

@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.


√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×