pyserial: failed to readlines() after many hours running.

Grant Edwards invalid at invalid
Sat Oct 11 13:10:57 EDT 2008


On 2008-10-11, Grant Edwards <invalid at invalid> wrote:
> On 2008-10-11, zxo102 <zxo102 at gmail.com> wrote:
>
>> I have a system. An instrument attched to 'com1' is wireless
>> connected to many sensors at different locations.  The
>> instrument can forward the "commands" (from pyserial's
>> write()) to those sensors.  Based on the "commands", the
>> sensors keep sending corresponding data back to the instrument
>> which wraps up those data and put into "com1" . The
>> readlines() of pyserial pick up those data for processing. The
>> data ?string' does not have "\n".
>
> If the data you're reading doesn't contain "\n", then you can't
> use readline() or readlines().

P.S.

To the OP: I normally block postings from google groups (which
is where almost all Usenet spam comes from), so I only saw your
posting because I was experimenting with my spam filtering.
I'll only see additional postings if you post from a real news
server or if somebody who does so quotes one of your postings.

Yes, that sort of sucks. But, until Google shuts off the spam
spigot, you're going to get short shrift if you post from
Google.

There are plenty of free news servers for the text groups like
c.l.p, or you can post to the mailing list via gmane.org.

-- 
Grant Edwards                   grante             Yow! They collapsed
                                  at               ... like nuns in the
                               visi.com            street ... they had no
                                                   teen appeal!



More information about the Python-list mailing list