def test_read_firmware(self): print "Testing read_firmware method on scope." scope = Oscilloscope() assert scope.setup() assert scope.open_handle() assert scope.flash_firmware() assert scope.read_firmware() assert scope.close_handle()
#!/usr/bin/python3 __author__ = 'Jochen Hoenicke' from PyHT6022.LibUsbScope import Oscilloscope scope = Oscilloscope() scope.setup() scope.open_handle() firmware = scope.read_firmware(length=16*1024, chunk_len=32) scope.close_handle() print(firmware)
__author__ = 'Jochen Hoenicke' from PyHT6022.LibUsbScope import Oscilloscope scope = Oscilloscope() scope.setup() scope.open_handle() firmware = scope.read_firmware(length=16*1024, chunk_len=32) scope.close_handle() print firmware