Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #88733

Re: [SerialConnection] Help

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <travisgriggs@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.123
X-Spam-Level *
X-Spam-Evidence '*H*': 0.77; '*S*': 0.02; 'subject:: [': 0.04; 'subject:Help': 0.11; '14px;': 0.16; 'helvetica;': 0.16; 'wrote:': 0.18; 'pieces': 0.19; 'pointed': 0.19; 'subject:] ': 0.20; 'email addr:gmail.com&gt;': 0.22; 'port.': 0.24; 'values': 0.27; 'header :In-Reply-To:1': 0.27; 'received:172.16': 0.29; 'am,': 0.29; 'mix': 0.30; 'lot.': 0.31; 'good.': 0.35; 'received:google.com': 0.35; 'skip:- 20': 0.37; 'auto;': 0.38; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'read': 0.60; 'header:Message-Id:1': 0.63; 'serial': 0.72; 'inline': 0.74; 'subject:skip:S 10': 0.84; 'don\xe2\x80\x99t': 0.91; 'you\xe2\x80\x99ll': 0.91; 'ports': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=c0u3XMZMtCVI70hhavtyCqCcEhDL0rb/Kn3k1TTru2Y=; b=BBn5fsXUYo8ssglSxKg5ST/W9mUhoWBxtpgrpnqJibcgHqRQh715qBu0oo2IqNwcq4 OkNW3FliTOiqC9HJ3qJ4Nj/AoUeXp8nBrd2+OzcQ2OespmOlYchNLIOTR/UAHktjJmXk zEJ2Oid1bfPZJ8l1VXOluHAndXM2Qj8hmEqcouViyBgNy23J/qSrHpY7JfZc8NpLEazM KBCEXD0L/IwKWSpYp+S+FSOP9Uq8YbL+s7hkPN2ibm0VRIo5e4V3nuVyHhbH13/lcZ9g TESbt2Nm7DitZRr/VX5D6cRLTV7r7WPGTdakNAVyLi69Iohf1lSQ0QaFBoS0d67qEvuX hE3Q==
X-Received by 10.66.154.162 with SMTP id vp2mr1812999pab.73.1428596101415; Thu, 09 Apr 2015 09:15:01 -0700 (PDT)
From Travis Griggs <travisgriggs@gmail.com>
Content-Type multipart/alternative; boundary="Apple-Mail=_FDF3E41B-C8C6-4E33-B2B7-2316999B3E11"
Mime-Version 1.0 (Mac OS X Mail 8.2 \(2098\))
Subject Re: [SerialConnection] Help
Date Thu, 9 Apr 2015 09:14:59 -0700
References <CAABAm7x4nuNwQ+31TR7qOFS=BhOjPV-weO=wzD1RoBcxVEj-Qg@mail.gmail.com>
To Python <python-list@python.org>
In-Reply-To <CAABAm7x4nuNwQ+31TR7qOFS=BhOjPV-weO=wzD1RoBcxVEj-Qg@mail.gmail.com>
X-Mailer Apple Mail (2.2098)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.172.1428596110.12925.python-list@python.org> (permalink)
Lines 48
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1428596110 news.xs4all.nl 2878 [2001:888:2000:d::a6]:44049
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:88733

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

> On Apr 7, 2015, at 8:42 AM, Hugo Caldas <hcaldas92@gmail.com> wrote:
> 
>  read and write the port values with multi threading 

Care to elaborate what you mean by this part? In general, serial ports and multi threading don’t mix well. IOW, you’ll need to use multithreading pieces to make sure you serialize your access to your serial port.

As other have pointed out, pyserial is the package you want. Documentation is pretty good. We use it a lot. 

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [SerialConnection] Help Travis Griggs <travisgriggs@gmail.com> - 2015-04-09 09:14 -0700
  Re: [SerialConnection] Help Grant Edwards <invalid@invalid.invalid> - 2015-04-09 16:28 +0000

csiph-web