User Manual

LoryPlug/CPU SDK
Manual
16
API
Description
Main_Proc
- Initialize the settings used by the device itself on the first call.
- Call Table_Layer every 1 second to view and read packets received.
- The read packets are processed by App Layer, which is the user-writing area.
- Call the LoRa, Sensor port process that belongs to itself.
Lora_Proc
- Initialize the LoRa communication interface settings on the first call.
- Read packets from Link Layer to LoRa and raise them to higher Route Layer
or send them through the LoRa port if they have packets to send.
- Route_Layer places received LoRa packets in the destination table.
- Table_Layer analyzes packets that came to him and Read or Write its table
information.
-App_Layer detects and processes changes in its table information.
Sensor_Proc
- Initialize the Sensor interface settings on the first call.
- Regularly read sensor information from Link Layer and renew it to its table.
- Read packets from Link Layer to LoRa and raise them to higher Route Layer
or send them through the LoRa port if they have packets to send.
- Route_Layer places received LoRa packets in the destination table.
- Table_Layer analyzes packets that came to it and R/Ws its table information.
- App_Layer detects and processes changes in its table information.
Sleep_Mode
- Regularly enters Sleep Mode by the Scale/Interval time defined in the
sensing option of temperature/humidity sensor.
- Disconnects the power supply of all peripheral devices before entering the
Sleep Mode.
- The types of Sleep Modes are mainly Sleep and Standby type. Provided
example is Standby Mode, which is a super power-saving mode
disconnecting all powers other than RTC for battery use for three years.
- In Standby Mode, all power other than RTC is cut off, so when waking up
from sleep, it restarts from the beginning just as the power reset