Example on establishing data connection by AT!SCACT via MBPL R20 driver

Here is an example to establish data connection by AT!SCACT via MBPL R20 driver:
Module: WP7609
FW: R13
MBPL: R20
PC Environment: Ubuntu 18

  1. need to install the MBPL R20 driver for qmi_wwan and qcserial (MBPL_Drivers_USB_R20_ENG1-src.tar.gz)

  2. avoid the Ubuntu changing the network name:
    ln -s /dev/null /etc/systemd/network/99-default.link

  3. sudo apt-get install libqmi-utils

  4. sudo apt-get install udhcpc

  5. now insert the USB to PC

sudo chmod 777 /sys/class/net/wwan0/qmi/raw_ip
sudo echo Y > /sys/class/net/wwan0/qmi/raw_ip

  1. sudo qmicli --device=/dev/cdc-wdm0 --wds-noop --client-no-release-cid

  2. AT!SCACT=1,1 returns OK

  3. sudo udhcpc -i wwan0
    ( do not use “dhclient wwan0”, it is not working)

I have also made a document to summarize how to establish data connection by connection manager in MBPL R20 SDK.

Example on establishing data connection by MBPL R20.docx (165.1 KB)

If anyone is interested in the background - here’s a PoC patch for dhclient I wrote a few years ago: Re: MC 7304 ipv4v6 - raw-ip in qmi/mm/nm

jyijyi, How do you handle the carrier disconnecting you after 24 hours? The SCACT works for 24 hours using Sprint but then they disconnect us. My code has to send another SCACT before the 24 hour period.

You can monitor the unsolicited message +CGREG
when disconnect network, send at!scact again

If you are using sample application connection manager, you should receive a disconnect callback function, you can then restart the data connection there.