mirror of
https://github.com/meshtastic/meshtastic.git
synced 2025-02-21 03:25:51 -08:00
Adding Region Data (#560)
* initial region interface * initial us & unset regions * initial ANZ region * initial CN region * initial EU_433 region * initial EU_868 region * initial IN region * initial JP region * initial KR region * initial LORA_24 region * initial NZ_865 region * initial RU region * initial TH region * initial TW region
This commit is contained in:
parent
a20db4aa1a
commit
b138e4c0cf
11
src/data/region.ts
Normal file
11
src/data/region.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
export interface IRegion {
|
||||
name: string;
|
||||
freqStart: number;
|
||||
freqEnd: number;
|
||||
dutyCycle: number;
|
||||
spacing: number;
|
||||
powerLimit: number;
|
||||
audioPermitted: boolean;
|
||||
frequencySwitching: boolean;
|
||||
wideLora: boolean;
|
||||
}
|
13
src/data/regions/anz.ts
Normal file
13
src/data/regions/anz.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { IRegion } from '../region';
|
||||
|
||||
export const ANZ: IRegion = {
|
||||
name: "ANZ",
|
||||
freqStart: 915.0,
|
||||
freqEnd: 928.0,
|
||||
dutyCycle: 100,
|
||||
spacing: 0,
|
||||
powerLimit: 30,
|
||||
audioPermitted: true,
|
||||
frequencySwitching: false,
|
||||
wideLora: false,
|
||||
}
|
13
src/data/regions/cn.ts
Normal file
13
src/data/regions/cn.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { IRegion } from '../region';
|
||||
|
||||
export const CN: IRegion = {
|
||||
name: "CN",
|
||||
freqStart: 470.0,
|
||||
freqEnd: 510.0,
|
||||
dutyCycle: 100,
|
||||
spacing: 0,
|
||||
powerLimit: 19,
|
||||
audioPermitted: true,
|
||||
frequencySwitching: false,
|
||||
wideLora: false,
|
||||
}
|
13
src/data/regions/eu_433.ts
Normal file
13
src/data/regions/eu_433.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { IRegion } from '../region';
|
||||
|
||||
export const EU_433: IRegion = {
|
||||
name: "EU_433",
|
||||
freqStart: 433.0,
|
||||
freqEnd: 434.0,
|
||||
dutyCycle: 10,
|
||||
spacing: 0,
|
||||
powerLimit: 12,
|
||||
audioPermitted: true,
|
||||
frequencySwitching: false,
|
||||
wideLora: false,
|
||||
}
|
13
src/data/regions/eu_868.ts
Normal file
13
src/data/regions/eu_868.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { IRegion } from '../region';
|
||||
|
||||
export const EU_868: IRegion = {
|
||||
name: "EU_868",
|
||||
freqStart: 869.4,
|
||||
freqEnd: 869.65,
|
||||
dutyCycle: 10,
|
||||
spacing: 0,
|
||||
powerLimit: 27,
|
||||
audioPermitted: false,
|
||||
frequencySwitching: false,
|
||||
wideLora: false,
|
||||
}
|
13
src/data/regions/in.ts
Normal file
13
src/data/regions/in.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { IRegion } from '../region';
|
||||
|
||||
export const IN: IRegion = {
|
||||
name: "IN",
|
||||
freqStart: 865.0,
|
||||
freqEnd: 867.0,
|
||||
dutyCycle: 100,
|
||||
spacing: 0,
|
||||
powerLimit: 30,
|
||||
audioPermitted: true,
|
||||
frequencySwitching: false,
|
||||
wideLora: false,
|
||||
}
|
13
src/data/regions/jp.ts
Normal file
13
src/data/regions/jp.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { IRegion } from '../region';
|
||||
|
||||
export const JP: IRegion = {
|
||||
name: "JP",
|
||||
freqStart: 920.8,
|
||||
freqEnd: 927.8,
|
||||
dutyCycle: 100,
|
||||
spacing: 0,
|
||||
powerLimit: 16,
|
||||
audioPermitted: true,
|
||||
frequencySwitching: false,
|
||||
wideLora: false,
|
||||
}
|
13
src/data/regions/kr.ts
Normal file
13
src/data/regions/kr.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { IRegion } from '../region';
|
||||
|
||||
export const KR: IRegion = {
|
||||
name: "KR",
|
||||
freqStart: 920.0,
|
||||
freqEnd: 925.0,
|
||||
dutyCycle: 100,
|
||||
spacing: 0,
|
||||
powerLimit: 0,
|
||||
audioPermitted: true,
|
||||
frequencySwitching: false,
|
||||
wideLora: false,
|
||||
}
|
13
src/data/regions/lora_24.ts
Normal file
13
src/data/regions/lora_24.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { IRegion } from '../region';
|
||||
|
||||
export const LORA_24: IRegion = {
|
||||
name: "LORA_24",
|
||||
freqStart: 2400.0,
|
||||
freqEnd: 2483.5,
|
||||
dutyCycle: 100,
|
||||
spacing: 0,
|
||||
powerLimit: 10,
|
||||
audioPermitted: true,
|
||||
frequencySwitching: false,
|
||||
wideLora: true,
|
||||
}
|
13
src/data/regions/nz_865.ts
Normal file
13
src/data/regions/nz_865.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { IRegion } from '../region';
|
||||
|
||||
export const NZ_865: IRegion = {
|
||||
name: "NZ_865",
|
||||
freqStart: 864.0,
|
||||
freqEnd: 868.0,
|
||||
dutyCycle: 100,
|
||||
spacing: 0,
|
||||
powerLimit: 36,
|
||||
audioPermitted: true,
|
||||
frequencySwitching: false,
|
||||
wideLora: false,
|
||||
}
|
13
src/data/regions/ru.ts
Normal file
13
src/data/regions/ru.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { IRegion } from '../region';
|
||||
|
||||
export const RU: IRegion = {
|
||||
name: "RU",
|
||||
freqStart: 868.7,
|
||||
freqEnd: 869.2,
|
||||
dutyCycle: 100,
|
||||
spacing: 0,
|
||||
powerLimit: 20,
|
||||
audioPermitted: true,
|
||||
frequencySwitching: false,
|
||||
wideLora: false,
|
||||
}
|
13
src/data/regions/th.ts
Normal file
13
src/data/regions/th.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { IRegion } from '../region';
|
||||
|
||||
export const TH: IRegion = {
|
||||
name: "TH",
|
||||
freqStart: 920.0,
|
||||
freqEnd: 925.0,
|
||||
dutyCycle: 100,
|
||||
spacing: 0,
|
||||
powerLimit: 16,
|
||||
audioPermitted: true,
|
||||
frequencySwitching: false,
|
||||
wideLora: false,
|
||||
}
|
13
src/data/regions/tw.ts
Normal file
13
src/data/regions/tw.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { IRegion } from '../region';
|
||||
|
||||
export const TW: IRegion = {
|
||||
name: "TW",
|
||||
freqStart: 920.0,
|
||||
freqEnd: 925.0,
|
||||
dutyCycle: 100,
|
||||
spacing: 0,
|
||||
powerLimit: 0,
|
||||
audioPermitted: true,
|
||||
frequencySwitching: false,
|
||||
wideLora: false,
|
||||
}
|
13
src/data/regions/unset.ts
Normal file
13
src/data/regions/unset.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { IRegion } from '../region';
|
||||
|
||||
export const UNSET: IRegion = {
|
||||
name: "UNSET",
|
||||
freqStart: 902.0,
|
||||
freqEnd: 928.0,
|
||||
dutyCycle: 100,
|
||||
spacing: 0,
|
||||
powerLimit: 30,
|
||||
audioPermitted: true,
|
||||
frequencySwitching: false,
|
||||
wideLora: false,
|
||||
}
|
13
src/data/regions/us.ts
Normal file
13
src/data/regions/us.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { IRegion } from '../region';
|
||||
|
||||
export const US: IRegion = {
|
||||
name: "US",
|
||||
freqStart: 902.0,
|
||||
freqEnd: 928.0,
|
||||
dutyCycle: 100,
|
||||
spacing: 0,
|
||||
powerLimit: 30,
|
||||
audioPrmitted: true,
|
||||
frequencySwitching: false,
|
||||
wideLora: false,
|
||||
}
|
Loading…
Reference in a new issue