convert commands from hex str