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.
1~52 (Rel 16 May 2018)
npm install --save lte-earfcn-calculator
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
This project support unit test using mocha
npm test
Now you can dive into the project! Welcome anything, such as add frequencies, add test case, edit typo!
- http://niviuk.free.fr/lte_band.php
- jsonfile - To generate test json file.