Update tests to power in EIRP (16 & 29).

This commit is contained in:
Orne Brocaar 2023-10-12 15:38:52 +01:00
parent 5e63c5efe0
commit 81d37a1d6c
8 changed files with 33 additions and 33 deletions

View File

@ -1438,7 +1438,7 @@ async fn test_lorawan_10_uplink() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 868100000, frequency: 868100000,
power: 14, power: 16,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -1465,7 +1465,7 @@ async fn test_lorawan_10_uplink() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 869525000, frequency: 869525000,
power: 27, power: 29,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -1548,7 +1548,7 @@ async fn test_lorawan_10_uplink() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 868100000, frequency: 868100000,
power: 14, power: 16,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -1575,7 +1575,7 @@ async fn test_lorawan_10_uplink() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 869525000, frequency: 869525000,
power: 27, power: 29,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -2372,7 +2372,7 @@ async fn test_lorawan_10_rx_delay() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 868100000, frequency: 868100000,
power: 14, power: 16,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -2399,7 +2399,7 @@ async fn test_lorawan_10_rx_delay() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 869525000, frequency: 869525000,
power: 27, power: 29,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -5192,7 +5192,7 @@ async fn test_lorawan_11_receive_window_selection() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 868100000, frequency: 868100000,
power: 14, power: 16,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -5261,7 +5261,7 @@ async fn test_lorawan_11_receive_window_selection() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 869525000, frequency: 869525000,
power: 27, power: 29,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -5331,7 +5331,7 @@ async fn test_lorawan_11_receive_window_selection() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 868100000, frequency: 868100000,
power: 14, power: 16,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -5358,7 +5358,7 @@ async fn test_lorawan_11_receive_window_selection() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 869525000, frequency: 869525000,
power: 27, power: 29,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -5438,7 +5438,7 @@ async fn test_lorawan_11_receive_window_selection() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 868100000, frequency: 868100000,
power: 14, power: 16,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -5465,7 +5465,7 @@ async fn test_lorawan_11_receive_window_selection() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 869525000, frequency: 869525000,
power: 27, power: 29,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {

View File

@ -310,7 +310,7 @@ async fn test_downlink_scheduler() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 868300000, frequency: 868300000,
power: 14, power: 16,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -392,7 +392,7 @@ async fn test_downlink_scheduler() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 868300000, frequency: 868300000,
power: 14, power: 16,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {

View File

@ -150,7 +150,7 @@ async fn test_downlink_scheduler() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 869525000, frequency: 869525000,
power: 27, power: 29,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -219,7 +219,7 @@ async fn test_downlink_scheduler() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 869525000, frequency: 869525000,
power: 27, power: 29,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {

View File

@ -126,7 +126,7 @@ async fn test_multicast() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 868300000, frequency: 868300000,
power: 14, power: 16,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -175,7 +175,7 @@ async fn test_multicast() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 868300000, frequency: 868300000,
power: 14, power: 16,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {

View File

@ -216,7 +216,7 @@ async fn test_fns() {
phy_payload: vec![1, 2, 3, 4], phy_payload: vec![1, 2, 3, 4],
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 868100000, frequency: 868100000,
power: 14, power: 16,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora(gw::LoraModulationInfo { parameters: Some(gw::modulation::Parameters::Lora(gw::LoraModulationInfo {
bandwidth: 125000, bandwidth: 125000,

View File

@ -442,7 +442,7 @@ async fn test_lorawan_10() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 868100000, frequency: 868100000,
power: 14, power: 16,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -469,7 +469,7 @@ async fn test_lorawan_10() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 869525000, frequency: 869525000,
power: 27, power: 29,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -507,7 +507,7 @@ async fn test_lorawan_10() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 868100000, frequency: 868100000,
power: 14, power: 16,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -534,7 +534,7 @@ async fn test_lorawan_10() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 869525000, frequency: 869525000,
power: 27, power: 29,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -729,7 +729,7 @@ async fn test_lorawan_10() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 868100000, frequency: 868100000,
power: 14, power: 16,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -756,7 +756,7 @@ async fn test_lorawan_10() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 869525000, frequency: 869525000,
power: 27, power: 29,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -1062,7 +1062,7 @@ async fn test_lorawan_11() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 868100000, frequency: 868100000,
power: 14, power: 16,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -1089,7 +1089,7 @@ async fn test_lorawan_11() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 869525000, frequency: 869525000,
power: 27, power: 29,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -1128,7 +1128,7 @@ async fn test_lorawan_11() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 868100000, frequency: 868100000,
power: 14, power: 16,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -1155,7 +1155,7 @@ async fn test_lorawan_11() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 869525000, frequency: 869525000,
power: 27, power: 29,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {

View File

@ -499,7 +499,7 @@ async fn test_lorawan_10() {
phy_payload: phy_relay_unconfirmed_down_ack.to_vec().unwrap(), phy_payload: phy_relay_unconfirmed_down_ack.to_vec().unwrap(),
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 868100000, frequency: 868100000,
power: 14, power: 16,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -526,7 +526,7 @@ async fn test_lorawan_10() {
phy_payload: phy_relay_unconfirmed_down_ack.to_vec().unwrap(), phy_payload: phy_relay_unconfirmed_down_ack.to_vec().unwrap(),
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 869525000, frequency: 869525000,
power: 27, power: 29,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {

View File

@ -302,7 +302,7 @@ async fn test_lorawan_10() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 868100000, frequency: 868100000,
power: 14, power: 16,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {
@ -327,7 +327,7 @@ async fn test_lorawan_10() {
tx_info_legacy: None, tx_info_legacy: None,
tx_info: Some(gw::DownlinkTxInfo { tx_info: Some(gw::DownlinkTxInfo {
frequency: 869525000, frequency: 869525000,
power: 27, power: 29,
modulation: Some(gw::Modulation { modulation: Some(gw::Modulation {
parameters: Some(gw::modulation::Parameters::Lora( parameters: Some(gw::modulation::Parameters::Lora(
gw::LoraModulationInfo { gw::LoraModulationInfo {