# 国网 i1协议 **Repository Path**: woniuyun/state-grid---i1-protocol ## Basic Information - **Project Name**: 国网 i1协议 - **Description**: 使用 python 实现的国网 i1协议,基于2015版 - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2025-12-13 - **Last Updated**: 2026-08-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # State Grid I1 Protocol Implementation This project implements the State Grid I1 protocol for communication between power grid monitoring devices and servers. It includes both client and server components for handling various types of telemetry data and control commands. ## Features - Implementation of the I1 protocol for State Grid power grid monitoring - Support for both client and server operations - Handling of various sensor data types: - Weather data - Pollution (filth) data - Ice accumulation data - Wind vibration data - Galloping data - Wire temperature and sag data - Tower tilt data - Support for image data transmission and camera control - Device management functions: - Time synchronization - Network configuration - Parameter settings - Remote upgrades - Command execution ## Components ### Client (client.py) Implements the client side of the protocol with methods for: - Creating various types of sensor data packets - Handling device commands - Image data transmission - Camera control ### Server (server.py) Implements the server side of the protocol with methods for: - Responding to client requests - Parsing incoming sensor data - Handling device management commands - Processing image data ### Common (common.py) Contains utility functions used by both client and server, including CRC16 calculation. ## Usage The project provides main functions in both client.py and server.py for starting the respective components. The client can be used to simulate device data transmission, while the server can be used to receive and process this data. ## License This project is licensed under the terms of the LICENSE file in the repository. Please check the LICENSE file for specific licensing information.