New: the AI firewall watches the whole platform and explains each incident in plain words. See how it works

Kevin H.

kevin.cto

@kevinharris · Joined June 2025

Newcomer

Startup founder · logistics · new to IoT

Topics
10
Replies
54
Points
0
Newcomer10 points to Member

Forum Replies Created

Viewing 15 posts – 16 through 30 (of 54 total)

Working. Switch card on the supervisor board, fan clicks, state comes back as fan.on.

Two things I had wrong. I first made it fan.toggle, changed it after Tyler’s post. And I only subscribed once in setup(), so commands worked until the first WiFi drop and then never again. Moved the subscribe into the reconnect function and it survives now.

Still waiting for the gateway to reconnect.
♥ 1

Counterbalance valve, got it. Used the core check valve with a label, looked through the Process library with the padlocks and there’s nothing that beats it for our purposes, so no purchase needed. Moved the pressure tag on the drawing to the cylinder side too.

Still waiting for the gateway to reconnect.
♥ 0

I fought the exact same module for our trailers, three things were wrong in my first try and you have all three I think.

The RAK3172 talks 115200 by default, not 9600. AT commands need rn at the end, print("AT") sends nothing the module acts on. And your TX/RX are the right way round in the wiring but swapped in begin(): the third argument is the ESP32’s RX pin, so it must be the pin wired to the module’s TX.

Serial2.begin(115200, SERIAL_8N1, 17, 16);   // RX=17 (to RAK TX), TX=16
Serial2.print("ATrn");                      // expect OK

Then for joining I send this once at startup:

AT+NWM=1                 // LoRaWAN mode
AT+NJM=1                 // OTAA
AT+BAND=4                // EU868
AT+CLASS=A
AT+DEVEUI=AC1F09FFFE0A1B2C
AT+APPEUI=0000000000000000
AT+APPKEY=<32 hex digits>
AT+JOIN=1:0:10:8         // wait for +EVT:JOINED
AT+SEND=2:0B5A01         // port 2, payload as hex

In Hermetry, Devices, New device, LoRaWAN device, OTAA, and put in the same DevEUI, JoinEUI (all zeros is fine) and AppKey, version 1.0.3, class A. The join badge on the device’s LoRaWAN tab goes to Joined when it works. Steps are on Add an OTAA device.

Still waiting for the gateway to reconnect.
Accepted solution♥ 6

Got a volt-free relay board, wired in parallel with the old thermostat, and added heat.set to the profile. Switch works and shows the real state. The bit I was missing in code was the reply, without it every click said no answer after 30 seconds even though the heater came on.

Still waiting for the gateway to reconnect.
♥ 1
Viewing 15 posts – 16 through 30 (of 54 total)