<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/tools/pyboard.py, branch v1.9.2</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.9.2</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.9.2'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2017-07-22T14:12:15+00:00</updated>
<entry>
<title>tools/pyboard: Add license header.</title>
<updated>2017-07-22T14:12:15+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-07-22T14:12:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=7901741bf192cb239bb6b5f76464432852bc8e25'/>
<id>urn:sha1:7901741bf192cb239bb6b5f76464432852bc8e25</id>
<content type='text'>
</content>
</entry>
<entry>
<title>various: Spelling fixes</title>
<updated>2017-05-29T08:36:05+00:00</updated>
<author>
<name>Ville Skyttä</name>
<email>ville.skytta@iki.fi</email>
</author>
<published>2017-05-29T07:08:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ca16c3821053e5bf2b87aeb10007f73f31dc1eac'/>
<id>urn:sha1:ca16c3821053e5bf2b87aeb10007f73f31dc1eac</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tools/pyboard: Provide more details when expected reply not received.</title>
<updated>2017-04-06T22:04:47+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-04-06T22:04:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3e1310d6e23777d7322016d7390a00da3284afbb'/>
<id>urn:sha1:3e1310d6e23777d7322016d7390a00da3284afbb</id>
<content type='text'>
When trying to execute a command via raw REPL and expected "OK" reply
not received, show what was received instead.
</content>
</entry>
<entry>
<title>tools/pyboard: ProcessPtyToTerminal: Add workaround for PySerial bug.</title>
<updated>2017-04-05T09:30:39+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-04-05T09:30:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=2cbe99783432b29bc303dc2e2cfe6823fe4a6c4f'/>
<id>urn:sha1:2cbe99783432b29bc303dc2e2cfe6823fe4a6c4f</id>
<content type='text'>
When working with a "virtual" port, like PTY. The issue described in
http://stackoverflow.com/questions/34831131/pyserial-does-not-play-well-with-virtual-port
</content>
</entry>
<entry>
<title>tools/pyboard: execpty: Use shell=False to workaround some curdir issues.</title>
<updated>2017-04-04T21:46:12+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-04-04T21:44:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=546ef301a12ccd6015137964637983432c64d11f'/>
<id>urn:sha1:546ef301a12ccd6015137964637983432c64d11f</id>
<content type='text'>
Without this, Zephyr's port "make test" doesn't work.
</content>
</entry>
<entry>
<title>tools/pyboard: Add "exec" and "execpty" pseudo-devices support.</title>
<updated>2017-04-04T14:46:02+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-04-04T14:46:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=647e72ca63a345a5d6de16fe359bbc3b7c6615ec'/>
<id>urn:sha1:647e72ca63a345a5d6de16fe359bbc3b7c6615ec</id>
<content type='text'>
This allows to execute a command and communicate with its stdin/stdout
via pipes ("exec") or with command-created pseudo-terminal ("execpty"),
to emulate serial access. Immediate usecase is controlling a QEMU process
which emulates board's serial via normal console, but it could be used
e.g. with helper binaries to access real board over other hadware
protocols, etc.

An example of device specification for these cases is:

	--device exec:../zephyr/qemu.sh
	--device execpty:../zephyr/qemu2.sh

Where qemu.sh contains long-long qemu startup line, or calls another
command. There's a special support in this patch for running the command
in a new terminal session, to support shell wrappers like that (without
new terminal session, only wrapper script would be terminated, but its
child processes would continue to run).
</content>
</entry>
<entry>
<title>tools/pyboard: Tighten up Pyboard object closure on errors.</title>
<updated>2017-04-02T17:48:53+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-04-02T17:46:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9b3f423c14af65f8f273d8ab3f3db68b191c3794'/>
<id>urn:sha1:9b3f423c14af65f8f273d8ab3f3db68b191c3794</id>
<content type='text'>
Some "device" implementations may be sensitive to this.
</content>
</entry>
<entry>
<title>tools/pyboard.py: Refactor so target is not reset between scripts/cmd.</title>
<updated>2016-12-15T00:29:33+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-12-15T00:29:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=29b58796136e3c9133cd268b163db1c53e67ac9b'/>
<id>urn:sha1:29b58796136e3c9133cd268b163db1c53e67ac9b</id>
<content type='text'>
Previous to this patch pyboard.py would open a new serial connection to
the target for each script that was run, and for any command that was run.
Apart from being inefficient, this meant that the board was soft-reset
between scripts/commands, which precludes scripts from accessing variables
set in a previous one.

This patch changes the behaviour of pyboard.py so that the connection to
the target is created only once, and it's not reset between scripts or any
command that is sent with the -c option.
</content>
</entry>
<entry>
<title>tools: Fix pyboard.py to work under Python 3.</title>
<updated>2015-12-08T12:55:28+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-12-08T12:55:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=bbe2e22fcb3bf83b03ad25856e29995987e1fc40'/>
<id>urn:sha1:bbe2e22fcb3bf83b03ad25856e29995987e1fc40</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tools: Add option to pyboard.py to wait for serial device to be ready.</title>
<updated>2015-12-08T11:10:09+00:00</updated>
<author>
<name>Peter Hinch</name>
<email>peter@hinch.me.uk</email>
</author>
<published>2015-12-01T06:13:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f4fcc14cfb69aeae381a2931eb1f606a2975b1e7'/>
<id>urn:sha1:f4fcc14cfb69aeae381a2931eb1f606a2975b1e7</id>
<content type='text'>
Also prints a nicer error message if the serial connection could not be
established.
</content>
</entry>
</feed>
