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


Groups > comp.lang.python > #80000

Re: pySerial works in miniterm but not in my app

Newsgroups comp.lang.python
Date 2014-10-31 01:21 -0700
References <5cb7e219-cc34-4a4f-ae93-3a2bbfa9121a@googlegroups.com> <mailman.15335.1414709835.18130.python-list@python.org>
Message-ID <9f933554-ae04-4a3f-8317-0ed4f1e6d5b4@googlegroups.com> (permalink)
Subject Re: pySerial works in miniterm but not in my app
From Dario <d.corti@gmail.com>

Show all headers | View raw


Il giorno giovedì 30 ottobre 2014 23:57:40 UTC+1, Dennis Lee Bieber ha scritto:

> >sw o01 + <--- I send this

> How do you "send this"... 

I just type or paste it in miniterm and hit return. Miniterm sends the return as CR, but it also works with CRLF.

> >sw o01 + Command OK <--- device does what it should *and* I receive this

> Is that a new line, or somehow part of the same line?

This is the response from the device, saying that my command was ok, and it also does what it should (it's an hdmi 4-4 matrix, it switches the first output to the next input).

> >s.write('sw o01 +\r')

> What happens if you use \n... or \r\n ?

In my app, that doesn't make any difference, never works. In miniterm, only CR and CRLF work, LF alone does not.

This evening I'll try with com0com to see what is really sent...

-- 
Dario

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


Thread

pySerial works in miniterm but not in my app Dario <d.corti@gmail.com> - 2014-10-30 12:42 -0700
  Re: pySerial works in miniterm but not in my app Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-10-30 18:57 -0400
    Re: pySerial works in miniterm but not in my app Dario <d.corti@gmail.com> - 2014-10-31 01:21 -0700
      Re: pySerial works in miniterm but not in my app Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-10-31 14:00 -0400
        Re: pySerial works in miniterm but not in my app Dario <d.corti@gmail.com> - 2014-11-01 08:03 -0700
          Re: pySerial works in miniterm but not in my app Dario <d.corti@gmail.com> - 2014-11-01 08:30 -0700
            Re: pySerial works in miniterm but not in my app Dario <d.corti@gmail.com> - 2014-11-01 08:57 -0700

csiph-web