# 锐能三相电能表参考代码 **Repository Path**: End-ING/meter_rn_c ## Basic Information - **Project Name**: 锐能三相电能表参考代码 - **Description**: 锐能三相电能表代码 - **Primary Language**: C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2025-04-17 - **Last Updated**: 2025-12-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Three-Phase Electricity Meter Firmware Project ## Project Overview This project implements firmware for a three-phase electricity meter based on the RN831x chip, supporting communication protocols such as DL/T645-2007. The firmware includes core functional modules for energy metering, event logging, data freezing, and security authentication. ## Main Features - Energy Metering: Accurate measurement of active/reactive energy, voltage, current, power, and other parameters - Communication Protocols: Implementation of DL/T645-2007 and DL/T698 communication protocols - Security Authentication: Support for ESAM module and security authentication functions - Event Logging: Records abnormal events in the power system (e.g., overvoltage, undervoltage, overcurrent) - Data Freezing: Supports scheduled and immediate freezing of meter data - Parameter Configuration: Provides read/write operations for meter configuration parameters - Data Storage: Manages data storage in EEPROM and Flash memory ## Project Structure ``` app_source/ ├── App/ // Core application layer modules │ ├── Axdr.c/h // AXDR data encoding/decoding module │ ├── Bkgrd.c/h // Background processing module │ ├── Class645/ // DL/T645 protocol implementation │ ├── Event/ // Event logging module │ ├── Freeze/ // Data freezing module │ ├── Pt645/ // DL/T645 protocol handling │ ├── Measure.c/h // Metering function module │ ├── Security.c/h // Security authentication module │ └── ... // Other application modules ├── project/ // IAR project configuration │ └── IAR_Proj_RN831x // IAR project files └── sdk/ // SDK and low-level drivers └── Board/ // Board Support Package └── cmsis/ // CMSIS core support ``` ## Development Environment - Development Tool: IAR Embedded Workbench