A python script to decrypt and encrypt the config file from a talktalk HG633 router can be found at the following link.
https://pastebin.com/uhSuWunYCredit to:
https://hg658c.wordpress.com/2017/12/04/decrypting-configuration-files-from-other-huawei-home-gateway-routers/Use the script the same way as in the first post of this thread.
To enable telnet modify the 7th line of the decrypted config file, preferably using Notepad++ to edit the file, windows notepad may cause errors in the file.
Old line:
<X_ServiceManage CircleTestDevice="" CircleTestResult=""/>
New line:
<X_ServiceManage TelnetEnable="1" TelnetPort="23" KeyEquipMode="0" ConsoleEnable="" CircleTestDevice="" CircleTestResult=""/>
The router uses a cut down version of the broadcom "xdslcmd" commands
ie
$ xdslcmd
Usage: xdslcmd start [--up] [--mod <a|d|l|t|2|p|e|m|v>]
[--trellis <on|off>] [--bitswap <on|off>] [--sesdrop <on|off>]
[--sra <on|off>] [--phyReXmt <0|1>] [--i24k <on|off>]
[--profile <0x01 - 0xFF>|<"8a |8b |8c |8d |12a |12b |17a |30a">]
[--SOS <on|off>]
xdslcmd stop
xdslcmd connection [--up] [--down] [--loopback]
[--diagmode] [--normal] [--L0]
xdslcmd configure [--mod <a|d|l|t|2|p|e|m|v>]
[--trellis <on|off>] [--bitswap <on|off>] [--sesdrop <on|off>]
[--sra <on|off>] [--phyReXmt <0|1>] [--i24k <on|off>]
[--profile <0x01 - 0xFF>|<"8a |8b |8c |8d |12a |12b |17a |30a">]
[--SOS <on|off>]
xdslcmd info [--state] [--show] [--stats] [--SNR] [--QLN] [--Hlog] [--Hlin] [--Bits]
[--linediag] [--linediag1] [--pbParams][--vdsllinediag] [--adsllinediag] [--total] [--testparam]
[--vendor]
xdslcmd profile [--show]
xdslcmd --version
xdslcmd --help
Note: some of these xdslcmd commands are a bit flaky, the --Bits command only show results for download frequencies all upload frequencies give "0".
CPU info for the HG633:
$ cat /proc/cpuinfo
Processor : ARMv7 Processor rev 1 (v7l)
processor : 0
BogoMIPS : 1497.49
processor : 1
BogoMIPS : 1497.49
Features : swp half thumb fastmult edsp
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x4
CPU part : 0xc09
CPU revision : 1
Hardware : sd56xx
Revision : 0000
Serial : 0000000000000000
The file worked on my HG633 but please use as your own risk.