pearlxcore / Huawei-Router-Tool

Tool to interact with Huawei router using Huawei API. Project is no longer maintained.
128 stars 42 forks source link

RSRQ readout faulty on B818 #7

Closed salzrat closed 3 years ago

salzrat commented 4 years ago

When clicking on Signal Monitor, dozens of dialog boxes with "RSRQ Parsing Error" pop up.

On the device info page, RSRQ is displayed correctly, though...

I believe this is because the B818 formats the RSRQ with one decimal digit (e.g., -10.0). The conversion to a numbers probably fails then.

pearlxcore commented 4 years ago

Can you show response on "api/device/signal"?

salzrat commented 4 years ago

`

415 xxx -13.0dB -92dBm -57dBm 10dB 7 20MHz 20MHz PPusch:5dBm PPucch:-8dBm PSrs:0dBm PPrach:-4dBm mcsUpCarrier1:24 mcsDownCarrier1Code0:1 mcsDownCarrier1Code1:20 DL:3350 UL:21350 1 xxx 7 No1:xxx 23205 0 25600 26800 TM[4] xxx 15 127 2560000kHz 2680000kHz

`

pearlxcore commented 4 years ago

Yeah the rsrq value is in 1 decimal point. I used int.TryParse. Change to double.TryParse may solve the problem.

salzrat commented 4 years ago

Yes, but maybe you need an "InvariantCulture" parameter, as the decimal symbol may change between locales, but I think the router output will always use a ".". Looking forward to an updated release :)

salzrat commented 3 years ago

So is it fixed? I don't see a new version yet...

pearlxcore commented 3 years ago

Check the new release

https://github.com/pearlxcore/Huawei-Router-Tool/releases/tag/v7

salzrat commented 3 years ago

This now works, but there's another problem I'll report separately.