Jump to content

Recommended Posts

Posted

Try the link again, it's working for me.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Posted

We've shut the website down for repairs so the links I've given for downloads probably won't work.

This should be fixed within 24 hours

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

Web site is up again so links should be working.

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.
  • 4 weeks later...
Posted

Martin,

I am using your DLL to communicate with the RFXtrx433 transceiver from rfxcom. It works great! Thank you very much. I wonder if it is possible to recompile your code to 64-bits. This would help me connecting to my 64-bit database.

I hope to hear from you.

Posted

grashopper,

it is possible, and it is something I would like to  get done, but it won't be soon. Sorry.

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

Hi, martin!

I was faced with such a problem.
If the COM port is busy any program, then pops up this message:

fd28f90d894cf65751e1b9fd5972503f.png

And I do not know how to remove it. I want myself to handle the errors connected to the COM port.

Can you help me? Thank you!

Posted

AMSPeople,

I have made a quick fix and sent a version to you in a PM. Let me know if it helps.

martin

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.
Posted (edited)

Hi Martin

i'm new to autoit and want to write script for my dongle 3g Huawei, my csript like below:

...

;COM Vars
Global $CMPort =     ;  Port  (i would like my script detect the Port off data card automatically without choosing com port, it's possible in autoit? Pls help me out, Thanks so much)
 
Global $CmBoBaud = 9600 ;  Baud
Global $CmboDataBits =  8   ;  Data Bits
Global $CmBoParity = "none"   ;  Parity
Global $CmBoStop = 1     ;  Stop
Global $setflow = "NONE"    ;  $setflow
Global $comboflow = "NONE"
 
_CommSetport(CMPort , $sportseterror, $CmBoBaud, $CmboDataBits, $CmBoParity, $CmBoStop, $setflow)
 
...
Edited by chipchip
Posted

i got it done, thanks

Can you tell us how you did it?

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

I don't know that function and I can't find it. Can you give a link to it or tell me more about it?

(I would have used _CommListPorts probably.)

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.
  • 4 weeks later...
Posted

I sent the new version to clicklogin and it worked ok for him, but it didn't help AMSPeople.

Since it can have some benifit I have updated the download in post 1 to use the dll version 2.81.

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

Hi Martin,

I am quite new to Autoit and found your COM scripts so useful, I am using the following code to communicate to a Sparkfun Pro Micro 5V/16MHz it works excellent under win 7 ultimate but under win XP Pro I am getting the "The parameter is incorrect port = COM7 channel number = 1" error, according to the other posts is because of the baud rate being too high but I am working in 9600 so it does not look that it could be that, also I am using the version 2.90 of your library, your help is highly apreciated.

;Include the Serial UDF
#include 'CommMG.au3'
 
;Internal for the Serial UDF
Global $sportSetError = ''
 
;COM Vars
Global $CMPort = 7                ; Port
Global $CmBoBaud = 9600            ; Baud
Global $CmboDataBits =  8        ; Data Bits
Global $CmBoParity = "none"        ; Parity
Global $CmBoStop = 1            ; Stop
Global $setflow = 2                ; Flow
 
;Start up communication with the device
_CommSetPort($CMPort, $sportSetError, $CmBoBaud, $CmboDataBits, $CmBoParity, $CmBoStop, $setflow)

;Send Command

_CommSendstring("1",0)

Posted

JamesOS2,

The first thing to check is that COM7 is correct on the XP PC. You can look in device manager or use the example script supplied with the UDF. I don't think the error is anything to do with the baud rate.

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

Hi Martin,

Thanks, took a while but I have check all COMS from 3 to 8 they work fine with other programs that use the same device, I have reinstalled xp and all the pc drivers and still no luck, for a reason I am getting the same error. Your help is appreciated.

Posted

If you use the example script I supply are the COM ports all listed in the combo box?

If you select COM 7 do you get an error with my script?

Can you post the exact code you are using. If it works in W7 then it should work in XP.

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.
Posted (edited)

Hi Martin,

I've downloaded COMMGvv2.zip. It is working.

Thanks.

Edited by KLM

K L M
------------------
Real Fakenamovich
------------------
K L M
------------------
Real Fakenamovich
------------------

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
×
×
  • Create New...