Merged rs232gen tool from maintainable branch