Making the world a better place, one Evil Mad Scientist at a time.
Maintenance notice:
These forum archives are read-only, and will be removed shortly.
Please visit our forums at their new location, https://www.evilmadscientist.com/forums/.
I presume by "machine language" in this case that you mean the set of serial commands that are sent to the AxiDraw over USB. You could potentially modify the script to save a copy of each command sent to a file, but that does require that you note each point where communication is sent. Serial communication is handled through the ebb_serial.py script, so the good news is that you should only need to modify that one file in order to do so.
I should note that the script is to some degree interactive; checking to make sure that it is connected to the right device and to make sure that each command was sent successfully. We have not tested the method of just sending a set of commands, which is what you would be doing if you are just re-sending a list.
I might be guessing at your intentions here, but if your end goal is to be able to just print the same file many times, then you might prefer to start with a command-line script that prints your SVG file from outside of Inkscape. We do have a script like this, available to AxiDraw users in private beta-- please let us know if you would like to try that.
Actually,I want to design an app to realize the function that Axidraw could write down what I say while I am speaking.But it is too difficult for me now.
So,I want to start slightly.I intend to put the machine language(commends...right) into a SD card,so that Axidraw could work by reading the commends in the SD card and work without the computer.And I think it is also more convenient to print the same file for many times,because you can take the computer with you while putting the Axidraw aside.
And I would like to try your command-line script,thanks a lot!
To do that, you would actually need to work at a deeper level, and alter the programming of the EBB itself, since it presently does not have any facility to work from an off-board stored file. It is certainly possible to reprogram the EBB-- its source code is available, as are compilers.
The EBB does have the facility to work from a file stored in its onboard memory -- there are actually two files stored there -- but it does not have the ability to connect directly to an SD card. And, the computer is not necessarily something that can't be brought along with you. For example, a Raspberry Pi could easily fit in your pocket.
It's an undocumented feature-- you'll need to look through the firmware to see how that works. There isn't a whole lot of storage space there, but enough for a couple of small files.
The USB port on the EBB is a "USB device" port, not a "USB host" port-- that is, it acts like the port on a printer, not the port on a computer. To hook up to an SD card, you'll need something (a computer-- whether tiny or full size) to play the host role.
Comments
I should note that the script is to some degree interactive; checking to make sure that it is connected to the right device and to make sure that each command was sent successfully. We have not tested the method of just sending a set of commands, which is what you would be doing if you are just re-sending a list.
I might be guessing at your intentions here, but if your end goal is to be able to just print the same file many times, then you might prefer to start with a command-line script that prints your SVG file from outside of Inkscape. We do have a script like this, available to AxiDraw users in private beta-- please let us know if you would like to try that.
If you are looking for the serial command set itself, you can find it here:
http://evil-mad.github.io/EggBot/ebb.html