Changer les fréquences du huawei 715 en python

Bonjour!
Si ça peut servir à d'autres pour automatisation ou autre : J'ai joué avec une API qui permet de modifier les bandes du routeur, c'est assez simple à utiliser et permet rapidement de faire des petits exécutables : exemple d'un code pyhton qui me met en upload B3 et DL B3+B7+B38 et qui fonctionne bien :)
from huawei_lte_api.Client import Client
from huawei_lte_api.Connection import Connection
try :
url = "http://admin:XXXXXXX@192.168.2.1"
connection = Connection(url)
client = Client(connection)
networkband = "3FFFFFFF"
networkmode = "03"
lteband="4"
client.net.set_net_mode(lteband, networkband, networkmode)
print("bande upload B3 - 1800")
except Exception as e :
print("Connexion error - " + str(e))
exit()
try :
url = "http://admin:XXXXXXX@192.168.2.1"
connection = Connection(url)
client = Client(connection)
networkband = "3FFFFFFF"
networkmode = "03"
lteband="2008000004"
client.net.set_net_mode(lteband, networkband, networkmode)
print("bande download ok")
except Exception as e :
print("Connexion error - " + str(e))
exit()
- 4,110 Utilisateurs
- 5,688 Discussions
- 46,470 Réponses