Issue metadata
Sign in to add a comment
|
chrome.serial API does incomplete raw setup for serial interface
Reported by
karl.fes...@gmail.com,
Apr 26 2017
|
||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36 Steps to reproduce the problem: 1. For some reason my /dev/ttyACM0 had a min = 0; time = 0 configuration. #stty <device> min 0 time 0 2. connect using chrome.serial API 3. try to receive anything What is the expected behavior? according to line 168 in /device/serial/serial_io_handler_posix.cc "// Set flags for 'raw' operation" the flags should be set to a raw configuration stty --help tells me: raw same as -ignbrk ... vmin 1 time 0 ,so I expect vmin to be set to 1 and time set to 0 this should be the c++ -lines: // (struct termios2 options;) options.c_cc[VTIME]=0; options.c_cc[VMIN]=1; this behavior appears since Chromium 54. What went wrong? When connecting to that interface (/dev/ttyACM0 with min = 0) my app received nothing since '-icanon' makes the interface wait to infinity if min = 0 and time = 0. /dev/ttyACM1 had min configured to 1 so my app worked when I put in a another device first. Which lead me to investigate this issue. Did this work before? Yes < Chromium 54 Does this work in other browsers? N/A Chrome version: 57.0.2987.133 Channel: n/a OS Version: Flash Version: Shockwave Flash 24.0 r0 options.c_cc[VTIME]=0; options.c_cc[VMIN]=1;
,
Apr 26 2017
This should be in, Components: Platform>Extensions>API which i wasn't able to select when i posted this issue
,
Apr 27 2017
,
Jun 7 2017
,
Jul 11 2017
Adding the label TE-NeedsTriageHelp and requesting respective team to look into this issue.
,
Jul 11
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
|||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||
Comment 1 Deleted