{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/1929","repository_url":"https://api.github.com/repos/Microsoft/BashOnWindows","labels_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/1929/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/1929/comments","events_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/1929/events","html_url":"https://github.com/Microsoft/BashOnWindows/issues/1929","id":221983585,"number":1929,"title":"COM Port Access in WSL","user":{"login":"nosajthenitram","id":2650370,"avatar_url":"https://avatars0.githubusercontent.com/u/2650370?v=3","gravatar_id":"","url":"https://api.github.com/users/nosajthenitram","html_url":"https://github.com/nosajthenitram","followers_url":"https://api.github.com/users/nosajthenitram/followers","following_url":"https://api.github.com/users/nosajthenitram/following{/other_user}","gists_url":"https://api.github.com/users/nosajthenitram/gists{/gist_id}","starred_url":"https://api.github.com/users/nosajthenitram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nosajthenitram/subscriptions","organizations_url":"https://api.github.com/users/nosajthenitram/orgs","repos_url":"https://api.github.com/users/nosajthenitram/repos","events_url":"https://api.github.com/users/nosajthenitram/events{/privacy}","received_events_url":"https://api.github.com/users/nosajthenitram/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":37,"created_at":"2017-04-16T01:28:33Z","updated_at":"2017-05-01T17:26:16Z","closed_at":null,"body":"In an attempt to use the com ports from WSL, I encountered the following: \r\n\r\npublic@systemhost:/dev$ ls ttyS4 -l  crw-r----- 1 root root 4, 68 Apr 14 21:23 ttyS4  \r\n\r\npublic@systemhost:/dev$ cu /dev/ttyS4  cu: /dev/ttyS4: System not found \r\n\r\npublic@systemhost:/dev$ sudo cu /dev/ttyS4  cu: /dev/ttyS4: System not found\r\n\r\nThis is a USB to serial adapter. I've tried to open each of the ports present on my system, but no such luck. "},"comment":{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/comments/298380230","html_url":"https://github.com/Microsoft/BashOnWindows/issues/1929#issuecomment-298380230","issue_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/1929","id":298380230,"user":{"login":"stehufntdev","id":18357595,"avatar_url":"https://avatars3.githubusercontent.com/u/18357595?v=3","gravatar_id":"","url":"https://api.github.com/users/stehufntdev","html_url":"https://github.com/stehufntdev","followers_url":"https://api.github.com/users/stehufntdev/followers","following_url":"https://api.github.com/users/stehufntdev/following{/other_user}","gists_url":"https://api.github.com/users/stehufntdev/gists{/gist_id}","starred_url":"https://api.github.com/users/stehufntdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stehufntdev/subscriptions","organizations_url":"https://api.github.com/users/stehufntdev/orgs","repos_url":"https://api.github.com/users/stehufntdev/repos","events_url":"https://api.github.com/users/stehufntdev/events{/privacy}","received_events_url":"https://api.github.com/users/stehufntdev/received_events","type":"User","site_admin":false},"created_at":"2017-05-01T17:26:16Z","updated_at":"2017-05-01T17:26:16Z","body":"@dhalbert, yes I can still read fine from the device via putty.  To follow-up on the experiment above, I updated your sample code to call SetCommState without changing the values from GetCommState (i.e. set to the current).  After this, the device worked fine so the board seems to have some requirement that after opening the state has to be set."}}
{"actor":{"display_login":"stehufntdev"}}