background image

 

SARA-R42 - Application note 

UBX-20050829 - R02 

Local connectivity

 

Page 15 of 58 

C1-Public 

 

 

 

The 

“S

et

 command is available only for the auxiliary UART interface. 

 

The “Read” 

command is available for both the main UART and the auxiliary UART interfaces. 

5.2

 

AT interface 

AT commands can be issued to the module only via UART interface. 

By default, the UART data rate is set to 115200 b/s, while 

“autobauding”

 is not supported by SARA-R4 

series modules. 

5.2.1

 

Set a fixed baud rate 

Use the 

+IPR

 AT command to set a different baud rate for the main UART interface as shown i

Table 

5

. 

Command

 

Response

 

Description

 

AT+IPR=57600

 

OK 

Set UART speed to fixed value 57600 bit/s. 
Cellular module response is sent at 115200 bit/s, i.e. 
at the original baud rate value.  

After the "OK" final result code, wait for at least 200 ms before issuing a new AT command, to guarantee proper baud rate 
reconfiguration. Then send commands at the speed just set (57600 bit/s in the example). 
The new selected baud rate is immediately applied, a device reboot is not needed. 

AT+IPR? 

+IPR:57600  
OK 

Check the current baud rate 

Table 5: Setting a fixed baud rate example 

 

The UART speed takes around 200 ms to reconfigure itself after a baud rate change through the 

+IPR

 AT command. 

 

To  show  a  greeting  text  at  module  boot (

+CSGT

  AT  command),  set  the  desired  fixed  baud  rate 

beforehand by using the 

+IPR

 AT command. If active, the greeting text is shown at boot once, on 

any AT interface, the first time the TE sets the DTR line to ON state. 

 

If using the Direct Link mode in downlink, it is advisable to apply 460800 b/s as fixed baud rate. 

5.3

 

Multiplexer (MUX) 

SARA-R4 series modules support the multiplexer functionality on the UART physical link as defined 
in the 3GPP TS 27.010 

[13]

This makes it possible to have multiple simultaneous sessions (virtual 

channels) over the single UART interface. 

The following virtual channels are defined: 

 

Channel 0: multiplexer control. 

 

Channels 1 to 2: AT commands / data connection. 

 

Channel 3: GNSS data tunneling (NMEA).

1

 

For  further  details  about  the  usage  of  multiplexer  with  SARA-R4  series  modules,  see  the  Mux 
implementation in cellular modules application note 

[8]

. 

 

The UART interface takes around 200 ms to reconfigure itself after the multiplexer configuration 
through the 

+CMUX

 AT command. 

 

1

 Not supported by SARA-R422 modules 

Summary of Contents for SARA-R42

Page 1: ...blox com SARA R42 Application development guide Application note Abstract This document provides detailed technology architecture and examples of how to use AT commands with u blox SARA R422 SARA R42...

Page 2: ...n the products names logos and designs included in this document Copying reproduction modification or disclosure to third parties of this document or any part thereof is only permitted with the expres...

Page 3: ...Core application 11 3 2 6 Power off 11 3 3 Application modes 11 3 3 1 Debug test mode 11 3 3 2 Production testing 11 3 3 3 Certification mode 11 3 3 4 Firmware update mode 11 4 AT commands response pa...

Page 4: ...6 8 1 2 Timer values 27 8 1 3 PSM and roaming 28 8 1 4 Example of usage of PSM 28 8 2 Deep sleep mode 29 8 2 1 Deep sleep aware applications and deep sleep postponing 29 8 2 2 Deep sleep indications 3...

Page 5: ...ng backup after flashing FW update with delta package 49 13 1 4 EasyFlash backup and SMS storage 49 14 Restore factory configuration 50 15 Specialized application notes by topic 52 15 1 Multiplexer 52...

Page 6: ...SARA R412M to SARA R42 modules Table 1 shows a summary of the documentation available for SARA R42 Document name Notes Application integration Application development guide app note This document Sta...

Page 7: ...ing it well suited for critical applications running on devices that may be deployed in the field for extended periods of time As M stands for mobility the LTE Cat M1 standard specifies Connected Mode...

Page 8: ...elected see the SARA R4 series system integration manual 3 and the SARA R4 series AT commands manual 2 To benefit from the enhancement of the LPWA standards the power saving mode PSM can be enabled to...

Page 9: ...fication mode Maintenance FW update mode Debug test mode Production mode Power cons optimization Normal mode Figure 1 Application design 3 1 Initial design decisions If some features will never be use...

Page 10: ...ctive LTE bands The host application should implement a persistent configuration setting phase performed once and then at an as needed basis where all AT commands related to the required settings are...

