Stufin
Home Quick Cart Profile

SenseCAP M2 Multi-Platform LoRaWAN Indoor Gateway(SX1302) - EU868

Buy Now on Stufin

Main Chipset

Semtech SX1302

Frequency Band

EU868 (863-870 MHz)

Antenna

2x SMA connectors for external antennas

Connectivity

1x Gigabit Ethernet port, 1x Wi-Fi (2.4 GHz)

Power Supply

12V DC, 1A (via power adapter)

Operating Temperature

-20C to 70C

Dimensions

73 mm x 43 mm x 20 mm

### LoRaWAN Performance

RX Sensitivity

-142 dBm

TX Power

Up to 20 dBm

Spreading Factors

SF5-SF12

Bandwidth

125 kHz, 250 kHz, 500 kHz

Modulation

BPSK, FSK

### Network

Protocols

LoRaWAN 1.0.2, Wi-Fi 802.11 b/g/n, Ethernet

Security

AES-128 encryption, secure boot

Firmware

Upgradable via Ethernet or Wi-Fi

### Management and Integration

Web Interface

For configuration, monitoring, and debugging

APIs

Support for LoRaWAN server APIs (e.g., The Things Network, LoRaWAN Server)

Integration

Compatible with popular IoT platforms and cloud services

### Certifications and Compliance

CE/FCC/TELEC certified

Compliant with LoRaWAN 1.0.2 specification

RoHS and WEEE compliant

Applications

The SenseCAP M2 Multi-Platform LoRaWAN Indoor Gateway (SX1302) - EU868 is suitable for various IoT applications, including

Smart Buildings and Home Automation

Industrial IoT and Automation

Smart Cities and Infrastructure

Environmental Monitoring

Asset Tracking and Management

Resources

Datasheet

Available upon request

User Manual

Provided with the product

SDK and API documentation

Available on the manufacturer's website

The SenseCAP M2 Gateway is a reliable and versatile solution for indoor LoRaWAN applications, offering a robust and scalable platform for IoT deployments in the European region.

Pin Configuration

  • SenseCAP M2 Multi-Platform LoRaWAN Indoor Gateway (SX1302) - EU868 Pinout Explanation
  • The SenseCAP M2 LoRaWAN Indoor Gateway is a multi-platform gateway that supports various IoT applications. It features the SX1302 chip, which is a high-performance, low-power transceiver for LoRaWAN technology. The gateway has a 24-pin header that provides various interfaces for connecting peripherals, power sources, and antennae. Below is a detailed explanation of each pin:
  • Power Pins
  • VIN (Pin 1): Input voltage pin, which accepts a voltage range of 5V to 12V.
  • GND (Pin 2 and 23): Ground pins for the gateway.
  • UART Interface
  • TXD (Pin 3): Transmit data pin for the UART interface.
  • RXD (Pin 4): Receive data pin for the UART interface.
  • GND (Pin 5): Ground pin for the UART interface.
  • SPI Interface
  • SCK (Pin 6): Clock pin for the SPI interface.
  • MOSI (Pin 7): Master Out Slave In pin for the SPI interface.
  • MISO (Pin 8): Master In Slave Out pin for the SPI interface.
  • SS (Pin 9): Slave Select pin for the SPI interface.
  • I2C Interface
  • SCL (Pin 10): Clock pin for the I2C interface.
  • SDA (Pin 11): Data pin for the I2C interface.
  • GPIO Pins
  • GPIO0 (Pin 12): General-purpose input/output pin, can be used for various applications.
  • GPIO1 (Pin 13): General-purpose input/output pin, can be used for various applications.
  • GPIO2 (Pin 14): General-purpose input/output pin, can be used for various applications.
  • GPIO3 (Pin 15): General-purpose input/output pin, can be used for various applications.
  • Reset Pin
  • RST (Pin 16): Reset pin for the gateway, active low.
  • LED Indicators
  • LED1 (Pin 17): LED indicator pin, can be used to indicate the status of the gateway.
  • LED2 (Pin 18): LED indicator pin, can be used to indicate the status of the gateway.
  • Antenna Connectors
  • ANT1 (Pin 19): Antenna connector for the LoRaWAN frequency band (EU868).
  • ANT2 (Pin 20): Antenna connector for the LoRaWAN frequency band (EU868).
  • JTAG Interface
  • TMS (Pin 21): Test mode select pin for the JTAG interface.
  • TCK (Pin 22): Test clock pin for the JTAG interface.
  • TDI (Pin 24): Test data input pin for the JTAG interface.
  • Connecting the Pins
  • When connecting the pins, ensure that you follow the proper structure and take necessary precautions to avoid damage to the gateway or connected peripherals:
  • 1. Power Connection:
  • Connect the VIN pin (Pin 1) to a 5V to 12V power source.
  • Connect the GND pins (Pin 2 and 23) to the power source's ground.
  • 2. UART Interface:
  • Connect the TXD pin (Pin 3) to the RX pin of your serial device.
  • Connect the RXD pin (Pin 4) to the TX pin of your serial device.
  • Connect the GND pin (Pin 5) to the ground of your serial device.
  • 3. SPI Interface:
  • Connect the SCK pin (Pin 6) to the clock pin of your SPI device.
  • Connect the MOSI pin (Pin 7) to the MOSI pin of your SPI device.
  • Connect the MISO pin (Pin 8) to the MISO pin of your SPI device.
  • Connect the SS pin (Pin 9) to the slave select pin of your SPI device.
  • 4. I2C Interface:
  • Connect the SCL pin (Pin 10) to the clock pin of your I2C device.
  • Connect the SDA pin (Pin 11) to the data pin of your I2C device.
  • 5. GPIO Pins:
  • Connect the GPIO pins (Pin 12-15) to your peripherals according to your application's requirements.
  • 6. Reset Pin:
  • Connect the RST pin (Pin 16) to a push-button or a reset circuit.
  • 7. LED Indicators:
  • Connect the LED1 and LED2 pins (Pin 17-18) to LEDs or LED indicators according to your application's requirements.
  • 8. Antenna Connectors:
  • Connect the ANT1 and ANT2 pins (Pin 19-20) to the LoRaWAN antennae.
  • 9. JTAG Interface:
  • Connect the TMS, TCK, and TDI pins (Pin 21-24) to a JTAG interface or a programmer according to your application's requirements.
  • Remember to consult the SenseCAP M2 datasheet and the documentation of connected peripherals for specific connection requirements and precautions.

