[GH-ISSUE #10] Add support for MF289F #5

Closed
opened 2026-03-04 11:57:26 +03:00 by kerem · 14 comments
Owner

Originally created by @stich86 on GitHub (Aug 2, 2022).
Original GitHub issue: https://github.com/4IceG/luci-app-3ginfo-lite/issues/10

Hi @4IceG

i'm porting OpenWRT on MF289F. This is a "little" brother of MF286D.
ID of modem are the same

Bus 002 Device 002: ID 19d2:1485 ZTE,Incorporated ZTE Mobile Broadband

But the one into this router is 4CA, so the command "AT+ZCAINFO?" reporting 4 bands instead of 3 if you are forcing bands or leaving it in AUTO.

Here is an example output:

at+zcainfo? +ZCAINFO: 298, 20, 33003, 6400, 10.0; 130, 2, 3, 1850, 20.0; 225, 2, 1, 525, 15.0; 16, 2, 7, 3025, 15.0;

Do you think that is possible to add 4th band display, making a check on ATI commands? I've seen your script, should be easy to address.

Are you going to add also 3rd and 4th band on the LuCI UI? Currently only 2nd is displayed

Thanks :)

Originally created by @stich86 on GitHub (Aug 2, 2022). Original GitHub issue: https://github.com/4IceG/luci-app-3ginfo-lite/issues/10 Hi @4IceG i'm porting OpenWRT on MF289F. This is a "little" brother of MF286D. ID of modem are the same `Bus 002 Device 002: ID 19d2:1485 ZTE,Incorporated ZTE Mobile Broadband` But the one into this router is 4CA, so the command "AT+ZCAINFO?" reporting 4 bands instead of 3 if you are forcing bands or leaving it in AUTO. Here is an example output: `at+zcainfo? +ZCAINFO: 298, 20, 33003, 6400, 10.0; 130, 2, 3, 1850, 20.0; 225, 2, 1, 525, 15.0; 16, 2, 7, 3025, 15.0; ` Do you think that is possible to add 4th band display, making a check on ATI commands? I've seen your script, should be easy to address. Are you going to add also 3rd and 4th band on the LuCI UI? Currently only 2nd is displayed Thanks :)
kerem closed this issue 2026-03-04 11:57:27 +03:00
Author
Owner

@4IceG commented on GitHub (Aug 2, 2022):

Hi @stich86
I was supposed to change 3ginfo, because they already wrote to me on the forum that it could show more, but I don't know how to show it yet, so that it would be still simple.

Scripts are just scripts and we can customize them, change them to show more (more bands).

<!-- gh-comment-id:1203244720 --> @4IceG commented on GitHub (Aug 2, 2022): Hi @stich86 I was supposed to change 3ginfo, because they already wrote to me on the forum that it could show more, but I don't know how to show it yet, so that it would be still simple. Scripts are just scripts and we can customize them, change them to show more (more bands).
Author
Owner

@stich86 commented on GitHub (Aug 4, 2022):

Hi @stich86 I was supposed to change 3ginfo, because they already wrote to me on the forum that it could show more, but I don't know how to show it yet, so that it would be still simple.

Scripts are just scripts and we can customize them, change them to show more (more bands).

i've sent you a PR, here is how is loking with the other bands added:

image

let me know if you like it :)

<!-- gh-comment-id:1205364638 --> @stich86 commented on GitHub (Aug 4, 2022): > Hi @stich86 I was supposed to change 3ginfo, because they already wrote to me on the forum that it could show more, but I don't know how to show it yet, so that it would be still simple. > > Scripts are just scripts and we can customize them, change them to show more (more bands). i've sent you a PR, here is how is loking with the other bands added: ![image](https://user-images.githubusercontent.com/27808541/182877540-b5a11fd8-980d-4157-800c-ff26d8201e3f.png) let me know if you like it :)
Author
Owner

@4IceG commented on GitHub (Aug 4, 2022):

Hi @stich86 , it's cool that you've customized the scripts, but I won't add it as is anyway because I've already modified 3ginfo and it's similar but different (I'll show in a picture later what it looks like). I'm not publishing the changes because I'm still thinking of an elegant way to search for BTS by Cell ID.

<!-- gh-comment-id:1205836846 --> @4IceG commented on GitHub (Aug 4, 2022): Hi @stich86 , it's cool that you've customized the scripts, but I won't add it as is anyway because I've already modified 3ginfo and it's similar but different (I'll show in a picture later what it looks like). I'm not publishing the changes because I'm still thinking of an elegant way to search for BTS by Cell ID.
Author
Owner

@4IceG commented on GitHub (Aug 5, 2022):

Hi @stich86
I have published a new version of the package, you can take a peek to see if it looks better.

<!-- gh-comment-id:1206221316 --> @4IceG commented on GitHub (Aug 5, 2022): Hi @stich86 I have published a new version of the package, you can take a peek to see if it looks better.
Author
Owner

