Search the Community
Showing results for tags 'commmg'.
Found 3 results
Hello everyone, I usually use the include commMg.au3 to control the Arduino through some COM port via serial, in previous versions of Windows until version 8.1 works perfectly. Recently I updated my windows to version 10 and when I use this include no longer works and the error that appears is "Port does not exist." Someone is going through a similar situation? Please can help me solve? CommMG.au3 commg.dll testeporta.au3
So I'm trying to send a string of data to Arduino using CommMG UDF. It seems that Arduino is not receiving it. I used Device Monitoring Studio and it shows that the data is sent fine and looks exactly the same as if I sent it from Arduino Serial Monitor. Is CommMG compatible with USB? Global $CMPort = 9 Global $CmBoBaud = 9600 Global $sportSetError = '' Global $CmboDataBits = 8 Global $CmBoParity = "none" Global $CmBoStop = 1 Global $setflow = 2 _CommSetPort($CMPort, $sportSetError, $CmBoBaud, $CmboDataBits, $CmBoParity, $CmBoStop, $setflow) If @error Then MsgBox(16,"Error!","Can't connect to Arduino on port - "&$CMPort) Exit EndIf _CommSetRTS(0) _CommSetDTR(0) _CommSendString("x" & 128 & "y" & 256 & "e", 1)
Hi, I´m making a script to send and receive data to/from Bluetooth serial, but I´m having a problem to connect to the com port. The problem is that I´ve two ports, one is the COM4 and the other is COM6 (not using at the same time) COM4 is a standard com port thought USB port that I can connect using CommMG, it´s working fine. _CommSetPort($port, $sportSetError, 9600, 8, 0 ,1,0)COM6 is a Bluetooth serial, that only works (I mean I can connect, send and receive data) with _WinAPI_CreateFile. $openport = _WinAPI_CreateFile("COM6", 2, 6) . . . _WinAPI_ReadFile($openport, DllStructGetPtr($tBuffer), 1, $nRead) $sText = BinaryToString(DllStructGetData($tBuffer, 1)) If I try to connect the COM4 with _WinAPI_CreateFile it´s not working... and when I try to connect with CommMG to COM6 it´s give a -16 (Port not found) error.. The problem is: How can I open/connect to the bluetooth (COM6) port using CommMG ( to write one single script instead of two - one using CommMG and another using _WinAPI_CreateFile)... Thanks in advance!