lte-earfcn-calculator
v0.2.99
Published
Javascript library for calculate EARFCN and Frequency.
Downloads
55
Maintainers
Readme
LTE EARFCN Calculator
I'll renewal this project.
Javascript library for calculate EARFCN and Frequency. The main purpose is to convert EARFCN to Frequency or vice versa to calculate EARFCN using frequency and band.
Supported Band
1~52 (Rel 16 May 2018)
Install
npm install --save lte-earfcn-calculator
Example
Install before execute code.
Included example code in this library. Check this file.
/src/example.js
If you want to execute example try thisnode src/example.js
import LTE from "lte-earfcn-calculator";
let earfcn = 0;
let band = 1;
let frequency = 2110; // MHz
console.log(LTE.earfcnToFreq(earfcn)); // 2110.0
console.log(LTE.freqToEarfcnByBand(band, frequency)); // 0.0
Demo
Test
This project support unit test using mocha
npm test
Contribute
Now you can dive into the project! Welcome anything, such as add frequencies, add test case, edit typo!
Contributors
Reference
- http://niviuk.free.fr/lte_band.php
- jsonfile - To generate test json file.