Connection Settings for Various Devices

Soracom's Air SIM is compatible with a wide variety of readily available USB modems, smartphones and tablets, and wireless routers..

This guide covers four basic connection settings for commonly-available devices, to help you get your IoT project up and running quickly.

Regardless of device, the following APN configuration is used for each setup:


Raspberry Pi with USB Modem

What you'll need:

While you can use a wide variety of USB modems, this guide will use the Fujisoft FS01BU 3G dongle (available on the User Console or at Amazon). If you are purchasing a 3G/LTE modem, ensure that it supports the 3G/GSM or LTE frequencies available in your country of use.

  1. Insert the Soracom Air SIM into the USB modem, and connect the USB modem to one of the USB ports on the Raspberry Pi.

  2. Connect the Raspberry Pi micro-USB port to a power source.

  3. As we need to install some software packages to set up the USB modem, ensure that your Raspberry Pi has a network connection (wifi or ethernet). Then, from the Raspberry Pi's terminal, run the following command:

    sudo apt-get install usb-modeswitch wvdial

    If prompted, enter Y to confirm the installation of the packages.

  4. Next, we will run a script to install the correct settings for our USB modem. Run the following command to download the Soracom setup script:

    curl ‒O http://soracom-files.s3.amazonaws.com/setup_air.sh
  5. Make the script executable:

    chmod 755 setup_air.sh
  6. Then run the script:

    sudo ./setup_air.sh

    The script will automatically detect the modem and install the APN and connection information. Once it is finished, you can turn on the modem by running sudo ifup wwan0 or sudo wvdial.

With the USB modem setup, you can now test its connection. Ensure that any local network connections are disconnected by unplugging any ethernet cable or disabling the ethernet or wifi adapters. If you are able to access a webpage or ping a server through Raspberry Pi's browser or terminal, you have successfully setup the modem with Soracom Air.


Raspberry Pi with Smartphone

What you'll need:

  1. Insert the Soracom Air SIM card into your smartphone or tablet device.

  2. Follow your device's manual in order to create a new APN configuration, using the APN settings above.

    If you are using an iOS device, you can instead download one of the following connection profiles rather than manually creating a new configuration:

  3. Select to enable the APN configuration on your smartphone or tablet device, and confirm that it has successfully connected to a cellular network. You can disable wifi in order to confirm that cellular connectivity is successful.

  4. From the Raspbery Pi, open a terminal and use the following commands in order setup the tethered connection:

    • Android devices:

    Open the network interface configuration file. Here we will use the nano text editor:

    sudo nano /etc/network/interfaces

    Add these lines to the end of the file:

    auto usb0
    allow-hotplug usb0
    iface usb0 inet dhcp

    Save the file by pressing Ctrl+X, then Y and Enter.

    • iOS devices

    Run the following command to install tools for tethering with an iOS device:

    sudo apt-get install ipheth-utils libimobiledevice-utils ifuseusbmuxd
  5. Connect your smartphone or tablet device to the Raspberry Pi using a USB cable.

  6. Enable tethering from your smartphone or tablet device.
    • Android - Settings Connections Tethering USB Tethering
    • iOS - Settings Internet Sharing Enable

With tethering setup, you can now test the connection. Ensure that any local network connections are disconnected by unplugging any ethernet cable or disabling the ethernet or wifi adapters from your Raspberry Pi, and disabling wifi on your smartphone or tablet device. If you are able to access a webpage or ping a server through Raspberry Pi's browser or terminal, you have successfully setup tethering with Soracom Air.


PC with Smartphone

Follow steps 1-3 above to setup the Soracom Air SIM in your smartphone or tablet device.

  1. Connect your smartphone or tablet device to your PC using a USB cable.

  2. Enable tethering from your smartphone or tablet device.
    • Android - Settings Connections Tethering USB Tethering
    • iOS - Settings Internet Sharing Enable

You can now test the connection. Ensure that any local network connections are disconnected by unplugging any ethernet cable or disabling the ethernet or wifi adapters from your PC, and disabling wifi on your smartphone or tablet device. If you are able to access a webpage or ping a server from your PC's browser or command prompt, you have successfully setup tethering with Soracom Air.


PC with Mobile Router

Soracom Air SIM cards can also be used with mobile routers (also known as portable or personal wifi hotspots), allowing you to easily connect various devices using wifi.

Follow steps 1-3 above to setup the Soracom Air SIM in your mobile router.

  1. Connect your PC or other device to the mobile router via wifi.

You can now test the connection. Ensure that any local network connections are disconnected by unplugging any ethernet cable or disabling the ethernet adapter from your PC. Although your PC will be connected to the mobile router using wifi, the mobile router will in turn connect to Soracom using a cellular connection. If you are able to access a webpage or ping a server from your PC's browser or command prompt, you have successfully setup tethering with Soracom Air.