Example Code for PC-SIOTV2 Online Data Transmission

Last revision 2026/01/12

This article guides users through the setup process for PC-SIOTV2 online data transmission, including hardware and software preparations, wiring diagrams, and sample code to ensure seamless data flow and efficient topic data communication.

Software Preparation

  • 1.download and install: SIoT V2 Download,run the .bat file .
  • 2.On your computer, press "Win + R" to open the cmd command line terminal.
  • 3.Type the command ipconfig and press Enter. Locate and record the IPv4 Address of the wireless LAN adapter(e.g., 192.168.9.187)..
  • 4.In your browser, enter the IP address obtained in Step 3 followed by :8080. For example: 192.168.9.187:8080.

The Lark Weather Station Pro and the computer must be connected to the same network

SIOTV2 Server Configuration

  1. Click New Topic, enter the topic name,The topic name refers to the following settings:
Speed
Dir
Temp
Humi
Pressure
Battery
Voltage
Lat
Lon
AltGNSS

Lark Weather Station Pro Config

  • 1.Connect the Lark Weather Station Pro to your computer and open the "DTU_config.txt" file in the pop-up USB drive.
    (Note: When connecting the Lark Pro to a computer for configuration or data export, ensure that the power at the bottom of the expansion module is turned off. Otherwise, configuration failures or data loss may occur.)
  • 2.Replace the original content in the "DTU_config.txt" file entirely with the following content:
#=====================
DTU_Switch:on
Method:wifi
 
#=====================
WiFi_SSID:your_wifi_ssid_or_M10_wifi_hotspot_ssid
WiFi_PASSWORD:your_wifi_passwprd_or_M10_wifi_hotspot_passwprd
 
#----------------
Lora_DEUI:
Lora_EUI:
Lora_KEY:
 
#=====================================
Server:siotv2
Server_IP:IP_address_eg_192.168.9.187
Iot_ID:siot
Iot_PWD:dfrobot
Save:1
 
Topic_Speed:siot/Speed
Topic_Dir:siot/Dir
Topic_Temp:siot/Temp
Topic_Humi:siot/Humi
Topic_Pressure:siot/Pressure
Topic_Battery:siot/Battery
Topic_Voltage:siot/Voltage
Topic_Lat:siot/Lat
Topic_Lon:siot/Lon
Topic_AltGNSS:siot/AltGNSS

##Deployment and Use

  • Disconnect the Lark Weather Station Pro from the computer and turn on the power switch at the bottom of the station.

    Pay attention to the status of the indicator light. When the purple light starts blinking according to the sampling frequency, it indicates a successful network connection (default: every 30 seconds):

    • Yellow light stays on briefly and then turns off: System initialization
    • Green light flashes: Data is being stored in the CSV file
    • Purple light flashes: Data is being reported
    • Yellow light stays on for 3 seconds: Wi-Fi connection failed within 30 seconds. If this occurs during the first boot, Wi-Fi will be abandoned, and the device will begin normal offline operation.
    • Yellow light flashes for 10 seconds: MQTT connection failed within 60 seconds. If this occurs during the first boot, MQTT will be abandoned, and the device will begin normal offline operation.

    You can view the corresponding topic data in the SIOTV2 web backend.

Was this article helpful?

TOP