Sponsored Links

Band selection utility for Huawei CPE Pro H112-370

Glad it is useful. It does work on my old B525 too.

I have been meaning to revisit this and tidy up a few things like hiding the 5G stuff when it does not apply on a 4G only router. Let me know if you have any feedback or suggestions...

I tried to format the script so it is human readable so feel free to modify it yourself if you fancy it
Nice work GazzaSat, is this your baby you did or was it already an open source code. If we modify, any issues, copyright or needed Credits to the release?, don't worry I'm not a Programmer, just may be interested in changing the Text Diminishtions for Mobile use up a Ladder.

I'm assuming most of the Info has been returned by using the api/device/signal Status Request?

Is there anyway of getting the Bonded Carrier Agregation Bands using the Api, ideally for both 4G and or 5G.

I have (somewhere) the Huawei 4G and 5G Api strings for Cell ID locking, ie EarFCN and PCI, could this be implemented as well as the Band Locking.

By the way are you involved in the latter Zyxel Java Scripts that are in existence?
 
Cheers for the feedback. A lot of this stuff may not be simple but will deffo take a look.

Some of the underlying API calls have been disabled in firmware like being able to add a new APN on my ex-3 CPE Pro box.

I did look at the CellID eNB lookup against CellMapper but it is tricky due to cross-site scripting blockers in Chrome browsers etc (these are a good thing for web security...) but worth some more investigation. The CellMapper website also gives dire copyright warning for people trying to repurpose their APIs - not unreasonably! They have to fund the website efforts somehow


I'm guessing that the same APN disabling has happened on the B535-333 for the VOIP & Bridge Mode functions, but the uncovering of the DNS change got me wondering. TBH they are nice to have as opposed to critical. Have you seen a list of API calls documented anywhere, if so I'll give them a try?
I can imagine the Cellmapper link would be a faff to implement, not least because of the multiple carriers involved as opposed to the initial code with a single Italian carrier. Again, it's really only a nice to have as copy & paste work quite well when, unlike the B535-333, the router reports the correct Cell ID.
 
Nice work GazzaSat, is this your baby you did or was it already an open source code. If we modify, any issues, copyright or needed Credits to the release?, don't worry I'm not a Programmer, just may be interested in changing the Text Diminishtions for Mobile use up a Ladder.

I'm assuming most of the Info has been returned by using the api/device/signal Status Request?

Is there anyway of getting the Bonded Carrier Agregation Bands using the Api, ideally for both 4G and or 5G.

I have (somewhere) the Huawei 4G and 5G Api strings for Cell ID locking, ie EarFCN and PCI, could this be implemented as well as the Band Locking.

