unsigned len, addr, type;
sscanf(hex_record, ":%2X%4X%2X", &len, &addr, &type);