Open al1ce23 opened 6 years ago
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
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}
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?
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).
thanks for speaking at 34c3 and creating this tool. it would be nice to have hackrf_sweep integrated.