update stuct definitions in protocol.py and cmd.py to incorporate response_size, response_mode; also impose const check_bit on scan data packets