Adding atc-apn-database for automatic APN detection. - #14
Conversation
- Bump atc-fib-fm350_gl and added support to APN autodetection - Bump luci-proto-atc and added support to APN autodetection
|
Would changing active SIM (via |
In practice it should, then knowing the fibocom you may have to restart it but I’m not sure. At each reconnection, the check is performed again. |
|
Hi Some thoughts: Since this is an add on I would like to keep the changes in I don´t understand the need for In current implementation you first run Why do we need check the apn setting after a network initiated disconnection? Do you have an example of the database file? BTW, a lots of ISPs allow you to use an empty APN and then the ISP will use the default APN and set it to you. |
|
Hi, Thanks for taking the time to review this! You made some really good points and I want to make sure I understand exactly what you have in mind before I start changing things. About the database format - the Android source is XML, and I initially tried converting it to JSON thinking I could use jsonfilter to parse it properly. But I ran into some issues getting jsonfilter to work correctly with the nested structure, so I ended up using grep/sed instead. You're absolutely right though - if I'm not using a proper JSON parser, the format is overkill. Would a simple format like For the code organization, I'm not sure what fits best with the project style. Should I just add a small function in atc.sh that reads the database, or would you prefer keeping it completely separate? I could make it really minimal if that's better. You mentioned that many ISPs work with empty APNs - that's a good point I hadn't considered. Should we maybe try empty first and only look up the database if that fails? Or the other way around? Also, when auto_apn is enabled, should it completely override what the user configured, or only fill in the blanks if they didn't set an APN? Honestly, I'm flexible on all of this - I just want to contribute something useful that fits well with how you maintain the project. If you could give me a rough idea of how you'd approach it, I'll follow that direction. What do you think? |
|
Finally I got to trying the new package today. which overrides the return value of Maybe it is better to go back to the way it was done in the earlier commit (9aadc6c):
Two typical entries: As you can see,
The problem I see is that it wouldn't work for entries with positive
Let's say the USIM is changed (by switching to the other sim via
Definitely not all of them.
If the database entry works too, and you already have the code to query it, why not? |
|
You can parse the database with Some entities are not correct. Which Two incorrect profiles: Should be this profile: and Should be this profile: |
Do you mean that for this MCC-MNC combination the original XML contains multiple entries (e.g., due to MVNOs), and the wrong one was selected to be included in the JSON file? |
|
Regarding "240_02", there are no MVNOs. I don´t understand why |
Mention #12