modbus
modbus copied to clipboard
Error: "System cannot find the file specified." opening port when port number is high ex: "COM15"
I have windows 10 and when I try to open serial port "COM15" I got: "System cannot find the file specified."
the issue is solved if I manually changed it to another closer port to COM1 for example: "COM2"
Problem is solved here:
https://github.com/goburrow/serial/pull/13
Hello, Problem is not solved. I use com10 and i recieved - COM10 - The system cannot find the file specified. I need your help
Hello, Problem is not solved. I use com10 and i recieved - COM10 - The system cannot find the file specified. I need your help
Check this pull request, it has the changes needed https://github.com/goburrow/serial/pull/13
Hello, Problem is not solved. I use com10 and i recieved - COM10 - The system cannot find the file specified. I need your help
Check this pull request, it has the changes needed goburrow/serial#13
Do I understand correctly? i need use this string, for example: handler := modbus.NewRTUClientHandler("\\.\com10")
Hello, Problem is not solved. I use com10 and i recieved - COM10 - The system cannot find the file specified. I need your help
Check this pull request, it has the changes needed goburrow/serial#13
Do I understand correctly? i need use this string, for example: handler := modbus.NewRTUClientHandler("\.\com10")
Yes, I think name must be in uppercase: "\\.\COM10" Can you try please?
thank you, editor deleted first 2 back slaches
this way work for me.
and it work without uppercas
thank you, editor deleted first 2 back slaches
this way work for me. and it work without uppercas
Great, nice to know!
i am using windows 7, if i use the above mentioned method i am getting same error.
CreateFile("\\.\COM2", GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING,0, NULL);
can anyone help me on this ?
CreateFile("\.\COM2", GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING,0, NULL);
You should do it on this way:
CreateFile("\\\\.\\COM2", GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING,0, NULL);
tried that too, but still same