[minicom-Patches][314493] [PATCH] Extending runscript for binary data

minicom-patches at alioth.debian.org minicom-patches at alioth.debian.org
Wed Oct 16 11:15:14 UTC 2013


minicom-Patches item #314493, was opened at 2013-10-16 13:15 by Tobias Schlager
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=300031&aid=314493&group_id=30018

Status: Open
Priority: 3
Submitted By: Tobias Schlager (schlagert-guest)
Assigned to: Nobody (None)
Summary: [PATCH] Extending runscript for binary data 
Category: None
Group: None
Resolution: None


Initial Comment:
Hi,

I recently had some fun with runscript when writing scripts to automatically flash hardware configurations.

Reaching the limits of the runscript 'language' I decided to patch the runscript source to overcome the folliowing problems:

* It was not possible to send a null character using runscript (even when using the octal representation \0000). I would consider this a classical bug.

* I needed to send a small amout of dynamic, binary data using runscript, so I decided to add the new command/keyword ''!<" which works quite similar to the '!' command. However, it sends the stdout of the executed shell command to the modem (maybe binary data). I tried to implement it similarly to the send operator (including the 200ms 'safety' delay each 65 characters). This allows users to call external scripts/programs that generate binary data, e.g. a trivial example would be '!< cat firmware.bin'. A google search revealed that being able to send binary data from a runscript seems to be a badly wanted feature by many.

Regards
Tobias Schlager

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=300031&aid=314493&group_id=30018



More information about the minicom-devel mailing list