Implement -json flag. It lets to disable TinyG json protocol and send raw gcode.