Go Down

Topic: yet another serial protocol (Read 1 time) previous topic - next topic


designed to be human readable-writable
for example for doing something from your pc command line or any terminal or any program

example for blink led once: (send to com port with any method)
w13,1 d1000 w13,0 d1000 w13,1

w = write pin,value
d = delay

full commands list at http://code.google.com/p/avros/source/browse/trunk/avros.h

can be used as lib in any arduino sketch, or standalone with avros.pde

bonus: small unfinished perl lib for pc

hosted at http://code.google.com/p/avros/
svn checkout http://avros.googlecode.com/svn/trunk/ avros


My thanks for this information.  I have installed the avros library and it works quite well.  I needed to add delimited text command streams to the code so chose to use '$' as a beginning command delimiter, so am able to process my commands in that fashion (trailing character is CR). 

However, I would like some additional information on using the monitor command(s) on a pin (or pins).  Using the flash memory for a command stream is also very interesting but I would need greater understanding of that very slick capability.  Any particular references I can find for these options?


to use prefix $ you can write main loop like:
    int cmd = read_chr(READ_TIMEOUT_FIRST);
    switch (cmd) {
        //case 'x': // your commands
        case '$': // lib commands starting from $: example:  $w13,1
         cmd_parse( read_chr() );

best way to understand  monitor and EPROM command source - reading avros.h 8-)
EPROM now is linear source without conditions, but i think about GOTO-like commands.


Thanks for the response.

I have successfully implemented my own '$' command for my text oriented command streams.  It works quite well.

I have read avros.h and absorbed all that it provides.  What I am missing is some of the conceptual basis for the EEPROM capability (how is it part of the Arduino firmware on the board), and the monitor function.  For example, is it possible to have multiple concurrent command streams running out of EEPROM?  What is the coding setup for for the monitor command (can there be multiple concurrent monitor commands running and can there be conditioned outputs from the monitor  command results?)

Do you know if there is availabe documentation for the internal Arduino firmware that can be exploited by a running sketch?

Go Up