Skip to content

Commit

Permalink
Merge branch 'bha2' of github.com:discodyer/seeed-wiki-documents into…
Browse files Browse the repository at this point in the history
… bha2
  • Loading branch information
discodyer committed Dec 27, 2024
2 parents de57623 + c0bdc7e commit 6332115
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ The Raspberry Pi 5, paired with **OpenWrt** and a 4G LTE HAT , offers a powerful
</div>


## Build the OpenWrt Image

## Choose the OpenWrt Snapshot
### Choose the OpenWrt Snapshot

To work with a 4G LTE module, certain dependencies are required. The OpenWrt Firmware Selector provides the flexibility to include these dependencies during the image creation process, allowing you to compile a customized firmware. Without this approach, you would need an alternative internet source to install the dependencies on the Raspberry Pi after setup. Therefore, it is recommended to build a firmware image that already includes the necessary dependencies.

Expand All @@ -68,7 +69,6 @@ To work with a 4G LTE module, certain dependencies are required. The OpenWrt Fir
/>
</div>

## Build a Custom OpenWrt Image

Ensure the following packages are included during the custom build process:

Expand Down Expand Up @@ -97,7 +97,7 @@ Ensure the following packages are included during the custom build process:
- Connect your Raspberry Pi to a 4G LTE modul


## Check Device Connection
### Check Device Connection

Access the Raspberry Pi using SSH:

