SYSTEM WARNING: 'date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in '/usr/share/mantis/www/core.php' line 264

0004364: usb_modswitch and Huawei E173S - MantisBT
MantisBT - Endian Firewall
View Issue Details
0004364Endian FirewallNetwork related (VPN, uplinks)public2012-05-25 15:452012-08-29 09:19
daniele-endian 
davide-endian 
normalminoralways
resolvedfixed 
2.5 
 
0004364: usb_modswitch and Huawei E173S
Hi,
i've some trouble with this UMTS usb key Huawei E173s, driver in the config file (/etc/usb_modeswitch.d/12d1\:1c0b) was present but the value "TargetProductList=" was incomplete.
By adding the value 1c07 to the string (TargetProductList="1c05,1c07,1c08"
), the UMTS usb was switched to modem but the usb-serial /dev/ttyUSB* wasn't created.

To create the usb-serial i've loaded the kernel module:
modprobe usbserial vendor=0x12d1 product=0x1c07

but after e reboot the problem appears again, to fix this, i've edit this file:
/etc/udev/rules.d/40-usb_modeswitch.rules

by adding the following line at the end:
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1c07", RUN+="/sbin/modprobe usbserial vendor=0x12d1 product=0x1c07"

Now the UTMS key was properly detect but we need to modify the ppp chat.tmpl (/etc/ppp/chat.tmpl) file because this key doesn't accept the parameters (OK AT+CGQMIN=1 and OK AT+CGQREQ=1 see /var/log/messages in the additional note field)
The new file should be similar to this:

ABORT BUSY
ABORT ERROR
ABORT 'NO CARRIER'
ABORT 'NO ANSWER'
ABORT VOICE
ABORT 'NO DIALTONE'
ABORT 'NO DIAL TONE'
ABORT DELAYED
REPORT CONNECT
TIMEOUT 10
"" "$ATINIT"
#if $MODEMTYPE == 'hsdpa'
OK AT+CGDCONT=1,"ip","$APN",,0,0
TIMEOUT 60
"" "ATD*99***1#"
#else if $MODEMTYPE == 'cdma'
OK-AT-OK "ATDT#777"
#else
OK "$ATHANGUP"
TIMEOUT 60
"" "$ATDIAL$TELEPHONE"
#end if
CONNECT \d\c
#try
#include "/var/efw/modem/chat.custom.tmpl"
#except
#pass
#end try
/var/log/messages

May 25 13:23:50 endian uplink[uplink1]: Starting Uplink 'uplink1'
May 25 13:23:50 endian uplink[uplink1]: Notify uplinks daemon about status change of uplink 'uplink1'. Status id FAILED
May 25 13:23:51 endian uplink[uplink1]: Uplink 'uplink1' status: 'OFFLINE'
May 25 13:23:51 endian uplink[uplink1]: Successfully shut down link 'uplink1'
May 25 13:23:56 endian pppd[8495]: pppd 2.4.4 started by root, uid 0
May 25 13:24:08 endian pppd[8495]: Connect script failed
May 25 13:24:09 endian pppd[8495]: Exit.
May 25 13:24:09 endian uplink[uplink1]: Notify uplinks daemon about status change of uplink 'uplink1'. Status id FAILED
May 25 13:24:09 endian uplink[uplink1]: Uplink 'uplink1' status: 'OFFLINE'
May 25 13:24:09 endian uplink[uplink1]: Could not successfully call pppd
purple
Issue History
2012-05-25 15:45daniele-endianNew Issue
2012-05-25 15:46daniele-endianTag Attached: purple
2012-06-01 12:23luca-endianNote Added: 0007886
2012-08-29 09:19davide-endianNote Added: 0008030
2012-08-29 09:19davide-endianStatusnew => resolved
2012-08-29 09:19davide-endianResolutionopen => fixed
2012-08-29 09:19davide-endianAssigned To => davide-endian

Notes
(0007886)
luca-endian   
2012-06-01 12:23   
probably we need only a package update
(0008030)
davide-endian   
2012-08-29 09:19   
Should be fixed in efw-network-2.9.9-0.endian33 and usb_modeswitch-data-20110714-1.endian3, but must be tested with the key.