Solved WWAN

I have a ThinkPad X61 which can take a SIM card for connecting to the Internet via the phone network. Is it possible to use FreeBSD to connect ?
 
Yes, I added this section to ppp(8) config in /etc/ppp/ppp.conf file.

Code:
3g:
  set device /dev/cuaU0
  set speed 921600
  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
    \"\" AT OK-AT-OK \
    AT+CFUN=1 OK \
    AT+COPS=0 OK \
    AT+CGDCONT=1,\\\"IP\\\",\\\"www.plusgsm.pl\\\" OK \
    \dATDT\\T TIMEOUT 80 CONNECT"
  set logout "ABORT BUSY ABORT ERROR TIMEOUT 60 \"\" +++ATH O ATH OK"
  set phone *99\#
  set timeout 300
  set ifaddr 10.64.64.64/0 10.64.64.64/0 255.255.255.255 0.0.0.0
  add default HISADDR
  enable dns
  disable ipv6cp

This is of course for WWAN provider in Poland.

To connect use this command:
# ppp -ddial 3g
 
Yes, I added this section to ppp(8) config in /etc/ppp/ppp.conf file.

Code:
3g:
  set device /dev/cuaU0
  set speed 921600
  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
    \"\" AT OK-AT-OK \
    AT+CFUN=1 OK \
    AT+COPS=0 OK \
    AT+CGDCONT=1,\\\"IP\\\",\\\"www.plusgsm.pl\\\" OK \
    \dATDT\\T TIMEOUT 80 CONNECT"
  set logout "ABORT BUSY ABORT ERROR TIMEOUT 60 \"\" +++ATH O ATH OK"
  set phone *99\#
  set timeout 300
  set ifaddr 10.64.64.64/0 10.64.64.64/0 255.255.255.255 0.0.0.0
  add default HISADDR
  enable dns
  disable ipv6cp

This is of course for WWAN provider in Poland.

To connect use this command:
# ppp -ddial 3g

Many thanks for your reply. It's nice to know that someone has this working. Just a few questions to clarify how this works..
I'm surprised by this:- set device /dev/cuaU0. I thought this was how to access a comport, for example when using a broadband dongle. I'm talking about using a SIM slot on the motherboard of the laptop. Is that addressed the same way?
I have a Plus number. Would I be able to use your settings when I'm in Poland?

Incidentally, what is the best deal for SIMs in Poland at the moment as I expect to be visiting next week.
 
Many thanks for your reply. It's nice to know that someone has this working. Just a few questions to clarify how this works..
I'm surprised by this:- set device /dev/cuaU0. I thought this was how to access a comport, for example when using a broadband dongle. I'm talking about using a SIM slot on the motherboard of the laptop. Is that addressed the same way?
I have a Plus number. Would I be able to use your settings when I'm in Poland?

Incidentally, what is the best deal for SIMs in Poland at the moment as I expect to be visiting next week.
I use internal laptop slot with builtin WWAN module on ThinkPad T520 laptop, but it worked the same for Dongle USB.

If You have SIM from Plus provider in Poland, then these settings should work.
 
Code:
...

    AT+CGDCONT=1,\\\"IP\\\",\\\"www.plusgsm.pl\\\" OK \
    \dATDT\\T TIMEOUT 80 CONNECT"
  set logout "ABORT BUSY ABORT ERROR TIMEOUT 60 \"\" +++ATH O ATH OK"
  set phone *99\#
  set timeout 300
  set ifaddr 10.64.64.64/0 10.64.64.64/0 255.255.255.255 0.0.0.0
...

Does anyone know what I would need to change in order to connect to the Three network in the UK?
 
I use internal laptop slot with builtin WWAN module on ThinkPad T520 laptop, but it worked the same for Dongle USB.

If You have SIM from Plus provider in Poland, then these settings should work.

Unfortunately I forgot to pack my USB Dongle and am now in Poland and would like to see if I can use my X61 to establish a PPP connection. The main stumbling block is likely to be that the 3G modem is locked to the Vodafone network, so I guess I would need to find a Polish Vodafone card, but am not sure if Vodafone exists in Poland
 
