Windows Subsystem for Linux + COM Ports?
DavidZemon
Posts: 2,973
Has anyone read anything about Microsoft's support of COM ports via the new "Windows Subsystem for Linux?" I've been playing a bit with WSL and like it a lot - great idea and pretty good implementation it seems. But... for us embedded guys, it's only so useful without access to serial ports.
I found this: http://stackoverflow.com/questions/38444497/trouble-locating-my-serial-ports-using-bash-on-windows-10
Haven't tried yet... More hoops than I care to jump through tonight.
I found this: http://stackoverflow.com/questions/38444497/trouble-locating-my-serial-ports-using-bash-on-windows-10
Haven't tried yet... More hoops than I care to jump through tonight.
Comments
Oddly I can see: /dev/ttyS0 and /dev/ttyS0 listed. The first does not seem to be connected to anything and the second seems to be the console:
It does not show my PropPlug.
So I wrote a little node program to list serial ports: It does not find any at all.
Meanwhile I have cygwin. Which has no problem:
My program lists finds the PropPlug:
The following goes out over my PropPlug OK.
$ echo "kjsdfhksdhfksjdhfksdjhfksdjf" > /dev/ttyS3
I love the url that you get linked to during installing WSL:
https://aka.ms/wslusers
I'm playing with it now, trying to get it to work with propeller-load and therefore PropWare. I'll update here and probably the PropWare thread when (if) I get it working
Grrr...
Better than nothing I guess.
My Win 10 on my Surface Pro 4, which recently updated itself, shows no /dev/ttySwhatever. I have a working Prop Plug connected that shows up as COM4 under SimpleIDE and works there.
Now, I have two Windows 10 devices: a laptop that shipped with Windows 10 and is only a month old, and a virtual machine that was upgraded from Windows 8. The laptop didn't run into any trouble (other than the problems described above), but the virtual machine did. It attempted to install the update and failed, but I was able to easily get past with the help of this webpage. In short, do this:
1. Go to Start > type Regedit
2. Launch “regedit (run command)“
3. Navigate to and select the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RequestedAppCategories\8b24b027-1dee-babb-9a95-3517dfb9c552
4. Delete the selected registry key
5. Reboot your PC
6. Re-scan for updates.
1. Go to Start > type Regedit
If by "start" you mean the Windows Icon in the panel at the bottom of the screen.
There is no place to type anything there when that list of applications pops up.
However I do not have a registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RequestedAppCategories\8b24b027-1dee-babb-9a95-3517dfb9c552
I have some other weird hex key numbers down there.
Jees. They say Linux config files are cryptic! This is insane.
Did you run into the issue described on that page? I would think that, if you don't have the registry key, you wouldn't run into the problem and it would be a moot point.
And that web page describes some funky registry hacking that I see no reason for.
My issue is that inside the "winbuntu" subsystem for Windows I cannot see any attached serial devices:
But I know my PropPlug is on COM4 and works fine.