Hi
what is the default buffer size for the Console?
If it is changed which kind of memory will be used/freed?
How can I (if possible) use an interrupt (triggered by IO on Console) to read from the Console buffer?
TIA
Josef
Hi
what is the default buffer size for the Console?
If it is changed which kind of memory will be used/freed?
How can I (if possible) use an interrupt (triggered by IO on Console) to read from the Console buffer?
TIA
Josef
sys64738:
Hi
- what is the default buffer size for the Console?
- If it is changed which kind of memory will be used/freed?
- How can I (if possible) use an interrupt (triggered by IO on Console) to read from the Console buffer?
TIA
Josef
On #1, either 256, 512 or 1024 bytes. 256 is the most likely.
On #2, As much as the direction you move, plus a few extra bytes for logic.
On #3, I doubt it. But I don't have a definitive answer for that. The Console outputs to the wifi. I don't even know if it possible on the USB serial ports that connect to the Yun.
Those are vague questions.
Are you looking for some performance improvement?
Or improved response output?
Jesse
Default size is :8192
root@Arduino:~# python
Python 2.7.3 (default, Nov 13 2014, 21:40:08)
[GCC 4.6.3 20120201 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import io
>>> io.DEFAULT_BUFFER_SIZE
8192
Change buffer size:
>>> io.DEFAULT_BUFFER_SIZE=1024
>>> io.DEFAULT_BUFFER_SIZE
1024
Unfortunately/fortunately Console/Bridge buffer is disabled by design.
python -u