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
GMMP 공통 정의 More...
Go to the source code of this file.
Typedefs | |
| typedef int(* | callback_Reg )(GMMPHeader *pstGMMPHeader, void *pstBody) |
| OMP서버로 부터 수신한 패킷을 제공할 콜백함수 포인트 구조체 | |
Functions | |
| C_SNIC_WifiInterface | wifi (D8, D2, NC, NC, D3) |
| moved to config.h define USE_SNIC_WIFI //Murata Type YD Wi-Fi define USE_WIZNET_W5500 | |
| void | Uninitialize () |
| GMMP 라이브러리 Uninitialize. | |
| int | Initialize (byte *serverIp, const int nPort, const char *pszDomainCode, const char *pszGWAuthID, byte *mac) |
| GMMP 라이브러리 초기화 및 기본 정보 입력 | |
| void | SetAuthKey (const char *pszAuthKey) |
| OMP로 제공 받은 AuthKey값을 저장하는 함수 | |
| void | SetGWID (const char *pszGWID) |
| OMP로 제공 받은 GW ID값을 저장하는 함수 | |
| char * | GetGWID () |
| int | SetServerInfo (byte *serverIp, int nPort, const char *pszAuthID, const char *pszDoamainCode) |
| 서버 정보 및 GW Auth ID, DomainCode를 저장한다. | |
| void | SetCallFunction (int(*pCallFunctionName)(GMMPHeader *pstGMMPHeader, void *pstBody)) |
| OMP서버로 부터 수신한 패킷을 제공할 콜백함수 저장 함수 | |
| int | GO_Reg (const char *pszGWID, const char *pszManufactureID) |
| GW,Device 등록 절차 진행 명령 함수, 옵션으로 암호화 진행 유무 Flag가 있다. | |
| int | GO_DeReg (const char *pszGWID, const char *pszDeviceID) |
| GW,Device 해지 절차 진행 명령 함수 | |
| int | GO_Profile (const char *pszGWID, const char *pszDeviceID, const long nTID) |
| int | GO_Delivery (const char *pszGWID, const char *pszDeviceID, const char cReportType, const char cMediaType, const char *pszMessageBody) |
| int | GO_Control (const char *pszGWID, const char *pszDeviceID, long nTID, const char cControlType, const char cResultCode) |
| int | GO_Notifi (const char *pszGWID, const char *pszDeviceID, const char cControlType, const char cResultCode, const char *pszMessageBody, const int nMessageBodySize) |
| int | GO_HB (const char *pszGWID) |
| int | GetReadData (GMMPHeader *pstGMMPHeader, void **pBody) |
| TCP Always On 에서 사용하는 함수 Thread를 생성 하고 이 함수를 연결하여 사용한다. | |
| long | Char2int (void *pBuffer, int nSize) |
| char 타입의 데이터를 int로 변환한다. | |
| void | InitMemory () |
| 내부 변수 초기화 | |
Variables | |
| byte | g_serverIp [LEN_IP] |
| moved to config.h define MBED_AP_SSID "FON"//"TIDE867"//"tide855" /** Securiry Options e_SEC_OPEN = 0x00, //Open e_SEC_WEP = 0x01, // WEP e_SEC_WPA_TKIP = 0x02, // WPA-PSK(TKIP) e_SEC_WPA2_AES = 0x04, // WPA2-PSK(AES) e_SEC_WPA2_MIXED = 0x06, // WPA2-PSK(TKIP/AES) e_SEC_WPA_AES = 0x07 // WPA-PSK(AES) | |
| int | g_nServerPort = 0 |
| 서버 Port 정보를 저장한다. | |
| char | g_szAuthID [LEN_AUTH_ID] |
| OMP Portal을 통해 사전에 등록된 M2M GW 의 Serial Number 저장 변수, 자동화를 위해 사용된다. | |
| char | g_szAuthKey [LEN_AUTH_KEY] |
| 등록 절차 시 OMP에서 할당 받은 AuthKey 저장 변수, 자동화를 위해 사용된다. | |
| char | g_szDomainCode [LEN_DOMAIN_CODE] |
| OMP Portal을 통해 사전에 등록된 서비스 영역별 구분 코드 저장 변수, 자동화를 위해 사용된다. | |
| char | g_szGWID [LEN_GW_ID] |
| OMP에서 할당 받은 Gateway의 ID 문자열 저장 변수, 자동화를 위해 사용된다. | |
| callback_Reg | g_CallFunctionRegRecv = NULL |
| OMP서버로 부터 수신한 패킷을 제공할 콜백함수 포인트 변수. | |
Detailed Description
GMMP 공통 정의
- Date:
- 2015/07/20
- Version:
- 0.0.1.0
Definition in file GMMP.cpp.
Typedef Documentation
| typedef int(* callback_Reg)(GMMPHeader *pstGMMPHeader, void *pstBody) |
Function Documentation
| long Char2int | ( | void * | pBuffer, |
| int | nSize | ||
| ) |
| int GetReadData | ( | GMMPHeader * | pstGMMPHeader, |
| void ** | pBody | ||
| ) |
TCP Always On 에서 사용하는 함수
Thread를 생성 하고 이 함수를 연결하여 사용한다.
- Parameters:
-
pstGMMPHeader GMMPHeader 구조체 포인트 pBody Body 메시지 구조체 포인트
- Returns:
- 성공 : GMMMP_SUCCESS, 실패 : ErrorCode.h 참조
| int Initialize | ( | byte * | serverIp, |
| const int | nPort, | ||
| const char * | pszDomainCode, | ||
| const char * | pszGWAuthID, | ||
| byte * | mac | ||
| ) |
GMMP 라이브러리 초기화 및 기본 정보 입력
- Parameters:
-
serverIp 접속할 서버 IP, 4 byte array. g_serverIp에 저장된다, nPort 접속할 서버 port, g_nServerPort에 저장된다. pszDomainCode OMP Portal을 통해 등록된 서비스 코드, g_szDomainCode에 저장된다, pszGWAuthID M2M GW 의 Serial Number 값이며, MSISDN 또는 MAC Address값을 사용할 수도 있다. g_szAuthID에 저장된다. nGMMPMode 로그 저장 유무, GMMP_OFF_LOG, GMMP_ON_LOG nErrorLevel 로그 출력 레벨 nNetwrokType 통신 타입 mac MAC Address. 6 byte array.
- Returns:
- 성공 : GMMP_SUCCESS, 실패: 1이상 , 에러코드 참조
| void SetAuthKey | ( | const char * | pszAuthKey ) |
| void SetCallFunction | ( | int(*)(GMMPHeader *pstGMMPHeader, void *pstBody) | pCallFunctionName ) |
| void SetGWID | ( | const char * | pszGWID ) |
| int SetServerInfo | ( | byte * | serverIp, |
| int | nPort, | ||
| const char * | pszAuthID, | ||
| const char * | pszDomainCode | ||
| ) |
| C_SNIC_WifiInterface wifi | ( | D8 | , |
| D2 | , | ||
| NC | , | ||
| NC | , | ||
| D3 | |||
| ) |
moved to config.h define USE_SNIC_WIFI //Murata Type YD Wi-Fi define USE_WIZNET_W5500
Variable Documentation
| int g_nServerPort = 0 |
| byte g_serverIp[LEN_IP] |
moved to config.h define MBED_AP_SSID "FON"//"TIDE867"//"tide855" /** Securiry Options e_SEC_OPEN = 0x00, //Open e_SEC_WEP = 0x01, // WEP e_SEC_WPA_TKIP = 0x02, // WPA-PSK(TKIP) e_SEC_WPA2_AES = 0x04, // WPA2-PSK(AES) e_SEC_WPA2_MIXED = 0x06, // WPA2-PSK(TKIP/AES) e_SEC_WPA_AES = 0x07 // WPA-PSK(AES)
서버 IP 정보를 저장한다.
| char g_szAuthID[LEN_AUTH_ID] |
| char g_szAuthKey[LEN_AUTH_KEY] |
| char g_szDomainCode[LEN_DOMAIN_CODE] |
Generated on Wed Jul 13 2022 05:33:29 by
1.7.2
