subscribe to our Youtube


14455 questions

17168 answers


0 members

We are migrating to our new platform at Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
358 views 5 comments
by anonymous
Dear all,

We're working with RUT240's and RUT950's in the near future.
We use the router to connect a small iot-box with a RPi inside to the internet in all 3 known ways, wired, wireless and via cellular.
The problem is when there is no cellular coverage and no wired option available the customer should be capable to configure the wifi-credentials himself for the wifi (Station-mode) without accessing the router admin page.
We made a small configuration service on the RPi which is reachable after connecting to the router-wifi (AP-mode).
This works but not the very stable (probably need some testing), and slow.
Does any of you also face this problem and how did you solve this?

Is there a package maybe which solves this? couldn't find any....

Thanks in advance for your responses


2 Answers

0 votes
by anonymous


It would be interesting to understand how does your configuration service works.

Anyways there is one way to chance wireless station used password by using uci commands if have you ability to reach router via SSH. 

For example:

uci set wireless.@wifi.-iface[1].key='password'

uci commit


By using these 3 commands in the SSH terminal I have changed my wireless station password.

You could use uci show to review all changeable variables

More about uci:


by anonymous
We use a combination of http-calls and json-rpc with uci commands, also the set of commands in your example.

It works as I said, we were just wondering if there is a solution build-in or add-on for when you use this router without an SBC connected.

by anonymous
Unfortunately, there is no other solution to this use case. The requirement to change WiFi station password without accessing WebUI is very rare and the solution for that is not developed. For these rare cases there are methods like UCI via JSON or customers write their own scripts according to their needs.
by anonymous
Ok, clear. Then we're on right path :)

0 votes
by anonymous
Your requirement is quite common in the IoT-world.

To fulfill, I usually provide some simple PHP-pages, after installation of package. (You can also use lua.)

And do some minor mods to dnsmasq.conf.

So, the enduser can access http://my.rut/configure(.php)
by anonymous
thank you for your comment,

do you install and run this on the router itself (run second webserver?) or on a separate sbc?
The mods in dnsmasq and firewall are already done with our solution.

by anonymous
On the router itself. LuCi is run via uhttpd, which is also able to serve custom stuff. No second webserver required, as long as the my.rut/configure(.php) pages are single-user, which should be always the case.

However, you either need to run a custom script to do the mods to the default setup, _OR_ you will need to build a custom image, which might be required, anyway, to include your language of choice. I just saw, that the "standard" SDK from Teltonika does not include PHP (so bad), so your choices then are LUA, Erlang, Perl, Python, Ruby.

Of course, another possibility is to let the enduser provide the wifi credentials on your (public web) server, and then dynamically reconfigure the RUT955. Simplest solution.