Jump to content

Recommended Posts

Posted (edited)

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

Edited by willindows
  • 1 month later...
Posted

I have same issue but with other virtual serial devices including Bluetooth SPP which used to work under Win7 but now returns "port does not exist".

_CommListPorts returns "COM9|COM6|COM10|COM8"

_CommSetPort ( 9, $err) returns "port does not exist"

However a USB-->Serial adapter with Proific 2303 chipset does not give this error so does not seem to be affecting all Win10 COM ports.

  • 3 weeks later...
Posted

i have this error too but doesn't know how to solve it. the error "port does not exist" in the udf have the error code of -16 which is "port not found" which confused me because _CommListPorts show me the same port.:blink:

  • 10 months later...
Posted

Sorry to necro an old thread,

Was anyone able to figure out this issue?

On one of my machines the Arduino is linked to Com3, Com3 shows in the list of available ports using _CommlistPorts()

but it throws an error -16 - ERROR=-16 $sportSetError=port does not exist

Any assistance would be appreciated..

Cheers

NBJ

Posted (edited)

Thanks AutoBert,

For anyone else searching for a solution, I found that I am having some success using the kernel32.dll method from the thread

https://www.autoitscript.com/forum/topic/80344-serial-communication-using-kernel32dll

 

Edited by NBJ
link to thread

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