Index: asp3_tinet_ecnl_rx/trunk/app3_human_detec/Debug/Makefile
===================================================================
--- asp3_tinet_ecnl_rx/trunk/app3_human_detec/Debug/Makefile	(revision 337)
+++ asp3_tinet_ecnl_rx/trunk/app3_human_detec/Debug/Makefile	(revision 340)
@@ -179,6 +179,9 @@
 CFLAGS = $(COPTS) $(CDEFS) $(INCLUDES)
 
+APPLDIRS := $(APPLDIRS) ../../ntshell/echonet
 APPL_COBJS := echonet.o echonet_agent.o echonet_dbg.o echonet_fbs.o echonet_task.o echonet_udp_task.o echonet_udp6_task.o fbs_string.o
-APPL_COBJS := $(APPL_COBJS) ping.o ping6.o resolver.o dhcp4_cli.o netapp_subr.o 
+APPLDIRS := $(APPLDIRS) $(SRCDIR)/$(TINETDIR)/netapp
+APPL_COBJS := $(APPL_COBJS) ping.o ping6.o resolver.o dhcp4_cli.o netapp_subr.o ntp_cli.o net_misc.o
+APPLDIRS := $(APPLDIRS) ../../ntshell/tlsf ../../ntshell/fatfs ../../ntshell/ntshell ../../ntshell/ntshell/core ../../ntshell/ntshell/util ../../ntshell/src
 APPL_COBJS := $(APPL_COBJS) mbed_api.o netcmd.o fdtable.o io_stub.o socket_stub.o ffarch.o diskio.o ff.o mmc_rspi.o ccsbcs.o ntshell.o text_editor.o text_history.o usrcmd.o vtrecv.o vtsend.o ntlibc.o ntstdio.o ntopt.o syscall.o tlsf.o
 
@@ -187,5 +190,5 @@
 #
 APPLNAME = app3_human_detec
-APPLDIRS = ../src ../../ntshell/tlsf ../../ntshell/fatfs ../../ntshell/echonet ../../ntshell/ntshell ../../ntshell/ntshell/core ../../ntshell/ntshell/util ../../ntshell/src $(SRCDIR)/$(TINETDIR)/netapp
+APPLDIRS := $(APPLDIRS) ../src
 APPL_CFG = main.cfg
 APPL_CDL = main.cdl
Index: asp3_tinet_ecnl_rx/trunk/app3_human_detec/DebugCitrus/Makefile
===================================================================
--- asp3_tinet_ecnl_rx/trunk/app3_human_detec/DebugCitrus/Makefile	(revision 337)
+++ asp3_tinet_ecnl_rx/trunk/app3_human_detec/DebugCitrus/Makefile	(revision 340)
@@ -179,6 +179,9 @@
 CFLAGS = $(COPTS) $(CDEFS) $(INCLUDES)
 
+APPLDIRS := $(APPLDIRS) ../../ntshell/echonet
 APPL_COBJS := echonet.o echonet_agent.o echonet_dbg.o echonet_fbs.o echonet_task.o echonet_udp_task.o echonet_udp6_task.o fbs_string.o
-APPL_COBJS := $(APPL_COBJS) ping.o ping6.o resolver.o dhcp4_cli.o netapp_subr.o 
+APPLDIRS := $(APPLDIRS) $(SRCDIR)/$(TINETDIR)/netapp
+APPL_COBJS := $(APPL_COBJS) ping.o ping6.o resolver.o dhcp4_cli.o netapp_subr.o ntp_cli.o net_misc.o
+APPLDIRS := $(APPLDIRS) ../../ntshell/tlsf ../../ntshell/fatfs ../../ntshell/ntshell ../../ntshell/ntshell/core ../../ntshell/ntshell/util ../../ntshell/src
 APPL_COBJS := $(APPL_COBJS) mbed_api.o netcmd.o fdtable.o io_stub.o socket_stub.o ffarch.o diskio.o ff.o mmc_rspi.o ccsbcs.o ntshell.o text_editor.o text_history.o usrcmd.o vtrecv.o vtsend.o ntlibc.o ntstdio.o ntopt.o syscall.o tlsf.o
 
@@ -187,5 +190,5 @@
 #
 APPLNAME = app3_human_detec
-APPLDIRS = ../src ../../ntshell/tlsf ../../ntshell/fatfs ../../ntshell/echonet ../../ntshell/ntshell ../../ntshell/ntshell/core ../../ntshell/ntshell/util ../../ntshell/src $(SRCDIR)/$(TINETDIR)/netapp
+APPLDIRS := $(APPLDIRS) ../src
 APPL_CFG = main.cfg
 APPL_CDL = main.cdl
Index: asp3_tinet_ecnl_rx/trunk/app3_human_detec/DebugEther/Makefile
===================================================================
--- asp3_tinet_ecnl_rx/trunk/app3_human_detec/DebugEther/Makefile	(revision 337)
+++ asp3_tinet_ecnl_rx/trunk/app3_human_detec/DebugEther/Makefile	(revision 340)
@@ -177,6 +177,9 @@
 CFLAGS = $(COPTS) $(CDEFS) $(INCLUDES)
 
