Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Author Topic: Question for unlocking a ECI modem for BT infinity 2  (Read 29312 times)

winkingw

  • Just arrived
  • *
  • Posts: 4
Question for unlocking a ECI modem for BT infinity 2
« on: September 22, 2012, 10:17:30 PM »

Hi everyone,

I want to unlock the  ECI modem to find out connection status.
USB-UART adaptor has connected to PC and modem same as http://forum.kitz.co.uk/index.php/topic,10635.msg221975.html#msg221975

The hyperTerminal has been setup and connected to modem however, there is no output at all.

Can anyone give any advice for how log into the ECI modem via the serial console?

Thanks.



Logged

kitz

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 33883
  • Trinity: Most guys do.
    • http://www.kitz.co.uk
Re: Question for unlocking a ECI modem for BT infinity 2
« Reply #1 on: September 23, 2012, 12:38:02 AM »

I havent tried this, so cant answer Im afraid.

However Im bumping the thread in the hope that one of the other guys sees it who may be able to help.
Logged
Please do not PM me with queries for broadband help as I may not be able to respond.
-----
How to get your router line stats :: ADSL Exchange Checker

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: Question for unlocking a ECI modem for BT infinity 2
« Reply #2 on: September 23, 2012, 01:23:18 AM »

I'll join in and add my bump, for the unlocking of an ECI B-FOCuS modem is something that I need to do.

I'm hoping that Asbokid will have a spare moment ( :lol: ) to put together an suitable guide for lesser mortals to follow.  ;)
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

winkingw

  • Just arrived
  • *
  • Posts: 4
Re: Question for unlocking a ECI modem for BT infinity 2
« Reply #3 on: September 23, 2012, 01:40:25 AM »

I am suffering the slowing down speed and disconnection same as most BT infinity 2 users.
It doesn't help by changing the modem and reset IP profile.

unlock the modem and get connection status might help to find reason of dropping speed.
Logged

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721
Re: Question for unlocking a ECI modem for BT infinity 2
« Reply #4 on: September 23, 2012, 07:48:03 AM »


unlock the modem and get connection status might help to find reason of dropping speed.



Just in case you are not aware, the "other" BT supplied modem for use with FTTC services (i.e. the Huawei HG612) can be very easily unlocked (simple firmware upgrade) & all the relevant stats can be obtained/graphed, even monitoring ongoing connection stats/errors 24/7 for days/weeks/months on end.


EDIT:
HG612s can be obtained via Ebay at really quite low prices from time to time.

We would be very interested to see stats data from your ECI modem if you do manage to unlock it though. Good luck with that.
« Last Edit: September 23, 2012, 07:54:49 AM by Bald_Eagle1 »
Logged

les-70

  • Kitizen
  • ****
  • Posts: 1254
Re: Question for unlocking a ECI modem for BT infinity 2
« Reply #5 on: September 23, 2012, 07:48:36 AM »

Possible simple issues are

    : poor connection perhaps due to a film over the pcb solder points.  - clean with a light rub of lint free kitchen towel and a solvent such as isopropyl alcohol is available and check connection looks good. 
    : usb to rs232 ttl not working - test by joining rx and tx through a 100-200ohm resistor.  Not sure about just connecting them but it should be OK with no resistor in most cases.  hyper terminal should then give character echo. If it does not the unit and driver or unit is not working. Also check the usual ECI rs232 com settings - given in asbo's screen shots work OK.
    : rx and tx swapped. just connect these two the other way round.  Also check pin outs are correct on pc board.      http://forum.kitz.co.uk/index.php/topic,10635.msg209440.html#msg209440   Usually you only need to connect 3 wires rx tx and gnd so try this as well.

      Good luck
« Last Edit: September 23, 2012, 08:03:17 AM by les-70 »
Logged

winkingw

  • Just arrived
  • *
  • Posts: 4
Re: Question for unlocking a ECI modem for BT infinity 2
« Reply #6 on: September 23, 2012, 02:17:15 PM »

