Skip to content

can not find serial port #4861

Closed
Closed

Description

@zcqh007

hi:
i use wsl ubuntu 18.04LTS, but can not open any serial port .use dmesg the result like this
[ 0.121676] Microsoft 4.4.0-18362.476-Microsoft 4.4.35
[ 2.258282] <3>init: (1) ERROR: UtilCreateProcessAndWait:360: /bin/mount failed with status 0
[ 2.258288] 2000
[ 2.318393] <3>init: (1) ERROR: UtilCreateProcessAndWait:360: /bin/mount failed with status 0
[ 2.318399] 2000
please tell me how i can do.
e ,my english is so poor ,sorry.

Activity

  1. sirredbeard commented on Feb 15, 2020

    @sirredbeard
    Contributor

    Serial ports are accessible on WSL as followed: COMx as /dev/ttySx For example, COM5 will be /dev/ttyS5.

    To read and write, you may need to set permissions:

    chmod 666 /dev/ttyS5

  2. KaiDroste commented on Apr 30, 2020

    @KaiDroste

    Hi if I type 'chmod 666 /dev/ttyS9' for my FTDI chip wich is shown as COM9 into the device manager I get: Operation not permitted
    How do I get it work?
    How can I list the usb ports? lsusb shows nothing.

    EDIT: With sudo it works

  3. diegovisentin commented on Jan 4, 2021

    @diegovisentin

    Does it also work on WSL2?
    (from docs it seems that WLS1 supports serial ports but not WLS2)

  4. added
    wsl2
    on May 6, 2021
  5. microsoft-github-policy-service commented on Feb 1, 2024

    @microsoft-github-policy-service
    Contributor

    This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

    Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    wsl2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions