-
Notifications
You must be signed in to change notification settings - Fork 48
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
enumerate/0 does not seem to work in WSL #53
Comments
Thanks for the report! I've never tried |
I’ve tried this at work on a colleage’s PC who needed a small tool I’ve developed: it was my first time in WSL. I thought it would be simpler to setup as I use Nix to handle the environment and WSL is expected to behave as Linux, but heh, that’s Windows. I’m not completely surprised in the end. Except this, all seems to work properly. If I find something interesting I’ll let you know or provide a patch. |
Sorry I should have read closer. That is cool that the serial ports are actually working |
@michaelkschmidt Reading this article from Microsoft, it seems it is. I’ve been able to get a
|
I can confirm that the serial ports work properly from WSL. I don't use |
Setup
Description
When a serial port is visible as
COM5
on Windows, it is accessible as/dev/ttyS5
in the WSL. After ensuring access rights are OK, it is possible to open the connection withnerves_uart
:However, it is not enumerated properly.
Expected Behavior
Nerves.UART.enumerate/0
should return a list of available serial ports.Actual Behavior
Nerves.UART.enumerate/0
always returns%{}
, even if a device is connected.Steps to Reproduce the Problem
Setup a project with
nerves_uart
in WSL.Connect a device and get its COM port in the device manager on Windows.
In the WSL shell, do:
where
x
is the COM port number inCOMx
.Assert the communication works properly.
Try to enumerate the ports with
nerves_uart
.The text was updated successfully, but these errors were encountered: