Then use:
if == " main ": login() print(get_band_info()) # set_lte_band(0x2001008) # example mask 3. Piece to Enable/Disable 5G or Set Preferred Mode (AT Commands via Telnet/SSH) The H155-381 often has a hidden telnet interface.
telnet 192.168.8.1 Login: admin Password: your_password thdyth albrnamj ly HUAWEI 5G CPE 5 H155-381
However, your request is a bit broad. The phrase "thdyth albrnamj" (تحديث البرنامج) means in Arabic.
Here are three developed pieces depending on your goal: Purpose: Find your current firmware version and update it officially. Then use: if == " main ": login()
It looks like you’re asking to develop a piece (likely a script, tool, or configuration) for the .
# piece for HUAWEI H155-381 - Band locking & cell info import requests import json CPE_IP = "192.168.8.1" PASSWORD = "your_password" # piece for HUAWEI H155-381 - Band locking
To give you exactly what you need, I’ll provide a complete guide and practical "pieces" (scripts/commands) for the most common tasks on this device.
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
| 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 |
From web → http://192.168.8.1/html/content.html#debug
Upgrade to PLUS to access the best of Map My Tracks including detailed performance analysis, live tracking, unlimited data retention and more. Map My Tracks PLUS is an affordable way to better understand your performance and organise your workouts. Try PLUS free for 30 days.