Module connection setup

This section is intended to provide you a quick guide on how to setup the connection of your R4/R5 modules using AT commands so that you can easily test the service. For a complete documentation, refer to document SARA-R4 / SARA-R5 Internet applications development guide

Network setting verification

The following example reports the AT commands necessary to reach the activation of a PDP context at first then a data socket by starting from the power-up of the module and the control of the pre-existing settings.

  • AT+CFUN=0 - Turn OFF the radio functionality to set the network profile

  • AT+UMNOPROF=100 - Set the MNO profile for usage in Europe. For other countries look at UMNOPROF command in AT Command manuale

  • AT+CFUN=16 - Reboot the modules to make the new settings effective

  • AT+UMNOPROF? - Verify that the new profile has been set

  • AT+CFUN=0 - Turn OFF the radio

  • AT+CGDCONT=1,"IPV4V6" , "apn_name" - Define the PDP context 1 with PDP type "IPV4V6" and APN "apn_name" of the MNO

Network registration check

LTE radio access technology

Verify that the module is registered on the LTE network

  • AT+CFUN=1 - Turn ON the radio

  • AT+COPS? - verify if the module is currently registered to the network

  • AT+CGDCONT? - Get the IP address assigned by the network


GPRS/eGPRS radio access technology

Verify that the module is registered on the 2G network

  • AT+CFUN=1 - Turn ON the radio

  • AT+COPS? - verify if the module is currently registered to the network

  • AT+CGACT=1,1 - Activate PDP context 1

  • AT+CGDCONT? - Get the IP address assigned by the network

Profile activation

SARA-R5 modules

  • AT+UPSD=0,0,0 - Set the PDP type to IPv4 referring to the output of the +CGDCONT read command

  • AT+UPSD=0,100,1 - Map the profile on CID=1

  • AT+UPSDA=0,3 - Activate the PSD profile #0: the IPV4 address is already assigned to the network


SARA-R4 modules

  • AT+UPSD=0,0,0 - Set the PDP type to IPv4 referring to the output of the +CGDCONT read command

  • AT+UPSD=0,100,1 - Map the profile on CID=1


After these sequence you are ready to use the CellLocate service issuing the AT+ULOC command to get the location, as described in the getting started guide.


Other useful commands

Other commands can be useful to check the connectivity status

  • AT+UPING="www.u-blox.com" - ping command

  • AT+UDNSRN=0, "www.u-blox.com" - DNS resolution command