ThingPlug GMMP library for mbed
Dependents: ThingPlug_WiFi_Example
Operation/Notification/Struct_Notification.h@4:bb6c1ee1d5f0, 2015-08-13 (annotated)
- Committer:
- lesmin
- Date:
- Thu Aug 13 07:04:29 2015 +0000
- Revision:
- 4:bb6c1ee1d5f0
- Parent:
- 0:32c20cfb2b30
added NTP error return
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lesmin | 0:32c20cfb2b30 | 1 | /** GMMP Operation 중 제어 명령 수행 결과 보고 명령에 사용되는 구조체 |
lesmin | 0:32c20cfb2b30 | 2 | * @file Struct_Notification.h |
lesmin | 0:32c20cfb2b30 | 3 | * @date 2013/11/21 |
lesmin | 0:32c20cfb2b30 | 4 | * @version 0.0.0.1 |
lesmin | 0:32c20cfb2b30 | 5 | * @ref GMMPHeader참조 |
lesmin | 0:32c20cfb2b30 | 6 | **/ |
lesmin | 0:32c20cfb2b30 | 7 | |
lesmin | 0:32c20cfb2b30 | 8 | #ifndef STRUCT_NOTIFICATION_H_ |
lesmin | 0:32c20cfb2b30 | 9 | #define STRUCT_NOTIFICATION_H_ |
lesmin | 0:32c20cfb2b30 | 10 | |
lesmin | 0:32c20cfb2b30 | 11 | #include "Define.h" |
lesmin | 0:32c20cfb2b30 | 12 | #include "Struct_Common.h" |
lesmin | 0:32c20cfb2b30 | 13 | |
lesmin | 0:32c20cfb2b30 | 14 | #pragma pack(1) |
lesmin | 0:32c20cfb2b30 | 15 | /** |
lesmin | 0:32c20cfb2b30 | 16 | * @struct stNotificationReqHdr |
lesmin | 0:32c20cfb2b30 | 17 | * @brief GMMP TCP Packet 구조 중 Request 수행 시 Message Header와 Message Body 영역 |
lesmin | 0:32c20cfb2b30 | 18 | * OMP에서 제어 메시지를 수행 후 제어 메시지 결과를 OMP에 보고한다. |
lesmin | 0:32c20cfb2b30 | 19 | */ |
lesmin | 0:32c20cfb2b30 | 20 | |
lesmin | 0:32c20cfb2b30 | 21 | typedef struct { |
lesmin | 0:32c20cfb2b30 | 22 | /** |
lesmin | 0:32c20cfb2b30 | 23 | *@var usDomainCode |
lesmin | 0:32c20cfb2b30 | 24 | *@brief 서비스 영역별 구분 코드\n |
lesmin | 0:32c20cfb2b30 | 25 | - AlphaNumeric : 문자,숫자 조합, 특수문자제외, SPACE 허용 안하며 빈자리는 0x00(NULL)로 채운다.\n |
lesmin | 0:32c20cfb2b30 | 26 | */ |
lesmin | 0:32c20cfb2b30 | 27 | /** |
lesmin | 0:32c20cfb2b30 | 28 | *@var usGWID |
lesmin | 0:32c20cfb2b30 | 29 | *@brief M2M GW ID |
lesmin | 0:32c20cfb2b30 | 30 | */ |
lesmin | 0:32c20cfb2b30 | 31 | /** |
lesmin | 0:32c20cfb2b30 | 32 | *@var usDeviceID |
lesmin | 0:32c20cfb2b30 | 33 | *@brief M2M Device ID, 값이 0x0이면 GW 명령이다. |
lesmin | 0:32c20cfb2b30 | 34 | */ |
lesmin | 0:32c20cfb2b30 | 35 | /** |
lesmin | 0:32c20cfb2b30 | 36 | *@var ucControlType |
lesmin | 0:32c20cfb2b30 | 37 | *@brief 제어 명령 수신 메시지에 수신한 값과 동일한 값을 사용한다. @ref Define_Control.h 참조 |
lesmin | 0:32c20cfb2b30 | 38 | */ |
lesmin | 0:32c20cfb2b30 | 39 | /** |
lesmin | 0:32c20cfb2b30 | 40 | *@var ucResultCode |
lesmin | 0:32c20cfb2b30 | 41 | *@brief Result Code (0x00 : Success, other : Fail Reason) @ref OMPErrorCode.h 참조 |
lesmin | 0:32c20cfb2b30 | 42 | */ |
lesmin | 0:32c20cfb2b30 | 43 | /** |
lesmin | 0:32c20cfb2b30 | 44 | *@var usMessageBody |
lesmin | 0:32c20cfb2b30 | 45 | *@brief Data [2048byte] ucControlType 정의에 의해 세부 내용이 변경 된다. |
lesmin | 0:32c20cfb2b30 | 46 | *@brief @ref Struct_Control_Opt.h 참조 |
lesmin | 0:32c20cfb2b30 | 47 | *@warning 옵션으로 사용하지 않을 수 있다. |
lesmin | 0:32c20cfb2b30 | 48 | */ |
lesmin | 0:32c20cfb2b30 | 49 | U8 usDomainCode[LEN_DOMAIN_CODE]; |
lesmin | 0:32c20cfb2b30 | 50 | U8 usGWID[LEN_GW_ID]; |
lesmin | 0:32c20cfb2b30 | 51 | U8 usDeviceID[LEN_DEVICE_ID]; |
lesmin | 0:32c20cfb2b30 | 52 | U8 ucControlType; |
lesmin | 0:32c20cfb2b30 | 53 | U8 ucResultCode; |
lesmin | 0:32c20cfb2b30 | 54 | U8 usMessageBody[MAX_MSG_BODY]; |
lesmin | 0:32c20cfb2b30 | 55 | }stNotificationReqHdr; //Notification Request |
lesmin | 0:32c20cfb2b30 | 56 | |
lesmin | 0:32c20cfb2b30 | 57 | /** |
lesmin | 0:32c20cfb2b30 | 58 | * @struct stNotificationRspHdr |
lesmin | 0:32c20cfb2b30 | 59 | * @brief GMMP TCP Packet 구조 중 Response 수행 시 Message Header와 Message Body 영역 |
lesmin | 0:32c20cfb2b30 | 60 | * 제어 메시지 결과 응답을를 수신한다. |
lesmin | 0:32c20cfb2b30 | 61 | */ |
lesmin | 0:32c20cfb2b30 | 62 | typedef struct { |
lesmin | 0:32c20cfb2b30 | 63 | /** |
lesmin | 0:32c20cfb2b30 | 64 | *@var usDomainCode |
lesmin | 0:32c20cfb2b30 | 65 | *@brief 서비스 영역별 구분 코드\n |
lesmin | 0:32c20cfb2b30 | 66 | - AlphaNumeric : 문자,숫자 조합, 특수문자제외, SPACE 허용 안하며 빈자리는 0x00(NULL)로 채운다.\n |
lesmin | 0:32c20cfb2b30 | 67 | */ |
lesmin | 0:32c20cfb2b30 | 68 | /** |
lesmin | 0:32c20cfb2b30 | 69 | *@var usGWID |
lesmin | 0:32c20cfb2b30 | 70 | *@brief M2M GW ID |
lesmin | 0:32c20cfb2b30 | 71 | */ |
lesmin | 0:32c20cfb2b30 | 72 | /** |
lesmin | 0:32c20cfb2b30 | 73 | *@var usDeviceID |
lesmin | 0:32c20cfb2b30 | 74 | *@brief M2M Device ID, 값이 0x0이면 GW 명령이다. |
lesmin | 0:32c20cfb2b30 | 75 | */ |
lesmin | 0:32c20cfb2b30 | 76 | /** |
lesmin | 0:32c20cfb2b30 | 77 | *@var ucControlType |
lesmin | 0:32c20cfb2b30 | 78 | *@brief 제어 명령 수신 메시지에 수신한 값과 동일한 값을 사용한다 @ref Define_Control.h 참조 |
lesmin | 0:32c20cfb2b30 | 79 | *@ref Define_Control.h 참조 |
lesmin | 0:32c20cfb2b30 | 80 | */ |
lesmin | 0:32c20cfb2b30 | 81 | /** |
lesmin | 0:32c20cfb2b30 | 82 | *@var ucResultCode |
lesmin | 0:32c20cfb2b30 | 83 | *@brief Result Code (0x00 : Success, other : Fail Reason) @ref OMPErrorCode.h 참조 |
lesmin | 0:32c20cfb2b30 | 84 | */ |
lesmin | 0:32c20cfb2b30 | 85 | U8 usDomainCode[LEN_DOMAIN_CODE]; |
lesmin | 0:32c20cfb2b30 | 86 | U8 usGWID[LEN_GW_ID]; |
lesmin | 0:32c20cfb2b30 | 87 | U8 usDeviceID[LEN_DEVICE_ID]; |
lesmin | 0:32c20cfb2b30 | 88 | U8 ucControlType; |
lesmin | 0:32c20cfb2b30 | 89 | U8 ucResultCode; |
lesmin | 0:32c20cfb2b30 | 90 | }stNotificationRspHdr; //Notification Response |
lesmin | 0:32c20cfb2b30 | 91 | |
lesmin | 0:32c20cfb2b30 | 92 | /** |
lesmin | 0:32c20cfb2b30 | 93 | * @struct Notifi_Req |
lesmin | 0:32c20cfb2b30 | 94 | * @brief GMMP TCP Packet 구조 중 Request Notification 구조체 |
lesmin | 0:32c20cfb2b30 | 95 | * OMP에 Request Notification 데이터 전송한다. |
lesmin | 0:32c20cfb2b30 | 96 | */ |
lesmin | 0:32c20cfb2b30 | 97 | typedef struct { |
lesmin | 0:32c20cfb2b30 | 98 | /** |
lesmin | 0:32c20cfb2b30 | 99 | *@var header |
lesmin | 0:32c20cfb2b30 | 100 | *@brief @ref GMMPHeader 참조 |
lesmin | 0:32c20cfb2b30 | 101 | */ |
lesmin | 0:32c20cfb2b30 | 102 | /** |
lesmin | 0:32c20cfb2b30 | 103 | *@var body |
lesmin | 0:32c20cfb2b30 | 104 | *@brief @ref stNotificationReqHdr 참조 |
lesmin | 0:32c20cfb2b30 | 105 | */ |
lesmin | 0:32c20cfb2b30 | 106 | GMMPHeader header; |
lesmin | 0:32c20cfb2b30 | 107 | stNotificationReqHdr body; |
lesmin | 0:32c20cfb2b30 | 108 | }Notifi_Req; |
lesmin | 0:32c20cfb2b30 | 109 | |
lesmin | 0:32c20cfb2b30 | 110 | /** |
lesmin | 0:32c20cfb2b30 | 111 | * @struct Notifi_Rsp |
lesmin | 0:32c20cfb2b30 | 112 | * @brief GMMP TCP Packet 구조 중 Response Notification 구조체 |
lesmin | 0:32c20cfb2b30 | 113 | * OMP에 Response Notification 데이터 수신한다. |
lesmin | 0:32c20cfb2b30 | 114 | */ |
lesmin | 0:32c20cfb2b30 | 115 | typedef struct { |
lesmin | 0:32c20cfb2b30 | 116 | /** |
lesmin | 0:32c20cfb2b30 | 117 | *@var header |
lesmin | 0:32c20cfb2b30 | 118 | *@brief @ref GMMPHeader 참조 |
lesmin | 0:32c20cfb2b30 | 119 | */ |
lesmin | 0:32c20cfb2b30 | 120 | /** |
lesmin | 0:32c20cfb2b30 | 121 | *@var body |
lesmin | 0:32c20cfb2b30 | 122 | *@brief @ref stNotificationRspHdr 참조 |
lesmin | 0:32c20cfb2b30 | 123 | */ |
lesmin | 0:32c20cfb2b30 | 124 | GMMPHeader header; |
lesmin | 0:32c20cfb2b30 | 125 | stNotificationRspHdr body; |
lesmin | 0:32c20cfb2b30 | 126 | }Notifi_Rsp; |
lesmin | 0:32c20cfb2b30 | 127 | #pragma pack(0) |
lesmin | 0:32c20cfb2b30 | 128 | |
lesmin | 0:32c20cfb2b30 | 129 | #endif /* STRUCT_NOTIFICATION_H_ */ |