Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'python.': 0.04; 'subject:Python': 0.05; 'ascii': 0.07; 'python': 0.08; '21,': 0.09; 'garbage': 0.09; 'to:addr:comp.lang.python': 0.09; 'am,': 0.12; '"space"': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.18; 'cc:no real name:2**0': 0.20; 'to:2**1': 0.21; 'header:In- Reply-To:1': 0.22; 'cc:2**0': 0.24; 'bit': 0.28; 'print': 0.29; 'cc:addr:python.org': 0.29; 'nov': 0.29; 'correct': 0.29; 'received:209.85.216.46': 0.32; 'received:mail- qw0-f46.google.com': 0.32; 'message-id:@gmail.com': 0.33; 'there': 0.33; 'done': 0.34; 'set.': 0.34; 'something': 0.35; 'subject:/': 0.35; 'connection': 0.36; 'device': 0.36; 'subject:with': 0.36; 'charset:us-ascii': 0.37; 'received:192': 0.37; 'received:google.com': 0.37; 'using': 0.38; 'received:209.85': 0.38; 'characters': 0.39; 'should': 0.39; 'else': 0.39; 'subject: (': 0.40; "it's": 0.40; 'received:209': 0.40; 'received:192.168': 0.40; 'once': 0.60; 'your': 0.61; 'header:Message-Id:1': 0.62; 'high': 0.67; 'hand,': 0.76; 'low,': 0.84; 'ascii.': 0.91; 'subject:Serial': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=urLliDFkTnlBusGQ/tztcYFFlhQp/RqvaZS512hecXY=; b=U/ZdvX47gZSN+zrhXoGVXn9tWg3Kb/3M8kWAP2ZdW52Rl3A1Nm8XDdtTWNB5Ic5ESA OdltXApPSPauJF62m3nANXs1Gl52Tfu5vE0P9sCtpCrgwrlpUMg4LuecWzg5AabjX89o 3TIOJqQhZMFiIVMwQTODaUBRc8lm4BVf10/VQ= Subject: Re: Non-POSIX parity (mark/space) with Python-Serial on Linux. Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: David Riley In-Reply-To: <2723247.1219.1321892899941.JavaMail.geo-discussion-forums@yqzz20> Date: Mon, 21 Nov 2011 11:47:53 -0500 Content-Transfer-Encoding: quoted-printable References: <27511132.925.1321884055247.JavaMail.geo-discussion-forums@yqnf38> <2723247.1219.1321892899941.JavaMail.geo-discussion-forums@yqzz20> To: comp.lang.python@googlegroups.com, Matthew Lenz X-Mailer: Apple Mail (2.1251.1) Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1321894079 news.xs4all.nl 6960 [2001:888:2000:d::a6]:60267 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:16024 On Nov 21, 2011, at 11:28 AM, Matthew Lenz wrote: > Using 8N1 under minicom with this device resulted in garbled text when = once connected. Connection using 7M1 resulted in the correct text. So = there must be something else that needs to be done in my python program = correct? Under minicom in 8N1, it's going to look garbled because the high bit = will always be set. Minicom will try to spit out those characters = anyway, which will print out whatever extended ASCII garbage your = terminal supports in the 0x80-0xFF range. Programmatically, though, you = can strip off the high bit when you're receiving it in Python. "Space" parity, on the other hand, should look normal under Minicom = because the high bit will always be low, giving you standard 7-bit = ASCII. - Dave=