IlPuntoTecnico

Hardware e Software => Connessioni ADSL/VDSL/FTTC => Topic aperto da: qadmoon - 07 Marzo 2006, 21:41

Titolo: Question about DSL-302T
Inserito da: qadmoon - 07 Marzo 2006, 21:41
Hi all,

This is my first participation. Sorry for writing in English but, I don't speak Italian.
First of all, is there English part of this forum?

My problem is, I have DSL-302T modem and from about 3 months the ethernet port didn't work. I tried to upgrade the firmware with the one in the company's website. However, after few sconds the prgrams stopped to respond. After that the USP port stopped working also.

Today I tried again to fix the problem. I searched the internet for solution but, with no benefits. However, I found topic similar to the probem I face somehow which is ((Is there any hope)). I followed up the topic untill the telnet part which where the topic stopped.

I think almost all of the topics are in Italian in this forum but, it is the only forum I found speaks about the ADSL modems.

Today somehow the USP port worked again but, still the ethernet port does not work. I need the ethernet port to work in the Internet from the Linux. I hope I coud find the solution here

More details:
Operating system is Windows XP
The ethernet led is on eventhough the cable is not plugged
USP port is working.
The resources I have are: the firmware and the 2nd version of the firmware all of them from the site, http://www.dlink-me.com/Products/Modems/dsl302t.htm

Best Regards.
Titolo: Re: Question about DSL-302T
Inserito da: marven - 08 Marzo 2006, 00:21
Hi gadmoon  :)
unfortunately there is no English section in this forum.
Regarding your problem, it seems your modem had a corrupted firmware or a corrupted config.xml file (where the configuration parameters are stored). Furthermore during the last fimware update something get wrong.
Two possible solution are:
1) Make a hardware reset. The hardware reset rewrites the configuration file to the defaults values.
Follow these steps:
switch off the modem, gently push the reset switch you can find in the modem back panel by using some thin tool and, while pushing, switch on the modem. Release the reset switch after 30 seconds. Switch off the modem. Switch on again and hope this solves the problem.
2) If the hardware reset doesn't solve the problem you have to try to flash the firmware again.
Use the tiupgrade tool you can find inside the firmware package from the ME D-Link site. It has 2 working modes:
1) Entering the modem IP address + password
2) Corrupted image mode
If the first mode does not work try the second.
Both modes need firstly to setup the tcp/ip parameters of the PC ethernet card as following:
IP address 192.168.1.2
Subnet mask 255.255.255.0
Default gateway 192.168.1.1

There are other methods to recover the modem from a bad firmware, I'll tell you if the above methods don't work.
Best Regards
Titolo: Re: Question about DSL-302T
Inserito da: qadmoon - 08 Marzo 2006, 04:57
Thank you marven for your reply.

I tried the both methods but, they didn't solve the problem. I am looking forward for the other methods.

Best Regards
Titolo: Re: Question about DSL-302T
Inserito da: marven - 08 Marzo 2006, 12:41
In order to reflash the firmware there are 2 cathegories of methods:

1) Based on the ftp server given by the bootloader ADAM2
2) Jtag (needs a special interface and some electronics/soldering skills)

The first method can be used if ADAM2 is still on the flash rom and it is not corrupted or the ENV space used by ADAM2 is not

corrupted. The tiupgrade corrupted image mode uses the ftp ADAM2 server. You can directly check if ADAM2 is still alive as follows:

- Switch off the modem
- Unplug the ADSL cable from the modem
- Unplug the USB cable from the modem
- Plug on the ethernet cable on both sides, PC and modem
- Setup the ethernet tcp/ip parameters as in my previous post
- Close all firewalls and antivirus on the PC and possibly any other program and process (this from the windows program manager)
- From the Windows command prompt ftp to the modem entering the following command without pressing the Enter key:
ftp 192.168.1.1
- Switch on the modem, count till 2 and promptly press the Enter key.If ADAM2 responds the following screen appears:
Citazione
C:\>ftp 192.168.1.1
Connected to 192.168.1.1.
220 ADAM2 FTP Server ready.
User (192.168.1.1:(none)): adam2
331 Password required for adam2.
Password:
230 User adam2 successfully logged in.

enter User and password, both = adam2
If this test is successful you will be able to flash the firmware and/or, eventually, correct the env variables. I'll tell you how.


ADAM2 can have a different IP address. If 192.168.1.1 doesn't work try:

10.8.8.8
192.168.0.1

setting up the tcp/ip parameters accordingly:

IP address 10.8.8.2
Subnet mask 255.255.255.0
Default gateway 10.8.8.8

or

IP address 192.168.10.2
Subnet mask 255.255.255.0
Default gateway 192.168.0.1


Make various tries for each IP address because entering the ftp server is also a matter of timing. Try also counting till 1 or 3 before pressing the Enter key. A trick is, without counting, to press the Enter key immediatly when the ethernet Led on the modem lights on or when the LAN icon on the windows taskbar shows an active connection. 

