FreeBSD 8.2 and Lenovo X300 WWAN Modem

Maciej Milewski milu at dat.pl
Wed May 18 10:31:17 UTC 2011


Wednesday 18 of May 2011 12:22:37 crsnet.pl napisał(a):
>  On Wed, 18 May 2011 12:05:20 +0200, Maciej Milewski <milu at dat.pl>
> 
>  wrote:
> > Dnia środa, 18 maja 2011 o 11:40:36 crsnet.pl napisał(a):
> >>  Hello.
> >>  Have here anyone run this modem/GPS under FreeBSD 8.2 ? Modem is
> >>  recognized, but when i try to run ppp -ddial iplus i get this error
> >>  
> >>  
> >>  /var/log/messages
> >>  May 18 11:20:59 x60s ppp[1656]: tun0: Warning: Chat script failed
> >>  
> >>  /var/log/ppp
> >>  May 18 11:20:53 x60s ppp[1656]: tun0: Phase: deflink: opening ->
> >> 
> >> dial
> >> 
> >>  May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Send: AT^M
> >>  May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Expect(2): OK
> >>  May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Received: AT^M^M
> >>  May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Received: OK^M
> >>  May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Send: AT+CFUN=1^M
> >>  May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Expect(2): OK
> >>  May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Received: AT+CFUN=1^M^M
> >>  May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Received: ERROR^M
> >>  
> >>  
> >>  For GPS i try to use
> >>  gpsdrive-2.09_11    A GPS navigation system
> >>  viking-1.0.2        Program to manage GPS data (tracks, waypoints,
> >> 
> >> etc)
> >> 
> >>  But any of them can use X300 GPS;/
> >>  
> >>  #uname -a
> >>  FreeBSD x60s 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18
> >> 
> >> 02:24:46
> >> 
> >>  UTC 2011
> >> 
> >> root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
> >> 
> >>  i386
> >>  
> >>  #dmesg
> >>  ugen6.3: <vendor 0x17ef> at usbus6
> >>  ugen4.2: <Sierra Wireless, Incorporated> at usbus4
> >>  u3g0: <Data Interface> on usbus4
> >>  u3g0: Found 3 ports.
> >>  
> >>  #sudo usbconfig
> >>  ugen4.2: <Sierra Wireless MC5725 Modem Sierra Wireless,
> >> 
> >> Incorporated>
> >> 
> >>  at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
> >>  ugen6.4: <Wimedia device ManfID> at usbus6, cfg=0 md=HOST spd=HIGH
> >>  (480Mbps) pwr=ON
> >>  
> >>  #ls -la /dev/cuaU*
> >>  crw-rw----  1 uucp  dialer    0, 123 18 maj 09:39 /dev/cuaU0.0
> >>  crw-rw----  1 uucp  dialer    0, 124 18 maj 09:39 /dev/cuaU0.0.init
> >>  crw-rw----  1 uucp  dialer    0, 125 18 maj 09:39 /dev/cuaU0.0.lock
> >>  crw-rw----  1 uucp  dialer    0, 129 18 maj 09:39 /dev/cuaU0.1
> >>  crw-rw----  1 uucp  dialer    0, 130 18 maj 09:39 /dev/cuaU0.1.init
> >>  crw-rw----  1 uucp  dialer    0, 131 18 maj 09:39 /dev/cuaU0.1.lock
> >>  crw-rw----  1 uucp  dialer    0, 135 18 maj 09:39 /dev/cuaU0.2
> >>  crw-rw----  1 uucp  dialer    0, 136 18 maj 09:39 /dev/cuaU0.2.init
> >>  crw-rw----  1 uucp  dialer    0, 137 18 maj 09:39 /dev/cuaU0.2.lock
> >>  
> >>  #cat /etc/ppp/ppp.conf
> >>  
> >>  iplus:
> >>   set log Phase Chat LCP IPCP CCP tun command
> >>   ident user-ppp VERSION (built COMPILATIONDATE)
> >>   
> >>   set device /dev/cuaU0.0
> >>   set speed 460800
> >>   #set speed 115200
> >>   set dial "ABORT BUSY TIMEOUT 2 \
> >>   
> >>          \"\" \
> >>          AT OK-AT-OK \
> >>          AT+CFUN=1 OK-AT-OK \
> >>          AT+CMEE=2 OK-AT-OK \
> >>          AT+CSQ OK \
> >>          AT+CGDCONT=1,\\\"IP\\\",\\\"internet\\\" OK \
> >>          AT+CGACT? OK-AT-OK \
> >>          AT+CGATT? OK \
> >>          AT+CGCLASS? OK \
> >>          AT+COPS? OK \
> >>          ATD*99***1# CONNECT"
> >>   
> >>   set timeout 180
> >>   enable dns
> >>   set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
> >>   add default HISADDR
> >>  
> >>  Regards, Adrian.
> > 
> > Do you have a pin defined on sim?
> 
>  No.
>  I check with minicom that AT+CFUN=1 (Turns modem on) give Error but
>  AT+PCSTATE=1 turns it on.
>  Unfortunately when i change it in ppp.conf from AT+CFUN=1 to
>  AT+PCSTATE=1 that give me
>  May 18 12:13:48 x60s ppp[2697]: tun0: Chat: Send: AT+PCSTATE=1^M
>  May 18 12:13:48 x60s ppp[2697]: tun0: Chat: Expect(2): OK
>  May 18 12:13:48 x60s ppp[2697]: tun0: Chat: Received: AT+PCSTATE=1^M^M
>  May 18 12:13:48 x60s ppp[2697]: tun0: Chat: Received: ERROR^M
>  May 18 12:13:50 x60s ppp[2697]: tun0: Chat: Expect timeout

http://sierrawireless.custhelp.com/app/answers/detail/a_id/500/~/can-i-use-my-
sierra-wireless-modem-on-a-linux-operating-system-%3F-%28-v.1.7.36%29
Sometimest command port is different than data port. Try different cuau0.0, 
cuau0.1, cuau0.2 also GPS many times has his own subinterface so that may be 
the point. 

My working ppp.conf dial definition, with pin enabled:
 set dial "ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5 \
                \"\" AT OK-AT-OK \
                AT OK-AT-OK AT+CPIN=0000 OK-AT-OK\
                AT+CGDCONT=1,\\\"IP\\\",\\\"internet\\\" OK \
                AT OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT"

--
Maciej


More information about the freebsd-stable mailing list