Code 31 means:
This device is not working properly because Windows cannot load the drivers required for this device.
Update the driver for the device to fix this issue:
a.
Click the Start button, click Control Panel, click System and Maintenance, and then click Device Manager. If you are prompted for an administrator password or
confirmation, type the password or provide confirmation.
b. Expand
the device to be updated.
c. Right
click on the device. Click on Properties.
d. Under
the driver tab, click “Update Driver”.
Refer the links below for more details on updating drivers: