FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

12688 questions

15067 answers

24145 comments

47111 members

0 votes
1,124 views 5 comments
by
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

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

- 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

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

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

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