Code Examples

SenseCAP M2 Multi-Platform LoRaWAN Indoor Gateway (SX1302) - EU868 Documentation
Overview
The SenseCAP M2 Multi-Platform LoRaWAN Indoor Gateway (SX1302) - EU868 is a high-performance, low-power LoRaWAN gateway designed for indoor use cases. It supports multiple platforms, including Raspberry Pi, Windows, and Linux, and operates on the EU868 frequency band. This gateway is ideal for IoT applications requiring reliable, long-range, and low-power wireless communication.
Technical Specifications
Frequency Band: EU868
 Spreading Factor: SF7 to SF12
 Bandwidth: 125 kHz to 500 kHz
 Sensitivity: -137 dBm
 Transmission Power: up to 27 dBm
 Interface: Ethernet, WiFi, and USB
 Power Consumption: < 10W
Hardware Requirements
SenseCAP M2 Multi-Platform LoRaWAN Indoor Gateway (SX1302) - EU868
 Power supply ( DC 5V, 2A)
 Antenna (optional)
Software Requirements
Operating System: Raspberry Pi OS, Windows, or Linux
 LoRaWAN network server software (e.g., ChirpStack, The Things Network)
Code Examples
### Example 1: Setting up the Gateway with ChirpStack (Raspberry Pi)
In this example, we will demonstrate how to set up the SenseCAP M2 gateway with ChirpStack on a Raspberry Pi.
Hardware Requirements
Raspberry Pi 4
 SenseCAP M2 Multi-Platform LoRaWAN Indoor Gateway (SX1302) - EU868
 Power supply (DC 5V, 2A)
 Antenna (optional)
Software Requirements
Raspberry Pi OS
 ChirpStack (installed on the Raspberry Pi)
Code
1. Install ChirpStack on the Raspberry Pi using the following command:
```
sudo apt-get install chirpstack
```
2. Configure the ChirpStack network server by creating a new file `/etc/chirpstack/chirpstack.toml` with the following content:
```
[general]
  log_level = "DEBUG"
[lorawan]
  band = "EU868"
[gateway]
  id = " SenseCAP_M2_GW"
  name = "SenseCAP M2 Gateway"
  description = "Indoor LoRaWAN Gateway"
  location = " Indoor"
  mqtt_server = "localhost:1883"
  mqtt_username = "your_username"
  mqtt_password = "your_password"
```
3. Restart the ChirpStack service to apply the changes:
```
sudo systemctl restart chirpstack
```
4. Connect to the ChirpStack web interface using a web browser and navigate to the Gateways section to verify the gateway's status.
### Example 2: Sending Data to The Things Network (TTN) using Python (Windows or Linux)
In this example, we will demonstrate how to use the SenseCAP M2 gateway to send data to The Things Network (TTN) using Python.
Hardware Requirements
SenseCAP M2 Multi-Platform LoRaWAN Indoor Gateway (SX1302) - EU868
 Power supply (DC 5V, 2A)
 Antenna (optional)
Software Requirements
Python 3.x
 `pylorawan` library (installed using `pip install pylorawan`)
 TTN account and device credentials
Code
1. Install the `pylorawan` library using pip:
```
pip install pylorawan
```
2. Create a new Python script and import the required libraries:
```
import pylorawan
from pylorawan lorawan import LoRaWAN
```
3. Initialize the LoRaWAN object with the SenseCAP M2 gateway:
```
lorawan = LoRaWAN(
    freq_band=pylorawan.LoRaWAN.EU868,
    gateway_id="your_gateway_id",
    gateway_key="your_gateway_key"
)
```
4. Define the payload to be sent:
```
payload = "Hello, TTN!"
```
5. Send the payload to TTN using the `send` method:
```
lorawan.send(payload)
```
6. Verify the data receipt on the TTN console.
Note: Replace `your_gateway_id` and `your_gateway_key` with your actual TTN gateway credentials.
These examples demonstrate the basic setup and usage of the SenseCAP M2 Multi-Platform LoRaWAN Indoor Gateway (SX1302) - EU868. For more advanced configurations and use cases, please refer to the official documentation and guides provided by the manufacturer and the LoRaWAN network server software.