Community discussions

MikroTik App
 
TonyJr
Member Candidate
Member Candidate
Topic Author
Posts: 207
Joined: Sat Nov 12, 2011 1:30 am
Location: UK
Contact:

SOLVED: Huawei E122 and RB493G

Fri Dec 02, 2011 2:25 pm

Scroll further down for the solution


Hi,

I have connected and powered a Huawei E122 to a RB493G. It is showing under resources/usb, and I can get PPP info from it. I have been able to run AT commands on the device.

When I set the PPP interface to connect, it gets stuck on dialing out status. I have enabled debug logging and not much is outputted.

Can you help with this at all please? I see E122 is not on the compatible hardware list, so maybe this is the problem.

log: (changed by admin=enable/disable PPP interface)
11:46:36 async,ppp,info 3g-modem: initializing modem...
11:46:36 async,ppp,info 3g-modem: dialing out...
11:48:37 async,ppp,info 3g-modem: initializing modem...
11:48:37 async,ppp,info 3g-modem: dialing out...
11:48:53 async,ppp,info 3g-modem: dialing out...
11:48:53 async,ppp,info 3g-modem: disconnected
11:48:53 async,ppp,info 3g-modem: initializing...
11:48:53 async,ppp,info 3g-modem: reseting link...
11:48:53 system,info device changed by admin
11:48:53 async,ppp,info 3g-modem: dialing out...
11:51:28 async,ppp,info 3g-modem: dialing out...
11:51:28 async,ppp,info 3g-modem: disconnected
11:51:28 async,ppp,info 3g-modem: initializing...
11:51:28 async,ppp,info 3g-modem: reseting link...
11:51:28 system,info device changed by admin
11:51:28 async,ppp,info 3g-modem: dialing out...
11:53:46 async,ppp,info 3g-modem: dialing out...
11:53:46 async,ppp,info 3g-modem: disconnected
11:53:46 async,ppp,info 3g-modem: initializing...
11:53:46 async,ppp,info 3g-modem: reseting link...
11:53:46 system,info device changed by admin
11:53:46 async,ppp,info 3g-modem: dialing out...
11:54:18 async,ppp,info 3g-modem: dialing out...
11:54:18 async,ppp,info 3g-modem: disabled
11:54:18 system,info device changed by admin
11:54:21 async,ppp,info 3g-modem: initializing...
11:54:21 async,ppp,info 3g-modem: reseting link...
11:54:21 system,info device changed by admin
11:54:21 async,ppp,info 3g-modem: dialing out...
11:54:56 async,ppp,info 3g-modem: dialing out...
11:54:56 async,ppp,info 3g-modem: disabled
11:54:56 system,info device changed by admin
11:55:56 async,ppp,info 3g-modem: initializing...
11:55:56 async,ppp,info 3g-modem: reseting link...
11:55:56 system,info device changed by admin
11:55:56 async,ppp,info 3g-modem: dialing out...
USB Info:
[admin@MikroTik] /system resource usb> pr
# DEVICE VENDOR NAME SPEED
0 2:1 RB400 EHCI 480 Mbps
1 2:2 HUA WEI Huawei Mobile 480 Mbps
2 1:1 RB400 OHCI 12 Mbps
PPP client:
[admin@MikroTik] /interface ppp-client> pr
Flags: X - disabled, R - running
0 ;;; 3G Modem on-demand connection
name="3g-modem" max-mtu=1500 max-mru=1500 mrru=disabled port=usb2
data-channel=0 info-channel=0 apn="3internet" pin="" user=""
password="" profile=3internet phone="" dial-command="*99#"
modem-init="ATQ0 V1 E1 S0=0 &C1 &D2" null-modem=no dial-on-demand=no
add-default-route=no use-peer-dns=no keepalive-timeout=10 allow=pap
PPP profile 3internet:
1 name="3internet" remote-ipv6-prefix-pool=(unknown) use-ipv6=no use-mpls=no
use-compression=no use-vj-compression=no use-encryption=no
only-one=default change-tcp-mss=no
PPP Info:
[admin@MikroTik] /interface ppp-client> info 0
status: ready
pin-status: no password required
functionality: full
gprs-class: A - GPRS & GSM simultaneous
manufacturer: NOT SUPPORT
model: E122
revision: NOT SUPPORT
serial-number: 356881030xxxxxx
current-operator: 3 UK
access-technology: 3G
signal-strengh: -77 dBm
frame-error-rate: n/a
-- [Q quit|D dump|C-z pause]
Kind Regards,

