Configure cellular network settings

Note This section contains Linux BSP documentation for kernel v4.1. Click here for v4.9 BSP documentation.

NetworkManager manages the cellular devices in Digi Embedded Yocto. By default, Digi Embedded Yocto includes a cellular configuration placeholder under /etc/NetworkManager/system-connections/nm.cellular. With this configuration file, NetworkManager will try to bring up any previously detected cellular device. NetworkManager uses ModemManager support to access each identified modem. 

Configure Digi XBee Cellular

To configure the Digi XBee Cellular to work as a modem, follow these steps:

  1. Insert an unlocked SIM card into the XBee Cellular Modem.
  2. Plug the XBee Cellular into the XBIB-U-DEV board.
  3. Plug the power supply to the power jack on the XBIB-U-DEV board.
  4. Use XCTU to configure the following parameters:
    1. Baud Rate (BD) to 57600. This is the default baud rate that ModemManager expects on every TTY it opens.
    2. API Enable (AP) to Bypass Mode.

Note See Add radio modules to XCTU to learn how to add your XBee Cellular to XCTU.

See Configure your modules for more information on how to set your XBee Cellular parameters.

  1. Configure the PDP context 3 of the modem. To do so:
    1. Open the Serial Console of XCTU (Tools > Serial Console).
    2. Click Open.
    3. Configure the serial connection:
      1. Select the port where your XBee Cellular is connected.
      2. And its baud rate (57600).
    4. Type the following AT command in the Console log box:
    5. AT+CGDCONT=3,"IP","<APN>"

      where <APN> is the desired APN.

      Note For help determining which APN you are using, see the "Digi XBee Cellular Embedded Modem User Guide".

    6. To verify that the change has been applied, issue the following AT command:
    7. AT+CGDCONT?

Note See Serial console tool for more information.

  1. The XBee Cellular is configured. Connect it to your ConnectCore:
    1. Unplug the XBIB-U-DEV board power supply.
    2. Remove the XBee from the XBIB-U-DEV board.
    3. Unplug the ConnectCore platform power supply.
    4. Connect the XBee into its socket.
    5. Plug power supply to the power barrel connector of the ConnectCore board.

Higher baud rates may also be used (up to 921600 bps). For example, if you want to configure the baud rate to 115200, use XCTU to configure the XBee Cellular to use that baud rate and then edit the XBee Cellular udev rules file to configure ModemManager to use that baud rate when opening the port. To do so, use the ID_MM_TTY_BAUDRATE udev tag:

/lib/udev/rules.d/78-mm-digi-xbee-cellular.rules 
DEVPATH=="<platform dependent modem path>", ENV{ID_MM_PLATFORM_DRIVER_PROBE}="1", ENV{ID_MM_TTY_BAUDRATE}="115200"

See the XBee Cellular and XCTU documentation for more information.

Configuration settings

You can use the following variables in your Digi Embedded Yocto project's conf/local.conf to configure your cellular interface and network provider:

These authentication settings are optional depending on the cellular network and SIM used. See the Mobile Broadband Information web page.

local.conf 
CELLULAR_APN = "vzwinternet"

When building images, Yocto will add those fields to the NetworkManager configuration file (/etc/NetworkManager/system-connections/nm.cellular file), within the generated image. For the example above, the following file will be generated:

nm.cellular 
[connection]
id=cellular
type=gsm
  
[gsm]
apn=vzwinternet
number=*99#
  
[ppp]
lcp-echo-failure=3
lcp-echo-interval=5
  
[ipv4]
method=auto
  
[ipv6]
method=auto

See Set NetworkManager configuration for information on how to configure the behavior of NetworkManager.

You can also change the configuration file on the target either by directly modifying the /etc/NetworkManager/system-connections/nm.cellular file or using the nmcli tool to modify the file:

# nmcli con edit cellular
===| nmcli interactive connection editor |===e
Editing existing 'gsm' connection: 'cellular'
Type 'help' or '?' for available commands.
Type 'describe [<setting>.<prop>]' for detailed property description.
You may edit the following settings: connection, gsm, serial, ppp, ipv4, ipv6
nmcli> set gsm.apn <apn_name>
nmcli> save
nmcli> quit

NetworkManager then uses the information in that file to establish a cellular connection when bringing up the network interface.

You may need to bring the interface down and then back up to use the new configuration:

# nmcli con down cellular
# nmcli con up cellular

Protocols

The following table shows the default protocol and other protocols supported by these modems.

Modem

Default protocol

Other supported protocols

Digi XBee Cellular

Serial

-

Telit LE910

QMI

USB serial

Telit HE910

USB serial

-

Huawei ME909u

USB NET

Serial, MBIM

UBlox Toby L-200/L-210

Serial

-

Quectel EC21/EC25

QMI

USB serial

Instructions for unsupported modems

If Digi Embedded Yocto does not support your modem, Digi can provide a Cellular Integration Guide to help you integrate a modem into your Digi Embedded Yocto system. Contact your local Digi representative or Digi Technical Support to obtain the guide.