Skip to content

test_l3.py: Sanitize signal and channel fields before CSV write - #388

Merged
goyalsaurabh06 merged 2 commits into
greearb:masterfrom
goyalsaurabh06:test_l3_rssi_channel_normalize
Sep 2, 2026
Merged

test_l3.py: Sanitize signal and channel fields before CSV write#388
goyalsaurabh06 merged 2 commits into
greearb:masterfrom
goyalsaurabh06:test_l3_rssi_channel_normalize

Conversation

@Durga-CT

@Durga-CT Durga-CT commented Sep 2, 2026

Copy link
Copy Markdown
Contributor
  • Store RSSI as a plain number, dropping the unit (e.g. -53 dBm → -53)
  • Store the channel number only, using NA when there is none (e.g. [channel: 36] → 36, 0/-1/empty → NA)

- extract numeric RSSI from "-53 dBm"
- extract channel number from "[channel: 36]", fall back to "NA" for 0/-1/empty

Signed-off-by: durga-ct <prasad.bandi@candelatech.com>
Comment thread py-scripts/test_l3.py Outdated
- make signal/channel normalization a single reusable function
- call normalize_signal_channel() from write_dl_port_csv and write_ul_port_csv

VERIFIED CLI

For Virtual
python3 test_l3.py --lfmgr 192.168.207.75 --endp_type mc_udp --tos BK --upstream_port eth1 --radio 'radio==wiphy0 stations==2 ssid==NETGEAR_2G_WAP2 ssid_pw==Password@123 security==wpa2' --test_duration 1m --polling_interval 5s --side_b_min_bps 102400000 --sta_start_offset 2000

For Real
python3 test_l3.py --lfmgr 192.168.245.117 --test_duration 1m --polling_interval 5s --upstream_port eth2 --endp_type mc_udp --side_b_min_bps=10000000 --tos BE --real

Signed-off-by: durga-ct <prasad.bandi@candelatech.com>
@goyalsaurabh06
goyalsaurabh06 merged commit f802a04 into greearb:master Sep 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants