Synacktiv-contrib / Modmobmap

Map 2G/3G/4G and more cellular networks in real live with a simple smart phone, pretty much like osmocomBB monitoring feature.
97 stars 72 forks source link

HackRF is not being opened #10

Closed yesimxev closed 10 months ago

yesimxev commented 3 years ago

Hi, seems like HackRF is found but it timeouts after a while when opening.

root@kali:~/mnrt/Modmobmap# python modmobmap.py -m srslte_pss -g 'id=1'
Bands argument not set! Using band 7 by default instead.
[INFO] [UHD] linux; GNU C++ version 10.2.1 20201207; Boost_107400; UHD_3.15.0.0-4+b1
[INFO] [LOGGING] Fastpath logging disabled at runtime.
/root/mnrt/Modmobmap/thirdparty/srsLTE/lib/src/phy/rf/rf_uhd_imp.c.187: Error opening UHD: code 11

[ERROR] avahi_service_browser_new() failed: Bad state                                    
[INFO] Opening HackRF One #0 75b068dc32087f07...                                         
[INFO] [UHD] linux; GNU C++ version 10.2.1 20201207; Boost_107400; UHD_3.15.0.0-4+b1     
[INFO] [LOGGING] Fastpath logging disabled at runtime.                                   
/root/mnrt/Modmobmap/thirdparty/srsLTE/lib/src/phy/rf/rf_uhd_imp.c.187: Error opening UHD: code 11                                                                                

[ERROR] avahi_service_browser_new() failed: Bad state
[INFO] Opening HackRF One #0 75b068dc32087f07...
[INFO] [UHD] linux; GNU C++ version 10.2.1 20201207; Boost_107400; UHD_3.15.0.0-4+b1
[INFO] [LOGGING] Fastpath logging disabled at runtime.
/root/mnrt/Modmobmap/thirdparty/srsLTE/lib/src/phy/rf/rf_uhd_imp.c.187: Error opening UHD: code 11                                                                                

[ERROR] avahi_service_browser_new() failed: Bad state
[INFO] Opening HackRF One #0 75b068dc32087f07...
[INFO] [UHD] linux; GNU C++ version 10.2.1 20201207; Boost_107400; UHD_3.15.0.0-4+b1
[INFO] [LOGGING] Fastpath logging disabled at runtime.
/root/mnrt/Modmobmap/thirdparty/srsLTE/lib/src/phy/rf/rf_uhd_imp.c.187: Error opening UHD: code 11                                                                                

[ERROR] avahi_service_browser_new() failed: Bad state
[INFO] Opening HackRF One #0 75b068dc32087f07...
Uriaz2002 commented 3 years ago

Hey. did u get any solution for this... I am also unable to use hackrf with modmobmap

yesimxev commented 3 years ago

I'm not checking hackrf since but can test soon. I've added srsRAN repo instead of srsLTE and patched to have modmobmap in there. That comes with device name arg now, so needed some adjustment in modmobmap.py too. I can check with my HackRF once I get it back, give me a few days

FlUxIuS commented 3 years ago

Hi,

I just update srsLTE -> srsRAN on https://github.com/PentHertz/Modmobmap

Try uninstalling UHD to let Soapy find the device instead. You'll be able to use the hackRF with the following parameters:

$ sudo python modmobmap.py -m srslte_pss -g 'driver=hackrf' -b 28                                                                                                                                           

[INFO] Opening HackRF One #0 14d463dc2f6109e1..

In case you have a doubt, you can directly use the cellsearch_binary:

thirdparty/srsLTE/build/lib/examples/cell_search_modmobmap -b 28 -a driver=hackrf
[...]
[444/449]: EARFCN 9654 Freq. 802.40 MHz looking for PSS.
[445/449]: EARFCN 9655 Freq. 802.50 MHz looking for PSS.
[446/449]: EARFCN 9656 Freq. 802.60 MHz looking for PSS.
[447/449]: EARFCN 9657 Freq. 802.70 MHz looking for PSS.
[448/449]: EARFCN 9658 Freq. 802.80 MHz looking for PSS.

Found 0 cells

But I got an issue detecting some bands found with USRP as hackRF's RX sucks.

yesimxev commented 3 years ago

@FlUxIuS awesome! Are you also missing the bands from cells_123.json? Therefore, I have to manually put it into to function Modmobjam properly

aardzhanov commented 10 months ago

Use antenna for GSM. It works! photo_2024-01-24_07-23-03

yesimxev commented 10 months ago

Using SrsRAN with modmobmap patches helped. Thanks 🍻