Having some trouble using this to bind to a Hubsan Q4 though. Gets stuck at binding. The blue lights go from alternating to in-sync flashing (like they should) but then go back. I tried increasing the timeout at hubsan.py line 78 but that makes it worse.
Works fine with the controller that comes with the X4 -- it should be the same protocol. I'll try with an X4 soon but do you have any other ideas?
DEBUG:a7105:reset()
DEBUG:a7105:read_reg(MODE, 00)
DEBUG:a7105:read_reg(GIO1S, 19)
DEBUG:a7105:initializing registers
DEBUG:a7105:read_reg(MODE_CONTROL, 63)
DEBUG:a7105:read_reg(FIFO_1, 0f)
DEBUG:a7105:read_reg(CLOCK, 05)
DEBUG:a7105:read_reg(CLOCK) == 05
DEBUG:a7105:read_reg(DATA_RATE, 04)
DEBUG:a7105:read_reg(TX_II, 2b)
DEBUG:a7105:read_reg(RX, 62)
DEBUG:a7105:read_reg(RX_GAIN_I, 80)
DEBUG:a7105:read_reg(RX_GAIN_IV, 0a)
DEBUG:a7105:read_reg(CODE_I, 07)
DEBUG:a7105:read_reg(CODE_II, 17)
DEBUG:a7105:read_reg(RX_DEM_TEST, 47)
DEBUG:a7105:calibrating IF bank
DEBUG:a7105:read_reg(CALIBRATION, 01)
DEBUG:a7105:read_reg(CALIBRATION) == 00
DEBUG:a7105:read_reg(IF_CALIBRATION_I) == 06
DEBUG:a7105:calibration complete
DEBUG:a7105:calibrating VCO channel 00
DEBUG:a7105:read_reg(PLL_I, 00)
DEBUG:a7105:read_reg(CALIBRATION, 02)
DEBUG:a7105:read_reg(CALIBRATION) == 00
DEBUG:a7105:read_reg(VCO_CALIBRATION_I) == 14
DEBUG:a7105:calibration complete
DEBUG:a7105:calibrating VCO channel a0
DEBUG:a7105:read_reg(PLL_I, a0)
DEBUG:a7105:read_reg(CALIBRATION, 02)
DEBUG:a7105:read_reg(CALIBRATION) == 00
DEBUG:a7105:read_reg(VCO_CALIBRATION_I) == 11
DEBUG:a7105:calibration complete
DEBUG:a7105:strobe(STANDBY)
DEBUG:a7105:set_power(_30mW)
DEBUG:a7105:read_reg(TX_TEST, 17)
DEBUG:a7105:strobe(STANDBY)
INFO:hubsan:binding started
DEBUG:a7105:write_id(55 20 10 41)
DEBUG:a7105:read_reg(PLL_I, 14)
DEBUG:hubsan:bind stage 1
DEBUG:a7105:strobe(STANDBY)
DEBUG:a7105:write_data(01 14 5f f1 28 56 00 00 00 00 00 00 00 00 00 1d)
DEBUG:a7105:strobe(RESET_WRITE_POINTER)
DEBUG:a7105:strobe(TX)
DEBUG:a7105:read_reg(MODE) == 1a
DEBUG:a7105:strobe(RX)
DEBUG:a7105:read_reg(MODE) == 19
DEBUG:a7105:read_reg(MODE) == 19
DEBUG:a7105:read_reg(MODE) == 19
DEBUG:a7105:read_reg(MODE) == 19
DEBUG:a7105:read_reg(MODE) == 19
DEBUG:a7105:read_reg(MODE) == 19
DEBUG:a7105:read_reg(MODE) == 19
DEBUG:a7105:read_reg(MODE) == 19
DEBUG:hubsan:bind stage 1
DEBUG:a7105:strobe(STANDBY)
DEBUG:a7105:write_data(01 14 5f f1 28 56 00 00 00 00 00 00 00 00 00 1d)
DEBUG:a7105:strobe(RESET_WRITE_POINTER)
DEBUG:a7105:strobe(TX)
DEBUG:a7105:read_reg(MODE) == 1a
DEBUG:a7105:strobe(RX)
DEBUG:a7105:read_reg(MODE) == 19
DEBUG:a7105:read_reg(MODE) == 19
DEBUG:a7105:read_reg(MODE) == 19
DEBUG:a7105:read_reg(MODE) == 19
DEBUG:a7105:read_reg(MODE) == 19
DEBUG:a7105:read_reg(MODE) == 19
DEBUG:a7105:read_reg(MODE) == 19
DEBUG:a7105:read_reg(MODE) == 19
DEBUG:hubsan:bind stage 1
...