# XC04 - LTE GNSS (BG95-M2)

<figure><img src="https://3632356340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwzhjxMFtAHZqHlRBU68T%2Fuploads%2FSgyrvZC6d6hqoa3HTRxa%2FX-NODE%20LTE%20GNSS%20BG95-M2%20XC01%20XIDE.png?alt=media&#x26;token=c672c7a0-c7ef-4125-93c0-8d03b3db964d" alt=""><figcaption><p>XC04 - LTE GNSS (BG95-M2)</p></figcaption></figure>

<table data-card-size="large" data-view="cards"><thead><tr><th align="center"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td align="center"><strong>Buy</strong></td><td><a href="https://www.microside.com/shop/x-node-lte-gnss-bg95-m2-49">https://www.microside.com/shop/x-node-lte-gnss-bg95-m2-49</a></td></tr></tbody></table>

X-NODE LTE GNSS (BG95-M2) is based on the cellular connectivity module BG95-M2 from [Quectel®](https://www.quectel.com/), supporting CAT-M1 and NB2 IoT with global coverage, geopositioning GPS/GLONASS, ultra-low power consumption and VoLTE support (CAT-M1 only). It comes with an eSIM – MFF2 prepaid balance of 50MB ready to be used out of the box or use the microSIM – 3FF slot (only one SIM can be used at a time). Ideal for mobile projects powered by battery, IoT, 4.0 industry, M2M applications like wireless points of sale (POS), tracking systems, remote monitoring, etc.

### **T**ABLE OF CONTENTS

1. [**How does it work?**](#i.-how-does-it-work)
2. [**Layout**](#ii.-layout)
3. [**Specification**](#iii.-specification)
4. [**Pinout**](#iv.-pinout)
5. [**Device operation**](#v.-device-operation)
6. [**Downloads**](#vi.-downloads)

## **I. How does it work?**

The X-NODE LTE GNSS (BG95-M2) comes with a micro-USB type B to send AT commands or perform firmware updates. This X-NODE works through a UART interface making it virtually compatible with any device based on a microcontroller, microprocessor or even industrial equipment.

The X-NODE LTE GNSS (BG95-M2) is compatible with the  [mikroBUS™](https://www.mikroe.com/mikrobus) standard, that enables its use with Mikroe® development ecosystem with 1000+ click boards and development boards including [X-NODE](https://microside.com/xide/) devices.

{% hint style="info" %}
All AT commands can be found on the device manual with multiple application notes, that can be found on the following link: [Documentation and Resources](https://www.quectel.com/product/lpwa-bg95-cat-m1-cat-nb2-egprs-series).
{% endhint %}

To send and receive AT command using the USB interface the [Silicon Labs CP210x USB to UART Bridge driver](https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers) must be installed on the computer.

The X-NODE LTE GNSS (BG95-M2) comes with a built-in eSIM with prepaid balance of 50MB valid for 6 months. Buy more MB on [Microside Store](https://store.microside.com/)

## **II. Layout**

<figure><img src="https://3632356340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwzhjxMFtAHZqHlRBU68T%2Fuploads%2FrsK3h3WE4ByXhpTKScwP%2Fimage.png?alt=media&#x26;token=cb407d5c-2232-46bf-8b06-78611f38bb8d" alt=""><figcaption></figcaption></figure>

1\.  Female SMA connector and male U.FL connector for LTE and GNSS antennas.

2\.  SoC [BG95-M2](https://www.quectel.com/product/lpwa-bg95-cat-m1-cat-nb2-egprs-series) module.

3\.  Mode selector for micro-USB port, AT (send AT commands) <> FW (Firmware Update).

4\.  At command port, mB([mikroBUS™](https://www.mikroe.com/mikrobus)) <> USB (micro-USB port)

5\.  Micro-USB type B port.

6\.  UART serial ports.

7\.  PWRKEY push button (press 1 second to turn on/off the module, press 3 seconds to reset the module).

8\.  X-NODE model.

9\.  X-NODE type.

10\. microSIM/eSIM multiplexor.

11\. microSIM – 3FF slot.

12\. eSIM – MFF2

13\. Test Points:

&#x20;         TP1: PWRKEY\
&#x20;         TP2: USB Boot\
&#x20;         TP3: 10k Pull to VDD Ext\
&#x20;         TP4: 3.3V from regulator\
&#x20;         TP5: DBG TXD\
&#x20;         TP6: DBG RXD

14\. Jumpers to power the SoC BG95-M2 from the [mikroBUS™](https://www.mikroe.com/mikrobus) connector (3.3VmB) or use the in-built voltage regulator (VCC).

{% hint style="warning" %}
Note: Do not connect both jumpers at the same time.
{% endhint %}

15\. [**mikroBUS™**](https://www.mikroe.com/mikrobus) connector.

16\. Hardware revision.

17\. Core component of the X-NODE device.

#### **SMA & U.FL connector characteristics**

<table><thead><tr><th>Conector SMA:</th><th>Conector IPEx UFL:</th><th data-hidden></th></tr></thead><tbody><tr><td><img src="https://3632356340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwzhjxMFtAHZqHlRBU68T%2Fuploads%2FI0bHrFzdHW0ux1OXWJoE%2Fimage.png?alt=media&#x26;token=c7a652ff-6c35-44ee-bee7-31c9d5e5971b" alt=""></td><td><img src="https://3632356340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwzhjxMFtAHZqHlRBU68T%2Fuploads%2Fz47HzZ80TMe2BNFZAcJJ%2Fimage.png?alt=media&#x26;token=86bbf438-fcdb-4570-b67e-eef7e171f1c7" alt=""></td><td></td></tr><tr><td><p>Max. frequency: 18 GHz </p><p>Impedance: 50 Ohms </p><p>Polarity: Standard </p><p>Gender: Female</p></td><td><p>RF series: RP-UMCC </p><p>Max. frequency: 6 GHz </p><p>Impedance: 50 Ohms </p><p>Polarity: Reverse</p></td><td></td></tr></tbody></table>

#### **Selection between SMA & U.FL connector**

<figure><img src="https://3632356340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwzhjxMFtAHZqHlRBU68T%2Fuploads%2FscUpccdopzzSwEkp9jYq%2Fimage.png?alt=media&#x26;token=c15b8f4b-e96e-4274-8c4e-f643f69c4ab8" alt=""><figcaption></figcaption></figure>

By default **X-NODE LTE GNSS (BG95)** is configured to work with SMA antennas, in order to enable U.FL antennas the position of the resistor must be changed on both sides(left-right).

## **III. Specification**

<table data-header-hidden><thead><tr><th width="171"></th><th></th></tr></thead><tbody><tr><td><strong>Type</strong></td><td>GPS / GLONASS / LTE CAT-M1 / NB2-IoT communication</td></tr><tr><td><strong>Applications</strong></td><td>Ideal for mobile projects powered by battery, IoT, 4.0 industry, M2M applications like wireless points of sale (POS), tracking systems, remote monitoring, etc.</td></tr><tr><td><strong>On-board modules</strong></td><td>BG95-M2 by <a href="https://www.quectel.com/">Quectel®</a></td></tr><tr><td><strong>Key features</strong></td><td><p>LTE CAT-M1:</p><ul><li>Upload speed up to 1119 kbps.</li><li>Download speed up to 588 kbps.</li></ul><p>NB1-IoT:</p><ul><li>Upload speed up to 70 kbps.</li><li>Download speed up to 32 kbps</li></ul><p>NB2-IoT:</p><ul><li>Upload speed up to 158 kbps.</li><li>Download speed up to 127 kbps</li></ul></td></tr><tr><td><strong>Band support</strong></td><td><p>LTE CAT-M1:</p><p>B1 / B2 / B3 / B4 / B5 / B8 / B12 / B13 / B18 / B19 / B20 / B25 / B26 / B27 / B28 / B66 / B85;</p><p>LTE NB-IoT:</p><p>B1 / B2 / B3 / B4 / B5 / B8 / B12 / B13 / B18 / B19 / B20 / B25 / B28 / B66 / B71 / B85;</p></td></tr><tr><td><strong>Interfaces</strong></td><td>UART, USB</td></tr><tr><td><strong>Compatibility</strong></td><td><a href="https://www.mikroe.com/mikrobus">mikroBUS™</a></td></tr><tr><td><strong>Dimensions</strong></td><td>87 x 27 x 21 mm</td></tr><tr><td><strong>Voltage</strong></td><td>3.3V </td></tr></tbody></table>

## **IV. Pinout**

This table shows how the pinout on XC04 - LTE GNSS (BG95-M2) corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).

<figure><img src="https://3632356340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwzhjxMFtAHZqHlRBU68T%2Fuploads%2FLUqbr8HB62JulhnUjJIi%2FPinout%20X-NODE%20LTE%20GNSS%20BG95-M2%20XC04%20XIDE.jpg?alt=media&#x26;token=f1d1db29-4a02-4c85-9633-746bcfe3f193" alt=""><figcaption></figcaption></figure>

## V. Device operation&#x20;

To use the X-NODE the user must know it’s AT commands, these commands can be send using its UART port, enabling cellular wireless communication in virtually any programming language and device that supports this interface.&#x20;

{% hint style="info" %}
All AT commands can be found on the device manual with multiple application notes, they can be found on the following link: [Documentation and Resources](https://www.quectel.com/product/lpwa-bg95-cat-m1-cat-nb2-egprs-series).
{% endhint %}

#### Example using AT commands through the USB port.

Using the official Quectel® serial terminal it's possible to send the AT commands. In this example we will ping a web server and then synchronize the internal clock with a NTP server.

{% hint style="success" %}
To follow this example the device comes with a eSIM(virtual SIM) with a balance of 50MB with validity of 6 months, and already to configured to connect to IoT cellular networks.
{% endhint %}

First download the Quectel serial terminal: [QCOM\_V1.6 download link](https://microside.com/wp-content/uploads/2022/08/QCOM_V1.6.zip)., unzip the files.

Before connecting the X-NODE LTE GNSS (BG95-M2) to the computer make sure that the appropriate antennas are connected to the device (either SMA or U.FL connector see section “Selection between SMA & U.FL connector” for more information) and the switches are in the USB position (see Layout section for more information).

If everything is correct, connect the device to the computer through the USB cable, if the [drivers](https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers) are installed the device will show up on the device manager as a COM port.

<figure><img src="https://3632356340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwzhjxMFtAHZqHlRBU68T%2Fuploads%2FwpDvaai4M1aUGYtj3D9B%2Fimage.png?alt=media&#x26;token=fd47f4bf-ac90-479e-a24b-271b83ae91ec" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If it doesn’t show up, install the [drivers](https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers) from the following link and try again.

<https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers>
{% endhint %}

Launch the executable file QCOM.exe (any COM serial terminal can be used as long as the settings are set to 115200, 8 bits, 1 stop bit, no parity), select the COM port of the device and press the Open port button. The application will display a message indicating if the operation was successful.

<figure><img src="https://3632356340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwzhjxMFtAHZqHlRBU68T%2Fuploads%2F8OyMD1TLQ0vqvaYeWbRd%2Fimage.png?alt=media&#x26;token=46c81508-3c86-4914-be52-40ea6fabfab8" alt=""><figcaption></figcaption></figure>

Press the PK button on the **X-NODE LTE GNSS (BG95), the device indicator will blink, and the serial terminal will display two messages, indicating that the device is ready to receive commands.**

<figure><img src="https://3632356340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwzhjxMFtAHZqHlRBU68T%2Fuploads%2Fxes6pngQMmpd3BgyTBuc%2Fimage.png?alt=media&#x26;token=a204c9b8-a570-43b7-bfda-155b2ca5542b" alt=""><figcaption></figcaption></figure>

Send the appropriate commands for your application, here is a short list of commands to connect to the internet and get an IP address:

**AT command description:**

<table data-header-hidden><thead><tr><th width="215"></th><th></th><th data-hidden></th></tr></thead><tbody><tr><td><strong>AT+CSQ</strong></td><td>Signal Quality report, displays the signal strength.</td><td></td></tr><tr><td><strong>AT+COPS?</strong> </td><td>Displays current operator.</td><td></td></tr><tr><td><strong>AT+QIACT=1</strong> </td><td>Activate a PDP context 1 (internet access).</td><td></td></tr><tr><td><strong>AT+QIACT?</strong> </td><td>Displays the assigned IP address.</td><td></td></tr><tr><td><strong>AT+QPING=1,"url"</strong></td><td>Using PDP context 1, ping a remote server.</td><td></td></tr><tr><td><strong>AT+CCLK</strong></td><td>Displays device time.</td><td></td></tr><tr><td><strong>AT+QNTP=1,"ntp.server",123</strong></td><td>Using PDP context 1, Sync NTP server time on port: 123 with the device time</td><td></td></tr></tbody></table>

Send the above commands to establish a mobile cellular connection.

<figure><img src="https://3632356340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwzhjxMFtAHZqHlRBU68T%2Fuploads%2FJ8NYDxwIxJK8OpzfdJVh%2Fimage.png?alt=media&#x26;token=6e0549c8-d9c8-403d-ac84-ddd0a6ade8b5" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3632356340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwzhjxMFtAHZqHlRBU68T%2Fuploads%2FhJmQfiL0nklqSHoL7Wsa%2Fimage.png?alt=media&#x26;token=e863fe2e-1ab8-4b82-b952-9b965f9ccc22" alt=""><figcaption></figcaption></figure>

The device can connect to a variety of services through different protocols, like MQTT, HTTPS, FTP or plain TCP. For the full description of commands and examples make sure to read the device manual and application notes, which can be found on the following link: [Documentation and Resources](https://www.quectel.com/product/lpwa-bg95-cat-m1-cat-nb2-egprs-series)

To power off the device make sure to deactivate the PDP context using command:

**AT+QIDEACT=1**         Replace 1 with the active PDP context

Or just hold the device PK button for 1 second, the indicator led will turn off.

#### UART settings

To use the X-NODE with a microcontroller set the MCU UART generator to the following settings.

* Baud rate: 115200 bps.
* Parity: No parity.
* Data bits: 8.
* Stop bits: 1.

The same AT commands apply for both USB connection and UART connection.

#### Additional settings

The **X-NODE LTE GNSS (BG95)** is configured to work with the eSIM by default, however an AT command is necessary to use the microSIM slot, this setting is saved on the device, so it only needs to be done once.

#### SIM multiplexing (choosing SIM)

&#x20;       **eSIM > microSIM:**

&#x20;                AT+QCFG=”gpio”,1,66,1,0,7,1

&#x20;                AT+QCFG=”gpio”,3,66,1,1

&#x20;       **microSIM > eSIM:**

&#x20;                AT+QCFG=”gpio”,1,66,1,0,7,0

&#x20;                AT+QCFG=”gpio”,3,66,0,0

&#x20;      After sending this command restart the device using:

&#x20;                AT+CFUN=1,1

&#x20;**APN set up:**

To use a microSIM is required to know the APN (Access Point Name), consult your service provider for this information, the command to set up the APN is:  &#x20;

AT+CGDCONT=1,”IP”,”APN”

Where:

&#x20;           1 is the PDP context identifier (1-15), this context will be used for any following internet related commands if unsure use 1.\
&#x20;           “IP” is the Packet data protocol, accepted values are:\
&#x20;                       “IP”                                                             Internet protocol version 4\
&#x20;                       “PPP”                                                          Point to Point protocol\
&#x20;                       “IPV6”                                                        Internet protocol version 6\
&#x20;                       “IPV4V6”                                                   Internet protocol dual stack (compatible with V4 and V6)\
&#x20;                       “Non-IP”                                                   Non ip protocols

If unsure use “IP”

“APN” is a string containing the APN, the eSIM uses m2m.tag.com, contact your service provider to get this information for your microSIM

i.e command to set the eSIM APN:

AT+CGDCONT=1,”IP”,”m2m.tag.com”

#### Display current SIM

Every SIM has a unique identifier called ICCID, you can display this information with the following command:

&#x20;              AT+ICCID

## VI. Downloads

<table data-card-size="large" data-view="cards"><thead><tr><th align="center"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td align="center"><strong>Schematic</strong></td><td><a href="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwzhjxMFtAHZqHlRBU68T%2Fuploads%2FSMy5iwkF0jVHbMb8OoAq%2FSCHEMATIC%20XC04%20-%20LTE%20GNSS%20(BG95-M2).pdf?alt=media&#x26;token=fc57a8a7-76f9-4d35-a5ad-b95344027c59">https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwzhjxMFtAHZqHlRBU68T%2Fuploads%2FSMy5iwkF0jVHbMb8OoAq%2FSCHEMATIC%20XC04%20-%20LTE%20GNSS%20(BG95-M2).pdf?alt=media&#x26;token=fc57a8a7-76f9-4d35-a5ad-b95344027c59</a></td></tr><tr><td align="center"><strong>Dimensions</strong></td><td><a href="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwzhjxMFtAHZqHlRBU68T%2Fuploads%2FdvN5ddnpVstYDhTRO9Ap%2FDIMENSIONS%20XC04%20-%20LTE%20GNSS%20(BG95-M2).pdf?alt=media&#x26;token=f5914e14-a22b-4605-a120-51908113961c">https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwzhjxMFtAHZqHlRBU68T%2Fuploads%2FdvN5ddnpVstYDhTRO9Ap%2FDIMENSIONS%20XC04%20-%20LTE%20GNSS%20(BG95-M2).pdf?alt=media&#x26;token=f5914e14-a22b-4605-a120-51908113961c</a></td></tr></tbody></table>
