Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #28076
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <cameron@cskk.homeip.net> |
| 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; 'subject:Python': 0.05; 'bytes.': 0.07; 'filenames': 0.07; 'endian': 0.09; 'cc:addr :python-list': 0.10; 'aug': 0.13; 'encoding': 0.15; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'received:202.125.174': 0.16; 'received:202.125.174.133': 0.16; 'received:boardofstudies.nsw.edu.au': 0.16; 'received:cskk.homeip.net': 0.16; 'received:edu.au': 0.16; 'received:harvey.boardofstudies.nsw.edu.au': 0.16; 'received:homeip.net': 0.16; 'received:nsw.edu.au': 0.16; 'simpson': 0.16; 'written.': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'byte': 0.17; 'bytes': 0.17; '>>>': 0.18; 'windows': 0.19; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'command': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'expanding': 0.27; 'correct': 0.28; 'subject:Sending': 0.29; 'way?': 0.29; "i'm": 0.29; 'could': 0.32; 'getting': 0.33; 'everyone': 0.33; 'text': 0.34; 'there': 0.35; 'really': 0.36; 'received:au': 0.36; 'subject:with': 0.36; 'too': 0.36; 'charset:us-ascii': 0.36; 'uses': 0.37; 'being': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'your': 0.60; 'content- disposition:inline': 0.60; 'dr.': 0.72; 'subject:commands': 0.84; 'dennis': 0.91 |
| Date | Thu, 30 Aug 2012 08:29:32 +1000 |
| From | Cameron Simpson <cs@zip.com.au> |
| To | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
| Subject | Re: Sending USB commands with Python |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| In-Reply-To | <eq3t38542luf3dmula4k92islpa9lh0opk@invalid.netcom.com> |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| References | <eq3t38542luf3dmula4k92islpa9lh0opk@invalid.netcom.com> |
| 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 <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3946.1346279381.4697.python-list@python.org> (permalink) |
| Lines | 22 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1346279381 news.xs4all.nl 6861 [2001:888:2000:d::a6]:50494 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:28076 |
Show key headers only | View raw
On 29Aug2012 17:57, Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:
| On Wed, 29 Aug 2012 14:21:30 -0700 (PDT), "Adam W."
| <AWasilenko@gmail.com> declaimed the following in
| gmane.comp.python.general:
| > You are correct about the 2 being the number of bytes written. However when I issue a read command I get:
| >
| > >>> ep.write('\x1BA')
| > 4
|
| That's interesting -- as if each byte you send is expanding into a
| pair of bytes.
UTF-16? ISTR that Windows often uses big endian UTF-16 for filenames and
text data; could there be some default encoding in ep.write getting in
your way?
Disclaimer: I'm really not a Windows guy.
--
Cameron Simpson <cs@zip.com.au>
There are too many people now for everyone to be entitled to his own opinion.
- Dr. Handelman
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Sending USB commands with Python Cameron Simpson <cs@zip.com.au> - 2012-08-30 08:29 +1000
csiph-web