GPON OLT OMCI 测试
来源:互联网 发布:软件开发需求统计表 编辑:程序博客网 时间:2024/05/01 12:45
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef char INT8;
typedef unsigned char UINT8;
typedef short INT16;
typedef unsigned short UINT16;
typedef int INT32;
typedef unsigned int UINT32;
typedef long long INT64;
typedef unsigned long long UINT64;
typedef struct
{
UINT16 sender_identification;/* 0x0000 */
UINT16 padding;/* 0x0028 */
UINT32 omci_CRC_value;
} __attribute__((packed))ont_std_omci_payload_omci_trailer_t;
typedef struct
{
UINT16 destination_object;
UINT16 object_status;
} __attribute__((packed))ont_std_omci_payload_message_identifier_t;
typedef struct
{
UINT16 Transaction_Correlation_Id;/*Transaction Correlation Identifier (2 bytes)
--Transaction Correlation Identifier, MSB indicate Message priority */
UINT8 Message_Type; /*Message Type (1 byte) */
UINT8 Device_Identifier; /*Device Identifier (1 byte) */
ont_std_omci_payload_message_identifier_t Message_Identifier; /*Message Identifier (4 bytes) */
UINT8 Message_Contents[32]; /*Message Contents (32 bytes) */
ont_std_omci_payload_omci_trailer_t OMCI_Trailer; /*OMCI Trailer (8 bytes) */
} __attribute__((packed))ont_std_omci_payload_t;
/*Message Type struct*/
/* 8-------7-------6-------5-------4-------3-------2-------1*/
/* |DB-----|AR-----|AK----|---MT(0~3 and 29~31 reserved)----|*/
typedef struct
{
UINT8 destination_bit:1;
UINT8 answer_request:1;
UINT8 acknowledge:1;
UINT8 message_type:5;
} __attribute__((packed))ont_std_omci_payload_message_type_t;
typedef enum
{
/**** MT ****** Type ****** Purpose ****** AK ****** Inc MIB data sync*******/
ONT_OMCI_MESSAGE_TYPE_0_RESERVED =(0),
ONT_OMCI_MESSAGE_TYPE_1_RESERVED =(1),
ONT_OMCI_MESSAGE_TYPE_2_RESERVED =(2),
ONT_OMCI_MESSAGE_TYPE_3_RESERVED =(3),
/*Create a managed entity instance with its attributes yes yes*/
ONT_OMCI_MESSAGE_TYPE_4_CREATE =(4),
/*Create an instance of ATM VP/VC Cross-Connection ME and two associated instances of VP Network CTP-G or VC Network CTP-G ME. yes yes*/
ONT_OMCI_MESSAGE_TYPE_5_CREATE_COMPLETE_CONNECTION =(5),
/*Delete a managed entity instance yes yes*/
ONT_OMCI_MESSAGE_TYPE_6_DELETE =(6),
/*Delete an instance of ATM VP/VC Cross-Connection ME and two associated instances of VP Network CTP-G or VC Network CTP-G ME yes yes*/
ONT_OMCI_MESSAGE_TYPE_7_DELETE_COMPLETE_CONNECTION =(7),
/*Set one or more attributes of a managed entity yes yes*/
ONT_OMCI_MESSAGE_TYPE_8_SET =(8),
/*Get one or more attributes of a managed entity yes no*/
ONT_OMCI_MESSAGE_TYPE_9_GET =(9),
/*Get all attributes of an instance of ATM VP/VC Cross-Connection ME and the attributes of the associated instances of VP Network CTP-G or VC Network CTP-G yes no*/
ONT_OMCI_MESSAGE_TYPE_10_GET_COMPLETE_CONNECTION =(10),
/* Latch the alarm statuses of all managed entities and reset the alarm message counter yes no*/
ONT_OMCI_MESSAGE_TYPE_11_GET_ALL_ALARMS =(11),
/*Get the active alarm status of the next managed entity yes no*/
ONT_OMCI_MESSAGE_TYPE_12_GET_ALL_ALARMS_NEXT =(12),
/*Latch the MIB yes no*/
ONT_OMCI_MESSAGE_TYPE_13_MIB_UPLOAD =(13),
/*Get latched attributes of a managed entity instance yes no*/
ONT_OMCI_MESSAGE_TYPE_14_MIB_UPLOAD_NEXT =(14),
/*Clear the MIB and re-initialise it to its default and reset the MIB data sync counter to 0 yes no*/
ONT_OMCI_MESSAGE_TYPE_15_MIB_RESET =(15),
/*Notification of an alarm no no*/
ONT_OMCI_MESSAGE_TYPE_16_ALARM =(16),
/*Notification of an autonomous attribute value change no no*/
ONT_OMCI_MESSAGE_TYPE_17_ATTRIBUTE_VALUE_CHANGE =(17),
/*Request a test on a specific managed entity yes no*/
ONT_OMCI_MESSAGE_TYPE_18_TEST =(18),
/*Start a software download action yes yes*/
ONT_OMCI_MESSAGE_TYPE_19_START_SOFTWARE_DOWNLOAD =(19),
/*Download a section of a software image yes[last]/no no*/
ONT_OMCI_MESSAGE_TYPE_20_DOWNLOAD_SECTION =(20),
/*End of a software download action yes yes*/
ONT_OMCI_MESSAGE_TYPE_21_END_SOFTWARE_DOWNLOAD =(21),
/*Activate the downloaded software image yes yes*/
ONT_OMCI_MESSAGE_TYPE_22_ACTIVATE_SOFTWARE =(22),
/*Commit the downloaded software image yes yes*/
ONT_OMCI_MESSAGE_TYPE_23_COMMIT_SOFTWARE =(23),
/*Synchronize the time between OLT and ONT yes no*/
ONT_OMCI_MESSAGE_TYPE_24_SYNCHRONIZE_TIME =(24),
/*Reboot ONT, Circuit Pack or PON IF Line Card yes no*/
ONT_OMCI_MESSAGE_TYPE_25_REBOOT =(25),
/*Get the latched attribute values of the managed entity within the current snapshot yes no*/
ONT_OMCI_MESSAGE_TYPE_26_GET_NEXT =(26),
/*Notification of test result that is initiated by "Test" no no*/
ONT_OMCI_MESSAGE_TYPE_27_TEST_RESULT =(27),
/*Get current counter value associated with one or more attributes of a managed entity yes no*/
ONT_OMCI_MESSAGE_TYPE_28_GET_CURRENT_DATA =(28),
ONT_OMCI_MESSAGE_TYPE_29_RESERVED =(29),
ONT_OMCI_MESSAGE_TYPE_30_RESERVED =(30),
ONT_OMCI_MESSAGE_TYPE_31_RESERVED =(31),
ONT_OMCI_MESSAGE_TYPE_32_RESERVED =(32),
} ONT_STD_OMCI_PAYLOAD_MESSAGE_TYPE_E;
typedef enum
{
/*-- Managed entity class value ---------------- Managed entity-- */
ONT_B_PON =1, /* ONT B-PON */
ONT_Data =2, /*ONT Data */
PON_IF_Line_Cardholder =3, /*PON IF Line Cardholder */
PON_IF_line_card =4, /* PON IF line card */
Cardholder =5, /*Cardholder */
Circuit_Pack =6, /*Circuit Pack */
Software_Image =7, /*Software Image */
UNI_B_PON =8, /*UNIB-PON */
TC_Adapter_B_PON =9, /*TC Adapter B-PON */
Physical_Path_Termination_Point_ATM_UNI =10, /*Physical Path Termination Point ATM UNI */
Physical_Path_Termination_Point_Ethernet_UNI =11, /*Physical Path Termination Point Ethernet UNI */
Physical_Path_Termination_Point_CES_UNI =12, /*Physical Path Termination Point CES UNI */
Logical_Nx64kbitPers_Sub_port_Connection_Termination_Point =13, /*Logical Nx64kbit/s Sub-port Connection Termination Point */
Interworking_VCC_termination_point =14, /* Interworking VCC termination point */
AAL1_Profile_B_PON =15, /*AAL1 Profile B-PON */
AAL5_Profile_B_PON =16, /*AAL5 Profile B-PON */
AAL1_Protocol_Monitoring_History_Data_B_PON =17, /*AAL1 Protocol Monitoring History Data B-PON */
AAL5_Protocol_Monitoring_History_Data_B_PON =18, /*AAL5 Protocol Monitoring History Data B-PON */
AAL2_Profile =19, /*AAL2 Profile */
intentionally_left_blank_20 =20, /*--------------------------(intentionally left blank) */
CES_Service_Profile_G =21, /*CES Service Profile-G */
Reserved_22 =22, /*(Reserved) */
CES_Physical_Interface_Monitoring_History_Data =23, /*CES Physical Interface Monitoring History Data */
Ethernet_Performance_Monitoring_History_Data =24, /*Ethernet Performance Monitoring History Data */
VP_network_CTP_G =25, /*VP network CTP-G */
ATM_VP_Cross_Connection =26, /*ATM VP Cross-Connection */
Priority_queue_B_PON =27, /* Priority queueB-PON */
DBR_CBR_Traffic_Descriptor =28, /*DBR/CBR Traffic Descriptor */
UBR_Traffic_Descriptor =29, /*UBR Traffic Descriptor */
SBR1_VBR1_Traffic_Descriptor =30, /*SBR1/VBR1 Traffic Descriptor */
SBR2_VBR2_Traffic_Descriptor =31, /*SBR2/VBR2 Traffic Descriptor */
SBR3_VBR3_Traffic_Descriptor =32, /*SBR3/VBR3 Traffic Descriptor */
ABR_Traffic_Descriptor =33, /*ABR Traffic Descriptor */
GFR_Traffic_Descriptor =34, /*GFR Traffic Descriptor */
ABT_DT_IT_Traffic_Descriptor =35, /*ABT/DT/IT Traffic Descriptor */
UPC_Disagreement_Monitoring_History_Data_B_PON =36, /*UPC Disagreement Monitoring History Data B-PON */
intentionally_left_blank_37 =37, /*--------------------------(intentionally left blank) */
ANI =38, /* ANI */
PON_TC_adapter =39, /* PON TC adapter */
PON_Physical_Path_Termination_Point =40, /*PON Physical Path Termination Point */
TC_Adapter_Protocol_Monitoring_History_Data =41, /*TC Adapter Protocol Monitoring History Data */
Threshold_data_B_PON =42, /* Threshold dataB-PON */
Operator_Specific =43, /*Operator Specific */
Vendor_Specific =44, /*Vendor Specific */
MAC_Bridge_Service_Profile =45, /*MAC Bridge Service Profile */
MAC_Bridge_Configuration_Data =46, /*MAC Bridge Configuration Data */
MAC_bridge_port_configuration_data =47, /* MAC bridge port configuration data */
MAC_Bridge_Port_Designation_Data =48, /*MAC Bridge Port Designation Data */
MAC_Bridge_Port_Filter_Table_Data =49, /*MAC Bridge Port Filter Table Data */
MAC_Bridge_Port_Bridge_Table_Data =50, /*MAC Bridge Port Bridge Table Data */
MAC_Bridge_PM_History_Data =51, /*MAC Bridge PM History Data */
MAC_Bridge_Port_PM_History_Data =52, /*MAC Bridge Port PM History Data */
Physical_Path_Termination_Point_POTS_UNI =53, /*Physical Path Termination Point POTS UNI */
Voice_CTP =54, /*Voice CTP */
Voice_PM_History_Data =55, /*Voice PM History Data */
AAL2_PVC_Profile_B_PON =56, /*AAL2 PVC Profile B-PON */
AAL2_CPS_Protocol_Monitoring_History_Data_B_PON =57, /*AAL2 CPS Protocol Monitoring History Data B-PON */
Voice_Service_Profile_AAL =58, /*Voice Service Profile AAL */
LES_Service_Profile =59, /*LES Service Profile */
AAL2_SSCS_Parameter_Profile_1 =60, /*AAL2 SSCS Parameter Profile1 */
AAL2_SSCS_Parameter_Profile_2 =61, /*AAL2 SSCS Parameter Profile2 */
VP_PM_History_Data =62, /*VP PM History Data */
Traffic_scheduler =63, /* Traffic scheduler */
T_CONT_buffer =64, /* T-CONT buffer */
UBR_Plus_Traffic_Descriptor =65, /*UBR+ Traffic Descriptor */
AAL2_SSCS_Protocol_Monitoring_History_Data_B_PON =66, /*AAL2 SSCS Protocol Monitoring History DataB-PON */
IP_Port_Configuration_Data =67, /*IP Port Configuration Data */
IP_Router_Service_Profile =68, /*IP Router Service Profile */
IP_Router_Configuration_Data =69, /*IP Router Configuration Data */
IP_Router_PM_History_Data_1 =70, /*IP Router PM History Data 1 */
IP_Router_PM_History_Data_2 =71, /*IP Router PM History Data 2 */
ICMP_PM_History_Data_1 =72, /*ICMP PM History Data 1 */
ICMP_PM_History_Data_2 =73, /*ICMP PM History Data 2 */
IP_Route_Table =74, /*IP Route Table */
IP_Static_Routes =75, /*IP Static Routes */
ARP_Service_Profile =76, /*ARP Service Profile */
ARP_Configuration_Data =77, /*ARP Configuration Data */
VLAN_Tagging_Operation_Configuration_Data =78, /*VLAN Tagging Operation Configuration Data */
MAC_Bridge_Port_Filter_Pre_assign_Table =79, /*MAC Bridge Port Filter Pre-assign Table */
Physical_Path_Termination_Point_ISDN_UNI =80, /*Physical Path Termination Point ISDN UNI */
Reserved_81 =81, /*(Reserved) */
Physical_Path_Termination_Point_Video_UNI =82, /*Physical Path Termination Point Video UNI */
Physical_Path_Termination_Point_LCT_UNI =83, /*Physical Path Termination Point LCT UNI */
VLAN_Tagging_Filter_Data =84, /*VLAN Tagging Filter Data */
ONU_B_PON =85, /* ONU B-PON */
ATM_VC_Cross_Connection =86, /*ATM VC Cross-Connection */
VC_network_CTP_B_PON =87, /* VC network CTP B-PON */
VC_PM_History_Data =88, /*VC PM History Data */
Ethernet_Performance_Monitoring_History_Data_2 =89, /*Ethernet Performance Monitoring History Data 2 */
Physical_Path_Termination_Point_Video_ANI =90, /*Physical Path Termination Point Video ANI */
Physical_Path_Termination_Point_WL80211_UNI =91, /*Physical Path Termination Point 802.11 UNI */
WL80211_Station_Management_data_1 =92, /*802.11 Station Management data 1 */
WL80211_Station_Management_data_2 =93, /*802.11 Station Management data 2 */
WL80211_General_Purpose_Object =94, /*802.11 General Purpose Object */
WL80211_MAC_PHY_Operation_and_Antenna_Data =95, /*802.11 MAC&PHY Operation and Antenna Data */
WL80211_Counters =96, /*802.11 Counters */
WL80211_PHY_FHSS_DSSS_IR_Tables =97, /*802.11 PHY FHSS DSSS IR Tables */
Physical_Path_Termination_Point_xDSL_UNI_Part_1 =98, /*Physical Path Termination Point xDSL UNI Part 1 */
Physical_Path_Termination_Point_xDSL_UNI_Part_2 =99, /*Physical Path Termination Point xDSL UNI Part 2 */
xDSL_Line_Inventory_and_Status_Data_Part_1 =100, /*xDSL Line Inventory and Status Data Part 1 */
xDSL_Line_Inventory_and_Status_Data_Part_2 =101, /*xDSL Line Inventory and Status Data Part 2 */
xDSL_Channel_Downstream_Status_Data =102, /*xDSL Channel Downstream Status Data */
xDSL_Channel_Upstream_Status_Data =103, /*xDSL Channel Upstream Status Data */
xDSL_Line_Configuration_Profile_Part_1 =104, /*xDSL Line Configuration Profile Part 1 */
xDSL_Line_Configuration_Profile_Part_2 =105, /*xDSL Line Configuration Profile Part 2 */
xDSL_Line_Configuration_Profile_Part_3 =106, /*xDSL Line Configuration Profile Part 3 */
xDSL_Channel_Configuration_Profile =107, /*xDSL Channel Configuration Profile */
xDSL_Subcarrier_Mask_Downstream_Profile =108, /*xDSL Subcarrier Mask Downstream Profile */
xDSL_Subcarrier_Mask_Upstream_Profile =109, /*xDSL Subcarrier Mask Upstream Profile */
xDSL_Downstream_PSD_Mask_Profile =110, /*xDSL Downstream PSD Mask Profile */
xDSL_Downstream_RFI_Bands_Profile =111, /*xDSL Downstream RFI Bands Profile */
xDSL_xTU_C_Performance_Monitoring_History_Data =112, /*xDSL xTU-C Performance Monitoring History Data */
xDSL_xTU_R_Performance_Monitoring_History_Data =113, /*xDSL xTU-R Performance Monitoring History Data */
xDSL_xTU_C_Channel_Performance_Monitoring_History_Data =114, /*xDSL xTU-C Channel Performance Monitoring History Data */
xDSL_xTU_R_Channel_Performance_Monitoring_History_Data =115, /*xDSL xTU-R Channel Performance Monitoring History Data */
TC_Adaptor_Performance_Monitoring_History_Data_xDSL =116, /*TC Adaptor Performance Monitoring History Data xDSL */
Physical_Path_Termination_Point_VDSL_UNI =117, /*Physical Path Termination Point VDSL UNI */
VDSL_VTU_O_Physical_Data =118, /*VDSL VTU-O Physical Data */
VDSL_VTU_R_Physical_Data =119, /*VDSL VTU-R Physical Data */
VDSL_Channel_Data =120, /*VDSL Channel Data */
VDSL_Line_Configuration_Profile =121, /*VDSL Line Configuration Profile */
VDSL_Channel_Configuration_Profile =122, /*VDSL Channel Configuration Profile */
VDSL_Band_Plan_Configuration_Profile =123, /*VDSL Band Plan Configuration Profile */
VDSL_VTU_O_Physical_Interface_Monitoring_History_Data =124, /*VDSL VTU-O Physical Interface Monitoring History Data */
VDSL_VTU_R_Physical_Interface_Monitoring_History_Data =125, /*VDSL VTU-R Physical Interface Monitoring History Data */
VDSL_VTU_O_Channel_Performance_Monitoring_History_Data =126, /*VDSL VTU-O Channel Performance Monitoring History Data */
VDSL_VTU_R_Channel_Performance_Monitoring_History_Data =127, /*VDSL VTU-R Channel Performance Monitoring History Data */
Video_Return_Path_Service_Profile =128, /*Video Return Path Service Profile */
Video_Return_Path_Statistics =129, /*Video Return Path Statistics */
VLAN8021p_Mapper_Service_Profile =130, /*802.1p Mapper Service Profile */
OLT_G =131, /*OLT-G */
Multicast_Interworking_VCC_Termination_Point =132, /*Multicast Interworking VCC Termination Point */
ONT_Power_Shedding =133, /*ONT Power Shedding */
IP_Host_Config_Data =134, /*IP Host Config Data */
IP_Host_Monitoring_Data =135, /*IP Host Monitoring Data */
TCP_UDP_Config_Data =136, /*TCP/UDP Config Data */
Network_Address =137, /*Network Address */
VoIP_Config_Data =138, /*VoIP Config Data */
VoIP_Voice_CTP =139, /*VoIP Voice CTP */
Call_Control_PM_History_Data =140, /*Call Control PM History Data */
VoIP_Line_Status =141, /*VoIP Line Status */
VoIP_Media_Profile =142, /*VoIP Media Profile */
RTP_Profile_Data =143, /*RTP Profile Data */
RTP_Monitoring_Data =144, /*RTP Monitoring Data */
Network_Dial_Plan_Table =145, /*Network Dial Plan Table */
VoIP_Application_Service_Profile =146, /*VoIP Application Service Profile */
VoIP_Feature_Access_Codes =147, /*VoIP Feature Access Codes */
Authentication_Security_Method =148, /*Authentication Security Method */
SIP_Config_Portal =149, /*SIP Config Portal */
SIP_Agent_Config_Data =150, /*SIP Agent Config Data */
SIP_Agent_Monitoring_Data =151, /*SIP Agent Monitoring Data */
SIP_Call_Initiation_Performance_Monitoring_History_Data =152, /*SIP Call Initiation Performance Monitoring History Data */
SIP_User_Data =153, /*SIP User Data */
MGC_Config_Portal =154, /*MGC Config Portal */
MGC_Config_Data =155, /*MGC Config Data */
MGC_Monitoring_Data =156, /*MGC Monitoring Data */
LargeString =157, /*LargeString */
ONT_Remote_Debug =158, /*ONT Remote Debug */
Equipment_protection_profile =159, /*Equipment protection profile */
Equipment_extension_package =160, /*Equipment extension package */
Port_mapping_package =161, /*Port mapping package */
Physical_Path_Terminations_Point_MoCA_UNI =162, /*Physical Path Terminations Point MoCA UNI */
MoCA_Ethernet_PM_History_Data =163, /*MoCA Ethernet PM History Data */
MoCA_Interface_PM_History_Data =164, /*MoCA Interface PM History Data */
//3162..239 /*Reserved for future B-PON managed entities */
//240-255 /*Reserved for vendor-specific managed entities */
ONT_G =256, /*ONT-G */
ONT2_G =257, /*ONT2-G */
ONU_G =258, /*ONU-G */
ONU2_G =259, /*ONU2-G */
PON_IF_Line_Card_G =260, /*PON IF Line Card-G */
PON_TC_Adapter_G =261, /*PON TC Adapter-G */
T_CONT =262, /*T-CONT */
ANI_G =263, /*ANI-G */
UNI_G =264, /*UNI-G */
ATM_Interworking_VCC_Termination_Point =265, /*ATM Interworking VCC Termination Point */
GEM_Interworking_Termination_Point =266, /*GEM Interworking Termination Point */
GEM_Port_Protocol_Monitoring_History_Data =267, /*GEM Port Protocol Monitoring History Data */
GEM_Port_Network_CTP = 268, /*GEM Port Network CTP */
VP_Network_CTP_G =269, /*VP Network CTP-G */
VC_Network_CTP_G =270, /*VC Network CTP-G */
GAL_TDM_Profile =271, /*GAL TDM Profile */
GAL_Ethernet_Profile =272, /*GAL Ethernet Profile */
Threshold_Data_1 =273, /*Threshold Data1 */
Threshold_Data_2 =274, /*Threshold Data2 */
GAL_TDM_Protocol_Monitoring_History_Data =275, /*GAL TDM Protocol Monitoring History Data */
GAL_Ethernet_Protocol_Monitoring_History_Data =276, /*GAL Ethernet Protocol Monitoring History Data */
Priority_Queue_G =277, /*Priority Queue-G */
Traffic_Scheduler_G =278, /*Traffic Scheduler-G */
Protection_Data =279, /*Protection Data */
GEM_Traffic_Descriptor =280, /*GEM Traffic Descriptor */
Multicast_GEM_Interworking_Termination_Point =281, /*Multicast GEM Interworking Termination Point */
MAC_Bridge_Port_Configuration_Data_G =282, /*MAC Bridge Port Configuration Data-G */
RTP_pseudowire_parameters =283, /*RTP pseudowire parameters */
Pseudowire_maintenance_profile =284, /*Pseudowire maintenance profile */
Pseudowire_performance_monitoring_history_data =285, /*Pseudowire performance monitoring history data */
Ethernet_flow_termination_point =286, /*Ethernet flow termination point */
OMCI =287, /*OMCI */
Managed_entity =288, /*Managed entity */
Attribute =289, /*Attribute */
Dot1X_port_extension_package =290, /*Dot1X port extension package */
Dot1X_configuration_profile =291, /*Dot1X configuration profile */
Dot1X_performance_monitoring_history_data =292, /*Dot1X performance monitoring history data */
Radius_performance_monitoring_history_data =293, /*Radius performance monitoring history data */
TU_connection_termination_port =294, /*TU connection termination port */
TU_performance_monitoring_history_data =295, /*TU performance monitoring history data */
Ethernet_performance_monitoring_history_data_3 =296, /*Ethernet performance monitoring history data 3 */
Port_mapping_package_G =297, /*Port mapping package-G */
Dot1_rate_limiter =298, /*Dot1 rate limiter */
Dot1ag_maintenance_domain =299, /*Dot1ag maintenance domain */
Dot1ag_maintenance_association =300, /*Dot1ag maintenance association */
Dot1ag_default_MD_level =301, /*Dot1ag default MD level */
Dot1ag_MEP =302, /*Dot1ag MEP */
Dot1ag_MEP_status =303, /*Dot1ag MEP status */
Dot1ag_MEP_CCM_database =304, /*Dot1ag MEP CCM database */
Dot1ag_CFM_stack =305, /*Dot1ag CFM stack */
Dot1ag_chassis_management_info =306, /*Dot1ag chassis-management info */
Octet_string =307, /*Octet string */
General_purpose_buffer =308, /*General purpose buffer */
Multicast_operations_profile =309, /*Multicast operations profile */
Multicast_subscriber_config_info =310, /*Multicast subscriber config info */
Multicast_subscriber_monitor =311, /*Multicast subscriber monitor */
FEC_performance_monitoring_history_data =312, /*FEC performance monitoring history data */
RE_ANI_G =313,/*RE ANI-G */
Physical_path_termination_point_RE_UNI =314,/* Physical path termination point RE UNI */
RE_upstream_amplifier =315,/*RE upstream amplifier */
RE_downstream_amplifier =316,/* RE downstream amplifier */
RE_config_portal =317,/* RE config portal */
File_transfer_controller =318,/* File transfer controller */
CES_physical_interface_performance_monitoring_history_data_2 =319,/* CES physical interface performance monitoring history data 2 */
CES_physical_interface_performance_monitoring_history_data_3 =320,/* CES physical interface performance monitoring history data 3 */
Ethernet_frame_performance_monitoring_history_data_downstream =321,/* Ethernet frame performance monitoring history data downstream */
Ethernet_frame_performance_monitoring_history_data_upstream =322,/* Ethernet frame performance monitoring history data upstream */
VDSL2_line_configuration_extensions_2 =323,/* VDSL2 line configuration extensions 2 */
xDSL_impulse_noise_monitor_performance_monitoring_history_data =324,/* xDSL impulse noise monitor performance monitoring history data */
xDSL_line_inventory_and_status_data_part_5 =325,/* xDSL line inventory and status data part 5 */
xDSL_line_inventory_and_status_data_part_6 =326,/* xDSL line inventory and status data part 6 */
xDSL_line_inventory_and_status_data_part_7 =327,/* xDSL line inventory and status data part 7 */
RE_common_amplifier_parameters =328,/* RE common amplifier parameters */
Virtual_Ethernet_interface_point =329,/* Virtual Ethernet interface point */
Generic_status_portal =330,/* Generic status portal */
ONU_E =331,/*ONU-E */
Enhanced_security_control =332,/* Enhanced security control */
MPLS_pseudowire_termination_point =333,/* MPLS pseudowire termination point */
Ethernet_frame_extended_PM =334,/* Ethernet frame extended PM */
SNMP_configuration_data =335,/* SNMP configuration data */
ONU_dynamic_power_management_control =336,/* ONU dynamic power management control */
PW_ATM_configuration_data =337,/* PW ATM configuration data */
PW_ATM_performance_monitoring_history_data =338,/* PW ATM performance monitoring history data */
PW_Ethernet_configuration_data =339,/* PW Ethernet configuration data */
BBF_TR_069_management_server =340,/* BBF TR-069 management server */
GEM_port_network_CTP_performance_monitoring_history_data =341,/* GEM port network CTP performance monitoring history data */
TCP_UDP_performance_monitoring_history_data =342,/* TCP/UDP performance monitoring history data */
Energy_consumption_performance_monitoring_history_data =343,/* Energy consumption performance monitoring history data */
XG_PON_TC_performance_monitoring_history_data =344,/* XG-PON TC performance monitoring history data */
XG_PON_downstream_management_performance_monitoring_history_data =345,/* XG-PON downstream management performance monitoring history data */
XG_PON_upstream_management_performance_monitoring_history_data =346,/* XG-PON upstream management performance monitoring history data */
IPv6_host_config_data =347,/* IPv6 host config data */
MAC_bridge_port_ICMPv6_process_preassign_table =348, /*MAC bridge port ICMPv6 process pre-assign table */
PoE_control =349, /*PoE control */
// 350-399 /*Reserved for vendor-specific use */
Ethernet_pseudowire_parameters =400, /*Ethernet pseudowire parameters */
// 401-65279 /*Reserved for future standardization */
// 65280-65535 /*Reserved for vendor-specific use */
} ONT_STD_OMCI_PAYLOAD_MESSAGE_IDENTIFIER_E;
#define ONT_OMCI_DEVICE_IDENTIFIER_A_IS_OMCI (0x0A)
int main(void)
{
int i = 0;
for(i= ONT_OMCI_MESSAGE_TYPE_0_RESERVED;i <= ONT_OMCI_MESSAGE_TYPE_32_RESERVED; i++)
{
if(0 == i%8)
printf("\r\n");
printf(" %02d",i);
}
printf("\r\n%d\r\n",__LINE__);
for(i= ONT_B_PON;i <= PoE_control; i++)
{
if(0 == i%8)
printf("\r\n");
printf(" %03d",i);
}
printf("\r\n%d\r\n",__LINE__);
return (0);
}
#include <stdlib.h>
#include <string.h>
typedef char INT8;
typedef unsigned char UINT8;
typedef short INT16;
typedef unsigned short UINT16;
typedef int INT32;
typedef unsigned int UINT32;
typedef long long INT64;
typedef unsigned long long UINT64;
typedef struct
{
UINT16 sender_identification;/* 0x0000 */
UINT16 padding;/* 0x0028 */
UINT32 omci_CRC_value;
} __attribute__((packed))ont_std_omci_payload_omci_trailer_t;
typedef struct
{
UINT16 destination_object;
UINT16 object_status;
} __attribute__((packed))ont_std_omci_payload_message_identifier_t;
typedef struct
{
UINT16 Transaction_Correlation_Id;/*Transaction Correlation Identifier (2 bytes)
--Transaction Correlation Identifier, MSB indicate Message priority */
UINT8 Message_Type; /*Message Type (1 byte) */
UINT8 Device_Identifier; /*Device Identifier (1 byte) */
ont_std_omci_payload_message_identifier_t Message_Identifier; /*Message Identifier (4 bytes) */
UINT8 Message_Contents[32]; /*Message Contents (32 bytes) */
ont_std_omci_payload_omci_trailer_t OMCI_Trailer; /*OMCI Trailer (8 bytes) */
} __attribute__((packed))ont_std_omci_payload_t;
/*Message Type struct*/
/* 8-------7-------6-------5-------4-------3-------2-------1*/
/* |DB-----|AR-----|AK----|---MT(0~3 and 29~31 reserved)----|*/
typedef struct
{
UINT8 destination_bit:1;
UINT8 answer_request:1;
UINT8 acknowledge:1;
UINT8 message_type:5;
} __attribute__((packed))ont_std_omci_payload_message_type_t;
typedef enum
{
/**** MT ****** Type ****** Purpose ****** AK ****** Inc MIB data sync*******/
ONT_OMCI_MESSAGE_TYPE_0_RESERVED =(0),
ONT_OMCI_MESSAGE_TYPE_1_RESERVED =(1),
ONT_OMCI_MESSAGE_TYPE_2_RESERVED =(2),
ONT_OMCI_MESSAGE_TYPE_3_RESERVED =(3),
/*Create a managed entity instance with its attributes yes yes*/
ONT_OMCI_MESSAGE_TYPE_4_CREATE =(4),
/*Create an instance of ATM VP/VC Cross-Connection ME and two associated instances of VP Network CTP-G or VC Network CTP-G ME. yes yes*/
ONT_OMCI_MESSAGE_TYPE_5_CREATE_COMPLETE_CONNECTION =(5),
/*Delete a managed entity instance yes yes*/
ONT_OMCI_MESSAGE_TYPE_6_DELETE =(6),
/*Delete an instance of ATM VP/VC Cross-Connection ME and two associated instances of VP Network CTP-G or VC Network CTP-G ME yes yes*/
ONT_OMCI_MESSAGE_TYPE_7_DELETE_COMPLETE_CONNECTION =(7),
/*Set one or more attributes of a managed entity yes yes*/
ONT_OMCI_MESSAGE_TYPE_8_SET =(8),
/*Get one or more attributes of a managed entity yes no*/
ONT_OMCI_MESSAGE_TYPE_9_GET =(9),
/*Get all attributes of an instance of ATM VP/VC Cross-Connection ME and the attributes of the associated instances of VP Network CTP-G or VC Network CTP-G yes no*/
ONT_OMCI_MESSAGE_TYPE_10_GET_COMPLETE_CONNECTION =(10),
/* Latch the alarm statuses of all managed entities and reset the alarm message counter yes no*/
ONT_OMCI_MESSAGE_TYPE_11_GET_ALL_ALARMS =(11),
/*Get the active alarm status of the next managed entity yes no*/
ONT_OMCI_MESSAGE_TYPE_12_GET_ALL_ALARMS_NEXT =(12),
/*Latch the MIB yes no*/
ONT_OMCI_MESSAGE_TYPE_13_MIB_UPLOAD =(13),
/*Get latched attributes of a managed entity instance yes no*/
ONT_OMCI_MESSAGE_TYPE_14_MIB_UPLOAD_NEXT =(14),
/*Clear the MIB and re-initialise it to its default and reset the MIB data sync counter to 0 yes no*/
ONT_OMCI_MESSAGE_TYPE_15_MIB_RESET =(15),
/*Notification of an alarm no no*/
ONT_OMCI_MESSAGE_TYPE_16_ALARM =(16),
/*Notification of an autonomous attribute value change no no*/
ONT_OMCI_MESSAGE_TYPE_17_ATTRIBUTE_VALUE_CHANGE =(17),
/*Request a test on a specific managed entity yes no*/
ONT_OMCI_MESSAGE_TYPE_18_TEST =(18),
/*Start a software download action yes yes*/
ONT_OMCI_MESSAGE_TYPE_19_START_SOFTWARE_DOWNLOAD =(19),
/*Download a section of a software image yes[last]/no no*/
ONT_OMCI_MESSAGE_TYPE_20_DOWNLOAD_SECTION =(20),
/*End of a software download action yes yes*/
ONT_OMCI_MESSAGE_TYPE_21_END_SOFTWARE_DOWNLOAD =(21),
/*Activate the downloaded software image yes yes*/
ONT_OMCI_MESSAGE_TYPE_22_ACTIVATE_SOFTWARE =(22),
/*Commit the downloaded software image yes yes*/
ONT_OMCI_MESSAGE_TYPE_23_COMMIT_SOFTWARE =(23),
/*Synchronize the time between OLT and ONT yes no*/
ONT_OMCI_MESSAGE_TYPE_24_SYNCHRONIZE_TIME =(24),
/*Reboot ONT, Circuit Pack or PON IF Line Card yes no*/
ONT_OMCI_MESSAGE_TYPE_25_REBOOT =(25),
/*Get the latched attribute values of the managed entity within the current snapshot yes no*/
ONT_OMCI_MESSAGE_TYPE_26_GET_NEXT =(26),
/*Notification of test result that is initiated by "Test" no no*/
ONT_OMCI_MESSAGE_TYPE_27_TEST_RESULT =(27),
/*Get current counter value associated with one or more attributes of a managed entity yes no*/
ONT_OMCI_MESSAGE_TYPE_28_GET_CURRENT_DATA =(28),
ONT_OMCI_MESSAGE_TYPE_29_RESERVED =(29),
ONT_OMCI_MESSAGE_TYPE_30_RESERVED =(30),
ONT_OMCI_MESSAGE_TYPE_31_RESERVED =(31),
ONT_OMCI_MESSAGE_TYPE_32_RESERVED =(32),
} ONT_STD_OMCI_PAYLOAD_MESSAGE_TYPE_E;
typedef enum
{
/*-- Managed entity class value ---------------- Managed entity-- */
ONT_B_PON =1, /* ONT B-PON */
ONT_Data =2, /*ONT Data */
PON_IF_Line_Cardholder =3, /*PON IF Line Cardholder */
PON_IF_line_card =4, /* PON IF line card */
Cardholder =5, /*Cardholder */
Circuit_Pack =6, /*Circuit Pack */
Software_Image =7, /*Software Image */
UNI_B_PON =8, /*UNIB-PON */
TC_Adapter_B_PON =9, /*TC Adapter B-PON */
Physical_Path_Termination_Point_ATM_UNI =10, /*Physical Path Termination Point ATM UNI */
Physical_Path_Termination_Point_Ethernet_UNI =11, /*Physical Path Termination Point Ethernet UNI */
Physical_Path_Termination_Point_CES_UNI =12, /*Physical Path Termination Point CES UNI */
Logical_Nx64kbitPers_Sub_port_Connection_Termination_Point =13, /*Logical Nx64kbit/s Sub-port Connection Termination Point */
Interworking_VCC_termination_point =14, /* Interworking VCC termination point */
AAL1_Profile_B_PON =15, /*AAL1 Profile B-PON */
AAL5_Profile_B_PON =16, /*AAL5 Profile B-PON */
AAL1_Protocol_Monitoring_History_Data_B_PON =17, /*AAL1 Protocol Monitoring History Data B-PON */
AAL5_Protocol_Monitoring_History_Data_B_PON =18, /*AAL5 Protocol Monitoring History Data B-PON */
AAL2_Profile =19, /*AAL2 Profile */
intentionally_left_blank_20 =20, /*--------------------------(intentionally left blank) */
CES_Service_Profile_G =21, /*CES Service Profile-G */
Reserved_22 =22, /*(Reserved) */
CES_Physical_Interface_Monitoring_History_Data =23, /*CES Physical Interface Monitoring History Data */
Ethernet_Performance_Monitoring_History_Data =24, /*Ethernet Performance Monitoring History Data */
VP_network_CTP_G =25, /*VP network CTP-G */
ATM_VP_Cross_Connection =26, /*ATM VP Cross-Connection */
Priority_queue_B_PON =27, /* Priority queueB-PON */
DBR_CBR_Traffic_Descriptor =28, /*DBR/CBR Traffic Descriptor */
UBR_Traffic_Descriptor =29, /*UBR Traffic Descriptor */
SBR1_VBR1_Traffic_Descriptor =30, /*SBR1/VBR1 Traffic Descriptor */
SBR2_VBR2_Traffic_Descriptor =31, /*SBR2/VBR2 Traffic Descriptor */
SBR3_VBR3_Traffic_Descriptor =32, /*SBR3/VBR3 Traffic Descriptor */
ABR_Traffic_Descriptor =33, /*ABR Traffic Descriptor */
GFR_Traffic_Descriptor =34, /*GFR Traffic Descriptor */
ABT_DT_IT_Traffic_Descriptor =35, /*ABT/DT/IT Traffic Descriptor */
UPC_Disagreement_Monitoring_History_Data_B_PON =36, /*UPC Disagreement Monitoring History Data B-PON */
intentionally_left_blank_37 =37, /*--------------------------(intentionally left blank) */
ANI =38, /* ANI */
PON_TC_adapter =39, /* PON TC adapter */
PON_Physical_Path_Termination_Point =40, /*PON Physical Path Termination Point */
TC_Adapter_Protocol_Monitoring_History_Data =41, /*TC Adapter Protocol Monitoring History Data */
Threshold_data_B_PON =42, /* Threshold dataB-PON */
Operator_Specific =43, /*Operator Specific */
Vendor_Specific =44, /*Vendor Specific */
MAC_Bridge_Service_Profile =45, /*MAC Bridge Service Profile */
MAC_Bridge_Configuration_Data =46, /*MAC Bridge Configuration Data */
MAC_bridge_port_configuration_data =47, /* MAC bridge port configuration data */
MAC_Bridge_Port_Designation_Data =48, /*MAC Bridge Port Designation Data */
MAC_Bridge_Port_Filter_Table_Data =49, /*MAC Bridge Port Filter Table Data */
MAC_Bridge_Port_Bridge_Table_Data =50, /*MAC Bridge Port Bridge Table Data */
MAC_Bridge_PM_History_Data =51, /*MAC Bridge PM History Data */
MAC_Bridge_Port_PM_History_Data =52, /*MAC Bridge Port PM History Data */
Physical_Path_Termination_Point_POTS_UNI =53, /*Physical Path Termination Point POTS UNI */
Voice_CTP =54, /*Voice CTP */
Voice_PM_History_Data =55, /*Voice PM History Data */
AAL2_PVC_Profile_B_PON =56, /*AAL2 PVC Profile B-PON */
AAL2_CPS_Protocol_Monitoring_History_Data_B_PON =57, /*AAL2 CPS Protocol Monitoring History Data B-PON */
Voice_Service_Profile_AAL =58, /*Voice Service Profile AAL */
LES_Service_Profile =59, /*LES Service Profile */
AAL2_SSCS_Parameter_Profile_1 =60, /*AAL2 SSCS Parameter Profile1 */
AAL2_SSCS_Parameter_Profile_2 =61, /*AAL2 SSCS Parameter Profile2 */
VP_PM_History_Data =62, /*VP PM History Data */
Traffic_scheduler =63, /* Traffic scheduler */
T_CONT_buffer =64, /* T-CONT buffer */
UBR_Plus_Traffic_Descriptor =65, /*UBR+ Traffic Descriptor */
AAL2_SSCS_Protocol_Monitoring_History_Data_B_PON =66, /*AAL2 SSCS Protocol Monitoring History DataB-PON */
IP_Port_Configuration_Data =67, /*IP Port Configuration Data */
IP_Router_Service_Profile =68, /*IP Router Service Profile */
IP_Router_Configuration_Data =69, /*IP Router Configuration Data */
IP_Router_PM_History_Data_1 =70, /*IP Router PM History Data 1 */
IP_Router_PM_History_Data_2 =71, /*IP Router PM History Data 2 */
ICMP_PM_History_Data_1 =72, /*ICMP PM History Data 1 */
ICMP_PM_History_Data_2 =73, /*ICMP PM History Data 2 */
IP_Route_Table =74, /*IP Route Table */
IP_Static_Routes =75, /*IP Static Routes */
ARP_Service_Profile =76, /*ARP Service Profile */
ARP_Configuration_Data =77, /*ARP Configuration Data */
VLAN_Tagging_Operation_Configuration_Data =78, /*VLAN Tagging Operation Configuration Data */
MAC_Bridge_Port_Filter_Pre_assign_Table =79, /*MAC Bridge Port Filter Pre-assign Table */
Physical_Path_Termination_Point_ISDN_UNI =80, /*Physical Path Termination Point ISDN UNI */
Reserved_81 =81, /*(Reserved) */
Physical_Path_Termination_Point_Video_UNI =82, /*Physical Path Termination Point Video UNI */
Physical_Path_Termination_Point_LCT_UNI =83, /*Physical Path Termination Point LCT UNI */
VLAN_Tagging_Filter_Data =84, /*VLAN Tagging Filter Data */
ONU_B_PON =85, /* ONU B-PON */
ATM_VC_Cross_Connection =86, /*ATM VC Cross-Connection */
VC_network_CTP_B_PON =87, /* VC network CTP B-PON */
VC_PM_History_Data =88, /*VC PM History Data */
Ethernet_Performance_Monitoring_History_Data_2 =89, /*Ethernet Performance Monitoring History Data 2 */
Physical_Path_Termination_Point_Video_ANI =90, /*Physical Path Termination Point Video ANI */
Physical_Path_Termination_Point_WL80211_UNI =91, /*Physical Path Termination Point 802.11 UNI */
WL80211_Station_Management_data_1 =92, /*802.11 Station Management data 1 */
WL80211_Station_Management_data_2 =93, /*802.11 Station Management data 2 */
WL80211_General_Purpose_Object =94, /*802.11 General Purpose Object */
WL80211_MAC_PHY_Operation_and_Antenna_Data =95, /*802.11 MAC&PHY Operation and Antenna Data */
WL80211_Counters =96, /*802.11 Counters */
WL80211_PHY_FHSS_DSSS_IR_Tables =97, /*802.11 PHY FHSS DSSS IR Tables */
Physical_Path_Termination_Point_xDSL_UNI_Part_1 =98, /*Physical Path Termination Point xDSL UNI Part 1 */
Physical_Path_Termination_Point_xDSL_UNI_Part_2 =99, /*Physical Path Termination Point xDSL UNI Part 2 */
xDSL_Line_Inventory_and_Status_Data_Part_1 =100, /*xDSL Line Inventory and Status Data Part 1 */
xDSL_Line_Inventory_and_Status_Data_Part_2 =101, /*xDSL Line Inventory and Status Data Part 2 */
xDSL_Channel_Downstream_Status_Data =102, /*xDSL Channel Downstream Status Data */
xDSL_Channel_Upstream_Status_Data =103, /*xDSL Channel Upstream Status Data */
xDSL_Line_Configuration_Profile_Part_1 =104, /*xDSL Line Configuration Profile Part 1 */
xDSL_Line_Configuration_Profile_Part_2 =105, /*xDSL Line Configuration Profile Part 2 */
xDSL_Line_Configuration_Profile_Part_3 =106, /*xDSL Line Configuration Profile Part 3 */
xDSL_Channel_Configuration_Profile =107, /*xDSL Channel Configuration Profile */
xDSL_Subcarrier_Mask_Downstream_Profile =108, /*xDSL Subcarrier Mask Downstream Profile */
xDSL_Subcarrier_Mask_Upstream_Profile =109, /*xDSL Subcarrier Mask Upstream Profile */
xDSL_Downstream_PSD_Mask_Profile =110, /*xDSL Downstream PSD Mask Profile */
xDSL_Downstream_RFI_Bands_Profile =111, /*xDSL Downstream RFI Bands Profile */
xDSL_xTU_C_Performance_Monitoring_History_Data =112, /*xDSL xTU-C Performance Monitoring History Data */
xDSL_xTU_R_Performance_Monitoring_History_Data =113, /*xDSL xTU-R Performance Monitoring History Data */
xDSL_xTU_C_Channel_Performance_Monitoring_History_Data =114, /*xDSL xTU-C Channel Performance Monitoring History Data */
xDSL_xTU_R_Channel_Performance_Monitoring_History_Data =115, /*xDSL xTU-R Channel Performance Monitoring History Data */
TC_Adaptor_Performance_Monitoring_History_Data_xDSL =116, /*TC Adaptor Performance Monitoring History Data xDSL */
Physical_Path_Termination_Point_VDSL_UNI =117, /*Physical Path Termination Point VDSL UNI */
VDSL_VTU_O_Physical_Data =118, /*VDSL VTU-O Physical Data */
VDSL_VTU_R_Physical_Data =119, /*VDSL VTU-R Physical Data */
VDSL_Channel_Data =120, /*VDSL Channel Data */
VDSL_Line_Configuration_Profile =121, /*VDSL Line Configuration Profile */
VDSL_Channel_Configuration_Profile =122, /*VDSL Channel Configuration Profile */
VDSL_Band_Plan_Configuration_Profile =123, /*VDSL Band Plan Configuration Profile */
VDSL_VTU_O_Physical_Interface_Monitoring_History_Data =124, /*VDSL VTU-O Physical Interface Monitoring History Data */
VDSL_VTU_R_Physical_Interface_Monitoring_History_Data =125, /*VDSL VTU-R Physical Interface Monitoring History Data */
VDSL_VTU_O_Channel_Performance_Monitoring_History_Data =126, /*VDSL VTU-O Channel Performance Monitoring History Data */
VDSL_VTU_R_Channel_Performance_Monitoring_History_Data =127, /*VDSL VTU-R Channel Performance Monitoring History Data */
Video_Return_Path_Service_Profile =128, /*Video Return Path Service Profile */
Video_Return_Path_Statistics =129, /*Video Return Path Statistics */
VLAN8021p_Mapper_Service_Profile =130, /*802.1p Mapper Service Profile */
OLT_G =131, /*OLT-G */
Multicast_Interworking_VCC_Termination_Point =132, /*Multicast Interworking VCC Termination Point */
ONT_Power_Shedding =133, /*ONT Power Shedding */
IP_Host_Config_Data =134, /*IP Host Config Data */
IP_Host_Monitoring_Data =135, /*IP Host Monitoring Data */
TCP_UDP_Config_Data =136, /*TCP/UDP Config Data */
Network_Address =137, /*Network Address */
VoIP_Config_Data =138, /*VoIP Config Data */
VoIP_Voice_CTP =139, /*VoIP Voice CTP */
Call_Control_PM_History_Data =140, /*Call Control PM History Data */
VoIP_Line_Status =141, /*VoIP Line Status */
VoIP_Media_Profile =142, /*VoIP Media Profile */
RTP_Profile_Data =143, /*RTP Profile Data */
RTP_Monitoring_Data =144, /*RTP Monitoring Data */
Network_Dial_Plan_Table =145, /*Network Dial Plan Table */
VoIP_Application_Service_Profile =146, /*VoIP Application Service Profile */
VoIP_Feature_Access_Codes =147, /*VoIP Feature Access Codes */
Authentication_Security_Method =148, /*Authentication Security Method */
SIP_Config_Portal =149, /*SIP Config Portal */
SIP_Agent_Config_Data =150, /*SIP Agent Config Data */
SIP_Agent_Monitoring_Data =151, /*SIP Agent Monitoring Data */
SIP_Call_Initiation_Performance_Monitoring_History_Data =152, /*SIP Call Initiation Performance Monitoring History Data */
SIP_User_Data =153, /*SIP User Data */
MGC_Config_Portal =154, /*MGC Config Portal */
MGC_Config_Data =155, /*MGC Config Data */
MGC_Monitoring_Data =156, /*MGC Monitoring Data */
LargeString =157, /*LargeString */
ONT_Remote_Debug =158, /*ONT Remote Debug */
Equipment_protection_profile =159, /*Equipment protection profile */
Equipment_extension_package =160, /*Equipment extension package */
Port_mapping_package =161, /*Port mapping package */
Physical_Path_Terminations_Point_MoCA_UNI =162, /*Physical Path Terminations Point MoCA UNI */
MoCA_Ethernet_PM_History_Data =163, /*MoCA Ethernet PM History Data */
MoCA_Interface_PM_History_Data =164, /*MoCA Interface PM History Data */
//3162..239 /*Reserved for future B-PON managed entities */
//240-255 /*Reserved for vendor-specific managed entities */
ONT_G =256, /*ONT-G */
ONT2_G =257, /*ONT2-G */
ONU_G =258, /*ONU-G */
ONU2_G =259, /*ONU2-G */
PON_IF_Line_Card_G =260, /*PON IF Line Card-G */
PON_TC_Adapter_G =261, /*PON TC Adapter-G */
T_CONT =262, /*T-CONT */
ANI_G =263, /*ANI-G */
UNI_G =264, /*UNI-G */
ATM_Interworking_VCC_Termination_Point =265, /*ATM Interworking VCC Termination Point */
GEM_Interworking_Termination_Point =266, /*GEM Interworking Termination Point */
GEM_Port_Protocol_Monitoring_History_Data =267, /*GEM Port Protocol Monitoring History Data */
GEM_Port_Network_CTP = 268, /*GEM Port Network CTP */
VP_Network_CTP_G =269, /*VP Network CTP-G */
VC_Network_CTP_G =270, /*VC Network CTP-G */
GAL_TDM_Profile =271, /*GAL TDM Profile */
GAL_Ethernet_Profile =272, /*GAL Ethernet Profile */
Threshold_Data_1 =273, /*Threshold Data1 */
Threshold_Data_2 =274, /*Threshold Data2 */
GAL_TDM_Protocol_Monitoring_History_Data =275, /*GAL TDM Protocol Monitoring History Data */
GAL_Ethernet_Protocol_Monitoring_History_Data =276, /*GAL Ethernet Protocol Monitoring History Data */
Priority_Queue_G =277, /*Priority Queue-G */
Traffic_Scheduler_G =278, /*Traffic Scheduler-G */
Protection_Data =279, /*Protection Data */
GEM_Traffic_Descriptor =280, /*GEM Traffic Descriptor */
Multicast_GEM_Interworking_Termination_Point =281, /*Multicast GEM Interworking Termination Point */
MAC_Bridge_Port_Configuration_Data_G =282, /*MAC Bridge Port Configuration Data-G */
RTP_pseudowire_parameters =283, /*RTP pseudowire parameters */
Pseudowire_maintenance_profile =284, /*Pseudowire maintenance profile */
Pseudowire_performance_monitoring_history_data =285, /*Pseudowire performance monitoring history data */
Ethernet_flow_termination_point =286, /*Ethernet flow termination point */
OMCI =287, /*OMCI */
Managed_entity =288, /*Managed entity */
Attribute =289, /*Attribute */
Dot1X_port_extension_package =290, /*Dot1X port extension package */
Dot1X_configuration_profile =291, /*Dot1X configuration profile */
Dot1X_performance_monitoring_history_data =292, /*Dot1X performance monitoring history data */
Radius_performance_monitoring_history_data =293, /*Radius performance monitoring history data */
TU_connection_termination_port =294, /*TU connection termination port */
TU_performance_monitoring_history_data =295, /*TU performance monitoring history data */
Ethernet_performance_monitoring_history_data_3 =296, /*Ethernet performance monitoring history data 3 */
Port_mapping_package_G =297, /*Port mapping package-G */
Dot1_rate_limiter =298, /*Dot1 rate limiter */
Dot1ag_maintenance_domain =299, /*Dot1ag maintenance domain */
Dot1ag_maintenance_association =300, /*Dot1ag maintenance association */
Dot1ag_default_MD_level =301, /*Dot1ag default MD level */
Dot1ag_MEP =302, /*Dot1ag MEP */
Dot1ag_MEP_status =303, /*Dot1ag MEP status */
Dot1ag_MEP_CCM_database =304, /*Dot1ag MEP CCM database */
Dot1ag_CFM_stack =305, /*Dot1ag CFM stack */
Dot1ag_chassis_management_info =306, /*Dot1ag chassis-management info */
Octet_string =307, /*Octet string */
General_purpose_buffer =308, /*General purpose buffer */
Multicast_operations_profile =309, /*Multicast operations profile */
Multicast_subscriber_config_info =310, /*Multicast subscriber config info */
Multicast_subscriber_monitor =311, /*Multicast subscriber monitor */
FEC_performance_monitoring_history_data =312, /*FEC performance monitoring history data */
RE_ANI_G =313,/*RE ANI-G */
Physical_path_termination_point_RE_UNI =314,/* Physical path termination point RE UNI */
RE_upstream_amplifier =315,/*RE upstream amplifier */
RE_downstream_amplifier =316,/* RE downstream amplifier */
RE_config_portal =317,/* RE config portal */
File_transfer_controller =318,/* File transfer controller */
CES_physical_interface_performance_monitoring_history_data_2 =319,/* CES physical interface performance monitoring history data 2 */
CES_physical_interface_performance_monitoring_history_data_3 =320,/* CES physical interface performance monitoring history data 3 */
Ethernet_frame_performance_monitoring_history_data_downstream =321,/* Ethernet frame performance monitoring history data downstream */
Ethernet_frame_performance_monitoring_history_data_upstream =322,/* Ethernet frame performance monitoring history data upstream */
VDSL2_line_configuration_extensions_2 =323,/* VDSL2 line configuration extensions 2 */
xDSL_impulse_noise_monitor_performance_monitoring_history_data =324,/* xDSL impulse noise monitor performance monitoring history data */
xDSL_line_inventory_and_status_data_part_5 =325,/* xDSL line inventory and status data part 5 */
xDSL_line_inventory_and_status_data_part_6 =326,/* xDSL line inventory and status data part 6 */
xDSL_line_inventory_and_status_data_part_7 =327,/* xDSL line inventory and status data part 7 */
RE_common_amplifier_parameters =328,/* RE common amplifier parameters */
Virtual_Ethernet_interface_point =329,/* Virtual Ethernet interface point */
Generic_status_portal =330,/* Generic status portal */
ONU_E =331,/*ONU-E */
Enhanced_security_control =332,/* Enhanced security control */
MPLS_pseudowire_termination_point =333,/* MPLS pseudowire termination point */
Ethernet_frame_extended_PM =334,/* Ethernet frame extended PM */
SNMP_configuration_data =335,/* SNMP configuration data */
ONU_dynamic_power_management_control =336,/* ONU dynamic power management control */
PW_ATM_configuration_data =337,/* PW ATM configuration data */
PW_ATM_performance_monitoring_history_data =338,/* PW ATM performance monitoring history data */
PW_Ethernet_configuration_data =339,/* PW Ethernet configuration data */
BBF_TR_069_management_server =340,/* BBF TR-069 management server */
GEM_port_network_CTP_performance_monitoring_history_data =341,/* GEM port network CTP performance monitoring history data */
TCP_UDP_performance_monitoring_history_data =342,/* TCP/UDP performance monitoring history data */
Energy_consumption_performance_monitoring_history_data =343,/* Energy consumption performance monitoring history data */
XG_PON_TC_performance_monitoring_history_data =344,/* XG-PON TC performance monitoring history data */
XG_PON_downstream_management_performance_monitoring_history_data =345,/* XG-PON downstream management performance monitoring history data */
XG_PON_upstream_management_performance_monitoring_history_data =346,/* XG-PON upstream management performance monitoring history data */
IPv6_host_config_data =347,/* IPv6 host config data */
MAC_bridge_port_ICMPv6_process_preassign_table =348, /*MAC bridge port ICMPv6 process pre-assign table */
PoE_control =349, /*PoE control */
// 350-399 /*Reserved for vendor-specific use */
Ethernet_pseudowire_parameters =400, /*Ethernet pseudowire parameters */
// 401-65279 /*Reserved for future standardization */
// 65280-65535 /*Reserved for vendor-specific use */
} ONT_STD_OMCI_PAYLOAD_MESSAGE_IDENTIFIER_E;
#define ONT_OMCI_DEVICE_IDENTIFIER_A_IS_OMCI (0x0A)
int main(void)
{
int i = 0;
for(i= ONT_OMCI_MESSAGE_TYPE_0_RESERVED;i <= ONT_OMCI_MESSAGE_TYPE_32_RESERVED; i++)
{
if(0 == i%8)
printf("\r\n");
printf(" %02d",i);
}
printf("\r\n%d\r\n",__LINE__);
for(i= ONT_B_PON;i <= PoE_control; i++)
{
if(0 == i%8)
printf("\r\n");
printf(" %03d",i);
}
printf("\r\n%d\r\n",__LINE__);
return (0);
}
0 0
- GPON OLT OMCI 测试
- gpon系统---omci的位置
- GPON OLT ONU配置命令
- OMCI协议
- OMCI协议
- 什么是GPON?
- omci批量升级
- 中兴OLT常用命令
- 遍历OLT DeviceID
- OLT的配置过程
- OLT、ONU、ODN
- GPON study note_part1
- GPON Type C保护
- GPON Type B保护
- GPON学习-G984.3
- GPON接入-状态机分析
- GPON PLOAM消息
- GPON EPON介绍
- Java Web入门之css页面布局基础知识
- jsp 自定义标签
- Web.config配置文件详解
- Google地图10周年,看它曾经做过的那些疯狂事
- 需求开发与管理
- GPON OLT OMCI 测试
- apache服务器全局配置详解
- 基础总结篇之五:创建及调用自己的ContentProvider
- 用lazarus瞬间开发自己的安卓APP
- 详解C中volatile关键字
- leetcode Next Permutation
- 路径太深 无法删除文件夹 之解决办法
- 我的女神
- 测试基础知识