greatscottgadgets / hackrf

low cost software radio platform
https://greatscottgadgets.com/hackrf/
GNU General Public License v2.0
6.6k stars 1.54k forks source link

Hackrf boot directly in usb mode if usb detected? or default to usb somehow #1445

Closed adminy closed 4 months ago

adminy commented 7 months ago

What would you like to know?

how can I ensure that my hackrf is always in usb mode when connected to the pi. is there a serial command I can type to flip modes

or perhaps hackrf has usb detect to flip, or maybe there is a way to default to usb?

thanks

miek commented 7 months ago

The standard HackRF firmware is always in USB mode. Are you asking about switching out of PortaPack mode? If so, this would be a question for whichever PortaPack firmware you're using and not something we're able to address in our firmware.

adminy commented 7 months ago

so when HackRF is plugged into the Pi, I have to click, go all the way down to usb mode, click, confirm the yes, then it turns into usb mode. Otherwise by default its UI mode.

I am using the latest firmware from this repo.

just wondering if there is a cli command to change usb mode.

martinling commented 4 months ago

As miek said, this is an issue to raise with the Mayhem folks. The Mayhem firmware includes a copy of our standard HackRF firmware as a submodule. When you select the USB mode it boots that firmware instead of the Portapack UI. If you want some other way to switch it over, that's something that would have to be added to their firmware. I gather recent versions include some USB functionality while in the Portapack UI mode, so it might be possible.