Jump to content

Windows 10 problem with commMg.au3 serial send to arduino


Recommended Posts

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
Link to comment
Share on other sites

  • 1 month later...

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.

Link to comment
Share on other sites

  • 3 weeks later...
  • 10 months later...

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

Link to comment
Share on other sites

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
Link to comment
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
 Share

×
×
  • Create New...