Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(583)

Issue 873903002: Set serial connection parameters immediately on connect. (Closed)

Created:
5 years, 11 months ago by Reilly Grant (use Gerrit)
Modified:
5 years, 10 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set serial connection parameters immediately on connect. This change merges the initial call to SetCommState/tcsetattr with the call to ConfigurePort so that parameters such as baud rate are configured immediately when the port is opened. Default values for these parameters are now always applied. This works around an issue with some serial adapter drivers on Windows that report an invalid baud rate through GetCommState. Having the intended baud rate available for the first call to SetCommState allows an application to provide a valid value so that Chrome does not have to guess. BUG=448407 Committed: https://crrev.com/ea2760c173e70ddcdcc64e0522a93d6a08785cae Cr-Commit-Position: refs/heads/master@{#313604}

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : Add a comment explaing the "set" notation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+314 lines, -225 lines) Patch
M device/serial/serial_connection_factory.cc View 2 chunks +8 lines, -7 lines 0 comments Download
M device/serial/serial_io_handler.h View 5 chunks +12 lines, -1 line 0 comments Download
M device/serial/serial_io_handler.cc View 5 chunks +39 lines, -2 lines 0 comments Download
M device/serial/serial_io_handler_posix.h View 1 chunk +1 line, -2 lines 0 comments Download
M device/serial/serial_io_handler_posix.cc View 4 chunks +95 lines, -84 lines 0 comments Download
M device/serial/serial_io_handler_win.h View 1 chunk +1 line, -1 line 0 comments Download
M device/serial/serial_io_handler_win.cc View 6 chunks +60 lines, -46 lines 0 comments Download
M device/serial/serial_service_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M device/serial/test_serial_io_handler.h View 1 chunk +2 lines, -1 line 0 comments Download
M device/serial/test_serial_io_handler.cc View 2 chunks +11 lines, -15 lines 0 comments Download
M extensions/browser/api/serial/serial_api.cc View 1 chunk +3 lines, -7 lines 0 comments Download
M extensions/browser/api/serial/serial_connection.h View 1 chunk +2 lines, -1 line 0 comments Download
M extensions/browser/api/serial/serial_connection.cc View 1 chunk +14 lines, -2 lines 0 comments Download
M extensions/renderer/api/serial/serial_api_unittest.cc View 1 2 2 chunks +65 lines, -56 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Reilly Grant (use Gerrit)
Ken, this patch ended up being a little more involved than I planned. Please take ...
5 years, 11 months ago (2015-01-26 21:41:36 UTC) #2
Ken Rockot(use gerrit already)
https://codereview.chromium.org/873903002/diff/20001/extensions/renderer/api/serial/serial_api_unittest.cc File extensions/renderer/api/serial/serial_api_unittest.cc (right): https://codereview.chromium.org/873903002/diff/20001/extensions/renderer/api/serial/serial_api_unittest.cc#newcode192 extensions/renderer/api/serial/serial_api_unittest.cc:192: device::serial::DATA_BITS_SEVEN, // set what is all this " // ...
5 years, 10 months ago (2015-01-28 19:22:11 UTC) #3
Reilly Grant (use Gerrit)
https://codereview.chromium.org/873903002/diff/20001/extensions/renderer/api/serial/serial_api_unittest.cc File extensions/renderer/api/serial/serial_api_unittest.cc (right): https://codereview.chromium.org/873903002/diff/20001/extensions/renderer/api/serial/serial_api_unittest.cc#newcode192 extensions/renderer/api/serial/serial_api_unittest.cc:192: device::serial::DATA_BITS_SEVEN, // set On 2015/01/28 19:22:10, Ken Rockot wrote: ...
5 years, 10 months ago (2015-01-28 21:00:09 UTC) #4
Ken Rockot(use gerrit already)
ok - lgtm but please document above the tests what the significance of "set" is ...
5 years, 10 months ago (2015-01-28 21:25:34 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/873903002/40001
5 years, 10 months ago (2015-01-28 22:08:54 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-01-28 23:08:54 UTC) #8
commit-bot: I haz the power
5 years, 10 months ago (2015-01-28 23:10:27 UTC) #9
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ea2760c173e70ddcdcc64e0522a93d6a08785cae
Cr-Commit-Position: refs/heads/master@{#313604}

Powered by Google App Engine
This is Rietveld 408576698