Closed Robot-Will closed 8 years ago
I don't know on which side the fault lies, but sometimes Stino crashes a Sublime's plugin host when I feed data very fast (about every 2ms) into the serial monitor.
Hi @oomek , change the waiting time and see if it helps.
In stino/pyarduino/base/serial_monitor.py, line 73, time.sleep(0.01)
, wait 10 ms.
In stino/pyarduin/base/message_queue.py, line 55 and 64, wait 10 ms.
Thanks.
both lines have time.sleep(0.01) already, shall I change it to time.sleep(10)?
The time.sleep
function takes an argument in seconds: https://docs.python.org/2/library/time.html#time.sleep
Presently time.sleep(0.01)
is used, which is 0.01 s or 10 ms.
Since you need to feed data every 2 ms, maybe try to lower it directly to 1 ms: time.sleep(0.001)
Hi, Excuse me. Could you change some code in "serial_monitor.py" ? I think it could be more comfortable to use number of columns per group like power power of two in "hex view mode". Or it could be a setting (variable) for grouped columns. I don't cnow how to do that in PY.
line 99: -length_before %= 20 +length_before %= 16
line 147: -if (index + str_len + 1) % 10 == 0: +if (index + str_len + 1) % 8== 0:
line 149:
-if (index + str_len + 1) % 20 == 0: +if (index + str_len + 1) % 16== 0:
Serial Monitor > Display Mode > Hex and Ascii are not working.... only Text.
If you are to debug binary data. this is missing.