Arfcn calculation tool

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Harald Welte laforge at gnumonks.org
Mon Jun 28 11:44:25 UTC 2010


Hi Dexter,

thanks for your program.

However, this problem had to be solved for OsmocomBB layer1 (and airprobe) already,
thus libosmocore already has (at least part of) the functionality, e.g. the
"uint16_t gsm_arfcn2freq10(uint16_t arfcn, int uplink)" function, which will
give you the frequency in units of 100kHz (to avoid floating point math).

The input parameter "arfcn" is the arfcn, optionally with the ARFCN_PCS bit
set, if you want PCS1900 instead of DCS1800.

Threre is also a function "enum gsm_band gsm_arfcn2band(uint16_t arfcn)"
which will tell you the band from the arfcn.

What is missing is the function to generate the ARFCN from the frequency.

Maybe you could submit a function with the protoctype like
"uint16_t gsm_freq10_to_arfcn(uint16_t freq10, int uplink)"
and submit it as a patch to libosmocore/src/gsm_utils.c

Next step would be to port your tool to use the functions of libosmocore
and then merge your tool into the openbsc source tree.

If that's too much effort I don't blame you... but I always try to avoid
code duplication when possible.

Regards,
	Harald
-- 
- Harald Welte <laforge at gnumonks.org>           http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)




More information about the OpenBSC mailing list