Page 3 of 4

Re: 3g - Mobile ISP

Posted: Mon Dec 05, 2011 6:19 pm
by ispyisail
@Cezary

Do you have another image I could try?

Re: 3g - Mobile ISP

Posted: Mon Dec 05, 2011 8:24 pm
by behappy
Cezary wrote:Hmm this is my script :) usb-modeswith is already included into image. And recent changes eliminate the need for this script.
Its indeed yr script. I've used yr build in a couple of months very satisfied for 3G connection.

Re: 3g - Mobile ISP

Posted: Tue Dec 06, 2011 2:07 am
by Cezary
ispyisail wrote:@Cezary

Do you have another image I could try?
Yes, but in polish :) http://ecco.selfip.net/gargoyle-pl/ar71xx/

Re: 3g - Mobile ISP

Posted: Tue Dec 06, 2011 4:44 am
by ispyisail
Cezary wrote:
ispyisail wrote:@Cezary

Do you have another image I could try?
Yes, but in polish :) http://ecco.selfip.net/gargoyle-pl/ar71xx/
That will be fun :)

Re: 3g - Mobile ISP

Posted: Tue Dec 06, 2011 5:16 am
by ispyisail
polish is not so bad :)

I get the same errors with the polish version

Code: Select all

Dec  6 22:10:45 Gargoyle local2.info chat[5396]: abort on (BUSY)
Dec  6 22:10:45 Gargoyle local2.info chat[5396]: abort on (NO CARRIER)
Dec  6 22:10:45 Gargoyle local2.info chat[5396]: abort on (ERROR)
Dec  6 22:10:45 Gargoyle local2.info chat[5396]: report (CONNECT)
Dec  6 22:10:45 Gargoyle local2.info chat[5396]: timeout set to 10 seconds
Dec  6 22:10:45 Gargoyle local2.info chat[5396]: send (AT&F^M)
Dec  6 22:10:46 Gargoyle user.info firewall: adding lan (br-lan) to zone lan
Dec  6 22:10:46 Gargoyle user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Dec  6 22:10:46 Gargoyle user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Dec  6 22:10:49 Gargoyle daemon.info dnsmasq[5621]: started, version 2.55 cachesize 150
Dec  6 22:10:49 Gargoyle daemon.info dnsmasq[5621]: compile time options: IPv6 GNU-getopt no-DBus no-I18N DHCP TFTP
Dec  6 22:10:49 Gargoyle daemon.info dnsmasq-dhcp[5621]: DHCP, IP range 192.168.1.100 -- 192.168.1.250, lease time 12h
Dec  6 22:10:50 Gargoyle daemon.info dnsmasq[5621]: using local addresses only for domain lan
Dec  6 22:10:50 Gargoyle daemon.info dnsmasq[5621]: reading /tmp/resolv.conf.auto
Dec  6 22:10:50 Gargoyle daemon.warn dnsmasq[5621]: ignoring nameserver 192.168.1.1 - local interface
Dec  6 22:10:50 Gargoyle daemon.info dnsmasq[5621]: using local addresses only for domain lan
Dec  6 22:10:50 Gargoyle daemon.info dnsmasq[5621]: read /etc/hosts - 2 addresses
Dec  6 22:10:50 Gargoyle daemon.info dnsmasq-dhcp[5621]: read /etc/ethers - 0 addresses
Dec  6 22:10:55 Gargoyle local2.info chat[5396]: alarm
Dec  6 22:10:55 Gargoyle local2.info chat[5396]:  -- write timed out
Dec  6 22:10:55 Gargoyle local2.err chat[5396]: Failed
Dec  6 22:10:55 Gargoyle daemon.err pppd[5132]: Connect script failed
Dec  6 22:11:01 Gargoyle user.info kernel: eth0: link down
Dec  6 22:11:01 Gargoyle cron.err crond[4445]: USER root pid 5664 cmd /usr/bin/set_kernel_timezone >/dev/null 2>&1
Dec  6 22:11:22 Gargoyle authpriv.info dropbear[5689]: Child connection from 192.168.1.126:60282
Dec  6 22:11:27 Gargoyle local2.info chat[5691]: abort on (BUSY)
Dec  6 22:11:27 Gargoyle local2.info chat[5691]: abort on (NO CARRIER)
Dec  6 22:11:27 Gargoyle local2.info chat[5691]: abort on (ERROR)
Dec  6 22:11:27 Gargoyle local2.info chat[5691]: report (CONNECT)
Dec  6 22:11:27 Gargoyle local2.info chat[5691]: timeout set to 10 seconds
Dec  6 22:11:27 Gargoyle local2.info chat[5691]: send (AT&F^M)
Dec  6 22:11:31 Gargoyle authpriv.notice dropbear[5689]: Password auth succeeded for 'root' from 192.168.1.126:60282
Dec  6 22:11:37 Gargoyle local2.info chat[5691]: alarm
Dec  6 22:11:37 Gargoyle local2.info chat[5691]:  -- write timed out
Dec  6 22:11:37 Gargoyle local2.err chat[5691]: Failed
Dec  6 22:11:37 Gargoyle daemon.err pppd[5132]: Connect script failed
Dec  6 22:12:01 Gargoyle cron.err crond[4445]: USER root pid 5698 cmd /bin/3gtester
Is it something i'm doing wrong?

Re: 3g - Mobile ISP

Posted: Tue Dec 06, 2011 5:24 am
by Cezary
Because a lot of people (in Poland) uses my builds with huawei devices (most), IMO your ZTE requires something else to work.

Can you install picocom, and try communicate with modem?

picocom -b 115200 /dev/ttyUSB0

and insert AT<enter>, modem should response with OK

Re: 3g - Mobile ISP

Posted: Tue Dec 06, 2011 1:20 pm
by ispyisail

Code: Select all

root@Gargoyle:~$ picocom -b 115200 /dev/ttyUSB0
picocom v1.6

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv
imap is        :
omap is        :
emap is        : crcrlf,delbs,

Terminal ready

FATAL: write to term failed: Resource temporarily unavailable
Troot@Gargoyle:~$

Re: 3g - Mobile ISP

Posted: Tue Dec 06, 2011 1:32 pm
by ispyisail
I got the modem to work

and i'm now a little embarrassed :oops:

The answer was

/dev/ttyUSB2

Re: 3g - Mobile ISP

Posted: Tue Dec 06, 2011 1:36 pm
by ispyisail

Code: Select all

usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1:1.1: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
scsi2 : SCSI emulation for USB Mass Storage devices
option 1-1:1.3: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
scsi 2:0:0:0: Direct-Access     ZTE      MMC Storage      322  PQ: 0 ANSI: 2
sd 2:0:0:0: [sda] Attached SCSI removable disk
I thought "ttyUSB2" was "USB Mass Storage device"

Re: 3g - Mobile ISP

Posted: Tue Dec 06, 2011 1:57 pm
by ispyisail
How about a script that scans the usb ports for a 3g modem for auto detect?

Also as a new user and you have no access to SSH you can't tell if the modem has failed when you enter in the wrong port.

Just my thoughts