Ignore:
Timestamp:
Apr 13, 2018, 1:00:30 PM (6 years ago)
Author:
coas-nagasima
Message:

NTPクライアント処理を追加

Location:
asp3_tinet_ecnl_rx/trunk/app1_usb_watt_meter
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • asp3_tinet_ecnl_rx/trunk/app1_usb_watt_meter/Debug/Makefile

    r337 r340  
    188188CFLAGS = $(COPTS) $(CDEFS) $(INCLUDES)
    189189
     190APPLDIRS := $(APPLDIRS) ../../ntshell/echonet
    190191APPL_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
    191 APPL_COBJS := $(APPL_COBJS) ping.o ping6.o resolver.o dhcp4_cli.o netapp_subr.o
     192APPLDIRS := $(APPLDIRS) $(SRCDIR)/$(TINETDIR)/netapp
     193APPL_COBJS := $(APPL_COBJS) ping.o ping6.o resolver.o dhcp4_cli.o netapp_subr.o ntp_cli.o net_misc.o
     194APPLDIRS := $(APPLDIRS) ../../ntshell/tlsf ../../ntshell/fatfs ../../ntshell/ntshell ../../ntshell/ntshell/core ../../ntshell/ntshell/util ../../ntshell/src
    192195APPL_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
    193196
     
    196199#
    197200APPLNAME = app1_usb_watt_meter
    198 APPLDIRS = ../src ../../ntshell/tlsf ../../ntshell/fatfs ../../ntshell/echonet ../../ntshell/ntshell ../../ntshell/ntshell/core ../../ntshell/ntshell/util ../../ntshell/src $(SRCDIR)/$(TINETDIR)/netapp
     201APPLDIRS := $(APPLDIRS) ../src
    199202APPL_CFG = main.cfg
    200203APPL_CDL = main.cdl
  • asp3_tinet_ecnl_rx/trunk/app1_usb_watt_meter/DebugCitrus/Makefile

    r337 r340  
    188188CFLAGS = $(COPTS) $(CDEFS) $(INCLUDES)
    189189
     190APPLDIRS := $(APPLDIRS) ../../ntshell/echonet
    190191APPL_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
    191 APPL_COBJS := $(APPL_COBJS) ping.o ping6.o resolver.o dhcp4_cli.o netapp_subr.o
     192APPLDIRS := $(APPLDIRS) $(SRCDIR)/$(TINETDIR)/netapp
     193APPL_COBJS := $(APPL_COBJS) ping.o ping6.o resolver.o dhcp4_cli.o netapp_subr.o ntp_cli.o net_misc.o
     194APPLDIRS := $(APPLDIRS) ../../ntshell/tlsf ../../ntshell/fatfs ../../ntshell/ntshell ../../ntshell/ntshell/core ../../ntshell/ntshell/util ../../ntshell/src
    192195APPL_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
    193196
     
    196199#
    197200APPLNAME = app1_usb_watt_meter
    198 APPLDIRS = ../src ../../ntshell/tlsf ../../ntshell/fatfs ../../ntshell/echonet ../../ntshell/ntshell ../../ntshell/ntshell/core ../../ntshell/ntshell/util ../../ntshell/src $(SRCDIR)/$(TINETDIR)/netapp
     201APPLDIRS := $(APPLDIRS) ../src
    199202APPL_CFG = main.cfg
    200203APPL_CDL = main.cdl
  • asp3_tinet_ecnl_rx/trunk/app1_usb_watt_meter/DebugEther/Makefile

    r337 r340  
    188188CFLAGS = $(COPTS) $(CDEFS) $(INCLUDES)
    189189
     190APPLDIRS := $(APPLDIRS) ../../ntshell/echonet
    190191APPL_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
    191 APPL_COBJS := $(APPL_COBJS) ping.o ping6.o resolver.o dhcp4_cli.o netapp_subr.o
     192APPLDIRS := $(APPLDIRS) $(SRCDIR)/$(TINETDIR)/netapp
     193APPL_COBJS := $(APPL_COBJS) ping.o ping6.o resolver.o dhcp4_cli.o netapp_subr.o ntp_cli.o net_misc.o
     194APPLDIRS := $(APPLDIRS) ../../ntshell/tlsf ../../ntshell/fatfs ../../ntshell/ntshell ../../ntshell/ntshell/core ../../ntshell/ntshell/util ../../ntshell/src
    192195APPL_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
    193196
     
    196199#
    197200APPLNAME = app1_usb_watt_meter
    198 APPLDIRS = ../src ../../ntshell/tlsf ../../ntshell/fatfs ../../ntshell/echonet ../../ntshell/ntshell ../../ntshell/ntshell/core ../../ntshell/ntshell/util ../../ntshell/src $(SRCDIR)/$(TINETDIR)/netapp
     201APPLDIRS := $(APPLDIRS) ../src
    199202APPL_CFG = main.cfg
    200203APPL_CDL = main.cdl
  • asp3_tinet_ecnl_rx/trunk/app1_usb_watt_meter/src/echonet_main.c

    r337 r340  
    6161
    6262/* TODO: メーカーコードを設定 */
    63 #define MAKER_CODE      0x00, 0x00, 0xB3        /* TOPPERSプロジェクト */
     63#define MAKER_CODE      { 0x00, 0x00, 0xB3 }    /* TOPPERSプロジェクト */
    6464
    6565/* ノードプロファイルオブジェクト */
  • asp3_tinet_ecnl_rx/trunk/app1_usb_watt_meter/src/main.c

    r337 r340  
    7676#include <btstack/utils.h>
    7777#include "client.h"
     78#include "ntp_cli.h"
    7879
    7980ID ws_api_mailboxid = MAIN_DATAQUEUE;
     
    309310        }
    310311
     312        if (link_up && up)
     313                ntp_cli_execute();
     314
    311315        ntshell_change_netif_link(link_up, up);
    312316
     
    338342extern int usrcmd_dhcp4c(int argc, char **argv);
    339343extern int usrcmd_dnsc(int argc, char **argv);
     344extern int usrcmd_ntpc(int argc, char **argv);
    340345
    341346static const cmd_table_t cmdlist[] = {
     
    347352        {"mkdir", "Make directory", usrcmd_mkdir},
    348353        {"hexdump", "Hex dump", usrcmd_hexdump},
     354        {"date", "print date and time", usrcmd_date},
    349355        {"curl", "Command lines or scripts to transfer data", curl_main},
    350356        {"ping", "ping", usrcmd_ping},
    351         {"dhcpc", "DHCP client rel/renew/info", usrcmd_dhcp4c},
     357        {"dhcpc", "DHCP Client rel/renew/info", usrcmd_dhcp4c},
    352358        {"dnsc", "DNS client", usrcmd_dnsc },
     359        {"ntpc", "NTP client", usrcmd_ntpc },
    353360        {"logupload", "Upload log to server", cmd_logupload},
    354361        {"info", "This is a description text string for info command.", usrcmd_info},
  • asp3_tinet_ecnl_rx/trunk/app1_usb_watt_meter/src/main.cfg

    r337 r340  
    5858/* DHCP クライアント */
    5959#include "netapp/dhcp4_cli.h"
    60 INCLUDE("netapp/dhcp4_cli_asp.cfg");
     60//INCLUDE("netapp/dhcp4_cli_asp.cfg");
    6161INCLUDE("netapp/tinet_dhcp4_cli.cfg");
    6262
     
    6565INCLUDE("netapp/resolver_asp.cfg");
    6666INCLUDE("netapp/tinet_resolver.cfg");
     67
     68/* NTPクライアント */
     69#include "ntp_cli.h"
     70//INCLUDE("ntp_cli.cfg");
     71INCLUDE("tinet_ntp_cli.cfg");
     72
     73#include "net_misc.h"
     74INCLUDE("net_misc.cfg");
    6775
    6876/* FatFs */
Note: See TracChangeset for help on using the changeset viewer.