|
From: Jared B. <jb...@ea...> - 2011-05-27 15:39:18
|
On May 27, 2011, at 12:55 AM, Jordan J. Riggs wrote:
> Does anyone have any wisdom on this? I tried reinstalling PyUSB, but
> to no avail. Inexplicably, specan_ui.py works, but no other python
> tools work. Until I get this figured out, I'm sunk.
Hi Jordan,
specan.py is library code, and wasn't really intended to be run directly. Yes, there is a __main__ in the module, but it was there more for testing. So you're not missing much. All it does is dump dBm vs. frequency readings, just like the C "ubertooth-specan" code.
That said, it should work for you. Try changing this line (around line 68) in specan.py:
frame_source = ubertooth.specan(2402, 2480)
to:
frame_source = ubertooth.specan(2.402e9, 2.480e9)
And see if that fixes your problem.
In short, I changed the arguments to the Ubertooth.specan() method, from being in MHz to being in Hz, but forgot to update that line of code... After I had specan_ui.py, I neglected the command line behavior of specan.py. Sorry about that.
I've committed this change to SVN -- now revision 244.
- Jared
|