janh/go-dsl

TP Link xDSL modems

Closed this issue · 2 comments

First, thank you for creating this project.
TP Link has various modems with Broadcom, Mediatek, Lantiq chips.

Their products can be accessed for additional xDSL stats.
It requires modding the firmware as seen here:
https://github.com/sta-c0000/tpconf_bin_xml

Once that is done, root access is granted, through telnet at port 1023.

It seems go-dsl defaults to port 23 for telnet access.

By editing internal/telnet/client.go line 140 from :23 to :1023
I can use go-dsl to access my Bradcom based TP Link modem through telnet.

It would be great if this program could allow a parameter to specify telnet port.

Thank you.

janh commented

Specifying an alternative port is already supported, you can just add it to the host! I'll update the documentation to mention that.

I just tried, it works, thank you. :)
Various TP Link modems could potentially be added to the supported devices list with the mention that they require a firmware mod as per the link above.
Here is a tentative list:
TD-W8970, TD-W8980, TD-W9970, TD-W9980, Archer VR900, C2, C20, C60, VR300, VR400, VR600, VR900
However, they come in different versions, for instance VR600 v1 and v2 are Broadcom based whilst VR600 v3 is Mediatek based.
I have only tested a Broadcom based modem, I can confirm it works.