eldraco / Salamandra

Salamandra is a tool to find spy microphones that use radio freq to transmit. It uses SDR.
818 stars 112 forks source link

hackrf_sweepo #4

Open al1ce23 opened 6 years ago

al1ce23 commented 6 years ago

thanks for speaking at 34c3 and creating this tool. it would be nice to have hackrf_sweep integrated.

umer0zerve commented 2 years ago
  1. is it possible to extract cell id from hackrf sweep? Hi All My task is to extract cell id from hack-rf files. I have two files

  2. hack-rf transfer (file sampled at 1 frequency) format of the collection: hackrf_transfer -f {LTE_frequency} -s 19200000 -b 20000000 -n 1728000 -l 16 -a 1 -g 30 -r {path to cfile or bin file}

  3. hack-rf sweep (file sampled between 500 - 6000 MHz). format of the collection: hackrf_sweep -a 1 -f 500:6000 -p 1 -l 16 -g 30 N 1 -B -r {output_dir}/sdr/{time}.cfile

I'm able to extract cell id from the hack-rf transfer file which was sampled at a single frequency. However, I'm not able to extract the cell id from hack-rf sweep file.

is it really not possible to extract cell id from hack-rf sweep?

umer0zerve commented 2 years ago
  1. Is is there is any correct way of reading hack-rf sweep data in python? I've used complex 64, int8, int16 etc.

def Read_method3(path): iq = np.fromfile(path, np.int8) iq = (iq[::2] + 1j*iq[1::2]) return iq

Int8 works well for hack-rf transfer file (file saved at single frequency). however, its not working well for hack-rf sweep file (file sweep between 500 - 6000 MHz).