OpenWrt Forum Archive

Topic: Tp-link Tl-wr703n

The content of this topic has been archived between 18 Mar 2015 and 7 May 2018. Unfortunately there are posts – most likely complete pages – missing.

catchmahesh wrote:

hi.. almursi
      I did the reflashing again and the router now identifies the USB data card following is the log, but not able to dial

[   13.050000] usbcore: registered new interface driver usbserial_generic
[   13.050000] usbserial: USB Serial Driver core
[   13.190000] USB Serial support registered for GSM modem (1-port)
[   13.200000] usbcore: registered new interface driver option
[   13.200000] option: v0.7.2:USB Driver for GSM modems
user.notice usb-modeswitch: 1-0:1.0: Manufacturer=Linux_2.6.39.4_ehci_hcd Product=Atheros_AR91xx_built-in_EHCI_controller Serial=ar71xx-ehci
user.notice usb-modeswitch: 1-1:1.0: Manufacturer=HUAÿWEI_TECHNOLOGIES Product=HUAWEI_Mobile Serial=ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
user.notice usb-modeswitch: 1-1:1.0: Selecting /etc/usb_modeswitch.d/12d1:1446 for mode switching
syslog.notice usb_modeswitch: switching 12d1:1446 (HUA?WEI TECHNOLOGIES: HUAWEI Mobile)
[   16.630000] usb 1-1: USB disconnect, device number 2
[   20.570000] usb 1-1: new full speed USB device number 3 using ar71xx-ehci
[   20.750000] option 1-1:1.0: GSM modem (1-port) converter detected
[   20.750000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[   20.770000] option 1-1:1.1: GSM modem (1-port) converter detected
[   20.770000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[   20.790000] option 1-1:1.2: GSM modem (1-port) converter detected
[   20.790000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2

now as per my network script
config 'interface' 'ppp0'
          option 'ifname' 'ppp0'
          option 'proto' '3g'
          option 'device' '/dev/ttyUSB0'
          option 'apn' 'rcomwap'
          option 'service' 'umts'
          option 'username' '9321265777'
          option 'password' '9321265777'

and the 3g.chat script as below
ABORT   BUSY
ABORT   'NO CARRIER'
ABORT   ERROR
REPORT  CONNECT
TIMEOUT 10
""      "AT&F"
OK      "ATE1"
OK      'AT+CGDCONT=1,"IP","$USE_APN"'
SAY     "Calling UMTS/GPRS"
TIMEOUT 30
OK      "ATD*99***1#"
CONNECT ' '
""      "AT+CSQ"
when the router connects its give COMMAND NOT SUPPORT see the system log

user.notice 3g-hotplug: Starting interface ppp0 for device ttyUSB0
user.notice usb-modeswitch: 1-1:1.1: Manufacturer=HUAÿWEI_TECHNOLOGIES Product=HUAWEI_Mobile Serial=ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
user.notice usb-modeswitch: 1-1:1.2: Manufacturer=HUAÿWEI_TECHNOLOGIES Product=HUAWEI_Mobile Serial=ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
OpenWrt user.notice usb-modeswitch: 1-1:1.3: Manufacturer=HUAÿWEI_TECHNOLOGIES Product=HUAWEI_Mobile Serial=ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
daemon.notice pppd[1625]: pppd 2.4.5 started by root, uid 0
local2.info chat[1630]: abort on (BUSY)
local2.info chat[1630]: abort on (NO CARRIER)
local2.info chat[1630]: abort on (ERROR)
local2.info chat[1630]: report (CONNECT)
local2.info chat[1630]: timeout set to 10 seconds
local2.info chat[1630]: send (AT&F^M)
local2.info chat[1630]: expect (OK)
local2.info chat[1630]: ^M
local2.info chat[1630]: ^RSSILVL: 20^M
local2.info chat[1630]: AT&F^M^M
local2.info chat[1630]: OK
local2.info chat[1630]:  -- got it
local2.info chat[1630]: send (ATE1^M)
local2.info chat[1630]: expect (OK)
local2.info chat[1630]: ^M
local2.info chat[1630]: ATE1^M^M
local2.info chat[1630]: OK
local2.info chat[1630]:  -- got it
local2.info chat[1630]: send (AT+CGDCONT=1,"IP","rcomwap"^M)
local2.info chat[1630]: timeout set to 30 seconds
local2.info chat[1630]: expect (OK)
local2.info chat[1630]: ^M
local2.info chat[1630]: AT+CGDCONT=1,"IP","rcomwap"^M^M
local2.info chat[1630]: COMMAND NOT SUPPORT^M

is there any thing to changed in the 3g.chat script

I have a windows 7 os on my machine

please help

hi.. almursi

I was able to establish the connection the problem was in the chat script as I pointed I changed the chat script as follows
/etc/chatscripts/3g.chat script
ABORT   BUSY
ABORT   'NO CARRIER'
ABORT   ERROR
REPORT  CONNECT
TIMEOUT 60
""      "AT&F"
OK      "ATE1"
SAY     "Calling UMTS/GPRS"
OK      "ATD#777"
CONNECT ' '
and I was able to establish the connection so at last I am done

catchmahesh wrote:

... the problem was in the chat script

Hi, then you've been lucky smile. Yes, missing 3g.chat in configuration tools, each ISP may use a different number and is the reason that in the end I just install 'nano' (if there is room). Regards.

almursi wrote:
catchmahesh wrote:

... the problem was in the chat script

Hi, then you've been lucky smile. Yes, missing 3g.chat in configuration tools, each ISP may use a different number and is the reason that in the end I just install 'nano' (if there is room). Regards.

hi..
just keen to know what does nano do and for what reason its to be installed

regards

Its a text editor thats a little more friendly that VI.

hi.. alimursi
      I got sucess for Huawei EC1262, but for Huawei EC1260 it does not recognize device /dev/ttyUSB0, in the Systemlog is shows Unrecognized option /dev/ttyUSB0 any idea abou this

Regards

almursi wrote:

Hi, catchmahesh, have you tried this with ec1260?: http://www.linuxforums.org/forum/red-ha … hat-2.html

Regards.

hi.. I noticed one thing is

when i connect the Huawei EC1262 the log is as follows
user.notice usb-modeswitch: 1-1:1.0: Manufacturer=HUAÿWEI_TECHNOLOGIES Product=HUAWEI_Mobile Serial=ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
user.notice usb-modeswitch: 1-1:1.0: Selecting /etc/usb_modeswitch.d/12d1:1446 for mode switching

when i connect the Huwaei EC1260 the log is as follows
user.notice usb-modeswitch: 1-1:1.0: Manufacturer=HUAÿWEI_TECHNOLOGIES Product=HUAWEI_Mobile Serial=ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
here the /etc/usb_modeswitch.d message is not displayed

my machine OS is Windows 7 and have no knowlege about the linux OS but still logically I can understand

what it is the difference between /dev/ttyATH0 and /dev/ttyUSB0

Also when i can change my /etc/config/network script
that is

option 'device' '/dev/ttyATH0'

then in the system log it does not give any error

but still it does not work

Regards

Hi catchmahesh, sorry for delay. You can try to run:

usb_modeswitch -v 0x12d1 -p 0x140b -H -W

-H is for Huawei, and -W is "verbose" (on link it's incorrect).

Under 12d1:1446 you have a lot of different models, it's possible that have some problem to detect and with this command help a bit. However, I'm assuming that both the EC1260 and the EC1262 has the same code (12d1:1446) -that you see running "lsusb", from usbutils-.

catchmahesh wrote:

...what it is the difference between /dev/ttyATH0 and /dev/ttyUSB0

/dev/ttyATH0 is a link to "who knows where", do not use links to devices without knowing exactly what you do, because you can make real disasters (in the case of a real device behind, I think ... ).

If you see that appears /dev/ttyUSB? (run "ls /dev"), then you can continue and try with a "ifup wan". Theoretically there is no other problem (since you already solved the problem of the phone number and it is only jam in identifying).

Regards.

(Last edited by almursi on 1 Feb 2012, 10:23)

almursi wrote:

Hi catchmahesh, sorry for delay. You can try to run:

usb_modeswitch -v 0x12d1 -p 0x140b -H -W

-H is for Huawei, and -W is "verbose" (on link it's incorrect).

Under 12d1:1446 you have a lot of different models, it's possible that have some problem to detect and with this command help a bit. However, I'm assuming that both the EC1260 and the EC1262 has the same code (12d1:1446) -that you see running "lsusb", from usbutils-.

catchmahesh wrote:

...what it is the difference between /dev/ttyATH0 and /dev/ttyUSB0

/dev/ttyATH0 is a link to "who knows where", do not use links to devices without knowing exactly what you do, because you can make real disasters (in the case of a real device behind, I think ... ).

If you see that appears /dev/ttyUSB? (run "ls /dev"), then you can continue and try with a "ifup wan". Theoretically there is no other problem (since you already solved the problem of the phone number and it is only jam in identifying).

Regards.

Thanks for the help I will try and let you know the results

Regards

Hi almursi
    I tried with the code usb_modeswitch -v 0x12d1 -p 0x140b -H -W on the command line i worked. Thanks aaaaaa..... lot for the help. but will this has to be done manually every time. is there any way to automize this

Again thanks a lot

Regards

Hi catchmahesh, if you only use EC1260 on your router, you can add it to /etc/rc.local.

Create a file called /etc/ec1260.up (i.e.):

#!/bin/sh
usb_modeswitch -v 0x12d1 -p 0x140b -H -W
ifup wan

run "chmod 0755 /etc/ec1260.up" (for add execute permission)

and add a line on /etc/rc.local before "exit 0":

/etc/ec1260.up

It run every boot, but ever can use command ./etc/ec1260.up for up your connection.

Regards.

(Last edited by almursi on 2 Feb 2012, 00:21)

Hi.. almursi
      I did the setting as per your instruction and now the internet starts autmatically. Thanks a lot smile

Regards

(Last edited by catchmahesh on 4 Feb 2012, 04:05)

Don't know if this has been mentioned before in this long thread, but you can reflash in a system without luci using mtd (after downloading the sysupgrade file to /tmp and 'cd'ing to /tmp) as follows:

mtd write openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin firmware && reboot

"firmware" is the name of the chunk of flash containing the ... firmware.

lizby wrote:

Don't know if this has been mentioned before in this long thread, but you can reflash in a system without luci using mtd (after downloading the sysupgrade file to /tmp and 'cd'ing to /tmp) as follows:

mtd write openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin firmware && reboot

"firmware" is the name of the chunk of flash containing the ... firmware.

I don't think I read this before.  I did sysupgrade through ssh but it didn't work and bricked the router.  (It was recovered through serial console.)  I will try mtd to see if it works.
Could you explain what should be used as the name of "firmware"?

"firmware" +is+ the name, as per the dmesg output:

[    0.480000] Creating 5 MTD partitions on "spi0.0":
[    0.490000] 0x000000000000-0x000000020000 : "u-boot"
[    0.500000] 0x000000020000-0x0000000f5788 : "kernel"
[    0.500000] mtd: partition "kernel" must either start or end on erase block b
[    0.510000] 0x0000000f5788-0x0000003f0000 : "rootfs"
[    0.520000] mtd: partition "rootfs" must either start or end on erase block b
[    0.530000] mtd: partition "rootfs" set to be root filesystem
[    0.530000] mtd: partition "rootfs_data" created automatically, ofs=300000, l
[    0.540000] 0x000000300000-0x0000003f0000 : "rootfs_data"
[    0.550000] 0x0000003f0000-0x000000400000 : "art"
[    0.550000] 0x000000020000-0x0000003f0000 : "firmware"

"firmware" encompasses "kernel" and "rootfs".

(Last edited by lizby on 4 Feb 2012, 00:09)

Thanks.

You can upgrade to Linux kernel 3.2.4 if you build your own image, as shown here:

https://forum.openwrt.org/viewtopic.php … 78#p156278

First "change the LINUX_VERSION variable in target/linux/ar71xx/Makefile" to 3.2.4.

Then "make menuconfig" and "make" and reflash (for instance, with luci or mtd).

# uname -a
Linux OpenWrt 3.2.4 #1 Sat Feb 4 17:03:07 AST 2012 mips GNU/Linux

what is the point of upgrade to 3.2 except testing?
you'll lose compatibility with trunk packages repository - so you'll be unable to install luci unless compiled from source.

maurer wrote:

what is the point of upgrade to 3.2 except testing?
you'll lose compatibility with trunk packages repository - so you'll be unable to install luci unless compiled from source.

That's also my question.  I don't mind to compile from source but is there any advantage to upgrade to 3.2?

I connected an usb to ethernet connector to the usb port of 703n.  It shows as eth1 and works on its own.  However, I cannot make it and the built in ethernet port working as in a regular multi-ethernet port router (as a switch?).  Does anybody know how I can configure them to do that?  Thanks in advance.
It will be useful in case on traveling when I have a device that does not have wifi.

Edit:
I figured out what to do.  The easiest way is to use web interface.  Under "Network", edit "LAN", in "Physical Settings" select eth1 as one of the bridge interfaces.  It works but not very stable.  Seems it is due to the adapter or the driver but not configuration.  Hope this will be useful for others as well.

(Last edited by twinclouds on 6 Feb 2012, 03:56)

Hi I was wondering if anyone has ported oggenc to this device. I don't really want to do a whole cross compile just for the few programs i want, but it might be worth it. I also would like to know if it worked at any reasonable speed or any of you. I am running r29423 on a v1.5 using it as an mpd server.

I'd like to use one gpio output on the WR703N.  Is there one available (other than the blue LED)?

(Last edited by lizby on 9 Feb 2012, 02:04)

I was wondering if anyone has been able to install python on this device, and if there's any tricks installing.

Hi,  I received my wr703n today and flashed with http://downloads.openwrt.org/snapshots/ … actory.bin, configured the network and ran:

opkg update
opkg install luci

that all worked, and I can start uhttpd (/etc/init.d/uhttpd start), but all I get in my browser is a directory listing, and a single top-level directory "luci-static".  There's no active code, just folders, images, css and js.  How do I get luci up and running so that I can configure the device from a browser.

I also followed the instructions here:
https://groups.google.com/forum/#!msg/v … MZKmoJmNUJ
but all I got was a page saying "No such file or directory" whatever I put in the URL, including /index.html

Thanks

**Update**

After some more poking, it appears that "opkg install luci" isn't installing all the dependencies.  The following got everything installed and working (possibly overkill though):

opkg install luci luci-mod-admin-full uhttpd-mod-lua luci-sgi-uhttpd

(Last edited by pixelseventy2 on 9 Feb 2012, 21:49)