Modified for W5500 Ethernet initialize

Dependencies:   GMMP_mbed_Ethernet_Reinit NTPClient WIZnet_Library mbed

Fork of ThingPlug_Ethernet_Example by SKTelecom_ThingPlug

Committer:
hkjung
Date:
Wed Aug 12 08:59:27 2015 +0000
Revision:
6:639c17cf11a6
Parent:
5:dc12a979116c
Ethernet interface reinitialize code added

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lesmin 0:fdbd2c6947ea 1 #ifndef CONFIG_H_
lesmin 0:fdbd2c6947ea 2 #define CONFIG_H_
lesmin 0:fdbd2c6947ea 3
lesmin 0:fdbd2c6947ea 4 /*
lesmin 0:fdbd2c6947ea 5 * Communication Module configuration starts here
lesmin 0:fdbd2c6947ea 6 */
lesmin 1:468ac9167975 7 //#define USE_SNIC_WIFI //Murata Type YD Wi-Fi
lesmin 1:468ac9167975 8 #define USE_WIZNET_W5500 //WIZnet W5500 Ethernet
lesmin 0:fdbd2c6947ea 9
lesmin 0:fdbd2c6947ea 10
lesmin 0:fdbd2c6947ea 11 /*
lesmin 0:fdbd2c6947ea 12 * SNIC configuration starts here
lesmin 0:fdbd2c6947ea 13 */
lesmin 0:fdbd2c6947ea 14 #ifdef USE_SNIC_WIFI
lesmin 0:fdbd2c6947ea 15
lesmin 1:468ac9167975 16 #define MBED_AP_SSID "TIDE867"//"tide855"
lesmin 0:fdbd2c6947ea 17 /** Securiry Options
lesmin 0:fdbd2c6947ea 18 e_SEC_OPEN = 0x00, //Open
lesmin 0:fdbd2c6947ea 19 e_SEC_WEP = 0x01, // WEP
lesmin 0:fdbd2c6947ea 20 e_SEC_WPA_TKIP = 0x02, // WPA-PSK(TKIP)
lesmin 0:fdbd2c6947ea 21 e_SEC_WPA2_AES = 0x04, // WPA2-PSK(AES)
lesmin 0:fdbd2c6947ea 22 e_SEC_WPA2_MIXED = 0x06, // WPA2-PSK(TKIP/AES)
lesmin 0:fdbd2c6947ea 23 e_SEC_WPA_AES = 0x07 // WPA-PSK(AES) **/
lesmin 1:468ac9167975 24 #define MBED_AP_SECURITY_TYPE e_SEC_WPA2_AES//e_SEC_OPEN
lesmin 1:468ac9167975 25 #define MBED_AP_SECUTIRY_KEY "tidetide"
lesmin 0:fdbd2c6947ea 26
lesmin 0:fdbd2c6947ea 27 #endif//USE_SNIC_WIFI
lesmin 0:fdbd2c6947ea 28
lesmin 0:fdbd2c6947ea 29 // Some Ethernet Shields (ex.W5500) do NOT have MAC address. use your cell phone number instead.
lesmin 0:fdbd2c6947ea 30 // 010-1234-5678 -> {0x00, 0x10, 0x12, 0x34, 0x56, 0x78};
hkjung 4:68258ee33896 31 //#define DEFAULT_MAC_ADDR {0x00, 0x10, 0x12, 0x34, 0x56, 0x78} //MAC Address
hkjung 5:dc12a979116c 32
lesmin 0:fdbd2c6947ea 33
lesmin 0:fdbd2c6947ea 34 /*
lesmin 0:fdbd2c6947ea 35 * GMMP configuration starts here
lesmin 0:fdbd2c6947ea 36 */
lesmin 0:fdbd2c6947ea 37 #define THINGPLUG_GMMP_IP_ADDR {61, 250, 21, 211} //ThingPlug GMMP 서버 IP주소
lesmin 0:fdbd2c6947ea 38 #define THINGPLUG_GMMP_PORT_NUM 31002 //마이페이지 > 서비스 정보 수정 > 서비스 기본 정보 > TCP Listen Port
lesmin 0:fdbd2c6947ea 39 #define THINGPLUG_GMMP_SERVICE_NAME "ThingPlug" //마이페이지 > 서비스 정보 수정 > 서비스 기본 정보 > 서비스 아이디
lesmin 0:fdbd2c6947ea 40
lesmin 0:fdbd2c6947ea 41 /*
lesmin 0:fdbd2c6947ea 42 * Gateway/Device configuration starts here
lesmin 0:fdbd2c6947ea 43 */
hkjung 4:68258ee33896 44 //#define THINGPLUG_GMMP_DEVICE_SERIAL_NUM "01012345678"
hkjung 4:68258ee33896 45 //#define THINGPLUG_GMMP_DEVICE_MANUFACTURER_ID "STMicro"
hkjung 4:68258ee33896 46 //#define THINGPLUG_GMMP_SUB_DEVICE_MANUFACTURER_ID "STM32"
hkjung 5:dc12a979116c 47
hkjung 5:dc12a979116c 48
hkjung 5:dc12a979116c 49 #define DEFAULT_MAC_ADDR {0x00, 0x08, 0xDC, 0x1D, 0x6A, 0x0B} // [WIZnet] Eric's MAC address #1
hkjung 4:68258ee33896 50 #define THINGPLUG_GMMP_DEVICE_SERIAL_NUM "0008DC1D6A0B"
lesmin 1:468ac9167975 51 #define THINGPLUG_GMMP_DEVICE_MANUFACTURER_ID "STMicro"
hkjung 4:68258ee33896 52 #define THINGPLUG_GMMP_SUB_DEVICE_MANUFACTURER_ID "STMicro"
lesmin 0:fdbd2c6947ea 53
hkjung 5:dc12a979116c 54 /*
hkjung 5:dc12a979116c 55 #define DEFAULT_MAC_ADDR {0x00, 0x08, 0xDC, 0x1D, 0x69, 0xF3} // [WIZnet] Eric's MAC address #2
hkjung 5:dc12a979116c 56 #define THINGPLUG_GMMP_DEVICE_SERIAL_NUM "0008DC1D69F3"
hkjung 5:dc12a979116c 57 #define THINGPLUG_GMMP_DEVICE_MANUFACTURER_ID "WIZnet"
hkjung 5:dc12a979116c 58 #define THINGPLUG_GMMP_SUB_DEVICE_MANUFACTURER_ID "WIZnet"
hkjung 5:dc12a979116c 59 */
lesmin 0:fdbd2c6947ea 60 #endif /* CONFIG_H_ */