Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'wed,': 0.04; 'oh,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'terminate': 0.09; 'that).': 0.09; 'linux': 0.11; 'binary': 0.14; 'defined': 0.15; '(1,': 0.16; "(i'd": 0.16; '1.5,': 0.16; '8-bit': 0.16; 'bieber': 0.16; 'bits,': 0.16; 'declaimed': 0.16; 'email addr:ix.netcom.com': 0.16; 'email name:wlfraed': 0.16; 'from:addr:ix.netcom.com': 0.16; 'from:addr:wlfraed': 0.16; 'from:name:dennis lee bieber': 0.16; 'pyserial': 0.16; 'received:66.245': 0.16; 'received:dsl.mindspring.com': 0.16; 'received:mindspring.com': 0.16; 'received:wlfraed': 0.16; 'stream.': 0.16; 'url:netcom': 0.16; 'url:wlfraed': 0.16; 'wulfraed': 0.16; 'protocol': 0.16; 'input': 0.18; 'command': 0.19; 'device': 0.20; '(or': 0.22; 'convert': 0.22; 'lee': 0.22; 'trying': 0.23; 'pair': 0.23; 'example': 0.24; 'url:home': 0.25; 'subject:data': 0.26; 'subject:?': 0.29; 'solution.': 0.29; 'subject:format': 0.31; 'does': 0.31; 'to:addr:python-list': 0.32; 'bit': 0.33; 'handling': 0.33; '(for': 0.33; 'using': 0.34; 'header:X-Complaints-To:1': 0.34; 'actually': 0.34; 'characters': 0.35; 'purely': 0.35; 'rather': 0.36; 'subject:/': 0.36; 'charset :us-ascii': 0.36; 'else': 0.37; 'data': 0.37; 'some': 0.37; 'apr': 0.38; 'facing': 0.38; 'parallel': 0.38; 'strings': 0.38; 'but': 0.38; 'software': 0.38; 'used': 0.38; 'received:org': 0.38; 'anything': 0.38; 'not,': 0.39; 'size,': 0.39; 'common': 0.39; 'to:addr:python.org': 0.39; 'header:Mime-Version:1': 0.39; 'would': 0.40; 'header:Received:5': 0.40; '2011': 0.62; 'moment': 0.67; 'dennis': 0.68; 'serial': 0.77; 'deciding': 0.84; 'infamous': 0.84; 'parity': 0.84; 'troubles': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Do UART require data structure/format for serial communication? Date: Wed, 13 Apr 2011 21:49:48 -0700 Organization: > Bestiaria Support Staff < References: <4da344c6$0$10522$742ec2ed@news.sonic.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: user-11fa629.dsl.mindspring.com X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES 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: 33 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1302756603 news.xs4all.nl 65870 [::ffff:82.94.164.166]:36100 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3173 On Wed, 13 Apr 2011 14:24:17 +0530, VGNU Linux declaimed the following in gmane.comp.python.general: > Actually I am trying to data communication between these 2 chips, but facing > troubles in deciding a protocol to do the same. > Do UART have any default protocols? For the moment I am trying to do it with > Strings but not sure if that's the right solution. The only absolute protocol is that UARTs use a start bit, some preconfigured number of data bits, with or without a parity bit, and some defined stop bit (1, 1.5, 2 bit times) [the infamous 8N1 -- 8-bit word size, No parity, 1 stop bit]. Even handling transmission start/stop may be moved into software level (ie; a pair of control CHARACTERS is used to permit/inhibit transmission and I believe). Oh, and bit rate... All they do is take a parallel input and convert them to a serial stream. It IS common for them to accept additional pins between them for permit/inhibit -- RTS/CTS and/or DSR/DTR (or something like that). Anything else is purely by agreement in the software using the UART for communication. For example -- does the receiving device want JUST a to terminate a command (for example), or does it need BOTH to be sent. And if it needs both, will PySerial convert to (I'd hope not, as it would make sending binary data rather difficult) -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/