Possible simple issues are

    : poor connection perhaps due to a film over the pcb solder points.  - clean with a light rub of lint free kitchen towel and a solvent such as isopropyl alcohol is available and check connection looks good. 
    : usb to rs232 ttl not working - test by joining rx and tx through a 100-200ohm resistor.  Not sure about just connecting them but it should be OK with no resistor in most cases.  hyper terminal should then give character echo. If it does not the unit and driver or unit is not working. Also check the usual ECI rs232 com settings - given in asbo's screen shots work OK.
    : rx and tx swapped. just connect these two the other way round.  Also check pin outs are correct on pc board.      http://forum.kitz.co.uk/index.php/topic,10635.msg209440.html#msg209440   Usually you only need to connect 3 wires rx tx and gnd so try this as well.

      Good luck

Thank you very much!

I have got echo now by swap RX and TX connector.

Would mind let me know what I should do next? The modem has been unlocked now?

Any idea for access modem GUI?

Code: [Select]
U-Boot 1.0.5 (Apr  6 2011 - 14:02:22)

CLOCK CPU 333M RAM 166M
DRAM:  32 MB

 relocate_code start
 relocate_code finish.

FLASH MANUFACT: c2

FLASH DEVICEID: cb
Flash:  8 MB
In:    serial
Out:   serial
Err:   serial
Net:   fw_addr=0xa0200000
Internal phy(FE) firmware version: 0x0108
vr9 Switch

Type "run flash_flash" to mount root filesystem over flash

Hit 'Esc' key to stop autoboot:  0
## Booting image from active region 1 at b0050000 ...
Check RSA image magic--OK!
Please type [setenv rsa_check 1] !!!
   Image Name:   MIPS Linux-2.6.20
   Created:      2011-08-09   3:31:37 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    3629088 Bytes =  3.5 MB
   Load Address: 80002000
   Entry Point:  802cd000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 802cd000) ...
## Giving linux memsize in MB, 32

Starting kernel ...

Infineon xDSL CPE VR9
mips_hpt_frequency = 166666666, counter_resolution = 2
Linux version 2.6.20.19
 (hyhuang@BSD7.localdomain) (gcc version 3.4.6 (OpenWrt-2.0)) #1 Tue Aug 9 11:27
:46 CST 2011
Active Region: 1
phym = 02000000, mem = 01f00000, max_pfn = 00001f00
Reserving memory for CP1 @0xa1f00000, size 0x00100000
CPU revision is: 00019555
Determined physical RAM map:
User-defined physical RAM map:
 memory: 01f00000 @ 00000000 (usable)
Logged

asbokid

  • Kitizen
  • ****
  • Posts: 1286
    • Hacking the 2Wire
Re: Question for unlocking a ECI modem for BT infinity 2
« Reply #7 on: September 23, 2012, 05:56:08 PM »

How to unlock the ECI B-FOCuS VDSL2 CPE modem:

Connect a serial cable to the PCB of the ECI and power up the device:

The bootloader should start:

Code: [Select]
ROM VER: 1.0.5
CFG 01 ...
DDR size from 0xa0000000 - 0xa1ffffff
DDR check ok... start booting...
U-Boot 1.0.4 (Feb 16 2011 - 13:53:56)
CLOCK CPU 333M RAM 166M
DRAM:  32 MB ..
FLASH MANUFACT: c2
FLASH DEVICEID: cb ..

The Linux kernel will auto boot:

Code: [Select]
Starting kernel ...
Infineon xDSL CPE VR9. ..
Linux version 2.6.20.19 (hyhuang@BSD7.localdomain)
(gcc version 3.4.6 (OpenWrt-2.0)) #1 Tue Aug 9 11:27:46 CST 2011 ..

Arriving finally at a login prompt.

Login with username admin and password admin:

Code: [Select]
login: admin
Password: admin

BusyBox v1.00 (2011.08.09-03:28+0000) Built-in shell (msh) ..

Alpha #

At the    Alpha #   prompt, enter the six commands below to 'unlock' the device:

Code: [Select]
Alpha # xmldbc -s /switch/lan_access_cpe_enable 1
Alpha # xmldbc -s /switch/port:2/activate 1
Alpha # xmldbc -D /var/tmp/rgdb.xml
Alpha # gzip /var/tmp/rgdb.xml
Alpha # rgcfg save -n /dev/mtdblock/3 -c /var/tmp/rgdb.xml.gz       
Alpha # ifconfig br0 192.168.1.55     #  adjust this IP address to suit your own subnet #

The unlocked ECI VDSL modem should now be accessible via telnet and web GUI at http://192.168.1.55.

