User Manual

LoryPlug/CPU SDK
Manual
22
6.2 Operation Test
For operation test, you can check the operation status by connecting the debug port to PC. Run
the communication emulator program on your PC and set the serial settings to 115.2Kbps, Parity
None, 8 Bit Data, 1 Stop Bit.
The LogPlug/CPU operation test can be run by changing/compiling/uploading the Defined
Test_Mode value early in Main.c.
<Test Mode>
Value
Contents
0
Operates in LoryNet mode and regularly transmits temperature/humidity sensor
values via LoRa Network to the destination ID 0xfffffe LoryNet device. Depending
on the Sleep_ON/OFF option, transfers the sensor value at a one minute distance
set by default and repeats the process of entering Sleep mode.
1
The interface under test is on active state of Serial Flash, temperature/humidity
sensor, charge state, deep switch and Reset SW.
<Setup Mode>
You can enter setup mode if you need to change the default ID and initialize the settings.
Setup Mode remains waiting state for users’ Command request. If you set Test_Mode to 0, which
is called Operating Mode, the LogPlug/CPU remains all stop except the Timer to conserve battery
life, until it wakes up every 60 seconds. For this reason, firmware updates are not possible in Sleep
mode, so you can switch to Setup Mode to update the firmware.