add files
This commit is contained in:
1 parent
3eaff3a647
commit
e76a9c1e9b
9 files changed
+752
No files matched your search
@@ -0,0 +1,51 @@
|
||||
// =====================================================================
|
||||
// config.example.h
|
||||
//
|
||||
// Copy this file to "config.h" (same folder) and edit the values
|
||||
// below. "config.h" is meant to be gitignored so you don't commit
|
||||
// your Wi-Fi password.
|
||||
// =====================================================================
|
||||
#pragma once
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// Wi-Fi credentials
|
||||
// ---------------------------------------------------------------
|
||||
#define WIFI_SSID "OrangePiVietnam"
|
||||
#define WIFI_PASSWORD "orangepi.vn"
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// Radar UART pins (ESP32-S3, HardwareSerial — NOT SoftwareSerial)
|
||||
// Change these to match your wiring. Any two free GPIOs that
|
||||
// support UART RX/TX on your ESP32-S3 board will work.
|
||||
// ---------------------------------------------------------------
|
||||
#define RADAR_RX_PIN 18 // ESP32-S3 RX <- LD2453 TX
|
||||
#define RADAR_TX_PIN 17 // ESP32-S3 TX -> LD2453 RX
|
||||
#define RADAR_UART_PORT 1 // which HardwareSerial to use (Serial1 or Serial2)
|
||||
|
||||
// Default LD2453 UART settings. 8N1 is assumed by analogy with the
|
||||
// rest of the Hi-Link 24xx radar family; this has NOT been confirmed
|
||||
// against the official LD2453 manual. Verify with DEBUG_RADAR_RAW
|
||||
// before trusting any parsed output.
|
||||
#define RADAR_BAUD_RATE 256000
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// Node identity — for the future multi-radar (LD2453 A/B/C -> UDP
|
||||
// -> Orange Pi) architecture. Not used for networking yet, but every
|
||||
// frame is tagged with this so the plumbing is ready later.
|
||||
// ---------------------------------------------------------------
|
||||
#define NODE_ID "RADAR_A"
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// Debug / diagnostic switches
|
||||
// ---------------------------------------------------------------
|
||||
// 1 = print every raw UART frame candidate as hex on the Serial
|
||||
// Monitor (115200). Use this to capture real traffic from the
|
||||
// module so the frame format can be confirmed/reverse-engineered.
|
||||
#define DEBUG_RADAR_RAW 0
|
||||
|
||||
// 1 = diagnostic mode only: Serial-only target printout, no Wi-Fi,
|
||||
// no web server, no WebSocket. This is the recommended first
|
||||
// stage — get the parser confirmed against real hardware before
|
||||
// bringing up networking.
|
||||
// 0 = full stage-2 firmware: Wi-Fi + REST API + WebSocket + zones.
|
||||
#define DIAGNOSTIC_MODE 1
|
||||
Reference in new issue
Block a user