N.B. the ECI web interface is too buggy for Firefox. Though Internet Exploder, Chromium, and Safari should all work okay.

Username and password for telnet and web login are, as above:  admin and admin

Finally, the IP address of the ECI should be permanently changed through the web interface to suit local subnet. (The ECI's default IP is 192.168.168.168, as shown below)


cheers, a

EDIT:  background info on what those commands are actually doing is at http://hackingecibfocusv2fubirevb.wordpress.com/
« Last Edit: September 24, 2012, 12:37:39 AM by asbokid »
Logged

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: Question for unlocking a ECI modem for BT infinity 2
« Reply #8 on: September 23, 2012, 08:50:16 PM »

Thank you for those precise instructions.  :)

Quote
N.B. the ECI web interface is too buggy for Firefox.

Oh . . . bother!  :(
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

winkingw

  • Just arrived
  • *
  • Posts: 4
Re: Question for unlocking a ECI modem for BT infinity 2
« Reply #9 on: September 23, 2012, 09:32:20 PM »

Thank you very much asbokid, The modem has been unlocked.

Logged

asbokid

  • Kitizen
  • ****
  • Posts: 1286
    • Hacking the 2Wire
Re: Question for unlocking a ECI modem for BT infinity 2
« Reply #10 on: September 23, 2012, 09:58:15 PM »

Thank you very much asbokid, The modem has been unlocked.

You're welcome. Glad to hear it worked out, winkingw :) One more modem liberated!

N.B. the ECI web interface is too buggy for Firefox.

Hi burakkucat,

EDIT:

It turns out that the Corrupted Content Error  reported by Firefox is due to the embedded web server in the ECI.   The server is Acme Labs' BSD-licensed thttpd. It is sending a corrupted HTTP header to the browser.

From Firefox in Linux:


Uklad  found exactly the same problem with the Firefox build for BillyGatesWare, so it isn't a Linux 'thing'.  Only Firefox (and derivatives) are pedantic about the error. Three other browsers (Chromium, Epiphany and Konqueror) all work fine regardless:


By packet-sniffing with Wireshark, the problem is clear.  The HTTP header (Content-Length: -1) sent by the embedded web server has an invalid field value (-1).  :(

Quote from: RFC2616 (s.14.13) --- (the specs for the HTTP protocol).    See  [1]:

Any Content-Length greater than or equal to zero is a valid value.


Sadly, with no source code for the ECI web server, a solution (hack) would have to be found in Firefox.

It's probably easier just to use another browser!


cheers, a

[1]  http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13
« Last Edit: September 24, 2012, 04:14:13 AM by asbokid »
Logged

biohead

  • Reg Member
  • ***
  • Posts: 114
Re: Question for unlocking a ECI modem for BT infinity 2
« Reply #11 on: September 24, 2012, 05:33:28 PM »

Will this allow you to login to the modem through the LAN1 port, letting it remain connected to your internal network (as long as the preset IP address is changed to something out of the DHCP pool on the router?).

Potentially, being able to eventually collect stats from the modem without having to disconnect it from the network or use the LAN2 socket (my situation is I only have one available network cable between the modem and router - so if I want stats I have to swap the cable to LAN2).

...Obviously that's when we can start logging stats and graphing them with the ECI.
Logged

asbokid

  • Kitizen
  • ****
  • Posts: 1286
    • Hacking the 2Wire
Re: Question for unlocking a ECI modem for BT infinity 2
« Reply #12 on: September 25, 2012, 06:44:49 PM »

Hi, Biohead,

Good question. With the ECI in its default configuration it doesn't seem possible  By default the network interface is only configured to provide an ethernet bridge. A separate device (e.g. the BT HomeHub) runs a PPP client (layer 2) to obtain the TCP/IP layer (layer 3) of the network protocol stack.  Easiest to run the PPP client on the ECI.  But the question is whether the IP layer can be configured as well as an ethernet bridge on that (first) ethernet port.. Hmm.. worth trying.  No ECI here at the moment, but I would guess it involves ethernet bridge filtering (ebtables [1]). Frames would need filtering according to whether they are traffic for the local interface or for the WAN bridge   :) Which probably would impede performance to some degree. 

cheers, a

[1] http://ebtables.sourceforge.net/
« Last Edit: September 26, 2012, 12:07:26 AM by asbokid »
Logged