Hello,
Been following this as I am the same as zapoc. I just don't want to use a Raspberry PI or even a separate Linux system as I am running a Windows HTPC. Both versions of Hyperion run fine on Windows 10 Linux Subsystem (WSL). The issue is the handshake of the Arduino from Hyperion in WSL.
My Arduino is connected to COM4 in Windows 10, so WSL it shows as /dev/ttyS4. The other issue is that the permissions for that device and other devices are set to root only. So, you have to change the permissions in order to use that device effectively.
ls -la /dev/ttyS2 /dev/ttyS3 /dev/ttyS4
crw-r----- 1 root root 4, 66 Jul 3 21:03 /dev/ttyS2 > COM2
crw-r----- 1 root root 4, 67 Jul 3 21:03 /dev/ttyS3 > COM3
crw-rw-rw- 1 root root 4, 68 Jul 3 21:03 /dev/ttyS4 > COM4
Permission change back when exit BashOnWindows.
Here is the device settings of the Arduino.
stty -F /dev/ttyS4 -a
speed 115200 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = <undef>; eol = <undef>; eol2 = <undef>; swtch = <undef>;
start = <undef>; stop = <undef>; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; min = 0; time = 0;
-parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany -imaxbel -iutf8
-opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke -flusho -extproc
Then using basic cu with debugging turn on, I am able to connect to the Arduino in WSL.
cu -l /dev/ttyS4 --debug all
cu: fconn_open: Opening port /dev/ttyS4 (default speed)
cu: fsserial_open: Baud rate is 115200
cu: fconn_set: Changing setting to 0, 0, 2
Connected.
Here is a link to GitHub for Microsoft BashOnWindows discussing COM Port access: https://github.com/Microsoft/BashOnWindows/issues/1929
Another link from MSDN about Serial Support on WSL: https://blogs.msdn.microsoft.c…dows-subsystem-for-linux/