By the way are you involved in the latter Zyxel Java Scripts that are in existence?
I took the miononno script as a base and reformatted it into human readable code first then made some modifications drawing on bits of the Zyxel scripts for the signal strength bars etc. I also looked at some of the Huawei API data in the community to add tweaks and stability fixes like those for supporting the CPE Pro 2 (which I don't have to test) based on feedback.

I have not seen any features for returning the active CA data or state in the API return strings but it would be cool if they were available to display.

TBH it is a bit of a mix and match from many sources really so I have no real claim to writing most of it and no issues you modifying it.

If you figure out some improvements to make then just pm me and I can update the code once you have tested it. I only have an unlocked ex-Three CPE Pro H112-370 and a generic B525 to test on but some API calls look to have been nobbled in firmware on the CPE Pro and I cannot update that...

@cancunia I also have something similar reworked and human readable for the MC801A but no added functionality just done for understanding how it worked. Happy to share it if you would like.
 
@cancunia I also have something similar reworked and human readable for the MC801A but no added functionality just done for understanding how it worked. Happy to share it if you would like.
Yes, that would be much appreciated.
Also any links you have to the API info in case there's something that would help with my B535-333.

Thanks
 
Does look similar to the miononno one I've been using for my ZTE. Presumably this wouldn't work for the ZTE as it'll be different API calls?
 
Sponsored Links
Yes, that would be much appreciated.
Also any links you have to the API info in case there's something that would help with my B535-333.

Thanks
Hi @cancunia,

apols for the delay. I had to re-find it... attached is the ZTE 801A script that has been re-formatted so you can read the code and see what it is doing. Again this is not my core work at all so no credit due here and I didn't add any functionality from the original.

I did start modifying the ENB ID link to open cellmapper.net (which it does) however I got bogged down with then calling the right API to then have it focus on the tower. Maybe you can figure it out?

Another thing is that the script is now quite large with all the padding characters and may be too big for the paste in URL shortcut method so you might need to use the Chrome F12 -> console method.
 

Attachments

Many thanks for posting the code, I'll take a look during the week. You probably already know this, but just in case, I used a tool called 'unminify' to look at the miononno code, but it still didn't make a lot of sense to me!

To run the code, I put it into a bookmark, then with the bookmark bar on display the code can be run after logging in to the router management page. There's also a js compress utility to take out the formatting, not sure how much quicker it runs if at all ...
 
@cancunia I was looking around again for more information on the API calls behind the Huawei and came across some useful python based stuff that you might be able to use to do stuff that you want. Maybe python is your thing?

The API calls are basically what are in the script I used and a whole lot more I guess. Plenty to check-out : https://github.com/Salamek/huawei-lte-api
 
Sponsored Links
Just a quick note to say thanks for this!

I did see that the device has some Security vulnerabilities, CVEs, against it which make me think they are referring to the ability to side step their web interface. LOL

My device is ex-Three and I'm using a SMARTY sim in it to great effect. I tried an expired Lebara sim and got a screen saying "SIM lock, 0 attempts remaining" but using the hide CSS trick it was child's play to show the login form and log in to the router regardless!

So I did some tweaking to get my device to notice the closest 5G mast, things seen a little faster but it's hard to say as they're so variable given my distance from the pole. But, it's super fast even at its slowest.

I'd like to find a way for the web ui to not log me out so quickly.
 
Just a quick note to say thanks for this!
:
I'd like to find a way for the web ui to not log me out so quickly.
Cheers.

I figured the timeout is at the system level so not much I could do about it

I did spend some time trying to figure out how to auto-login with a script so that I did not have to physically type in the password but got distracted.
 
Good idea!

I wanted to write a little menu bar script for my Mac to show the current 5G reception, as mine varies so much, but the status API page seems to require login.
 
Good idea!

I wanted to write a little menu bar script for my Mac to show the current 5G reception, as mine varies so much, but the status API page seems to require login.
If your referring to the 4/5G Signal Status API then yes it requires a login, but once connected you should be able to keep it alive by refreshing the API page, eg for example -

Login to Admin Web UI then open a second tab within the Browser and go to -
then by refreshing this Page should keep your Login alive, if you want to write a API Script to simply debug to return Signal Info, I did a breakdown of this info on the EE Community Forum a while back if you want to do a search, as I'm currently mobile so don't have the Link but could provide at a later date.
 
Sponsored Links
@bertie_bassett I have not looked at this recently m8. Free time just seems to evaporate at the moment...

It is still on the TODO list
Yeah tell me about it. Blink and three weeks have gone by.

I've broken and bought a Zyxel 5103E as I was sick of the restrictions and locked down firmware in this Three box. Should arrive next week, and I can't wait to have some freedom again!
 
Has anyone tried the Huawei Manager apps that people are creating?

I can confirm the LTEHMonitor463 PC software is still working fine atleast.
 
Top
Cheap BIG ISPs for 100Mbps+
Community Fibre UK ISP Logo
150Mbps
Gift: None
Virgin Media UK ISP Logo
Virgin Media £22.99
132Mbps
Gift: None
Vodafone UK ISP Logo
Vodafone £24.00 - 26.00
150Mbps
Gift: None
NOW UK ISP Logo
NOW £24.00
100Mbps
Gift: None
Plusnet UK ISP Logo
Plusnet £25.99
145Mbps
Gift: £50 Reward Card
Large Availability | View All
Cheapest ISPs for 100Mbps+
Gigaclear UK ISP Logo
Gigaclear £17.00
200Mbps
Gift: None
Community Fibre UK ISP Logo
150Mbps
Gift: None
Virgin Media UK ISP Logo
Virgin Media £22.99
132Mbps
Gift: None
Hey! Broadband UK ISP Logo
150Mbps
Gift: None
Youfibre UK ISP Logo
Youfibre £23.99
150Mbps
Gift: None
Large Availability | View All
Sponsored Links
The Top 15 Category Tags
  1. FTTP (6028)
  2. BT (3639)
  3. Politics (2721)
  4. Business (2440)
  5. Openreach (2405)
  6. Building Digital UK (2330)
  7. Mobile Broadband (2146)
  8. FTTC (2083)
  9. Statistics (1902)
  10. 4G (1816)
  11. Virgin Media (1764)
  12. Ofcom Regulation (1582)
  13. Fibre Optic (1467)
  14. Wireless Internet (1462)
  15. 5G (1407)
Sponsored

Copyright © 1999 to Present - ISPreview.co.uk - All Rights Reserved - Terms  ,  Privacy and Cookie Policy  ,  Links  ,  Website Rules