Expand Down Expand Up @@ -177,7 +177,7 @@ minicom -D /dev/ttyUSB2
AT+QCFG="usbnet"
AT+QCFG="usbnet",1
```
## Add a New Network Interface
### Add a New Network Interface

- Log in to the OpenWrt LuCI web interface via web browser **192.168.1.1**.
- Go to **Network > Interfaces > Add New Interface**.
Expand Down Expand Up @@ -206,7 +206,7 @@ AT+QCFG="usbnet",1

- Under DHCP Server, enable Ignore Interface.

## Set Up a Wireless Access Point
### Set Up a Wireless Access Point

- In the LuCI web interface, navigate to **Network > Wireless > Add**.

Expand Down Expand Up @@ -242,7 +242,7 @@ AT+QCFG="usbnet",1

- Reboot the device.

## Test the Wireless Network:
### Test the Wireless Network:
- Your wireless SSID should now be visible on nearby devices.
- Connect using the configured password to access the 4G LTE internet.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: This wiki will guide you on how to flash open source LoRaWAN® firmware for your M2 gateway. Based on the open source LoRaWAN® firmware, you can deeply customise your M2 gateway.
title: Flash open source firmware to M2 Gateway
title: Flash Opensource Firmware to M2 Gateway
image: https://files.seeedstudio.com/wiki/SenseCAP/M2_Multi-Platform/m2-white.webp
slug: /flash_opensource_firmware_to_m2_gateway
last_update:
Expand All @@ -10,7 +10,7 @@ last_update:

The SenseCAP M2 gateways represent a cost-effective solution for LoRa gateways, powered by the mature hardware solution MT7628 and the Semtech SX1302 baseband Long Range chip. The specific models are distinguished by the factory-set frequency band (EU868/US915/AS923/AU915), optional module (4G/GPS) and supported LoRa network (LoRaWAN®/Helium network)

This wiki will guide you on how to burn open source firmware for your M2 gateway. Based on the open source firmware, you can deeply customise your M2 gateway, such as adding additional features or changing the operating band (antennas need to be adapted to the band)
This wiki will guide you on how to flash open source firmware for your M2 gateway. Based on the open source firmware, you can deeply customise your M2 gateway, such as adding additional features or changing the operating band (antennas need to be adapted to the band)

:::danger Warning
After flashing the open source firmware, you **CAN NOT** revert to the **factory firmware**.
Expand All @@ -23,7 +23,6 @@ Seeed studio is **NOT responsible** for any damage to the device caused by the u
- <a href="https://www.seeedstudio.com/SenseCAP-Multi-Platform-LoRaWAN-Indoor-Gateway-SX1302-EU868-p-5471.html" target="_blank"><span> <b>M2 Multi-Platform LoRaWAN Indoor Gateway(SX1302)</b></span></a>
- <a href="https://www.seeedstudio.com/SenseCAP-Multi-Platform-LoRaWAN-Indoor-Gateway-SX1302-4G-EU868-p-5599.html" target="_blank"><span> <b>M2 Multi-Platform LoRaWAN Indoor Gateway(SX1302-4G)</b></span></a>
- <a href="https://www.seeedstudio.com/SenseCAP-M2-Data-Only-LoRaWAN-Indoor-Gateway-SX1302-EU868-p-5339.html" target="_blank"><span> <b>M2 Data-Only LoRaWAN Indoor Gateway(SX1302)</b></span></a>
- <a href="https://www.seeedstudio.com/SenseCAP-M2-Light-Hotspot-and-Software-License.html" target="_blank"><span> <b>M2 Light Hotspot</b></span></a>

## Prepare the firmware

Expand All @@ -32,9 +31,9 @@ Seeed studio is **NOT responsible** for any damage to the device caused by the u
If you want to experience open source firmware at your convenience, we provide some compiled firmwares. You can download from <a href="https://github.com/Seeed-Solution/LoRa_Gateway_OpenWRT/releases" target="_blank"><span> Seeed-Solution/LoRa_Gateway_OpenWRT/Release</span></a>

:::tip Note
Make sure you download the firmware for your gateway
Check the suffix of the .bin file to verify that the firmware is compatible with your M2 gateway

E.g. the **EU868-4G** firmware does not work with **M2 gateways(EU868)**
E.g. the **openwrt-...-EU868-4G.bin** firmware is compiled for M2 gateways operating in the **EU868 band with a 4G module**
:::

### Build your firmware
Expand Down Expand Up @@ -87,13 +86,13 @@ You can flash the firmware into your gateway in one of two ways

Before you begin, you will need to install the TFTP server tool on your computer and place the firmware in the appropriate directory.

**Step 1:** Use a Type-c cable to connect the device to the computer, and use a network cable to place the device and the computer in the same LAN.
**Step 1:** Use a Type-C cable to connect the device to the computer, and use a network cable to place the device and the computer in the same LAN.

**Step 2:** Connect to the device using the serial port called `USB-SERIAL CH340` with **baud rate 57600**

**Step 3:** Restart the device. When the device enters uboot, **select command 2** to enter the system update.

**Step 4:** Enter **device ip**, where the device ip network segment must be the network segment of your own network; enter **server ip**, which is the IP of your computer, and enter **the name of the firmware** to be burned (the file suffix must be included)
**Step 4:** Enter **device ip**, where the device ip network segment must be the network segment of your own network; enter **server ip**, which is the IP of your computer, and enter **the name of the firmware** to be flashed (the file suffix must be included)

<p style={{textAlign: 'center'}}><img src="https://files.seeedstudio.com/wiki/SenseCAP/M2_Multi-Platform/opensource3.png" alt="pir" width={800} height="auto" /></p>

Expand Down Expand Up @@ -143,10 +142,10 @@ Login into console with username **root** and **no password**

## Tech Support

**Need help with your SenseCAP M2 Gateway? We're here to assist you!**
**Having trouble with open source firmware? Feel free to discuss it with community members via the Discord link below.**

<div class="button_tech_support_container">
<a href="https://discord.com/invite/QqMgVwHT3X" class="button_tech_support_sensecap"></a>
<a href="https://discord.gg/nFByJZnC5H" class="button_tech_support_sensecap"></a>
<a href="https://support.sensecapmx.com/portal/en/home" class="button_tech_support_sensecap3"></a>
</div>

Expand Down

0 comments on commit 6332115

Please sign in to comment.