@stich86 commented on GitHub (Aug 5, 2022):

looks like mine with the addon of BTS info. Problem of that MF289F doesn't give cell-id into AT+CREG command :(

Now we have a problem with MF289F AT2 rev that expose modem as MF286\286A. The script of MF286\286A is using into AWK field seprator that doesn't contain ";", so all paramerts are wrong.

As you have implemented isn't easy to fix, because you are looking VID\PID thru usb devices..

Any ideas?

<!-- gh-comment-id:1206277252 --> @stich86 commented on GitHub (Aug 5, 2022): looks like mine with the addon of BTS info. Problem of that MF289F doesn't give cell-id into AT+CREG command :( Now we have a problem with MF289F AT2 rev that expose modem as MF286\286A. The script of MF286\286A is using into AWK field seprator that doesn't contain ";", so all paramerts are wrong. As you have implemented isn't easy to fix, because you are looking VID\PID thru usb devices.. Any ideas?
Author
Owner

@4IceG commented on GitHub (Aug 5, 2022):

if the "modems are the same", maybe you need to do device name verification? and depend on the name of the script?

<!-- gh-comment-id:1206288778 --> @4IceG commented on GitHub (Aug 5, 2022): if the "modems are the same", maybe you need to do device name verification? and depend on the name of the script?
Author
Owner

@stich86 commented on GitHub (Aug 5, 2022):

if the "modems are the same", maybe you need to do device name verification? and depend on the name of the script?

yes are the same, but the HW rev AT2 expose it as 19d2:1432 instead of 19d2:1485, so your script will use addon "19d21432" that doesn't recognize the output of AT commands (specially for LTE band information)

<!-- gh-comment-id:1206290249 --> @stich86 commented on GitHub (Aug 5, 2022): > if the "modems are the same", maybe you need to do device name verification? and depend on the name of the script? yes are the same, but the HW rev AT2 expose it as 19d2:1432 instead of 19d2:1485, so your script will use addon "19d21432" that doesn't recognize the output of AT commands (specially for LTE band information)
Author
Owner

@4IceG commented on GitHub (Aug 5, 2022):

So the script should verify which device it is running on, since the modems are the same, you need to add the device name condition.

<!-- gh-comment-id:1206293139 --> @4IceG commented on GitHub (Aug 5, 2022): So the script should verify which device it is running on, since the modems are the same, you need to add the device name condition.
Author
Owner

@stich86 commented on GitHub (Aug 5, 2022):

So the script should verify which device it is running on, since the modems are the same, you need to add the device name condition.

yes.. an may be the idea is to parametrize the AWK filter based on device name, so you will avoid to replicate all band stuff on the script

What do you think?

<!-- gh-comment-id:1206294405 --> @stich86 commented on GitHub (Aug 5, 2022): > So the script should verify which device it is running on, since the modems are the same, you need to add the device name condition. yes.. an may be the idea is to parametrize the AWK filter based on device name, so you will avoid to replicate all band stuff on the script What do you think?
Author
Owner

@4IceG commented on GitHub (Aug 5, 2022):

There is no other way, since the script should be universal.

<!-- gh-comment-id:1206300091 --> @4IceG commented on GitHub (Aug 5, 2022): There is no other way, since the script should be universal.
Author
Owner

@stich86 commented on GitHub (Aug 5, 2022):

There is no other way, since the script should be universal.

ok i'll try to refactor your script and send a PR so you can check if can be integrated

<!-- gh-comment-id:1206306144 --> @stich86 commented on GitHub (Aug 5, 2022): > There is no other way, since the script should be universal. ok i'll try to refactor your script and send a PR so you can check if can be integrated
Author
Owner

@stich86 commented on GitHub (Aug 5, 2022):

PR create, take a look and let me know :)

<!-- gh-comment-id:1206390208 --> @stich86 commented on GitHub (Aug 5, 2022): PR create, take a look and let me know :)
Author
Owner

@4IceG commented on GitHub (Aug 5, 2022):

Okay, it looks unusual, but if it works. Today I'm barely alive after work so tomorrow I'll add it and make a test package. I don't have this router so the guys on the forum will have to check if it works.

<!-- gh-comment-id:1206859140 --> @4IceG commented on GitHub (Aug 5, 2022): Okay, it looks unusual, but if it works. Today I'm barely alive after work so tomorrow I'll add it and make a test package. I don't have this router so the guys on the forum will have to check if it works.
Author
Owner

@stich86 commented on GitHub (Aug 5, 2022):

MiG25 has that modem on Eko, so he can also test it.

I've already tested on a router of a friend and it's working

<!-- gh-comment-id:1206899135 --> @stich86 commented on GitHub (Aug 5, 2022): MiG25 has that modem on Eko, so he can also test it. I've already tested on a router of a friend and it's working
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/luci-app-3ginfo-lite#5
No description provided.