Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using the serial port in a Ubuntu for W10 (WSL)

I'd like to know if it is possible to establish communication via a serial port in an Ubuntu for W10 terminal using the USB interface.

Concretely, I am using a Sparkfun edge board and in this tutorial, it is explained how to detect if the device is connected by checking /dev/tty*. However, it does not work in my testbed, nothing new appears in the directory.

Probably, it is related to using Ubuntu over Windows, but I'd like to be sure before moving to another system.

like image 753
Bub Espinja Avatar asked Sep 12 '25 03:09

Bub Espinja


1 Answers

This is a bit old, but it should've worked then... New devices don't show up in the directory, they're already all there, so you need to know what COM port it's on, let's say it's on COM4, then your device will be /dev/ttyS4 in linux.

I've been using this for well over a year to upload files to my MCU boards kinda like what you want to do, and as long as the device shows up as a COM interface in Windows, and isn't in use, you should be able to connect it to it in WSL as /dev/ttyS[COM#].

Hope this helps, even if it's a bit delayed.

like image 173
poorandunlucky Avatar answered Sep 13 '25 19:09

poorandunlucky