Robot-Will / Stino

A Sublime Text Plugin for Arduino
Other
1.58k stars 249 forks source link

[Issue Collection] Serila Monitor Problems #206

Closed Robot-Will closed 8 years ago

Robot-Will commented 9 years ago
oomek commented 9 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. sublime-stino

Robot-Will commented 9 years ago

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.

oomek commented 9 years ago

both lines have time.sleep(0.01) already, shall I change it to time.sleep(10)?

gonzoid commented 9 years ago

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)

alvolturbo commented 9 years ago

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:

zevero commented 9 years ago

Serial Monitor > Display Mode > Hex and Ascii are not working.... only Text.

If you are to debug binary data. this is missing.