collin80 / M2RET

GVRET fork to Macchina M2 board
MIT License
70 stars 21 forks source link

documentation #14

Open exekutive opened 3 years ago

exekutive commented 3 years ago

Is there any documentation? I'm wondering how the output from M2RET is formatted. Is it binary? ASCII? Can you send commands to M2RET, and if so how? Etc..

exekutive commented 3 years ago

ok I just found the CommProtocol.txt file which briefly explains formatting. Just gotta figure out how commands are issued to the M2. Like do I just send a single byte command to the serial port? Still not sure how to enable LAWICEL mode. Would be nice if documentation was in one place/easier to find. It's a bit disorganised/daunting for beginners.

exekutive commented 3 years ago

alright so this document describes a console mode for M2RET. It can be accessed with SavvyCAN https://github.com/collin80/SavvyCAN/blob/master/help/connectionwindow.md I guess I'll just have to play with it and see.

exekutive commented 3 years ago

So you need a program like Tera Term to access the M2RET console. Send "?" or "h" to the correct com port and you'll get a read-out of the build number and various options. When I try this from the SavvyCAN console I get nothing. There doesn't seem to a way to enable LAWICEL mode from the console.

exekutive commented 3 years ago

Tera Term doesn't allow you to send hexadecimal commands though (described in CommProtocol.txt), and I could not make RealTerm work. I had to go back to SavvyCAN. I figured out the SavvyCAN console by trial and error. Enter the hex bytes with no prefix, delimited by a space (ex. F1 7) and press Send Hex. SavvyCAN keeps sending keepalive commands though , so responses quickly scroll out of view. I still see no way to enable LAWICEL mode, so maybe the only way is to do it in code and recompile M2RET?