Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-04

Modem config

16 messages · 7 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

aradeonas

Hi,

Is there any one have a clue or experience that how can I change modems config like a simple dsl internet modem ? Many of modems as I check have a config page in 192.168.1.1 and a web interface that you can change for example WIFI name,Now I want to do that in my application.

Regards, Ara

http://www.fastmail.com - The way an email service should be -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150419/ec130324/attachment.html>

Reply by email

Michael Van Canneyt
to aradeonas
aradeonas wrote
Hi, ? Is there any one have a clue or experience that how can I change modems config like a simple dsl internet modem ? Many of modems as I check have a config page in 192.168.1.1 and a web interface that you can change for example WIFI name,Now I want to do that in my application.

Each model works differently.
You will need to find out the HTTP commands the web page sends to the modem, and mimic those using TFPHTTPClient or the synapse HTTP component in httpsend. I did this once for my modem, it's not that hard.
The most difficult thing is finding out how it secures the HTTP connection (cookie, password etc).

Michael.

Reply by email

Michael Van Canneyt
to aradeonas
aradeonas wrote
Thanks Michael. So there is not an API for these modems?

Not that I know of. I suspect each manufacturer uses his own way.

If you still have that code can you share it with me so I get a start point?or another source maybe you know.I searched for an API or way but couldn't find anything useful.

I no longer have the code, because I switched from D-Link to Cisco.

The code would be useless most likely. You'll need to use your favorite browser (I use firefox and firebug) to examine the requests that happen when you configure the modem using the browser. It's most likely just a GET and a POST, after all.

Michael.

Reply by email

aradeonas
to Michael Van Canneyt

Thank you and I tried this way but as I see its just post forms in my TP-Link modem.
So in this way I should browse it and fill the fields and save them. If any one know a better way or know a way for other brands please let me know because I need to work with other brands too.

Regards,
Ara

http://www.fastmail.com - Faster than the air-speed velocity of an unladen european swallow

Reply by email

Lukasz Sokol
to Michael Van Canneyt: Not that I know of. I suspect each manufacturer uses his own way. I no longer have the…
Michael Van Canneyt wrote 8 lines
On Mon, 20 Apr 2015, aradeonas wrote: > Thanks Michael. So there is not an API for these modems? Not that I know of. I suspect each manufacturer uses his own way.

Unfortunately that is true - even if they had a CLI over telnet or ssh, everyone uses their own command set (if they're not menu driven, duh)

Recently, there was movement in the Powers that Be, for this sort of devices to support TR-069...

but looking at it you can /exactly/ see who is it aimed for... (not the end-user, that's for sure)

el es

Reply by email

Graeme Geldenhuys
to aradeonas: Is there any one have a clue or experience that how can I change modems config like a…
aradeonas wrote
Many of modems as I check have a config page in 192.168.1.1 and a web interface that you can change for example WIFI name,Now I want to do that in my application.

Some DSL modems also have an open Telnet port for making config changes, but I think these are getting few and far between.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Mark Morgan Lloyd
to Lukasz Sokol: Unfortunately that is true - even if they had a CLI over telnet or ssh, everyone uses…
Lukasz Sokol wrote 16 lines
On 20/04/15 08:37, Michael Van Canneyt wrote: > > On Mon, 20 Apr 2015, aradeonas wrote: > >> Thanks Michael. So there is not an API for these modems? > Not that I know of. I suspect each manufacturer uses his own way. > Unfortunately that is true - even if they had a CLI over telnet or ssh, everyone uses their own command set (if they're not menu driven, duh) Recently, there was movement in the Powers that Be, for this sort of devices to support TR-069... but looking at it you can /exactly/ see who is it aimed for... (not the end-user, that's for sure)

A number of these things use common firmware, so superficially they might appear to present either a common GUI or a similar command set- possibly with numbered (sub)items- via telnet. This is likely to be deceptive, and you will get burnt if you rely on it.

The only thing that you will find that is remotely standardised is SNMP, and this might or might not provide access to the settings you want.

In any event, if you get the settings wrong you might leave yourself or your customers open to security violations.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Mark Morgan Lloyd
to aradeonas
aradeonas wrote
So what can I do?

Determine whether the routers you're interested in support SNMP, and whether their security is adequate. Research the standard ADSL-related MIBs, and talk to the relevant manufacturers/distributors to see what extra facilities they offer. Assuming that there's something usable, wade in with Synapse or whatever.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Lukasz Sokol
to aradeonas: Thank you Lukasz,Telnet ways is interesting. Ara http://www.fastmail.com - Send your…
aradeonas wrote
Thank you Lukasz,Telnet ways is interesting.

If you / someone wrote something directed at TR-069, directly speaking to a modem I'd be even more interested ;) and willing to cooperate in r & d & t of such a program.

(we were looking for ways to pre-load config to modems/routers, through their WAN interface no less, directly from basically ANY kind of input such TR069 speaker can take, and every modem vendor basically hails only their own products for that even if they are in fact doing TR069... and every (free) TR069 solution out there wants either mongo.db or node.js or both... or written in very old/odd release of Java :L ... it all looks like there just isn't any SIMPLE program that can speak TR069 to likewise enabled speaker.)

Regards, Ara

el es

Reply by email

Paul Breneman
to Lukasz Sokol
Lukasz Sokol wrote 18 lines
On 20/04/15 09:01, aradeonas wrote: > Thank you Lukasz,Telnet ways is interesting. > If you / someone wrote something directed at TR-069, directly speaking to a modem I'd be even more interested ;) and willing to cooperate in r & d & t of such a program. (we were looking for ways to pre-load config to modems/routers, through their WAN interface no less, directly from basically ANY kind of input such TR069 speaker can take, and every modem vendor basically hails only their own products for that even if they are in fact doing TR069... and every (free) TR069 solution out there wants either mongo.db or node.js or both... or written in very old/odd release of Java :L ... it all looks like there just isn't any SIMPLE program that can speak TR069 to likewise enabled speaker.) > Regards, > Ara el es

Control Terminal is a *very* simple program that has been extended for various other purposes. www.ctrlterm.com

If a company want to pay for such an extension, I am interested in helping to find someone to do the work.

Reply by email