-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gort scan serial - not returning anything on Windows 7 #27
Comments
Thanks for reporting this, @janaka @hunterboerner I know you had committed the original windows scanning code, did you run on Win7 or Win8+? |
I tested it on Win8. |
OK got it. Someone will have to dig into this who has a Win7 install. |
I'm not sure if this is still an open issue for anyone, but I ran into this today, as well, on a Windows 10 install. The kicker was that it worked perfectly yesterday, but it stopped working after I did the gort arduino install. During the install of WinAVR (I think), my "PATH" variable value got nuked somehow. Being that the scan command executes powershell in a manner that relies on it being in the PATH, it was silently failing. The way I found that out what was going on was by snatching the following from the "scan.go" file and plugging it into a new "Go" application to print the output of the underscore (though I had to rename the variable): out, _ := exec.Command("powershell", "Get-WmiObject Win32_SerialPort", "|", "Select-Object Name, DeviceID, Description").Output() What I saw was this: D:/repos/Go/src/Gobot/Gobot.exe [D:/repos/Go/src/Gobot] Underscore value: Luckily, I had recorded my PATH variable in a screencast a couple of days ago, so I just manually typed all of the paths back in, and the "scan" command started displaying the output again. I hope this helps anyone still struggling with this issue. |
I just verified that when the WinAVR install takes place (at least on my machine :-)), it overwrites the Path variable instead of appending to it. Not sure if this is Win10-specific, but if you have that option ("Add directories to Path") checked during the installation, your Path variable is no more. I thought it had completely nuked it only because I had uninstalled WinAVR just prior to figuring out what was going on, so the uninstall took the two AVR directories out of the PATH variable, which were the only ones left in there. |
Can confirm what athorsen has written. He saved me a hours of work. |
Wow, I did not realize that the WinAVR install "semi-worked" on Win10. That is good news. I have been looking into using the latest avrdude version from their build server, instead of the old old WinAVR binary. Ran into some challenges related to the needed windows drivers. I'm trying to get Zadig running properly on my Win10 test machine. Another option might be taking the binaries from the latest Arduino build. Or possibly even installing Arduino and then Gort using the Arduino command line interface. Not sure if that would be considered too "heavy"? It certainly would improve compatibility, as well as allowing for full compilation of code from INO files. Any thoughts from anyone on this? |
A work-around for the above would be for the Gort install to save and put back the PATH as it was before as part of triggering the WinAVR install. |
I've got an Arduino Uno plugged into my PC running Win7 Pro 64 bit. Arduino IDE recognises it on COM3. However gort scan serial returns nothing.
Running the following works
gort arduino upload fermata COM3
And then running node cylone scripts (e.g. led blink) works.
Any ideas?
Thanks
The text was updated successfully, but these errors were encountered: