Connection timed out



I’m using the ChipWhisperer Lite with the CW303. I’m attempting to capture large data, I need it for aes. However, while trying to capture a large data of 10000 traces the error ‘USBError:[Errno None] error sending control message: Connection timed out’ occurs.

Below is the error code.

“/home/cwuser/chipwhisperer/software/chipwhisperer/common/api/”, line 394, in runScriptClass
return eval(‘m.%s()’ % funcName)
File “”, line 1, in
File “”, line 110, in run
File “/home/cwuser/chipwhisperer/software/chipwhisperer/common/api/”, line 313, in capture1
return ac.doSingleReading()
File “/home/cwuser/chipwhisperer/software/chipwhisperer/capture/api/”, line 109, in doSingleReading
File “/home/cwuser/chipwhisperer/software/chipwhisperer/capture/scopes/”, line 173, in arm
File “/home/cwuser/chipwhisperer/software/chipwhisperer/capture/scopes/cwhardware/”, line 66, in armPostScope
File “/home/cwuser/chipwhisperer/software/chipwhisperer/capture/scopes/cwhardware/”, line 421, in armPostScope
File “/home/cwuser/chipwhisperer/software/chipwhisperer/capture/scopes/cwhardware/”, line 400, in glitchArm
File “/home/cwuser/chipwhisperer/software/chipwhisperer/capture/scopes/cwhardware/”, line 392, in glitchManual
resp = self.oa.sendMessage(CODE_READ, glitchaddr, Validate=False, maxResp=8)
File “/home/cwuser/chipwhisperer/software/chipwhisperer/capture/scopes/”, line 1015, in sendMessage
data = bytearray(self.serial.cmdReadMem(address, datalen))
File “/home/cwuser/chipwhisperer/software/chipwhisperer/hardware/naeusb/”, line 230, in cmdReadMem
self.sendCtrl(cmd, data=pload)
File “/home/cwuser/chipwhisperer/software/chipwhisperer/hardware/naeusb/”, line 207, in sendCtrl
return self.usbdev().ctrl_transfer(0x41, cmd, value, 0, data, timeout=self._timeout)
File “/usr/local/lib/python2.7/dist-packages/usb/”, line 971, in ctrl_transfer
File “/usr/local/lib/python2.7/dist-packages/usb/backend/”, line 528, in ctrl_transfer
File “/usr/local/lib/python2.7/dist-packages/usb/backend/”, line 380, in _check
raise USBError(errmsg, ret)
Warning: Could not execute method run in script class UserScript: ‘USBError:[Errno None] error sending control message: Connection timed out’

The problem is that I want to capture even more traces such as 1000000. So, can anyone help me with this bug???
Just to mention that I’m using your VM, with the host machine being windows 7 x64. I changed the VM settings to use 3GBs of Ram.


You must send the password before the timeout occurs – you can increase the length of the timeout if needed to give yourself more time! If this works you should see the power consumption displayed in the GUI.