Skip to main content

A python module for referencing ARFCNs in GSM

Project description


.. image::
.. image::
:alt: Test Coverage
.. image::
:alt: Code Climate
.. image::
:alt: Issue Count

ARFCN reference Python module

This Python module contains a reference for all GSM channels by ARFCN.


pip install arfcnreference


Get a channel by uplink frequency:


>>> import arfcnreference
>>> arf_ref = arfcnreference.ArfcnReference()
>>> arf_ref.get_for_uplink(890.2)
{'band': 'GSM-900', 'downlink': 935.2, 'channel': 1}
>>> arf_ref.get_for_downlink(887.4)
{'band': 'EGSM-900', 'uplink': 887.4, 'channel': 1011}

Frequencies are returned in MHz.

Getting channels for a range of frequencies:


>>> for x in arf_ref.arfcn_for_downlink_range(842, 942):
... print x
{'1853': {'band': 'GSM-1900', 'uplink': 1853, 'channel': 526}}
{'1867': {'band': 'GSM-1900', 'uplink': 1867, 'channel': 596}}
{'1855': {'band': 'GSM-1900', 'uplink': 1855, 'channel': 536}}
{'1868': {'band': 'GSM-1900', 'uplink': 1868, 'channel': 601}}
(and so on)

Getting all channels in a band:


>>> for x in arf_ref.channels_in_band("GSM-850"):
... print x
{'downlink': 869.2, 'uplink': 824.2, 'channel': 128}
{'downlink': 869.4, 'uplink': 824.4, 'channel': 129}
{'downlink': 869.6, 'uplink': 824.6, 'channel': 130}
{'downlink': 869.8, 'uplink': 824.8, 'channel': 131}
{'downlink': 870, 'uplink': 825, 'channel': 132}
(and so on)


run `py.test` from the root of this repo.

Special thanks:

The reference information was lifted, with gratitude, from




- First working commit, provides GSM channel info. Queryable by
frequency, channel number, band, and range of frequencies. [Ash


- Initial commit. [Ash Wilson]

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for arfcnreference, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size arfcnreference-0.1-py2-none-any.whl (12.4 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size arfcnreference-0.1.tar.gz (11.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page