HackRF
Port Number
PA1 0
PA2 1
PA3 2
PA4 3
PB1 4
PB2 5
PB3 6
PB4 7
5.2 Opera Glasses
As no other software is opera cake aware, it is possible to pre-configure HackRF to support frequency bands and have
opera cake automatically switch antenna when the radio retunes. The bands are specified in priority order, the final
band specified will be used for frequencies not covered by the other bands specified.
To configure ports to frequency bands you must use the -f min:max:port argument for each band, with the frequen-
cies specified in MHz. For example:
hackrf_operacake -f 100:600:0 -f 600:1200:2 -f 0:4000:5
will use PA1 for 100MHz to 600MHz, PA3 for 600MHz to 1200MHz, and PB2 for 0MHz to 4GHz. If tuning to
precisely 600MHz PA1 will be used as it is listed first. Tuning to anything over 4GHz will use PB2 as it is the last
listed, and therefore the default antenna.
18 Chapter 5. Opera Cake