Yes, I added this section to ppp(8) config in /etc/ppp/ppp.conf file.

Code:
3g:
  set device /dev/cuaU0
  set speed 921600
  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
    \"\" AT OK-AT-OK \
    AT+CFUN=1 OK \
    AT+COPS=0 OK \
    AT+CGDCONT=1,\\\"IP\\\",\\\"www.plusgsm.pl\\\" OK \
    \dATDT\\T TIMEOUT 80 CONNECT"
  set logout "ABORT BUSY ABORT ERROR TIMEOUT 60 \"\" +++ATH O ATH OK"
  set phone *99\#
  set timeout 300
  set ifaddr 10.64.64.64/0 10.64.64.64/0 255.255.255.255 0.0.0.0
  add default HISADDR
  enable dns
  disable ipv6cp

This is of course for WWAN provider in Poland.

To connect use this command:
# ppp -ddial 3g


I tried for the first time after upgrading the firmware of my MC8775 in my ThinkPad X61, which was able to connect with Plus under Windows, but under FreeBSD I got:-
Code:
#ppp -ddial 3g
Working in ddial mode
Warning: Add route failed: 0.0.0.0: errno: Value too large to be stored in data type
Using interface: tun0

There is no indication that any connection was made.
 
Here is mine:
/ppp/ppp.conf
Code:
default:
 set log Phase Chat LCP IPCP CCP tun command
 ident user-ppp VERSION
 set device /dev/cuaU0.2
 set timeout 180
 set speed 921600
 set dial "ABORT BUSY TIMEOUT 3 \
        \"\" \
        AT OK-AT-OK \
        AT+CFUN=1 OK-AT-OK \
        AT+CMEE=2 OK-AT-OK \
        AT+CSQ OK \
        AT+CGDCONT=1,\\\"IP\\\",\\\"fast.t-mobile.com\\\" OK \
        ATD*99# CONNECT"

 set timeout 180
 enable dns
 resolv writable
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR

You will need to change the APN to yours.
(My APN is fast.t-mobile.com)

My script is named default, so change dialer if you use this.
ppp -ddial default
 
Yes, I added this section to ppp(8) config in /etc/ppp/ppp.conf file.

Code:
3g:
  set device /dev/cuaU0

It now works after changing the above to

set device /dev/cuaU0.0

This is on a ThinkPad X61 with a Sierra Wireless MC8775 with updated firmaware.
 
These in your /etc/rc.conf will make it persistent.
#ppp_enable="YES"
#ppp_mode="ddial"
#ppp_profile="default" or "3g" Or whatever you named your connection script.
 
Since you are traveling I would make your ppp entry name based of the carrier.

That way when you get back home you could just ppp -ddial vodaphone or in Poland ppp -ddail plusgsm.pl for example.
ppp.conf allows named sections with different profiles.
 
Here is mine:
/ppp/ppp.conf
Code:
default:
 set log Phase Chat LCP IPCP CCP tun command
 ident user-ppp VERSION
 set device /dev/cuaU0.2
 set timeout 180
 set speed 921600
 set dial "ABORT BUSY TIMEOUT 3 \
        \"\" \
        AT OK-AT-OK \
        AT+CFUN=1 OK-AT-OK \
        AT+CMEE=2 OK-AT-OK \
        AT+CSQ OK \
        AT+CGDCONT=1,\\\"IP\\\",\\\"fast.t-mobile.com\\\" OK \
        ATD*99# CONNECT"

 set timeout 180
 enable dns
 resolv writable
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR

You will need to change the APN to yours.
(My APN is fast.t-mobile.com)

My script is named default, so change dialer if you use this.
ppp -ddial default
how we send PIN code and witch speed for 4G ?
 
Sorry I can help with either.

As you see the serial port speed is set via config.
set speed 921600
So regardless of LTE connection handshake the best you will get with is the serial port speed.

The PIN is something the carrier sets I believe. I used sim from Straighttalk and they didn't have a PIN code.
 
Back
Top