Tony
Last edited by TonyJr on Thu Dec 15, 2011 12:00 pm, edited 3 times in total.
 
uldis
MikroTik Support
MikroTik Support
Posts: 3446
Joined: Mon May 31, 2004 2:55 pm

Re: Huawei E122 and RB493G

Fri Dec 02, 2011 6:33 pm

try to enable async,debug logs and check what does it say.Maybe one of your init sting values is causing that problem with the connection.
 
TonyJr
Member Candidate
Member Candidate
Topic Author
Posts: 207
Joined: Sat Nov 12, 2011 1:30 am
Location: UK
Contact:

Re: Huawei E122 and RB493G

Fri Dec 02, 2011 7:00 pm

try to enable async,debug logs and check what does it say.Maybe one of your init sting values is causing that problem with the connection.
I enabled async,debug log and this is the result:
16:52:07 async,ppp,info 3g-modem: initializing...
16:52:07 async,ppp,info 3g-modem: reseting link...
16:52:07 system,info device changed by admin <----enabled ppp interface
16:52:08 async,debug usb2:0: sent ATH
16:52:08 async,debug usb2:0: rcvd ERROR: UNKNOWN
16:52:08 async,ppp,info 3g-modem: initializing modem...
16:52:08 async,debug usb2:0: sent ATQ0 V1 E1 S0=0 &C1 &D2
16:52:08 async,debug usb2:0: rcvd OK
16:52:08 async,ppp,info 3g-modem: dialing out...
16:52:08 async,debug usb2:0: sent *99***1# <------ I had *99# in the dial string, but it was dialing *99#*99***1# so I removed my setting.
16:54:08 async,debug usb2:0: dial timeout
16:54:08 async,debug usb2:0: resetting modem
16:54:09 async,debug usb2:0: sent ATH
16:54:09 async,debug usb2:0: rcvd ERROR: UNKNOWN
16:54:09 async,ppp,info 3g-modem: initializing modem...
16:54:09 async,debug usb2:0: sent ATQ0 V1 E1 S0=0 &C1 &D2
16:54:09 async,debug usb2:0: rcvd OK
16:54:09 async,ppp,info 3g-modem: dialing out...
16:54:09 async,debug usb2:0: sent *99***1#
16:54:19 async,ppp,info 3g-modem: dialing out...
16:54:19 async,ppp,debug 3g-modem: LCP lowerdown
16:54:19 async,ppp,debug 3g-modem: LCP down event in initial state
16:54:19 async,ppp,info 3g-modem: disabled
16:54:19 system,info device changed by admin <--- disabled ppp interface
Strange how the hangup command ATH returns an error.

Tony
 
TonyJr
Member Candidate
Member Candidate
Topic Author
Posts: 207
Joined: Sat Nov 12, 2011 1:30 am
Location: UK
Contact:

Re: Huawei E122 and RB493G

Sat Dec 03, 2011 6:31 pm

Anyone have any ideas on this?

Many thanks!
 
TonyJr
Member Candidate
Member Candidate
Topic Author
Posts: 207
Joined: Sat Nov 12, 2011 1:30 am
Location: UK
Contact:

Re: SOLVED: Huawei E122 and RB493G

Thu Dec 15, 2011 11:58 am

Hello,

The correct PPP settings for Huawei E122 on 3 UK Network are default settings when adding a new PPP Client, but press advanced and add these also:

port=usb2 <---change accordingly
data-channel=0
info-channel=2
apn="3internet"
dial-command="ATDT"
dial-on-demand=yes <---change accordingly
add-default-route=no <---change accordingly
use-peer-dns=no <---change accordingly

Many thanks to Uldis at Mikrotik for getting this working.

Tony

Who is online

Users browsing this forum: Candide, Kanzler and 109 guests