Page 11: ...eded it may be necessary to configure different verbosity levels for the host application and modules log This can be done with configuration files that can be side loaded to the file system In extrem...

Page 12: ...UX The only allowed parallel activity is present when it is defined a system architecture with a PPP dial up on one port and AT commands on the other one 4 1 Operational modes of the AT interface When...

Page 13: ...report a specific event or status change on the same AT port If the AT port is busy the application can decide to discard CIND CGEV and SMS related URC by properly configuring the related AT commands...

Page 14: ...and AT commands on the other port The URINGCFG AT command is not applicable when the AT USIO 1 option is selected due to the fact that the RING line is not available at UART level in this configuratio...

Page 15: ...heck the current baud rate Table 5 Setting a fixed baud rate example The UART speed takes around 200 ms to reconfigure itself after a baud rate change through the IPR AT command To show a greeting tex...

Page 16: ...full V24 modem lines are not supported In this configuration entering in OLCM or disconnecting the PPP connection via DTR line de assertion is not possible Issue the AT CVHU 0 command to make ATH ove...

Page 17: ...The host application should specify an MNO profile The default and factory programmed MNO profile is 90 global profile Reboot the module by means of AT CFUN 15 command or the equivalent AT CFUN 16 to...

Page 18: ...wever there may be changes that need to be applied to the module for proper operation with any given MNO such as attach type RAT preference band selection etc Please consult with the preferred network...

Page 19: ...OK Set the automatic MNO profile detection the automatic reset and enable the related URC AT CFUN 15 DTE is required to perform first reboot AT UMNOPROF UMNOPROF 1 0 OK UMNOPROF is ready to perform au...

Page 20: ...0 0 0 0 0 0 0 0 0 0 0 0 219 524288 Enable B2 B4 B5 B12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 1 0 1 0 211 24 23 21 2074 Enable B4 B13 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0...

Page 21: ...e can be selected by the host application based on the tradeoff between power consumption and maximum tolerable delay before regaining cellular coverage 7 2 First time registration setup It is importa...

Page 22: ...Protocol Configuration Options ePCO container is used in Network Access Stratum NAS messaging when attaching to an LTE network Some NB IoT mobile operators do not support ePCO container therefore if...

Page 23: ...kom DT MNO the limit is 30 the maximum number of PDP context activations requests per hour following a PDP context activation request ignored by the network e g for DT it is 60 rejected with a permane...

Page 24: ...d has a AcT parameter which describes the access technology the module is registered to However this command does not provide a URC when the module is registered There are other AT commands that do ha...

Page 25: ...using the abort of the RRC connection and the interruption of the data traffic A possible solution to this situation is to apply a manual PLMN selection as a workaround for this specific SIM setting F...

Page 26: ...etwork then the module can not use PSM In this case for example the host application could power on and off the module with the desired periodicity in order to save power Two timers determine the entr...

Page 27: ...as GPRS timer 3 IE see TS 3GPP TS 24 008 12 Bits 5 to 1 represent the binary coded timer value Bits 6 to 8 define the timer value unit for the GPRS timer and are encoded as follows BIT 8 7 6 0 0 0 val...

Page 28: ...PSMVER UPSMVER 4 3 3 4 0 OK Make sure the UPSMVER AT command is set to its default value where PSM with context retention feature is enabled otherwise enable it and start from the beginning AT CPSMS C...

Page 29: ...for MO data waking up the module just before it exits PSM deep sleep by itself when possible To keep power consumptions in deep sleep extremely low the only running module component in this state is a...

Page 30: ...g if RXD is low for more than 1 character UUPSMR URC printed on the AT interface when entering and exiting deep sleep mode 8 2 3 Deep sleep state in out of service The power efficient deep sleep mode...

Page 31: ...reliability it is also advisable to request at least two TeDRX cycles during the T3324 active time see Figure 4 Power Save Mode Paging window 2 56s cycle eDRX cycle N Hyper frames of 10 24 s T3324 pe...

Page 32: ...after having configured eDRX deep sleep with AT UPSMVER 8 command which forces eDRX to be used standalone disabling PSM requests to the network When the eDRX deep sleep feature is used power consumpti...

Page 33: ...t transmission or reception is complete the RRC connection is released by the network The device enters the idle state and starts T3324 and T3412 timers 5 While the T3324 timer is running paging is li...

Page 34: ...URCs provide the most updated information and in some cases diagnostic information which is not available via polling For AT commands that enable URCs they might also return the same information when...

Page 35: ...level No AT CNMI 2 1 CMTI mem index Report the index in current selected memory can be the factory programmed setting ME or SIM see CPSM read command where the mobile terminated SMS has been stored Th...

