try to find Jawbreaker and HackRF One

This commit is contained in:
xyb
2014-09-06 22:54:54 +08:00
parent 69c4997727
commit 2edd8faac3
2 changed files with 21 additions and 0 deletions

View File

@@ -22,8 +22,18 @@
import usb
import struct
import sys
device = usb.core.find(idVendor=0x1d50, idProduct=0x604b)
if device:
print 'Find: HackRF Jawbreaker'
else:
device = usb.core.find(idVendor=0x1d50, idProduct=0x6089)
if device:
print 'Find: HackRF One'
else:
print 'Not find any HackRF device.'
sys.exit()
device.set_configuration()
def read_max2837_register(register_number):