3g - Mobile ISP

Discuss the technical details of Gargoyle and ongoing development

Moderator: Moderators

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: 3g - Mobile ISP

Post by ispyisail »

@Cezary

Do you have another image I could try?

behappy
Posts: 84
Joined: Thu Mar 31, 2011 5:06 pm

Re: 3g - Mobile ISP

Post 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.

Cezary
Posts: 135
Joined: Thu Sep 11, 2008 12:57 pm
Location: Poland
Contact:

Re: 3g - Mobile ISP

Post by Cezary »

ispyisail wrote:@Cezary

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

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: 3g - Mobile ISP

Post 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 :)

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: 3g - Mobile ISP

Post 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?

Cezary
Posts: 135
Joined: Thu Sep 11, 2008 12:57 pm
Location: Poland
Contact:

Re: 3g - Mobile ISP

Post 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

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: 3g - Mobile ISP

Post 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:~$

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: 3g - Mobile ISP

Post by ispyisail »

I got the modem to work

and i'm now a little embarrassed :oops:

The answer was

/dev/ttyUSB2

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: 3g - Mobile ISP

Post 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"

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: 3g - Mobile ISP

Post 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

Post Reply