<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[pyserial with 250000 bit&#x2F;s]]></title><description><![CDATA[<p dir="auto">Hi together,</p>
<p dir="auto">i want to use the usb connected to a usb2serial adapter with 250000 bits/s. But the pyserial packet allows only 115000. Can anyone give me a hint to upgrade the packet? There are a few informations about this problem using a rpi (<a href="http://www.alexenglish.info/2014/04/patching-pyserial-fix-baud-rate-limitations" rel="nofollow">http://www.alexenglish.info/2014/04/patching-pyserial-fix-baud-rate-limitations</a>) but as far as I understand this only happens in older versions of pyserial. Since 2.7 it should be solved. I use 3.4.<br />
So mybe it's not a problem with pyserial but with a kernel modul?</p>
<p dir="auto">Thanks for help</p>
]]></description><link>http://community.onion.io/topic/3393/pyserial-with-250000-bit-s</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 03:07:55 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/3393.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 Jan 2019 09:55:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to pyserial with 250000 bit&#x2F;s on Fri, 04 Jan 2019 09:55:57 GMT]]></title><description><![CDATA[<p dir="auto">Hi together,</p>
<p dir="auto">i want to use the usb connected to a usb2serial adapter with 250000 bits/s. But the pyserial packet allows only 115000. Can anyone give me a hint to upgrade the packet? There are a few informations about this problem using a rpi (<a href="http://www.alexenglish.info/2014/04/patching-pyserial-fix-baud-rate-limitations" rel="nofollow">http://www.alexenglish.info/2014/04/patching-pyserial-fix-baud-rate-limitations</a>) but as far as I understand this only happens in older versions of pyserial. Since 2.7 it should be solved. I use 3.4.<br />
So mybe it's not a problem with pyserial but with a kernel modul?</p>
<p dir="auto">Thanks for help</p>
]]></description><link>http://community.onion.io/post/18612</link><guid isPermaLink="true">http://community.onion.io/post/18612</guid><dc:creator><![CDATA[Volker Helms]]></dc:creator><pubDate>Fri, 04 Jan 2019 09:55:57 GMT</pubDate></item><item><title><![CDATA[Reply to pyserial with 250000 bit&#x2F;s on Sat, 19 Jan 2019 12:53:17 GMT]]></title><description><![CDATA[<p dir="auto">Short update to my question. As far as I understand the problem isn't the pyserial library. It seems like the problem is how linux works with serial devices. Often the tty port itselfs don't allow more than  115kbits. So normally you can modify the port to support higher speeds. Some informations are here: <a href="https://discuss.96boards.org/t/linaro-ttymsm1-uart0-dmx-250000-baudrate/887" rel="nofollow">https://discuss.96boards.org/t/linaro-ttymsm1-uart0-dmx-250000-baudrate/887</a><br />
So I have to execute the following commands:<br />
apt-get install setserial<br />
setserial -a /dev/ttyUSB0 spd_cust<br />
setserial -a /dev/ttyUSB0 divisor 96<br />
stty cs8 -parenb cstopb -F /dev/ttyUSB0 38400<br />
setserial -a /dev/ttyUSB0</p>
<p dir="auto">But unfortunately setserial and stty are not availible in the repros. But I found them in some newer repros at openwrt. Next problem I have is, that setserial is not working. I get the following error:<br />
root@Omega-11E7:~# setserial -a /dev/ttyUSB0 spd_cust<br />
Cannot get serial info: Not a tty</p>
<p dir="auto">Some additional infos I have found: <a href="https://www.downtowndougbrown.com/2013/11/linux-custom-serial-baud-rates/" rel="nofollow">https://www.downtowndougbrown.com/2013/11/linux-custom-serial-baud-rates/</a><br />
But I don't understand how I can use this formations. I am not a C developer.</p>
<p dir="auto">Hopefully someone can help me with this new informations.<br />
Thanks a lot.</p>
]]></description><link>http://community.onion.io/post/18716</link><guid isPermaLink="true">http://community.onion.io/post/18716</guid><dc:creator><![CDATA[Volker Helms]]></dc:creator><pubDate>Sat, 19 Jan 2019 12:53:17 GMT</pubDate></item><item><title><![CDATA[Reply to pyserial with 250000 bit&#x2F;s on Mon, 11 Mar 2019 08:06:52 GMT]]></title><description><![CDATA[<p dir="auto">I'm having this problem as well.<br />
As far as I can tell I should have 250k baud rate support.</p>
]]></description><link>http://community.onion.io/post/19141</link><guid isPermaLink="true">http://community.onion.io/post/19141</guid><dc:creator><![CDATA[Logan Ferguson]]></dc:creator><pubDate>Mon, 11 Mar 2019 08:06:52 GMT</pubDate></item><item><title><![CDATA[Reply to pyserial with 250000 bit&#x2F;s on Mon, 13 Apr 2020 19:53:00 GMT]]></title><description><![CDATA[<p dir="auto">I ran into the same problem and found the root cause: pySerial v3.2 (and PySerial's master branch up till 2020-4) uses hard coded IOCTL values and these are wrong for the MIPS processor as used in the Onion. It is just impossible to set any custom baud rate different from the default Linux provided baud rates without getting the "not a tty" error.</p>
<p dir="auto">The changes required to fix this are small. Use the correct IOCTL hard coded values and change the offset values for the baudrate settings to the correct position in the underlying C-struct.<br />
I submitted my fix to have this incorporated into pySerial: <a href="https://github.com/pyserial/pyserial/pull/496" rel="nofollow">https://github.com/pyserial/pyserial/pull/496</a></p>
]]></description><link>http://community.onion.io/post/21488</link><guid isPermaLink="true">http://community.onion.io/post/21488</guid><dc:creator><![CDATA[ckielstra]]></dc:creator><pubDate>Mon, 13 Apr 2020 19:53:00 GMT</pubDate></item></channel></rss>