• <i id='iGGhu'><tr id='iGGhu'><dt id='iGGhu'><q id='iGGhu'><span id='iGGhu'><b id='iGGhu'><form id='iGGhu'><ins id='iGGhu'></ins><ul id='iGGhu'></ul><sub id='iGGhu'></sub></form><legend id='iGGhu'></legend><bdo id='iGGhu'><pre id='iGGhu'><center id='iGGhu'></center></pre></bdo></b><th id='iGGhu'></th></span></q></dt></tr></i><div id='iGGhu'><tfoot id='iGGhu'></tfoot><dl id='iGGhu'><fieldset id='iGGhu'></fieldset></dl></div>
    <legend id='iGGhu'><style id='iGGhu'><dir id='iGGhu'><q id='iGGhu'></q></dir></style></legend>
      <bdo id='iGGhu'></bdo><ul id='iGGhu'></ul>

    1. <tfoot id='iGGhu'></tfoot>
      1. <small id='iGGhu'></small><noframes id='iGGhu'>

        Pyserial 缓冲区的填充速度比我读的快

        时间:2023-07-23

        <tfoot id='NDyEP'></tfoot>
              <bdo id='NDyEP'></bdo><ul id='NDyEP'></ul>

              • <i id='NDyEP'><tr id='NDyEP'><dt id='NDyEP'><q id='NDyEP'><span id='NDyEP'><b id='NDyEP'><form id='NDyEP'><ins id='NDyEP'></ins><ul id='NDyEP'></ul><sub id='NDyEP'></sub></form><legend id='NDyEP'></legend><bdo id='NDyEP'><pre id='NDyEP'><center id='NDyEP'></center></pre></bdo></b><th id='NDyEP'></th></span></q></dt></tr></i><div id='NDyEP'><tfoot id='NDyEP'></tfoot><dl id='NDyEP'><fieldset id='NDyEP'></fieldset></dl></div>
                  <tbody id='NDyEP'></tbody>
                  <legend id='NDyEP'><style id='NDyEP'><dir id='NDyEP'><q id='NDyEP'></q></dir></style></legend>
                • <small id='NDyEP'></small><noframes id='NDyEP'>

                • 本文介绍了Pyserial 缓冲区的填充速度比我读的快的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在以 921600 的波特率通过串行从微控制器读取数据.我正在读取大量 ASCII csv 数据,由于它来得如此之快,因此缓冲区已被填满,其余的数据也已填满在我阅读之前迷路了.我知道我可以手动编辑 serialwin32 的 pyserial 源代码以增加缓冲区大小,但我想知道是否有其他方法?

                  I am reading data from a microcontroller via serial, at a baudrate of 921600. I'm reading a large amount of ASCII csv data, and since it comes in so fast, the buffer get's filled and all the rest of the data gets lost before I can read it. I know I could manually edit the pyserial source code for serialwin32 to increase the buffer size, but I was wondering if there is another way around it?

                  我只能估计我将收到的数据量,但大约是 200kB 的数据量.

                  I can only estimate the amount of data I will receive, but it is somewhere around 200kB of data.

                  推荐答案

                  有一个接收缓冲区"滑块,可从设备管理器中的 com 端口属性页面访问.它可以通过端口设置"选项卡上的高级"按钮找到.

                  There's a "Receive Buffer" slider that's accessible from the com port's Properties Page in Device Manager. It is found by following the Advanced button on the "Port Settings" tab.

                  更多信息:

                  http://support.microsoft.com/kb/131016 在标题 接收缓冲区

                  http://tldp.org/HOWTO/Serial-HOWTO-4.html 在标题中断

                  试着把它降低一两个档次.

                  Try knocking it down a notch or two.

                  这篇关于Pyserial 缓冲区的填充速度比我读的快的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:使用 Python 和 pyserial 访问 USB 串口 下一篇:pyserial 中的 Serial.available() 等价物是什么?

                  相关文章

                  • <bdo id='L8reJ'></bdo><ul id='L8reJ'></ul>

                    <tfoot id='L8reJ'></tfoot>
                    1. <legend id='L8reJ'><style id='L8reJ'><dir id='L8reJ'><q id='L8reJ'></q></dir></style></legend>

                    2. <i id='L8reJ'><tr id='L8reJ'><dt id='L8reJ'><q id='L8reJ'><span id='L8reJ'><b id='L8reJ'><form id='L8reJ'><ins id='L8reJ'></ins><ul id='L8reJ'></ul><sub id='L8reJ'></sub></form><legend id='L8reJ'></legend><bdo id='L8reJ'><pre id='L8reJ'><center id='L8reJ'></center></pre></bdo></b><th id='L8reJ'></th></span></q></dt></tr></i><div id='L8reJ'><tfoot id='L8reJ'></tfoot><dl id='L8reJ'><fieldset id='L8reJ'></fieldset></dl></div>

                      <small id='L8reJ'></small><noframes id='L8reJ'>