Javascript library that for convert EARFCN and Frequency.
- Check out! Modified Demo more conveniently!
This is LTE EARFCN Calculator. The main purpose is to convert EARFCN to Frequency or vice versa to calculate EARFCN using frequency and band.
1~48 (Rel 18 July 2017)
LTE frequency band 36.101 (Rel 14 Jun 2017)
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";
console.log(LTE.earfcnToFreq(0)); // 2110.0
console.log(LTE.freqToEarfcnByBand(1, 2110)); // 0.0
npm install --save lte-earfcn-calculator
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.