+APPLDIRS := $(APPLDIRS) ../../ntshell/echonet
 APPL_COBJS := echonet.o echonet_agent.o echonet_dbg.o echonet_fbs.o echonet_task.o echonet_udp_task.o echonet_udp6_task.o fbs_string.o
-APPL_COBJS := $(APPL_COBJS) ping.o ping6.o resolver.o dhcp4_cli.o netapp_subr.o 
+APPLDIRS := $(APPLDIRS) $(SRCDIR)/$(TINETDIR)/netapp
+APPL_COBJS := $(APPL_COBJS) ping.o ping6.o resolver.o dhcp4_cli.o netapp_subr.o ntp_cli.o net_misc.o
+APPLDIRS := $(APPLDIRS) ../../ntshell/tlsf ../../ntshell/fatfs ../../ntshell/ntshell ../../ntshell/ntshell/core ../../ntshell/ntshell/util ../../ntshell/src
 APPL_COBJS := $(APPL_COBJS) mbed_api.o netcmd.o fdtable.o io_stub.o socket_stub.o ffarch.o diskio.o ff.o mmc_rspi.o ccsbcs.o ntshell.o text_editor.o text_history.o usrcmd.o vtrecv.o vtsend.o ntlibc.o ntstdio.o ntopt.o syscall.o tlsf.o
 
@@ -185,5 +188,5 @@
 #
 APPLNAME = app3_human_detec
-APPLDIRS = ../src ../../ntshell/tlsf ../../ntshell/fatfs ../../ntshell/echonet ../../ntshell/ntshell ../../ntshell/ntshell/core ../../ntshell/ntshell/util ../../ntshell/src $(SRCDIR)/$(TINETDIR)/netapp
+APPLDIRS := $(APPLDIRS) ../src
 APPL_CFG = main.cfg
 APPL_CDL = main.cdl
Index: asp3_tinet_ecnl_rx/trunk/app3_human_detec/src/echonet_main.c
===================================================================
--- asp3_tinet_ecnl_rx/trunk/app3_human_detec/src/echonet_main.c	(revision 337)
+++ asp3_tinet_ecnl_rx/trunk/app3_human_detec/src/echonet_main.c	(revision 340)
@@ -53,5 +53,5 @@
 
 /* TODO: メーカーコードを設定 */
-#define MAKER_CODE	0x00, 0x00, 0xB3	/* TOPPERSプロジェクト */
+#define MAKER_CODE	{ 0x00, 0x00, 0xB3 }	/* TOPPERSプロジェクト */
 
 /* ノードプロファイルオブジェクト */
Index: asp3_tinet_ecnl_rx/trunk/app3_human_detec/src/main.c
===================================================================
--- asp3_tinet_ecnl_rx/trunk/app3_human_detec/src/main.c	(revision 337)
+++ asp3_tinet_ecnl_rx/trunk/app3_human_detec/src/main.c	(revision 340)
@@ -75,4 +75,5 @@
 #include "ntshell_main.h"
 #include <btstack/utils.h>
+#include "ntp_cli.h"
 
 ID ws_api_mailboxid = MAIN_DATAQUEUE;
@@ -301,4 +302,7 @@
 	}
 
+	if (link_up && up)
+		ntp_cli_execute();
+
 	ntshell_change_netif_link(link_up, up);
 
@@ -308,4 +312,5 @@
 extern int usrcmd_ping(int argc, char **argv);
 extern int usrcmd_dhcp4c(int argc, char **argv);
+extern int usrcmd_dnsc(int argc, char **argv);
 
 static const cmd_table_t cmdlist[] = {
@@ -317,6 +322,8 @@
 	{"mkdir", "Make directory", usrcmd_mkdir},
 	{"hexdump", "Hex dump", usrcmd_hexdump},
+	{"date", "print date and time", usrcmd_date},
 	{"ping", "ping", usrcmd_ping},
 	{"dhcpc", "DHCP Client rel/renew/info", usrcmd_dhcp4c},
+	{"dnsc", "DNS client", usrcmd_dnsc },
 	{"info", "This is a description text string for info command.", usrcmd_info},
 	{"exit", "Exit Natural Tiny Shell", usrcmd_exit},
Index: asp3_tinet_ecnl_rx/trunk/app3_human_detec/src/main.cfg
===================================================================
--- asp3_tinet_ecnl_rx/trunk/app3_human_detec/src/main.cfg	(revision 337)
+++ asp3_tinet_ecnl_rx/trunk/app3_human_detec/src/main.cfg	(revision 340)
@@ -58,5 +58,5 @@
 /* DHCP クライアント */
 #include "netapp/dhcp4_cli.h"
-INCLUDE("netapp/dhcp4_cli_asp.cfg");
+//INCLUDE("netapp/dhcp4_cli_asp.cfg");
 INCLUDE("netapp/tinet_dhcp4_cli.cfg");
 
@@ -65,4 +65,12 @@
 INCLUDE("netapp/resolver_asp.cfg");
 INCLUDE("netapp/tinet_resolver.cfg");
+
+/* NTPクライアント */
+#include "ntp_cli.h"
+//INCLUDE("ntp_cli.cfg");
+INCLUDE("tinet_ntp_cli.cfg");
+
+#include "net_misc.h"
+INCLUDE("net_misc.cfg");
 
 /* FatFs */
