|  | @ -21,7 +21,7 @@ | 
			
		
	
		
		
			
				
					|  |  | //-------------------------------------
 |  |  | //-------------------------------------
 | 
			
		
	
		
		
			
				
					|  |  | #define VERSION_MAJOR       0 |  |  | #define VERSION_MAJOR       0 | 
			
		
	
		
		
			
				
					|  |  | #define VERSION_MINOR       5 |  |  | #define VERSION_MINOR       5 | 
			
		
	
		
		
			
				
					
					|  |  | #define VERSION_PATCH       4 |  |  | #define VERSION_PATCH       5 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | //-------------------------------------
 |  |  | //-------------------------------------
 | 
			
		
	
	
		
		
			
				
					|  | @ -30,8 +30,7 @@ typedef struct { | 
			
		
	
		
		
			
				
					|  |  |     uint8_t packet[MAX_RF_PAYLOAD_SIZE]; |  |  |     uint8_t packet[MAX_RF_PAYLOAD_SIZE]; | 
			
		
	
		
		
			
				
					|  |  | } packet_t; |  |  | } packet_t; | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  | typedef enum |  |  | typedef enum { | 
			
				
				
			
		
	
		
		
			
				
					|  |  | { |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					|  |  |     InverterDevInform_Simple = 0,   // 0x00
 |  |  |     InverterDevInform_Simple = 0,   // 0x00
 | 
			
		
	
		
		
			
				
					|  |  |     InverterDevInform_All = 1,      // 0x01
 |  |  |     InverterDevInform_All = 1,      // 0x01
 | 
			
		
	
		
		
			
				
					|  |  |     //GridOnProFilePara = 2,        // 0x02
 |  |  |     //GridOnProFilePara = 2,        // 0x02
 | 
			
		
	
	
		
		
			
				
					|  | @ -43,8 +42,8 @@ typedef enum | 
			
		
	
		
		
			
				
					|  |  |     //RealTimeRunData_A_Phase = 13, // 0x0d
 |  |  |     //RealTimeRunData_A_Phase = 13, // 0x0d
 | 
			
		
	
		
		
			
				
					|  |  |     //RealTimeRunData_B_Phase = 14, // 0x0e
 |  |  |     //RealTimeRunData_B_Phase = 14, // 0x0e
 | 
			
		
	
		
		
			
				
					|  |  |     //RealTimeRunData_C_Phase = 15, // 0x0f
 |  |  |     //RealTimeRunData_C_Phase = 15, // 0x0f
 | 
			
		
	
		
		
			
				
					
					|  |  |     AlarmData = 17, // 0x11    //Alarm data - all unsent alarms
 |  |  |     AlarmData = 17,                 // 0x11, Alarm data - all unsent alarms
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |     AlarmUpdate = 18, // 0x12    //Alarm data - all pending alarms
 |  |  |     AlarmUpdate = 18,               // 0x12, Alarm data - all pending alarms
 | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |     //RecordData = 19,              // 0x13
 |  |  |     //RecordData = 19,              // 0x13
 | 
			
		
	
		
		
			
				
					|  |  |     //InternalData = 20,            // 0x14
 |  |  |     //InternalData = 20,            // 0x14
 | 
			
		
	
		
		
			
				
					|  |  |     GetLossRate = 21,               // 0x15
 |  |  |     GetLossRate = 21,               // 0x15
 | 
			
		
	
	
		
		
			
				
					|  | @ -52,8 +51,7 @@ typedef enum | 
			
		
	
		
		
			
				
					|  |  |     //InitDataState = 0xff
 |  |  |     //InitDataState = 0xff
 | 
			
		
	
		
		
			
				
					|  |  | } InfoCmdType; |  |  | } InfoCmdType; | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  | typedef enum |  |  | typedef enum { | 
			
				
				
			
		
	
		
		
			
				
					|  |  | { |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					|  |  |     TurnOn = 0,                   // 0x00
 |  |  |     TurnOn = 0,                   // 0x00
 | 
			
		
	
		
		
			
				
					|  |  |     TurnOff = 1,                  // 0x01
 |  |  |     TurnOff = 1,                  // 0x01
 | 
			
		
	
		
		
			
				
					|  |  |     Restart = 2,                  // 0x02
 |  |  |     Restart = 2,                  // 0x02
 | 
			
		
	
	
		
		
			
				
					|  | @ -63,7 +61,7 @@ typedef enum | 
			
		
	
		
		
			
				
					|  |  |     ReactivePowerContr = 12,      // 0x0c
 |  |  |     ReactivePowerContr = 12,      // 0x0c
 | 
			
		
	
		
		
			
				
					|  |  |     PFSet = 13,                   // 0x0d
 |  |  |     PFSet = 13,                   // 0x0d
 | 
			
		
	
		
		
			
				
					|  |  |     CleanState_LockAndAlarm = 20, // 0x14
 |  |  |     CleanState_LockAndAlarm = 20, // 0x14
 | 
			
		
	
		
		
			
				
					
					|  |  |     SelfInspection = 40, // 0x28 // self-inspection of grid-connected protection files
 |  |  |     SelfInspection = 40,          // 0x28, self-inspection of grid-connected protection files
 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |     Init = 0xff |  |  |     Init = 0xff | 
			
		
	
		
		
			
				
					|  |  | } DevControlCmdType; |  |  | } DevControlCmdType; | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  | 
 |