Page 36: ...del and FW identification useful for tracking purposes Module initialization AT CGSN 355438110017558 Return the IMEI Module initialization AT CIMI AT CCID 001010123456789 CCID 89860000502000180722 Ret...

Page 37: ...IM refresh only in debug test mode AT CEDRXRDP CEDRXRDP AcT_type Requested_eDRX_cycl e Assigned_eDRX_cycle_value Assigned_pa ging_time_window It returns the current eDRX parameters assigned by the mob...

Page 38: ...address cannot establish dial up Detach re attach AT CFUN 0 AT CFUN 1 Consider possible restrictions to multiple cid s active for APN If IPv6 only PDN is set in Verizon Wireless MNO setting detach de...

Page 39: ...ossible it is suggested to use test SIM cards during production tests possibly the same SIM card used during the device validation If a test SIM card is not available and if the production tests are p...

Page 40: ...in a specified channel to return the measured power level in all supported bands The minimum recommended RF verification in production consists in forcing the module to transmit in a supported frequen...

Page 41: ...e is not completely in non signaling mode because CFUN reports that it is in test mode Below is the sequence to correct this AT CFUN 0 OK Set the MT to minimum functionality AT CFUN 1 OK Sets the MT t...

Page 42: ...for RF TX non signaling mode Command Response Description AT UTEST 3 123060 23 0 OK Turn on the continuous TX in B12 Ch 123060 23 dBm AT UTEST 3 123060 23 1000 UTEST 123060 23 5 1 1000 OK Turn on TX...

Page 43: ...tate the command saves the pins status to restore it at the end of the test Pins enabled for testing GPIO1 pin 16 Where hex 0000 0000 0000 0000 0000 8000 AT UTEST 10 3 000000000000 000000000000 OK GPI...

Page 44: ...th the pins effectively and not have conflicting control with the other commands 10 2 Network simulators testing When testing with network simulators such as a CMW500 from Rohde Schwarz as one example...

Page 45: ...boxes which may require a specific UICC profile to connect to Anticipate such needs and be prepared to be able to obtain and configure a profile to connect to such networks or simulators Alternatively...

Page 46: ...re accepted the CREG read command and URC would report that it is not registered for CS services Since it can happen that SMS services are not supported in NB IoT in AT URAT 8 there is no means to und...

Page 47: ...es system integration manual 3 Backup Restore feature is intended only as an additional backup mechanism if on the potential rare occasion the host application shutdown is not conforming to the gracef...

Page 48: ...AT interface is available here is the following option Wait for UUBKUPDATA URC o Example for backup successful UUBKUPDATA 1 1 13 1 2 EFS restore When an automatic restore is triggered the device will...

Page 49: ...is received Enable and monitor the GPIO pin with Module status indication functionality via the UGPIOC AT command Enable and monitor the greeting message via the CGST AT command 13 1 3 Creating backu...

Page 50: ...stored 2 Reboot the module The UFACTORY AT command writes a flag in NVM and does not perform any restoring action This flag is then read at the next reboot when the UFACTORY corresponding action is ex...

Page 51: ...et a UFACTORY action AT UFACTORY UFACTORY 1 0 OK Check the action currently set At the moment a delete user files procedure is requested and will be applied at next reboot AT UFACTORY 0 0 OK Cancel an...

Page 52: ...ations development guide application note 5 15 3 Security suite See the Security suite application note 6 15 4 Secure communication See the Internet applications development guide application note 5 1...

Page 53: ...ne termination sequence n r in the CSGT URC and some AT commands in test mode like AT UPSV AT UFOTA plus some others related to the LWM2M functionality AT commands handler applies the uncorrected line...

Page 54: ...s configuration mode 0 automatic in set functionality does reset the selected RATs configuration mode 0 automatic in set functionality does reset the selected RATs configuration mode 0 automatic in se...

Page 55: ...ween the provided values FOTASTAT event param1 param2 Applied syntax spaces between the provided values UFOTASTAT event param1 param2 UPSMR URC Applied syntax no spaces between the provided values UPS...

Page 56: ...HW Hardware LPWAN Low Power Wide Area Network LwM2M Lightweight M2M MNO Mobile Network Operator MO Mobile Originated MT Mobile Terminated NVM Non Volatile Memory NW Network OPLMN Operator Public Land...

Page 57: ...te UBX 20012413 8 u blox Mux implementation in cellular modules application note UBX 13001887 9 u blox LwM2M objects and commands application note UBX 18068860 10 u blox SARA R5 SARA R422 AWS IoT Core...

Page 58: ...egional Office China Beijing Phone 86 10 68 133 545 Email info_cn u blox com Support support_cn u blox com Regional Office China Chongqing Phone 86 23 6815 1588 Email info_cn u blox com Support suppor...

Reviews: