RT-Thread IoT OS Global Tech Conference on Sep. 16-17. We welcome you to come together to exchange ideas, showcase projects, identify solutions, discuss future strategies, and provide mutual learning opportunities on a wide variety of topics.  

Free Register: https://forms.gle/8W1j2ZhCSLKFfyFQ8

1 Introduction

LiteCoG (Lite Connect Gateway) is a small, multi-connection-enabled IoT gateway, the current main function is a single/ dual channel LoRaWAN gateway, on its north connection via Ethernet, WiFi, 4G Cat1, south communication via LoRa, but it also supports BLE\RS485, with the features of long-distance communication, low cost, easy deployment, easy to expand and many others, easy for large-scale promotion. LiteCoG is designed for smart homes, smart cities, smart parking and other local area networks, smaller device capacity of the Internet of Things communication scenarios, but also because of its low-cost advantages, it can also be used as a LoRaWAN supplement device.

LiteCoG Gateway developed with the open-source RT-Thread operating system, uses LoRa SX126X-SX127X to provide standard LoRaWAN access capabilities so as to reduce BOM costs, and with LoRa features of long-range communication and low power consumption, it is convenient to deploy battery-powered smart devices with great flexibility in applications such as home parking, community-based parking / small area parking. At the same time, relying on the RT-Thread powerful hardware and software ecosystem resources, the whole product development process is accelerated to shorten the time of delivering the products to market.

    • LoRaWAN Single-channel Gateway(lgwsc)
      • Dock to Standard LoRaWAN server
        • UDP
          • Unicore
          • Tencent Cloud loragw.qcloud.com
      • Class A
      • Support lgwsc shell command
      • Support gateway parameter configuration
      • Support storage works well while power-off
      • Connection on the north
        • Ethernet
        • WiFi
        • 4G Cat1
    • Human-computer interaction
      • OLED Display

2. Development Environment

  • Software
    • RT-Thread: V4.0.3
    • IDE: RT Thread Studio 2、MDK5
    • PessimonUIBuilder 3.0
  • Hardware
    • ART-Pi
      • STM32H750
      • AP6212
    • ART-Pi industry expanding board
      • Ethernet、485
    • ART-Pi multi-media expanding board
      • 320*480 TFT screen
    • LoRa multi-function expanding board(LRS007)
      • SX1268 LoRa module
      • 1.3 inch OLED display

3 RT-Thread on this project

  • RT-Thread Kernel:
    • Scheduler: Multithread (task) implementation
    • Interthread synchronization: semaphore, mutex
    • Interthread communication: mailboxes, message queues
    • Memory management: mem pool, memheap management algorithm
    • Software timer
  • Components
    • FinSH Console
    • Device Drivers
      • I/O
        • PIN、I2C、UART、RTC、TOUCH
      • WIFI framework
      • SPI framework
        • Use the SPI framework to drive the devices that have SPI interface (e.g. the LoRa SPI module that we mentioned in this article)
    • Network
      • netdev
      • AT command
      • SAL(Socket Abstraction Layer)
      • TCP/IP protocol stack
        • lwip lightweight IP
      • Utilities
        • ulog
  • Software Packages

    RT-Thread has over 340 up-for-grabs software packages for developers, making embedded development faster and easier.

    • AT: at_device-latest;
    • adbd-v1.1.1
    • btstack-v0.0.1
    • CmBacktrace-v1.4.0
    • EasyFlash-v4.1.0
    • fal-v0.5.0
    • littlefs-v2.0.5
    • JSON: cJSON-latest
    • netutils-latest
    • webclient: webclient-latest
    • webnet-v2.0.2
      • web server
    • loragw-packet-forward-latest
      • single-channel lorawan package
    • lora-radio-driver-latest
      • lora radio
    • multi-rtimer
      • Low-power hard real-time timing module
    • ft6236-v1.0.0
      • Touch-chip ft6236 driver
    • Persimmon GUI library
  • Others
    • ART-Pi SDK
      • sdk-bsp-stm32h750-realthread-artpi

4 System Design

4.1 A Typical IoT System Application Framework

4.2 Hardware Framework

Different interaction to meet different scenarios.

  • LoRaWAN Indoor Gateway (WiFi Edition)
      • ART-Pi + LoRa Multi-Function Expansion Board (LRS007) for indoor scenes such as smart homes and smart agriculture
  • LoRaWAN Indoor Gateway (WiF Edition) with control screen
      • ART-Pi + ART-Pi Multimedia Expansion Board + LoRa Multi-Function Expansion Board (LRS007) for smart home, smart community scenarios
  • LoRaWAN Outdoor Gateway (4G Edition)
      • ART-Pi + 4G Cat1 Module Expansion Board (L610) + LoRa Multi-Function Expansion...
Read more »