Coder Social home page Coder Social logo

rubienr / arduboy-command-passthrough Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 38.4 MB

passes commands received via serial to the arduboy

License: Apache License 2.0

Arduino 12.67% C++ 55.96% Python 29.06% Shell 2.31%
abandoned flaky needs-testing one-time

arduboy-command-passthrough's People

Contributors

rubienr avatar

Watchers

 avatar  avatar

arduboy-command-passthrough's Issues

Unreliable RX Buffering

When sending several commands the FW

  • may hang
  • responses contain unexpected newlines
  • may fail to parse the command

Sending the following input several times

debug  %i 1
arduboy.clear
arduboy.setCursor  %i %i 10 10
arduboy.print  %s <a text>
arduboy.display

reproduced this output

OK

increment rx buffer read idx 1 -> 2
interpret buffer -arduboy.clear-
cmd: -arduboy.clear-
#args: 0

OK
increment rx buffer read idx 2 -> 3
interpret buffer -arduboy.setCursor  %i %i 10 10-

cmd: -arduboy.setCursor-
#args: 2
#: 0 mod: i val: -10-
#: 1 mod: i val: -10-
OK
increment rx buffer read idx 3 -> 4
interpret buffer -arduboy.print  %s <a text>-
cmd: -arduboy.print-
#args: 1

#: 0 mod: s val: -<a text>-
OK
increment rx buffer read idx 4 -> 5
interpret buffer -arduboy.display-
cmd: -arduboy.display-
#args: 0
OK
increment rx buffer read idx 5 -> 6

increment rx buffer write idx 6 -> 7
idx: 6 line: debug  %i 1

increment rx buffer write idx 7 -> 8
idx: 6 line: debug  %i 1
idx: 7 line: arduboy.clear

increment rx buffer write idx 8 -> 9
idx: 6 line: debug  %i 1
idx: 7 line: arduboy.clear
idx: 8 line: arduboy.setCursor  %i %i 10 10

increment rx buffer write idx 9 -> 10
idx: 6 line: debug  %i 1
idx: 7 line: arduboy.clear
idx: 8 line: arduboy.setCursor  %i %i 10 10
idx: 9 line: arduboy.print  %s <a text>
increment rx buffer write idx 10 -> 11
idx: 6 line: debug  %i 1
idx: 7 line: arduboy.clear

idx: 8 line: arduboy.setCursor  %i %i 10 10
idx: 9 line: arduboy.print  %s <a text>
idx: 10 line: arduboy.display
interpret buffer -debug  %i 1-
cmd: -debug-
#args: 1
#: 0 mod: i val: -1-
OK
increment rx buffer read idx 6 -> 7
interpret buffer -arduboy.clear-
cmd: -arduboy.clear-
#args: 0
OK
increment rx buffer read idx 7 -> 8
interpret buffer -arduboy.setCursor  %i %i 10 10-
cmd: -arduboy.setCursor-
#args: 2
#: 0 mod: i val: -10-
#: 1 mod: i val: -10-
OK
increment rx buffer read idx 8 -> 9
interpret buffer
 -arduboy.print  %s <a text>-
cmd: -arduboy.print-
#args: 1
#: 0 mod: s val: -<a text>-
OK
increment rx buffer read idx 9 -> 10
interpret buffer -arduboy.display-
cmd: -arduboy.display-
#args: 0

OK
increment rx buffer read idx 10 -> 11

increment rx buffer write idx 11 -> 12
idx: 11 line: debug  %i 1

after which the FW hangs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.