I'll tell more about the latter method, Jtag, if the former one doesn't give positive results.
Bye
Titolo: Re: Question about DSL-302T
Inserito da: qadmoon - 08 Marzo 2006, 17:19
I tried many times but, it always shows unkown error number :(
Titolo: Re: Question about DSL-302T
Inserito da: marven - 08 Marzo 2006, 17:26
Very bad!!!  :(  so ADAM2 seems dead.
What I didn't understand from your first post is if you can use the modem with the USB cable. I mean, can you get connected to the internet in some way with this modem?
Titolo: Re: Question about DSL-302T
Inserito da: qadmoon - 08 Marzo 2006, 19:32
Yes I can use it through the USP Cable to access the Internet and When I am trying to update the firmware through the USP port the loader stuck and the USP led flashing and one time I left it for the all night but, with no benefit. Also, I think that I can access the modem through the telnet via the USP cable but, I have no idea about telnet but what I read in the topic I mentioned before.

Is it possible that there is problem in the hardware not in the software?
and sorry for taking from your time so much :)
Titolo: Re: Question about DSL-302T
Inserito da: marven - 09 Marzo 2006, 12:20
Citazione
Yes I can use it through the USP Cable to access the Internet
It means that ADAM2 is still alive. ADAM2 is also a bootloader, i.e. it boots the firmware. It can be accessed via ethernet only, that's why your tries were unseccessful.
Citazione
Is it possible that there is problem in the hardware not in the software?
Yes, it could be an hardware problem, but it's not sure at the moment. The ethernet led always on, even with the ethernet cable unplugged, could be due to a corrupted firmware problem. But there is a very strange thing... ADAM2 and the firmware are indipendent, they drive the ethernet port with different drivers and it is very unlikely that both are corrupted.

Check this:
- Unplug USB and ADSL cables from the modem
- Plug the ethernet cable to both sides, PC and modem
- Switch on the modem and look carefully at the ethernet  Led, the normal behavior should  be:

- Led off till 2 or 3 seconds
- Led on for a few seconds
- Led on

Post your observation.

Make also the same check with all cables USB, eth and ADSL unplugged and post the results.

Citazione
sorry for taking from your time so much Sorriso
Dont'worry about this  ;) I'm very happy if I can help somebody  :)


Titolo: Re: Question about DSL-302T
Inserito da: qadmoon - 09 Marzo 2006, 16:51
The ethernet led was on after about 17 seconds and
The USP led was on after about 19 seconds

More details:

The problem started that the connection couldn't established via the ethernet and the status shows, "Limited or no connectivity" and I couldn't log on to the internet. Then, I tried to update the firmware with the one I mentioned before and here were the led started to be on even when the cable is not connected.

When I configure the IP normally the status shows, "connected". However, I cannot log on to the internet or to the modem web-based configuration.

It seems that the computer can connect to the modem when the IP configured manually but, it can not send or receive data. And when the IP is set to be configured automaticly the computer can not connect, send or recieve data from the modem.

I don't know what flashing the firmware means but, it seems that like formatting or restoring the firmware to its factory defult. Also, I don't know what does ADAM2 means.
Is there any way to reflash the firmware via the USP link because it seems that the ethernet link does not work?

Best Regards
Titolo: Re: Question about DSL-302T
Inserito da: marven - 09 Marzo 2006, 17:34
Citazione
The ethernet led was on after about 17 seconds and
The USP led was on after about 19 seconds
With cables plugged or unplugged?
Can you access the web config page via USB cable? If you can that's a way to restore (=flash=put on the flash rom of the modem) the firmware. However you can restore only firmware of the same version.
I mean, if the modem has the original firmware you can not put via web configuration page the last version from the ME D-link site, it could be very dangerous  doing that. BTW the ME firmware cannot restored via web without an extraction/preparation work from the original package... but that is not a problem, I can do that easily and send you the files to put on the web config page.
So the big question is: which firmware version is on the modem?
You can know it looking at the Tools/Update Gateway page on the web configuration. Post what is shown at Current Firmware Version:

You can also get some useful info accessing the modem via telnet. Try this:
go to the Windows command prompt and enter the following command

telnet 192.168.1.1

and post what appears on the screen.

Titolo: Re: Question about DSL-302T
Inserito da: qadmoon - 09 Marzo 2006, 20:33
Ethernet Led, in both situation plugged and unplugged
USP Led, when it is plugged.

Yes I can access the web config page via USB cable

Current Firmware Version: V1.00B02T02.EU.20040630

When I opened the telnet as you mentioned, it asks for login: and Password:
I put (root) as Login and (admin) as Password Then it shows:

BusyBox v0.61.pre <2004.06.30-07:35+0000> Built-in shell <ash>
Enter 'help' for a list of built-in commands.

#
Titolo: Re: Question about DSL-302T
Inserito da: marven - 10 Marzo 2006, 11:41
Citazione
BusyBox v0.61.pre <2004.06.30-07:35+0000> Built-in shell <ash>
Enter 'help' for a list of built-in commands.
That's a good news!
Telnet to the modem, enter this command

