tpoechtrager / Huawei_Tool

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

--lte-band <bitmask> #7

Closed leemcx closed 4 years ago

leemcx commented 4 years ago

Hi is it possible to connect to more than one band using the bitmask? For example I'd like to connect to band 20 (800) and band 32 (1500) using something like: ./huawei_band_tool --network-mode 03 --network-band 3FFFFFFF --lte-band 0000000000080000 0000000080000000

Thank you.

tpoechtrager commented 4 years ago

It's for sure possible but unfortunately I do not know the bitmask of band 32. Maybe you can figure it out by looking at the webinterface sources and tell me?

leemcx commented 4 years ago

Thank you for the reply. I believe that the two bitmask above are correct for band 20 and band 32 however, I am unsure how to construct the command with the two bitmasks present.

Band 20: LTE_BAND_800 = 0x80000, (0000000000080000) Band 32: LTE_BAND_1500 = 0X80000000 (0000000080000000)

Both work independently with --lte-band command but i'm yet to work out how to connect both bands at the same time.

tpoechtrager commented 4 years ago

I added band 32. New builds are available here: https://drive.google.com/drive/u/1/folders/1yS_vk-R4azZOm29OLainSpiCsOrU8nfK

./huawei_band_tool --lte-band-bitmask-from-string 1500+800
80080000`
leemcx commented 4 years ago

Thank you very much! - tested and it's working perfectly.