# Satellite NTN Network

[**Murata LBAD0XX1SC-DM**](https://www.murata.com/en-us/products/connectivitymodule/lpwa/overview/lineup/type-1sc) The Type 1SC module is the world’s smallest Cat. M1/NB-IoT module with global certification. It supports GPS/GNSS, OpenMCU, and Integrated SIMS.

## Set up Murata Kit (LBAD0XX1SC-DM-EVK2)

![](https://3922449203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0mPxGpottOEfcucXOR%2Fuploads%2FsdbGp2xXJqGltGlIuFRl%2FMurata.jpeg?alt=media\&token=88973f41-7b9b-4499-a592-68d31fe247ef)

## Set up the EVK Kit

* Connect the **UBC Cable** to the EVK kit.&#x20;
* **Connect the LTE antenna**&#x20;
* Insert the **Monogoto SIM**

#### **Connect your PC to the EVK Kit**

Use the USB to connect your computer to the **AT CMD** port of the EVK Kit

{% hint style="info" %}
When using Windows, install the driver using the disk or USB stick provided by Murata.
{% endhint %}

Connect to the EVK kit using a **terminal program**. You can use PuTTY for Windows, or Screen, minicom, or Miniterm for Mac or Linux.

Set the baud rate to **115200** Enter **`AT`**, if the connection with the LBAD0XX1SC-DM modem has been established, the board will answer with `OK`.

## Connect the LBAD0XX1SC to Skylo

{% hint style="info" %}
Keep the **AT Commands manual** next to you for more details about the commands. [**Click here**](https://www.murata.com/en-us/products/connectivitymodule/lpwa/overview/lineup/type-1sc) to download the latest version, and scroll down to **Documentation and Resources** to find the AT Commands Manual.
{% endhint %}

#### **Reboot the Module**:

```bash
ATZ
```

Check the **status of the SIM card**. The correct response should be: `+CPIN: READY`

```
AT+CPIN?
```

{% hint style="success" %}
+CPIN: READY means that the SIM is ready for use and does not require any PIN entry.
{% endhint %}

### Executing Commands by Version

Execute various commands based on the software version you are using. Make sure to execute the commands that correspond to your version.

**Query device information**

Request the **product type, hardware,** and **firmware** **version**:

```bash
ATI
```

{% hint style="warning" %}
Example response:

Revision: RK\_03\_02\_01\_00\_34531\_001

Revision: RK\_03\_02\_01\_00\_40041\_001
{% endhint %}

Request the **IMSI** (International Mobile Subscriber Identity):

```
AT+CIMI
```

Request the **ICCID** (Integrated Circuit Card ID), which is the identification number of the iSIM&#x20;

```
AT%CCID
```

Check the **SIM initialization selection policy** is currently using:

```
AT%GETCFG="SIM_INIT_SELECT_POLICY"
```

Expected response:

`SIM_INIT_SELECT_POLICY:5`. The last digit indicates the Active SIM:\
0 indicates **External (SIM card)**\
5 indicates **Internal (iSIM)**

&#x20;**Enable** the External SIM card

```
AT%SETCFG="SIM_INIT_SELECT_POLICY","0"
```

#### **Reboot the Module**:

```bash
ATZ
```

### **Set the NTN Parameter** (enter the commands)

Revision: RK\_03\_02\_01\_00\_34531\_001

```bash
AT%SETACFG="radiom.config.multi_rat_enable","true"    
AT%SETACFG="radiom.config.preferred_rat_list","none"  
AT%SETACFG="radiom.config.auto_preference_mode","none"
AT%SETACFG="ntn.conf.gnss_in_use","egnss"
AT%GETACFG="ntn.conf.gnss_in_use"
AT%SETACFG="modem_apps.Mode.AutoConnectMode","true"
```

Revision: RK\_03\_02\_01\_00\_40041\_001

```bash
AT%SETACFG="radiom.config.multi_rat_enable","true"    
AT%SETACFG="radiom.config.preferred_rat_list","none"  
AT%SETACFG="radiom.config.auto_preference_mode","none"
AT%GETACFG="ntn.conf.gnss_in_use"
AT%SETACFG="modem_apps.Mode.AutoConnectMode","true"
AT%NTNCFG="POS","MANUAL","1" 
```

#### Define the NB-IoT NTN &#x20;

```
AT%RATIMGSEL=2
AT%RATACT="NBNTN",1
```

**Lock the modem to a specific region/band**

```
AT%SETCFG="BAND","255"
```

{% hint style="info" %}
Although the modem may support many different NTN bands,&#x20;

23 = Canada

255 = L band Global (Taiwan, Australia, New Zealand, Japan)&#x20;

256 = S band Europe
{% endhint %}

**Reset** in order for the parameters to take effect

```bash
ATZ
```

### Network Activation

**Disable** **radio**

```bash
AT+CFUN=0
```

**Set GPS location**

Revision: RK\_03\_02\_01\_00\_34531\_001

```bash
AT%NTNCFG="FIX",LATITUDE,LONGITUDE,40,0 
```

Revision: RK\_03\_02\_01\_00\_40041\_001

```
AT%NTNEV="POSREQ",1
AT%NTNCFG="POS","STAT","LATITUDE","LONGITUDE","160" 
```

{% hint style="info" %}
example&#x20;

AT%NTNCFG="FIX",33.998737,-84.095023,40,0   //RK\_03\_02\_01\_00\_34531\_001

AT%NTNCFG="POS","STAT","33.998737","-84.095023","160" //RK\_03\_02\_01\_00\_40041\_001
{% endhint %}

**Set the APN to** `data.mono`:

```json
AT+CGDCONT=1,"IP","DATA.MONO"
```

**Enable SIB31** reception notification:

```bash
AT%NOTIFYEV="SIB31",1
```

&#x20;**Report** notification about Timing Advance calculation:

Revision: RK\_03\_02\_01\_00\_34531\_001

```bash
AT%TADJEV=1
```

Revision: RK\_03\_02\_01\_00\_40041\_001

```
AT%NTNEV="TA",1 
```

**Enable RRC** State notification:

```
AT%NOTIFYEV="RRCSTATE",1
```

**Send registration status**

```
AT+CEREG=2
```

**Enable** **radio**

```
AT+CFUN=1
```

Example response:

Revision: RK\_03\_02\_01\_00\_34531\_001

```
%NOTIFYEV: "SIB31",....   
%TADJEVU: "TA",...       
%TADJEVU: "TAC",...     
+CEREG: 5,"07ED",....  
```

Revision: RK\_03\_02\_01\_00\_40041\_001

```
%NOTIFYEV: "SIB31",....
%NTNEVU: "TA","RACH"...
%NTNEVU: "TA","TAC"....
%NOTIFYEV: "RRCSTATE",...
+CEREG: 5,"07D4",....
```

## Test the connection by sending a UDP payload&#x20;

{% hint style="warning" %}
When using Non-Terrestrial Networks, data can only be sent using UDP.
{% endhint %}

In order to send data using UDP, 4 AT Commands needs to be sent:

1. **Create UDP socket**
2. **Activate socket**
3. **Send UDP data**
4. **Close UDP Socket**

### **1. Create UDP socket**&#x20;

```
AT%SOCKETCMD="ALLOCATE",1,"UDP","OPEN","<ip address>",<port> 
```

Example message: <mark style="color:red;">`AT%SOCKETCMD="ALLOCATE",1,"UDP","OPEN","34.192.142.126",12345`</mark>

Example response: <mark style="color:red;">`%SOCKETCMD:1`</mark>

### **2. Activate Socket**&#x20;

```
AT%SOCKETCMD="ACTIVATE",1
```

Example response: <mark style="color:red;">`%SOCKETCMD:1`</mark>

### **3. Send UDP data**&#x20;

```
AT%SOCKETDATA="SEND",1,<length>,"<data>"
```

Example message: <mark style="color:red;">`AT%SOCKETDATA="SEND",1,13,"48656C6C6F2C20776F726C6421"`</mark>

Example response: <mark style="color:red;">`%SOCKETDATA:1,13`</mark>

{% hint style="warning" %}
Make sure to exactly count the number of characters you send, or you will receive an error.
{% endhint %}

{% hint style="danger" %}
It' s not possible to send text to the module, instead we need to send hexadecimal values. Convert possible text string to hexadecimal numbers using a program like [rapidtables](https://www.rapidtables.com/convert/number/ascii-to-hex.html).
{% endhint %}

{% hint style="info" %}
It may take up to 10 seconds for the message to be fully processed.&#x20;
{% endhint %}

**Request info UDP Socket**

```
AT%SOCKETCMD="INFO",1
```

Example response: <mark style="color:red;">`%SOCKETCMD:"ACTIVATED","UDP","10.22.243.30","34.192.142.126",12345,7`</mark>

### **4. Close UDP socket**

End your UDP session by closing the UDP socket.

```
AT%SOCKETCMD="DELETE",1
```

Expected response: <mark style="color:red;">`OK`</mark>

## Test UDP Payload with Ubidots

To quickly test if UDP messages are successfully sent, you can use a platform like **Ubidots**.

Learn more in our Ubidots guide:  [ubidots](https://docs.monogoto.io/developer/cloud-integrations/ubidots "mention")

{% hint style="success" %}
**Great work on connecting the Murata LBAD0XX1SC-DM to Monogoto!** Have a look at the **Things** logs in the [**Monogoto Console**](https://console.monogoto.io/) to find more details about the established connection.
{% endhint %}

## Useful Links

* [QLBAD0XX1SC-DM product page](https://www.murata.com/en-us/products/connectivitymodule/lpwa/overview/lineup/type-1sc#anchor-3)
* [QLBADXX1SC-DM Quick Start Guide](https://3922449203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0mPxGpottOEfcucXOR%2Fuploads%2FIQSItX6iyZ35t7a1wnVf%2FLPWA%20Type%201SC%20Quick%20start%20guide_Ver3%201.pdf?alt=media\&token=f8493020-a0a8-4e34-afb8-246540645017)
* [QLBADXX1SC-DM DataSheet](https://wireless.murata.com/pub/RFM/data/lbad0xx1sc.pdf)

{% embed url="<https://www.youtube.com/watch?v=y2b6glGETY0>" %}
