mikeryan / ice9-bluetooth-sniffer

Wireshark-compatible all-channel BLE sniffer for bladeRF, with wideband Bluetooth sniffing for HackRF and USRP
GNU General Public License v2.0
298 stars 42 forks source link

Support for USRP #9

Open alkaid-007 opened 1 year ago

alkaid-007 commented 1 year ago

Hi, may I ask what type of USRPs can use this? I tried USRP N310, but it showed unsupported.

mikeryan commented 1 year ago

I've only tested it with the B200 series, but the code may work with the N310. Give it a try and see if you see any BLE advertising packets.

alkaid-007 commented 1 year ago

Hi, I tried it in WireShark, but it shows unsupported. Please see the attached.

Screenshot
alkaid-007 commented 1 year ago

I also tried USRP N210, and it still showed that unsupported. Could you please provide me with any suggestions? 1 2

alphafox02 commented 1 year ago

With a b205mini and Wireshark I can see it listed in Wireshark, however, when trying to use it I get a pop up saying Error opening UHD:11

This is the same error I get when trying to use the ice9 binary directly with a b205mini and only putting usrp-

Makes me think it’s getting ran without putting the serial number after usrp- although the initial Wireshark menu with interfaces correctly lists the serial number.

This is using the latest commits, which does now allow my b205mini to work when directly using the binary.

Martyx00 commented 1 year ago

I believe I have the same error as @alphafox02 but with B200-mini.

image

mikeryan commented 1 year ago

Could someone with this error please try running the command from the command line like so:

ice9-bluetooth -l -s -c 2427 -C 20 -i usrp-<serial>

Let me know if you get the same error "Error opening UHD: 11" or if something else happens.

alphafox02 commented 1 year ago

Pulled and built latest source. I do not have the above issue with a b205mini when I tested just now using the command you pasted above. I do however have the issue when trying to open it from wireshark.


[INFO] [B200] Actually got clock rate 20.000000 MHz.                                                                                
ch  12.2  samp/sec (  0% realtime); agc  54.9 Msamp/sec (153% realtime)                                                             
Channelizer too slow, use fewer channels                                                                                            
ch  20.0 Msamp/sec (100% realtime); agc  57.3 Msamp/sec (159% realtime)
ch  20.0 Msamp/sec (100% realtime); agc  66.2 Msamp/sec (184% realtime)
ch  20.0 Msamp/sec (100% realtime); agc  65.8 Msamp/sec (183% realtime)
ch  20.0 Msamp/sec (100% realtime); agc  65.7 Msamp/sec (183% realtime)
ch  19.4 Msamp/sec ( 97% realtime); agc  60.8 Msamp/sec (169% realtime)
Channelizer too slow, use fewer channels
ch  20.6 Msamp/sec (103% realtime); agc  63.7 Msamp/sec (177% realtime)
ch  20.0 Msamp/sec (100% realtime); agc  65.3 Msamp/sec (181% realtime)
IakovlevAA commented 7 months ago

Could someone with this error please try running the command from the command line like so:

ice9-bluetooth -l -s -c 2427 -C 20 -i usrp-<serial>

Let me know if you get the same error "Error opening UHD: 11" or if something else happens.

Hi, tried with usrp B200, getting this same error, any thoughts about this? Reproduced with master branch and v23.06.0

elafargue commented 7 months ago

On a B205 Mini, using the following command line appears to work fine (serial number edited):

% ice9-bluetooth -l -s -c 2427 -C 20 -i usrp-317XXX
[INFO] [UHD] Mac OS; Clang version 15.0.0 (clang-1500.1.0.2.5); Boost_108400; UHD_4.6.0.HEAD-0-g50fa3baa
[INFO] [B200] Detected Device: B205mini
[INFO] [B200] Operating over USB 3.
[INFO] [B200] Initialize CODEC control...
[INFO] [B200] Initialize Radio control...
[INFO] [B200] Performing register loopback test...
[INFO] [B200] Register loopback test passed
[INFO] [B200] Setting master clock rate selection to 'automatic'.
[INFO] [B200] Asking for clock rate 16.000000 MHz...
[INFO] [B200] Actually got clock rate 16.000000 MHz.
[INFO] [B200] Asking for clock rate 20.000000 MHz...
[INFO] [B200] Actually got clock rate 20.000000 MHz.
ch 446.0  samp/sec (  0% realtime); agc 105.9 Msamp/sec (294% realtime)
Channelizer too slow, use fewer channels
ch  20.0 Msamp/sec (100% realtime); agc 107.2 Msamp/sec (298% realtime)
ch  20.0 Msamp/sec (100% realtime); agc 106.1 Msamp/sec (295% realtime)
ch  20.0 Msamp/sec (100% realtime); agc 107.1 Msamp/sec (297% realtime)
ch  20.0 Msamp/sec (100% realtime); agc 109.2 Msamp/sec (303% realtime)
ch  20.0 Msamp/sec (100% realtime); agc 108.4 Msamp/sec (301% realtime)
ch  20.0 Msamp/sec (100% realtime); agc 109.0 Msamp/sec (303% realtime)
ch  20.0 Msamp/sec (100% realtime); agc 107.5 Msamp/sec (299% realtime)
ch  20.0 Msamp/sec (100% realtime); agc 104.4 Msamp/sec (290% realtime)
ch  20.0 Msamp/sec (100% realtime); agc 106.3 Msamp/sec (295% realtime)
ch  20.0 Msamp/sec (100% realtime); agc 104.8 Msamp/sec (291% realtime)
alphafox02 commented 7 months ago

Could someone with this error please try running the command from the command line like so:

ice9-bluetooth -l -s -c 2427 -C 20 -i usrp-<serial>

Let me know if you get the same error "Error opening UHD: 11" or if something else happens.

Hi, tried with usrp B200, getting this same error, any thoughts about this? Reproduced with master branch and v23.06.0

Are you replacing serial with your serial number?

hayyanali-cmd commented 4 weeks ago

Hello , I have the same issue:
ice9-bluetooth -l -s -c 2427 -C 20 -i usrp-3189ffd [INFO] [UHD] linux; GNU C++ version 11.4.0; Boost_107400; UHD_4.7.0.0-0ubuntu1~jammy1

Karthick-Vishnu commented 2 weeks ago

I'm having the same issue. In wireshark, my usrp is showing with ice9 but when I start capturing it, it throws me the error like

Error by extcap pipe: [INFO] [UHD] linux; GNU C++ version 11.3.0; Boost_107400; UHD_4.1.0.5-0-unknown ice9-bluetooth: Error opening UHD: 11.

ice9-bluetooth -l -i usrp-3143023 -c 2402 -C 20 -s -v -w /home/admin1/Music/out.pcap But when I run this in terminal, It is running successfully and capturing. Another issue is the pcap file is empty and I can't even analyze the packets.

alphafox02 commented 2 weeks ago

I would try this fork

https://github.com/bkerler/ice9-bluetooth-sniffer

He helped fix a few things and I recall testing my usrp with it.