cat /proc/ticfg/env

and post the output.
Titolo: Re: Question about DSL-302T
Inserito da: qadmoon - 10 Marzo 2006, 14:13
The Output:

memsize 0x00800000
flashsize       0x00200000
modetty0        38400,n,8,1,hw
modetty1        38400,n,8,1,hw
bootserport     tty0
cpufrequency    150000000
sysfrequency    125000000
bootloaderVersion       0.22.02
ProductID       AR7DB
HWRevision      Unknown
SerialNumber    none
my_ipaddress    192.168.1.199
maca    00:0F:3D:8A:92:97
prompt  Adam2_AR7DB
firstfreeaddress        0x9401d888
req_fullrate_freq       125000000
mtd0    0x900a0000,0x901f0000
mtd1    0x90010000,0x900a0000
mtd2    0x90000000,0x90010000
mtd3    0x901f0000,0x90200000
autoload        1
usb_vid 0x2001
usb_pid 0x5b00
usb_man D-Link
usb_prod        DSL-302T
usb_serial      00:0F:3D:8A:92:98
usb_board_mac   00:0F:3D:8A:92:98
usb_rndis_mac   00:0F:3D:8A:92:99
autoload_timeout        15
Adam2_Release   0.22.02_b03_Mar  9 2005
#
#
Titolo: Re: Question about DSL-302T
Inserito da: marven - 10 Marzo 2006, 14:25
Perfect! The env variables look good  ;)
Now you can restore the original firmware. Download it from this link:
http://www.dlink-me.com/ftp/modems/DSL-302T/FW%20V1.00B02T02.EU.20040630.zip
unzip it and follow the instructions on the .pdf file
If, after restoring the firmware the ethernet port still doesn't want to work, if you can, try:

1) change ethernet cable
2) change ethernt adapter
3) try on another PC

If on another PC the ethernet port works, the problem is on your PC. Something could be messed in the tcp/ip stack. However it coul be fixed.

Titolo: Re: Question about DSL-302T
Inserito da: qadmoon - 10 Marzo 2006, 20:00
I tried the firmware that you put the link for before but, the problem didn't solve.

The other steps I tried the modem in other PC thats mean at the same time other ethernet adapter but, changing the cable I didn't. I will buy other cable and I will try.

Thank you for the time you spend in helping me
Titolo: Re: Question about DSL-302T
Inserito da: qadmoon - 20 Marzo 2006, 10:51
I am so sorry for the late reply. Today only I could test other cable.
The problem isn't from the cable It seems that the computer send data to the modem but the modem does not respond at all.

Titolo: Re: Question about DSL-302T
Inserito da: marven - 20 Marzo 2006, 11:51
As I told you before, the problem could be from the Windows tcp/ip stack. But you tried in another PC also... so my conclusion is that the ethernet port on the modem is probably broken. Anyway try to recover the tcp/ip stack with the utlity winsockxpfix:
http://www.webattack.com/get/winsockxpfix.html
reboot the pc and setup the tcp/ip parameters as follows:

IP address 192.168.1.2
Subnet mask 255.255.255.0
Default gateway 192.168.1.1

Close any firewall (Windows XP firewall included) and antivirus and try to access the web config page at

http://192.168.1.1

Try also to remove the USB modem driver, it could interfere in some way...
Titolo: Re: Question about DSL-302T
Inserito da: qadmoon - 22 Marzo 2006, 20:40
Thank you for you help.
I tried the winsockxpfix with no benefit.
I tried to update the modem with other modem firmware and the result was all the leds are off exept the Power led.

Thank you again for you effort.
I read about serial port inside the modem and I saw the pins (5 pins). how to connect to it?
Also, I read about recovery tools and adams2app what all these tools about?

Best Regards
Titolo: Re: Question about DSL-302T
Inserito da: marven - 23 Marzo 2006, 11:48
The recovery tool and adam2app are both ADAM2 based recovery utilities. They work via ethernet port only. The serial interface console is a mere ADAM2 monitor and it is unuseful in order to recover the firmware. There's no simple mode to recover the firmware if ADAM2 ftp server does not respond or ADAM2 doesn't exist anymore on the flash rom. If ADAM2 is dead the only effective way to revive the modem is to recover ADAM2 via JTAG interface and reflash the firmware via ethernet port. However, if the ethernet port is dead, you will not be able to recover the firmware. Anyway here:
http://www.webalice.it/andrea.usenet/dsl-302t.htm
http://dlinkpedia.net/index.php/Interfaccia_JTAG
http://dlinkpedia.net/index.php/Jtag_su_30xT
are useful info about serial port and Jtag

Titolo: Re: Question about DSL-302T
Inserito da: qadmoon - 25 Marzo 2006, 09:58
Thank you very much :)
Although, the probem has not solved, I learned useful information from you.