Ejemplo n.º 1
0
 public ChannelParams(int id, uint frequency, Datarates min, Datarates max, Bands band)
 {
     this.Id            = id;
     this.frequency     = frequency;
     this.dataRange.Min = min;
     this.dataRange.Max = max;
     this.band          = band;
 }
Ejemplo n.º 2
0
 public Mac()
 {
     Channels = new ChannelParams[16];
     for (int id = 0; id < Channels.Length; ++id)
     {
         Channels[id] = new ChannelParams(id, 0U, Datarates.DR_0, Datarates.DR_0, Bands.BAND_G1_0);
     }
     Rx2Channel                      = new Rx2ChannelParams(0U, Datarates.DR_0);
     ChannelsMask                    = new ushort[6];
     Channels[0].Frequency           = 868100000U;
     Channels[0].DatarateRange.Value = (sbyte)80;
     Channels[0].Band                = Bands.BAND_G1_1;
     Channels[1].Frequency           = 868300000U;
     Channels[1].DatarateRange.Value = (sbyte)96;
     Channels[1].Band                = Bands.BAND_G1_1;
     Channels[2].Frequency           = 868500000U;
     Channels[2].DatarateRange.Value = (sbyte)80;
     Channels[2].Band                = Bands.BAND_G1_1;
     Channels[3].Frequency           = 867100000U;
     Channels[3].DatarateRange.Value = (sbyte)80;
     Channels[3].Band                = Bands.BAND_G1_0;
     Channels[4].Frequency           = 867300000U;
     Channels[4].DatarateRange.Value = (sbyte)80;
     Channels[4].Band                = Bands.BAND_G1_0;
     Channels[5].Frequency           = 867500000U;
     Channels[5].DatarateRange.Value = (sbyte)80;
     Channels[5].Band                = Bands.BAND_G1_0;
     Channels[6].Frequency           = 867700000U;
     Channels[6].DatarateRange.Value = (sbyte)80;
     Channels[6].Band                = Bands.BAND_G1_0;
     Channels[7].Frequency           = 867900000U;
     Channels[7].DatarateRange.Value = (sbyte)80;
     Channels[7].Band                = Bands.BAND_G1_0;
     Channels[8].Frequency           = 868800000U;
     Channels[8].DatarateRange.Value = (sbyte)119;
     Channels[8].Band                = Bands.BAND_G1_2;
     ChannelsMask[0]                 = (ushort)7;
     ChannelsMask[1]                 = (ushort)0;
     ChannelsMask[2]                 = (ushort)0;
     ChannelsMask[3]                 = (ushort)0;
     ChannelsMask[4]                 = (ushort)0;
     ChannelsMask[5]                 = (ushort)0;
     ChannelsTxPower                 = Powers.TX_POWER_14_DBM;
     ChannelsDatarate                = Datarates.DR_0;
     ChannelsNbTrans                 = (byte)1;
     MaxRxWindow                     = 3000000U;
     ReceiveDelay1                   = 1000000U;
     ReceiveDelay2                   = 2000000U;
     JoinAcceptDelay1                = 5000000U;
     JoinAcceptDelay2                = 6000000U;
     DutyCycleOn                     = true;
     PublicNetwork                   = true;
     DeviceClass                     = DeviceClasses.CLASS_A;
     DevicePhy = DevicePhys.EU868;
 }
Ejemplo n.º 3
0
		public DrRange(Datarates min, Datarates max)
		{
			_min = min;
			_max = max;
		}
Ejemplo n.º 4
0
		public ChannelParams(int id, uint frequency, Datarates min, Datarates max, Bands band)
		{
			this.Id = id;
			this.frequency = frequency;
			this.dataRange.Min = min;
			this.dataRange.Max = max;
			this.band = band;
		}
Ejemplo n.º 5
0
		public Mac()
		{
			Channels = new ChannelParams[16];
			for (int id = 0; id < Channels.Length; ++id)
				Channels[id] = new ChannelParams(id, 0U, Datarates.DR_0, Datarates.DR_0, Bands.BAND_G1_0);
			Rx2Channel = new Rx2ChannelParams(0U, Datarates.DR_0);
			ChannelsMask = new ushort[6];
			Channels[0].Frequency = 868100000U;
			Channels[0].DatarateRange.Value = (sbyte)80;
			Channels[0].Band = Bands.BAND_G1_1;
			Channels[1].Frequency = 868300000U;
			Channels[1].DatarateRange.Value = (sbyte)96;
			Channels[1].Band = Bands.BAND_G1_1;
			Channels[2].Frequency = 868500000U;
			Channels[2].DatarateRange.Value = (sbyte)80;
			Channels[2].Band = Bands.BAND_G1_1;
			Channels[3].Frequency = 867100000U;
			Channels[3].DatarateRange.Value = (sbyte)80;
			Channels[3].Band = Bands.BAND_G1_0;
			Channels[4].Frequency = 867300000U;
			Channels[4].DatarateRange.Value = (sbyte)80;
			Channels[4].Band = Bands.BAND_G1_0;
			Channels[5].Frequency = 867500000U;
			Channels[5].DatarateRange.Value = (sbyte)80;
			Channels[5].Band = Bands.BAND_G1_0;
			Channels[6].Frequency = 867700000U;
			Channels[6].DatarateRange.Value = (sbyte)80;
			Channels[6].Band = Bands.BAND_G1_0;
			Channels[7].Frequency = 867900000U;
			Channels[7].DatarateRange.Value = (sbyte)80;
			Channels[7].Band = Bands.BAND_G1_0;
			Channels[8].Frequency = 868800000U;
			Channels[8].DatarateRange.Value = (sbyte)119;
			Channels[8].Band = Bands.BAND_G1_2;
			ChannelsMask[0] = (ushort)7;
			ChannelsMask[1] = (ushort)0;
			ChannelsMask[2] = (ushort)0;
			ChannelsMask[3] = (ushort)0;
			ChannelsMask[4] = (ushort)0;
			ChannelsMask[5] = (ushort)0;
			ChannelsTxPower = Powers.TX_POWER_14_DBM;
			ChannelsDatarate = Datarates.DR_0;
			ChannelsNbTrans = (byte)1;
			MaxRxWindow = 3000000U;
			ReceiveDelay1 = 1000000U;
			ReceiveDelay2 = 2000000U;
			JoinAcceptDelay1 = 5000000U;
			JoinAcceptDelay2 = 6000000U;
			DutyCycleOn = true;
			PublicNetwork = true;
			DeviceClass = DeviceClasses.CLASS_A;
			DevicePhy = DevicePhys.EU868;
		}
Ejemplo n.º 6
0
		public Rx2ChannelParams(uint frequency, Datarates datarate)
		{
			_frequency = frequency;
			_datarate = datarate;
		}
Ejemplo n.º 7
0
		public Rx2ChannelParams()
		{
			_frequency = 0U;
			_datarate = Datarates.DR_0;
		}
Ejemplo n.º 8
0
 public DrRange(Datarates min, Datarates max)
 {
     _min = min;
     _max = max;
 }
Ejemplo n.º 9
0
 public Rx2ChannelParams(uint frequency, Datarates datarate)
 {
     _frequency = frequency;
     _datarate  = datarate;
 }
Ejemplo n.º 10
0
 public Rx2ChannelParams()
 {
     _frequency = 0U;
     _datarate  = Datarates.DR_0;
 }