Closed herbetom closed 3 years ago
Is there a way to switch to "5G only" NetworkMode? I haven't found it. Have you?
I tried all NetworkMode
codes (00..30
) and it responded with OK
to the code 08
. I don't know what this code mean. But the modem stayed offline after the OK-response.
I'm using this library to get some data from a H122-373 for an Prometheus Exporter. At least the
get
stuff seems to work.Just wanted to report that. Here are some function calls (it is an 5G NSA connection (4G+5G)):
Click to expand!
``` client.device.basic_information(): { "classify": "cpe", "devicename": "H122-373", "multimode": "0", "productfamily": "LTE", "restore_default_status": "0", "sim_save_pin_enable": "0", "spreadname_en": "HUAWEI 5G CPE Pro 2", "spreadname_zh": "\u534e\u4e3a 5G CPE Pro 2" } client.monitoring.traffic_statistics(): { "CurrentConnectTime": "289", "CurrentDownload": "407238382", "CurrentDownloadRate": "443457", "CurrentUpload": "33884055", "CurrentUploadRate": "76419", "TotalConnectTime": "5344844", "TotalDownload": "18554169910362", "TotalUpload": "2299259362559", "showtraffic": "1" } client.monitoring.check_notifications(): { "OnlineUpdateStatus": "14", "SimOperEvent": "0", "SmsStorageFull": "0", "UnreadMessage": "1" } client.device.signal() { "arfcn": null, "band": "7", "bsic": null, "cell_id": "XXXXXXXX", # i masked this "cqi0": "3", "cqi1": "8", "dl_mcs": "mcsDownCarrier1Code0:29 mcsDownCarrier1Code1:28", "dlbandwidth": "20MHz", "dlfrequency": "2650000kHz", "earfcn": "DL:3050 UL:21050", "ecio": null, "enodeb_id": "XXXXXXX", # i masked this "ims": "0", "lac": null, "ltedlfreq": "26500", "lteulfreq": "25300", "mode": "7", "nei_cellid": null, "nrbler": null, "nrcqi0": "32639", "nrcqi1": "32639", "nrdlbandwidth": "90MHz", "nrdlfreq": "3654900kHz", "nrdlmcs": "NRmcsDownCarrier1Code0:27 NRmcsDownCarrier1Code1:0", "nrearfcn": "DL:643660 UL:643660", "nrrank": null, "nrrsrp": "-79dBm", "nrrsrq": "-10.0dB", "nrsinr": "15dB", "nrtxpower": "PPusch:12dBm PPucch:-4dBm PSrs:0dBm PPrach:-1dBm", "nrulbandwidth": "90MHz", "nrulfreq": "3654900kHz", "nrulmcs": "NRmcsUpCarrier1:20", "pci": "427", "plmn": "26201", "rac": null, "rrc_status": "1", "rscp": null, "rsrp": "-80dBm", "rsrq": "-5.0dB", "rssi": "-54dBm", "rxlev": null, "sc": null, "scc_pci": "0x20", "sinr": "8dB", "tac": "24005", "tdd": null, "transmode": "TM[4]", "txpower": "PPusch:0dBm PPucch:0dBm PSrs:0dBm PPrach:0dBm", "ul_mcs": "mcsUpCarrier1:28", "ulbandwidth": "20MHz", "ulfrequency": "2530000kHz", "wdlfreq": null } ```Thanks for all this work, it's really helpful for me!