FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
1,356 views 5 comments
by anonymous
Hello,

I would like to create a simple app for an Android auto radio system but connected through LAN:

The main goals will be to allow:

- 1 - Profile swapping (Mobile, Mobile+AP, WiFi)

- 2 - WiFi scan result and password prompt (if necessary)

- 3 - Mobile connection information in case of trouble.

- 4 - Mobile quota display and alerting.

For that the best way, I think is to use CLI. What are the commands for:

- Profile selection ?

- WAN WiFi scan ?

Thanks

yA

1 Answer

0 votes
by anonymous

Hi,

- Profile selection ?

Try with uci, config location:  uci show profiles

- WAN WiFi scan ?

iwinfo wlan0 scan

by
Excellent, I'll try later on. How to swap between profiles ?
by anonymous

- How to swap between profiles ?

Swap using router WebUI and check which parameters are changed. Basically should be enough to change profile name and restart service (luci-reload).

by
hello, thank you for your reply but I woud like to swap between profiles with CLI.

I would like also to retreive quota limit and current value through CLI.
by anonymous

Hi,

- but I woud like to swap between profiles with CLI.

Yes, but as I said firstly do it via router WebUI and compare settings. Then you will know which exactly parameters you need to change.

- I would like also to retreive quota limit and current value through CLI.

What exactly parameters you want to get? Could add screenshot from webUI where this information is located?

by anonymous

in CLI, I would like to show the data used limit. (First page)

Also accessible in status --> mobile traffic --> Total --> Total usage.