BabbleSim / ext_2G4_channel_Indoorv1

Model of the 2.4GHz Indoor channel. To be used as a channel library with BabbleSim's 2.4GHz Phy v1
1 stars 1 forks source link

Error in Indoor channel model #2

Closed kelsayed closed 4 years ago

kelsayed commented 4 years ago

I am running the Indoorv1 channel model. I use the following command ./bs_2G4_phy_v1 -s=trial_sim -D=2 -sim_length=5e8 $@ \ -defmodem=BLE_simple -channel=Indoorv1 -argschannel -RiceK=1.5 -speed=2.5 -preset=Huge3 -at=-55 -ds=30 \ -exp=2.0 -dist=../components/ext_2G4_channel_Indoorv1/test/data1/trial_case_1.matri

I get the following error p_2G4: ERROR: (src/channel_2G4Indoorv1.c:380): Unknown modulation type 32

When I comment line 388 bs_trace_error_line("Unknown modulation type %u\n", ModulationType); and replace it with BW = 1*samplesPerMHz; //FixThis The simulation continues gracefully but I am not sure why this occurs or if this fix breaks the channel model. I don't like this hack. The modulation type needs to be properly selected before reaching this function.

Here is the log which occurs with other Zephyr NRF samples as well. Could you have a look or tell me if some of my parameters are wrong.

_2G4: WARNING: (src/channel_2G4Indoorv1_pathloss.c:363): The distances matrix file is trying to define the path from 2->0, but only 2 devices are set in the simulation => will be ignored p_2G4: WARNING: (src/channel_2G4Indoorv1_pathloss.c:363): The distances matrix file is trying to define the path from 2->1, but only 2 devices are set in the simulation => will be ignored p_2G4: WARNING: (src/channel_2G4Indoorv1_pathloss.c:363): The distances matrix file is trying to define the path from 3->0, but only 2 devices are set in the simulation => will be ignored p_2G4: WARNING: (src/channel_2G4Indoorv1_pathloss.c:363): The distances matrix file is trying to define the path from 3->1, but only 2 devices are set in the simulation => will be ignored p_2G4: WARNING: (src/channel_2G4Indoorv1_pathloss.c:363): The distances matrix file is trying to define the path from 3->2, but only 2 devices are set in the simulation => will be ignored d_00: @00:00:00.000000 Booting Zephyr OS build zephyr-v2.3.0-510-gb8781e27b0bb d_00: @00:00:00.000000 Starting Dynamic Tx Power Beacon Demo d_01: @00:00:00.000000 Booting Zephyr OS build zephyr-v2.3.0-510-gb8781e27b0bb d_01: @00:00:00.000000 [00:00:00.000,000] bt_hci_core: HW Platform: Nordic Semiconductor (0x0002) d_01: @00:00:00.000000 [00:00:00.000,000] bt_hci_core: HW Variant: nRF52x (0x0002) d_01: @00:00:00.000000 [00:00:00.000,000] bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 2.3 Build 99 d_01: @00:00:00.000000 [00:00:00.000,000] bt_hci_core: No static addresses stored in controller d_01: @00:00:00.002648 [00:00:00.002,624] bt_hci_core: Identity: ed:71:8f:c2:e4:6e (random) d_01: @00:00:00.002648 [00:00:00.002,624] bt_hci_core: HCI: version 5.2 (0x0b) revision 0x0000, manufacturer 0x05f1 d_01: @00:00:00.002648 [00:00:00.002,624] bt_hci_core: LMP: version 5.2 (0x0b) subver 0xffff d_01: @00:00:00.002648 Bluetooth initialized d_01: @00:00:00.003368 Scanning successfully started d_00: @00:00:00.000000 [00:00:00.000,000] bt_hci_core: HW Platform: Nordic Semiconductor (0x0002) d_00: @00:00:00.000000 [00:00:00.000,000] bt_hci_core: HW Variant: nRF52x (0x0002) d_00: @00:00:00.000000 [00:00:00.000,000] bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 2.3 Build 99 d_00: @00:00:00.000000 [00:00:00.000,000] bt_hci_core: No static addresses stored in controller d_00: @00:00:00.000000 Get Tx power level ->-> default TXP = 0 d_00: @00:00:00.002648 [00:00:00.002,624] bt_hci_core: Identity: ed:3b:20:15:18:12 (random) d_00: @00:00:00.002648 [00:00:00.002,624] bt_hci_core: HCI: version 5.2 (0x0b) revision 0x0000, manufacturer 0x05f1 d_00: @00:00:00.002648 [00:00:00.002,624] bt_hci_core: LMP: version 5.2 (0x0b) subver 0xffff d_00: @00:00:00.002648 Bluetooth initialized d_00: @00:00:00.002648 Dynamic Tx power Beacon started d_01: @00:00:00.028858 [DEVICE]: ed:3b:20:15:18:12 (random), AD evt type 0, AD data len 7, RSSI -58 d_01: @00:00:00.028858 [AD]: 1 data_len 1 d_01: @00:00:00.028858 [AD]: 3 data_len 2 d_01: @00:00:00.056141 Connected: ed:3b:20:15:18:12 (random) d_00: @00:00:00.056643 Connected via connection (0) at ed:71:8f:c2:e4:6e (random) d_00: @00:00:00.056643 Connection (0) - Initial Tx Power = 0 d_00: @00:00:00.056643 Actual Tx Power: 0 d_00: @00:00:00.056643 Connection (0) - Tx Power = 0 d_01: @00:00:00.108866 [ATTRIBUTE] handle 16 d_01: @00:00:00.258390 [ATTRIBUTE] handle 17 p_2G4: ERROR: (src/channel_2G4Indoorv1.c:380): Unknown modulation type 32

kelsayed commented 4 years ago

Fix by rstoica in https://github.com/BabbleSim/ext_2G4_channel_Indoorv1/issues/1 is perfect. Will close this now.