Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of GMMP_mbed by
Struct_ProfileInfo.h
00001 /** GMMP Operation 중 제어 명령 수행 결과 보고 명령에 사용되는 구조체 00002 * @file Struct_ProfileInfo.h 00003 * @date 2013/11/21 00004 * @version 0.0.0.1 00005 * @ref GMMPHeader참조 00006 **/ 00007 00008 #ifndef STRUCT_PROFILEINFO_H_ 00009 #define STRUCT_PROFILEINFO_H_ 00010 00011 #include "Define.h" 00012 #include "Struct_Common.h" 00013 00014 #pragma pack(1) 00015 /** 00016 * @struct stProfileReqHdr 00017 * @brief GMMP TCP Packet 구조 중 Request 수행 시 Message Header와 Message Body 영역 00018 * OMP에서 Profile Info 메시지를 OMP에 전송한다. 00019 */ 00020 typedef struct { 00021 /** 00022 *@var usDomainCode 00023 *@brief 서비스 영역별 구분 코드\n 00024 - AlphaNumeric : 문자,숫자 조합, 특수문자제외, SPACE 허용 안하며 빈자리는 0x00(NULL)로 채운다.\n 00025 */ 00026 /** 00027 *@var usGWID 00028 *@brief M2M GW ID 00029 */ 00030 /** 00031 *@var usDeviceID 00032 *@brief M2M Device ID, 값이 0x0이면 GW 명령이다. 00033 */ 00034 U8 usDomainCode[LEN_DOMAIN_CODE]; 00035 U8 usGWID[LEN_GW_ID]; 00036 U8 usDeviceID[LEN_DEVICE_ID]; 00037 }stProfileReqHdr; //Profile Request 00038 00039 /** 00040 * @struct stProfileRspHdr 00041 * @brief GMMP TCP Packet 구조 중 Response 수행 시 Message Header와 Message Body 영역 00042 * OMP에서 Multimedia URL Info 제공 명령 수신 시 사용된다. 00043 */ 00044 typedef struct { 00045 /** 00046 *@var usDomainCode 00047 *@brief 서비스 영역별 구분 코드\n 00048 - AlphaNumeric : 문자,숫자 조합, 특수문자제외, SPACE 허용 안하며 빈자리는 0x00(NULL)로 채운다.\n 00049 */ 00050 /** 00051 *@var usGWID 00052 *@brief M2M GW ID 00053 */ 00054 /** 00055 *@var usDeviceID 00056 *@brief M2M Device ID, 값이 0x0이면 GW 명령이다. 00057 */ 00058 /** 00059 *@var ucResultCode 00060 *@brief Result Code (0x00 : Success, other : Fail Reason) @ref OMPErrorCode.h 참조 00061 */ 00062 /** 00063 *@var unHeartbeatPeriod 00064 *@brief Heartbeat 주기로서 분(min)단위이다.\n 00065 *@brief 0x00 : Non Always On 단말\n 00066 *@brief other : TCP Always On 단말\n 00067 *@brief (Device Profile 조회시에는 해당 값이 0으로 전달)\n 00068 */ 00069 /** 00070 *@var unReportPeriod 00071 *@brief 보고 주기로서 분(minute) 단위이다.\n 00072 *@brief (Device Profile 조회시에는 해당 값이 0으로 전달) 00073 */ 00074 /** 00075 *@var unReportOffset 00076 *@brief 보고 주기 Offset 시간으로서 초(sec) 단위이다.\n 00077 @brief 0이면 보고주기때 보고하고, 0이 아니면 보고 주기가 되었을때 단말은 Reporting OffSet Time 이후에 주기보고 동작을 해야한다. 00078 @brief (Device Profile 조회시에는 해당 값이 0으로 전달) 00079 */ 00080 /** 00081 *@var unResponseTimeout 00082 *@brief M2M 단말의 Request메시지에 대한 Response 메시지의 Timeout(최소 30sec 이상으로 설정한다.)\n 00083 *@brief (Device Profile 조회시에는 해당 값이 0으로 전달)\n 00084 */ 00085 /** 00086 *@var usModel 00087 *@brief 제조사에서 부여한 Device 의 이름 00088 */ 00089 /** 00090 *@var usFirmwareVersion 00091 *@brief Firmware Version 00092 */ 00093 /** 00094 *@var usSoftwareVersion 00095 *@brief Software Version 00096 */ 00097 /** 00098 *@var usHardwareVersion 00099 *@brief Hardware Version 00100 */ 00101 U8 usDomainCode[LEN_DOMAIN_CODE]; 00102 U8 usGWID[LEN_GW_ID]; 00103 U8 usDeviceID[LEN_DEVICE_ID]; 00104 U8 ucResultCode; 00105 U8 unHeartbeatPeriod[4]; 00106 U8 unReportPeriod[4]; 00107 U8 unReportOffset[4]; 00108 U8 unResponseTimeout[4]; 00109 U8 usModel[32]; 00110 U8 usFirmwareVersion[16]; 00111 U8 usSoftwareVersion[16]; 00112 U8 usHardwareVersion[16]; 00113 }stProfileRspHdr; //Profile Response 00114 00115 /** 00116 * @struct Profile_Req 00117 * @brief GMMP TCP Packet 구조 중 Request Profile Info 구조체 00118 * OMP에 Request Profile Info 데이터 전송한다. 00119 */ 00120 typedef struct { 00121 /** 00122 *@var header 00123 *@brief @ref GMMPHeader 참조 00124 */ 00125 /** 00126 *@var body 00127 *@brief @ref stProfileReqHdr 참조 00128 */ 00129 GMMPHeader header; 00130 stProfileReqHdr body; 00131 }Profile_Req; 00132 00133 /** 00134 * @struct Profile_Rsp 00135 * @brief GMMP TCP Packet 구조 중 Response Profile Info 구조체 00136 * OMP에 Response Profile Info 데이터 수신한다. 00137 */ 00138 00139 typedef struct { 00140 /** 00141 *@var header 00142 *@brief @ref GMMPHeader 참조 00143 */ 00144 /** 00145 *@var body 00146 *@brief @ref stProfileRspHdr 참조 00147 */ 00148 GMMPHeader header; 00149 stProfileRspHdr body; 00150 }Profile_Rsp; 00151 #pragma pack(0) 00152 00153 #endif /* STRUCT_PROFILEINFO_H_ */
Generated on Wed Jul 13 2022 05:33:29 by
1.7.2
