Thdyth Albrnamj Ly Huawei 5g Cpe 5 H155-381 ⚡ Direct

session = requests.Session() def login(): url = f"http://CPE_IP/api/user/login" data = "username": "admin", "password": PASSWORD resp = session.post(url, data=data) return resp.json() Get current band info def get_band_info(): url = f"http://CPE_IP/api/net/current-plmn" resp = session.get(url) return resp.json() Set LTE band (example: band 3, 20, 28) def set_lte_band(band_mask): url = f"http://CPE_IP/api/net/lte-band" data = "band": band_mask resp = session.post(url, data=json.dumps(data)) return resp.text

AT^SYSCFGEX="03",3FFFFFFF,1,2,7FFFFFFFFFFFFFFF, Save as reboot_h155.sh : thdyth albrnamj ly HUAWEI 5G CPE 5 H155-381

| Command | Function | |---------|----------| | AT^SYSCFGEX="00",3FFFFFFF,1,2,7FFFFFFFFFFFFFFF, | Auto mode | | AT^SYSCFGEX="03",3FFFFFFF,1,2,7FFFFFFFFFFFFFFF, | Force 5G only | | AT^SYSCFGEX="02",3FFFFFFF,1,2,7FFFFFFFFFFFFFFF, | Force 4G only | | AT^BANDLOCK=? | Show band lock status | | AT^RESET | Reboot modem | session = requests

From web → http://192.168.8.1/html/content.html#debug "password": PASSWORD resp = session.post(url