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: 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>': 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 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: To: Python In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 --Apple-Mail=_FDF3E41B-C8C6-4E33-B2B7-2316999B3E11 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Apr 7, 2015, at 8:42 AM, Hugo Caldas wrote: >=20 > read and write the port values with multi threading=20 Care to elaborate what you mean by this part? In general, serial ports = and multi threading don=E2=80=99t mix well. IOW, you=E2=80=99ll 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.=20= --Apple-Mail=_FDF3E41B-C8C6-4E33-B2B7-2316999B3E11 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
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=E2=80=99t mix well. IOW, = you=E2=80=99ll 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. 
= --Apple-Mail=_FDF3E41B-C8C6-4E33-B2B7-2316999B3E11--