Oleg Hahm
3b8aa9b476
pyterm: fix problems with German umlauts as input
2015-10-27 15:27:04 +01:00
Ludwig Ortmann
ec9d5ea271
Merge pull request #3043 from OlegHahm/pyterm-newline
...
Pyterm newline
2015-05-26 08:56:37 +02:00
Janos Kutscherauer
6c620f273d
Added improved handling of CR/LF in PYTERM.
...
The default behaviour only appreciates the LF character (unix style).
The pyterm switch -nl/--newline can be used to specify the newline combination of CR/NL.
Possible values are CR, NL, CRNL and NLCR. Default is NL.
2015-05-25 13:38:14 +02:00
Joakim Gebart
f9059ea08d
dist/tools/pyterm/testbeds: whitespace fixes
2015-05-09 09:00:36 +02:00
Joakim Gebart
a1d40524f1
dist/tools/pyterm/pytermcontroller: whitespace fixes
2015-05-09 08:59:43 +02:00
Oleg Hahm
30b166c177
pyterm: make mostly pep8 compliant
2014-11-07 01:02:55 +01:00
Oleg Hahm
cbe49912be
pyterm: enable TCP connection to remote host
2014-11-05 22:42:36 +01:00
Oleg Hahm
9b4d22aaa0
pyterm: make pin toggling optional
...
For the MSB-A2 the DTR and RTS pins have to be pulled down over the
serial interface in the beginning. (This is required because the Linux
usbserial driver pulls them up when initializing the device which set
the node into reset mode.) Since this is not necessary on most other
platforms and might even cause problems, it's better to make this an
optional behavior of pyterm.
2014-09-24 17:05:36 +02:00
Philipp Rosenkranz
2a67363be3
dist: pyterm control server (incl. support for multiple testbeds)
2014-09-19 14:42:15 +02:00
Hinnerk van Bruinehsen
1b5836571b
pyterm: fix exit behavior if twisted is not available
2014-08-16 00:49:43 +02:00
Oleg Hahm
dce96763b5
pyterm: adds timer function
...
/timer <interval> <command> now allows to schedule arbitrary commands to
be send to the node after the specified interval (in seconds).
2014-08-13 11:46:36 -04:00
Martine Lenders
5fa5c568ff
pyterm: Use only printf-style String Formatting
...
Needed for backwards compatibility to python 2.6. Refers to
46c38230eb (commitcomment-7363298)
2014-08-13 00:16:41 +02:00
Oleg Hahm
cb85a901f2
pyterm: renamed pyterm.py to pyterm
2014-08-01 17:09:45 +02:00
Oleg Hahm
af24a947f6
pyterm: make Guido happy
2014-08-01 17:09:45 +02:00
Oleg Hahm
73f6a0c518
pyterm: split connect and set_baudrate
...
Apparently, opening and setting the baudrate at the same time creates
problem for certain platforms (Arduino-Due).
2014-08-01 17:09:45 +02:00
Oleg Hahm
af5291b7d7
pyterm: handle TCP connection errors
2014-08-01 17:09:45 +02:00
Oleg Hahm
8b9c54efae
pyterm: make formatting string configurable
2014-08-01 17:09:45 +02:00
Oleg Hahm
a0f43ba736
pyterm: outsource serial connect to a separate function
2014-08-01 17:09:45 +02:00
Oleg Hahm
8c84df391e
pyterm: added license
2014-08-01 17:09:45 +02:00
Oleg Hahm
9a09cba325
pyterm: added some documentation
2014-08-01 17:09:45 +02:00
Oleg Hahm
aaccb81794
pyterm: print warning if twisted is not available
2014-08-01 17:09:45 +02:00
Oleg Hahm
a6b276b734
pyterm: ugly hack to make twisted optional
2014-08-01 17:09:44 +02:00
Oleg Hahm
79844660a6
pyterm: enable interoperability with native TCP uart
2014-08-01 17:09:44 +02:00
Oleg Hahm
f76ae40861
pyterm: use the rest of line for alias and trigger
...
Allows nested aliases and triggers
2014-08-01 17:09:44 +02:00
Oleg Hahm
02f7b610a5
pyterm: increase verbosity for alias command
2014-08-01 17:09:44 +02:00
Oleg Hahm
b1323bf0c3
pyterm: use logger instead of print
2014-08-01 17:09:44 +02:00
Oleg Hahm
431655a3f0
pyterm: introduced trigger actions
2014-08-01 17:09:44 +02:00
Oleg Hahm
cec44e3aed
pyterm: fixed usage line for /alias
2014-08-01 17:09:44 +02:00
Oleg Hahm
9a2c1d3c87
pyterm: split up input processing into separate functions
2014-08-01 17:09:44 +02:00
Oleg Hahm
a0796ae6e5
pyterm: always perform input preprocessing
2014-08-01 17:09:44 +02:00
Oleg Hahm
f335cf07c3
pyterm: set default verbosity to info
2014-08-01 17:09:44 +02:00
Oleg Hahm
fbd2c345ce
pyterm: cosmetics
...
* replaced tab with white spaces
* removed trailing white spaces
2014-08-01 17:09:44 +02:00
Oleg Hahm
e661b386a0
pyterm: handle serial disconnect
...
* will reconnect automatically if possible after a disconnect
* resolves #910
2014-08-01 17:09:44 +02:00
Oleg Hahm
32716fea6c
pyterm: enable saving and setting of init commands at runtime
2014-08-01 17:09:44 +02:00
Oleg Hahm
e38fd42fef
pyterm: integrated changes from @mehlis' testbed-controller branch
2014-08-01 17:09:44 +02:00
Oleg Hahm
1899fffb4f
pyterm: use writeSomeData to send data immediately
2014-08-01 17:09:44 +02:00
Oleg Hahm
534ca4633e
pyterm: distinguish between int and string in JSON sending
2014-08-01 17:09:44 +02:00
Oleg Hahm
211dfeca6c
pyterm: allow spaces in JSON regex
2014-08-01 17:09:44 +02:00
Oleg Hahm
07e4e4372e
pyterm: remove unnecessary debug output
2014-08-01 17:09:44 +02:00
Oleg Hahm
508e8770c7
pyterm: fix program exit procedure, disable SIGINT
2014-08-01 17:09:44 +02:00
Oleg Hahm
cffa4e73d5
pyterm: added twisted based JSON sending
2014-08-01 17:09:44 +02:00
Oleg Hahm
64b1250f3b
pyterm: configure baudrate
2014-08-01 17:09:44 +02:00
Oleg Hahm
f816d74824
pyterm: prefix pyterm commands with /
2014-08-01 17:09:44 +02:00
Oleg Hahm
dd469b1f7b
pyterm: ignore lines based on regex
2014-08-01 17:09:44 +02:00
Oleg Hahm
fd95200ae4
pyterm: filter for specific output (via regex)
2014-08-01 17:09:43 +02:00
Oleg Hahm
6c31adeaee
pyterm: introduce command line arguments
2014-08-01 17:09:43 +02:00
Oleg Hahm
e1f8992642
pyterm: make config file name a variable
2014-08-01 17:09:43 +02:00
Oleg Hahm
5769269cda
pyterm: set default serial port to /dev/ttyUSB0
2014-08-01 17:09:43 +02:00
Oleg Hahm
50f9b25a9a
pyterm: do a proper cleanup at SIGINT
2014-08-01 17:09:43 +02:00
Ludwig Ortmann
be5798d7b6
dist/pyterm: enable unicode decoding
...
use unicode streamreader on serial interface
fixes #1371
2014-07-14 12:54:18 +02:00