tpoechtrager / Huawei_Tool

CLI Utility for various Huawei devices.
https://www.lteforum.at/mobilfunk/huawei-band-tool.7970
GNU General Public License v3.0
89 stars 25 forks source link

ALL.sh and LTE_ALL.sh don't work, but UMTS_ALL.sh #3

Open Boscop opened 5 years ago

Boscop commented 5 years ago

ALL.sh and LTE_ALL.sh don't work, but UMTS_ALL.sh. I set it to UMTS_ALL, but because ALL.sh doesn't work, I can't reset it back to ALL now :( My guess is that it's becaues my router (E5577Cs-321) doesn't support all LTE bands, e.g. it doesn't seem to support LTE_900, but LTE_800, as you can see below. So if the tool also tries to set LTE_900 when setting ALL or LTE_ALL, maybe that's why those fail? Here is the output:

> ./ALL_PREFER_LTE.sh 
[1213] error: File: web.cpp  Line: 421  Function:  rapidxml::xml_node<>* web::{anonymous}::xmlHttpRequest(const char*, const char*, web::{anonymous}::HttpResult&, web::{anonymous}::HttpOpts&): Setting network mode: Setting net mode failed
[1213] info: See http://192.168.8.1/api/net/net-mode-list for a list of supported bands. Log in first.
[1213] info: Check debug.log to see what's going on
> ./LTE_ALL.sh        
[1203] error: File: web.cpp  Line: 421  Function:  rapidxml::xml_node<>* web::{anonymous}::xmlHttpRequest(const char*, const char*, web::{anonymous}::HttpResult&, web::{anonymous}::HttpOpts&): Setting network mode: Setting net mode failed
[1203] info: See http://192.168.8.1/api/net/net-mode-list for a list of supported bands. Log in first.
[1203] info: Check debug.log to see what's going on
> ./LTE_800.sh 
Current Network Mode: 03
Current Network Band: 3FFFFFFF
Current LTE Band: 524288 (900)

SUCCESS
> ./LTE_900.sh 
[247] error: File: web.cpp  Line: 421  Function:  rapidxml::xml_node<>* web::{anonymous}::xmlHttpRequest(const char*, const char*, web::{anonymous}::HttpResult&, web::{anonymous}::HttpOpts&): Setting network mode: Setting net mode failed
[247] info: See http://192.168.8.1/api/net/net-mode-list for a list of supported bands. Log in first.
[247] info: Check debug.log to see what's going on
> ./ALL.sh 
[230] error: File: web.cpp  Line: 421  Function:  rapidxml::xml_node<>* web::{anonymous}::xmlHttpRequest(const char*, const char*, web::{anonymous}::HttpResult&, web::{anonymous}::HttpOpts&): Setting network mode: Setting net mode failed
[230] info: See http://192.168.8.1/api/net/net-mode-list for a list of supported bands. Log in first.
[230] info: Check debug.log to see what's going on
> ./UMTS_ALL.sh 
Current Network Mode: 02
Current Network Band: 7FFFFFFFFFFFFFFF
Current LTE Band: 524288 (900)

SUCCESS
Boscop commented 5 years ago

Btw, when I call /api/net/net-mode-list, I get this:

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <AccessList>
        <Access>00</Access>
        <Access>01</Access>
        <Access>02</Access>
        <Access>03</Access>
    </AccessList>
    <BandList>
        <Band>
            <Name>GSM900&#x2F;GSM1800&#x2F;WCDMA BCVIII&#x2F;WCDMA BCI</Name>
            <Value>2000000400380</Value>
        </Band>
    </BandList>
    <LTEBandList>
        <LTEBand>
            <Name>LTE BC1&#x2F;LTE BC3&#x2F;LTE BC5&#x2F;LTE BC7&#x2F;LTE BC8&#x2F;LTE BC20</Name>
            <Value>800d5</Value>
        </LTEBand>
        <LTEBand>
            <Name>All bands</Name>
            <Value>7ffffffffffffff</Value>
        </LTEBand>
    </LTEBandList>
</response>
0xAA commented 5 years ago

I do not own a single Huawei device anymore. So I cannot change or test anything. Sorry.