完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
本帖最后由 lustao 于 2021-12-7 12:49 编辑 接https://bbs.elecfans.com/jishu_2208689_1_1.html#comment_top文章 改app_key_user.c程序
app_led.c
参考基于W800开发板的智能小灯开发 https://bbs.elecfans.com/jishu_2210614_1_1.html#comment_top Build target ' lst BuildSet ' "----------Building project:[ lst - BuildSet ]----------" archiving libaos.a ... archiving libat.a ... archiving libble_host.a ... archiving libbreeze.a ... archiving liblwip.a ... archiving libmbedtls.a ... archiving libsmartliving.a ... archiving libwifi_provisioning.a ... archiving libbutton.a ... archiving libcjson.a ... archiving libers.a ... archiving libnetmgr.a ... archiving libntp.a ... archiving libaos_hal.a ... archiving libchip_w800.a ... archiving libcli.a ... archiving libcsi.a ... archiving libdrivers.a ... archiving libdrv_bt_w800.a ... archiving libdrv_wifi_w800.a ... archiving libhal_csi.a ... archiving libkv.a ... archiving libminilibc.a ... archiving libpartition.a ... archiving librhino_arch.a ... archiving librhino_pwrmgmt.a ... archiving librhino.a ... archiving libsec_crypto.a ... archiving libulog.a ... archiving libuservice.a ... archiving libw800_evb.a ... csky-elfabiv2-gcc -c app/src/app_key_user.c -DUSE_AOS -DUSE_AT -DUSE_BLE_HOST -DUSE_BREEZE -DUSE_LWIP -DUSE_MBEDTLS -DUSE_SMARTLIVING -DUSE_WIFI_PROVISIONING -DUSE_BUTTON -DUSE_CJSON -DUSE_ERS -DUSE_NETMGR -DUSE_NTP -DUSE_AOS_HAL -DUSE_CHIP_W800 -DUSE_CLI -DUSE_CSI -DUSE_DRIVERS -DUSE_DRV_BT_W800 -DUSE_DRV_WIFI_W800 -DUSE_HAL_CSI -DUSE_KV -DUSE_MINILIBC -DUSE_PARTITION -DUSE_RHINO_ARCH -DUSE_RHINO_PWRMGMT -DUSE_RHINO -DUSE_SDK_CHIP_W800 -DUSE_SEC_CRYPTO -DUSE_ULOG -DUSE_USERVICE -DUSE_W800_EVB -DTLS_CONFIG_CPU_XT804=1 -DGCC_COMPILE=1 -mhard-float -fdata-sections -ffunction-sections -DAOS_COMP_CLI=y -DBLE_4_2=1 -DBOARD_W800=1 -DCLI_CONFIG_INBUF_SIZE=256 -DCLI_CONFIG_MAX_ARG_NUM=16 -DCLI_CONFIG_MAX_COMMANDS=64 -DCLI_CONFIG_MAX_ONCECMD_NUM=4 -DCLI_CONFIG_OUTBUF_SIZE=512 -DCLI_CONFIG_TASK_PRIORITY=60 -DCONFIG_ARCH_INTERRUPTSTACK=4096 -DCONFIG_BLE_MESH_PROV=1 -DCONFIG_BT=1 -DCONFIG_BT_CENTRAL=1 -DCONFIG_BT_DEBUG_LOG=1 -DCONFIG_BT_HCI_CMD_COUNT=6 -DCONFIG_BT_L2CAP_RX_MTU=247 -DCONFIG_BT_L2CAP_TX_BUF_COUNT=8 -DCONFIG_BT_L2CAP_TX_MTU=247 -DCONFIG_BT_PERIPHERAL=1 -DCONFIG_BT_RX_BUF_COUNT=4 -DCONFIG_BT_RX_BUF_LEN=512 -DCONFIG_BT_RX_STACK_SIZE=4096 -DCONFIG_BT_SMP_ALLOW_UNAUTH_OVERWRITE=1 -DCONFIG_CJSON_WITHOUT_DOUBLE=y -DCONFIG_CLI=1 -DCONFIG_CSI="csi1" -DCONFIG_CSI_V1=1 -DCONFIG_DEBUG=1 -DCONFIG_DYN_TASK_STACK_SIZE=256 -DCONFIG_IDLE_TASK_STACK_SIZE=256 -DCONFIG_INIT_TASK_STACK_SIZE=4096 -DCONFIG_KERNEL_RHINO=1 -DCONFIG_KERNEL_TIMER_STACK_SIZE=1024 -DCONFIG_KERNEL_WORKQUEUE=1 -DCONFIG_KV_SMART=1 -DCONFIG_NET_BUF=1 -DCONFIG_TCPIP=1 -DCONFIG_UART_RECV_BUF_SIZE=1024 -DCONFIG_USING_TLS=1 -DCONFIG_WIFI_PROV_BLE=1 -DEN_COMBO_NET=1 -DEN_LONG_MTU=1 -DMBEDTLS_SSL_MAX_CONTENT_LEN=12500 -DOTA_ENABLED=1 -mcpu=ck804ef -mhard-float -O2 -g -MMD -MP -MTObj/src_app_key_user.o -MFObj/src_app_key_user.d -o Obj/src_app_key_user.o -I../__workspace_pack__/aos/v7.4.3/include -I../__workspace_pack__/aos/v7.4.3/include/devices -I../__workspace_pack__/aos/v7.4.3/src/adapter/rhino/debug/include -I../__workspace_pack__/at/v7.4.3/include -I../__workspace_pack__/ble_host/v7.4.3/include -I../__workspace_pack__/ble_host/v7.4.3/bt_host -I../__workspace_pack__/ble_host/v7.4.3/bt_host/port/include -I../__workspace_pack__/ble_host/v7.4.3/bt_host/include -I../__workspace_pack__/ble_host/v7.4.3/ble_profiles/include -I../__workspace_pack__/ble_host/v7.4.3/bt_crypto/tinycrypt/include -I../__workspace_pack__/ble_host/v7.4.3/bt_crypto/include -I../__workspace_pack__/breeze/v7.4.3/api -I../__workspace_pack__/breeze/v7.4.3/hal/include -I../__workspace_pack__/breeze/v7.4.3/include -I../__workspace_pack__/lwip/v7.4.3/include -I../__workspace_pack__/mbedtls/v7.4.3/include -I../__workspace_pack__/mbedtls/v7.4.3/platform/yoc/include -I../__workspace_pack__/smartliving/v7.4.3/include -I../__workspace_pack__/wifi_provisioning/v7.4.3/include -I../__workspace_pack__/wifi_provisioning/v7.4.3/softap -I../__workspace_pack__/button/v7.4.3/include -I../__workspace_pack__/cjson/v7.4.3/include -I../__workspace_pack__/ers/v7.4.3/at/at_socket -I../__workspace_pack__/ers/v7.4.3/at -I../__workspace_pack__/ers/v7.4.3/at/at_ble -I../__workspace_pack__/ers/v7.4.3/at/at_mesh -I../__workspace_pack__/netmgr/v7.4.3/include -I../__workspace_pack__/ntp/v7.4.3/include -I../__workspace_pack__/aos_hal/v7.4.3/include -I../__workspace_pack__/chip_w800/v7.4.3/include -I../__workspace_pack__/chip_w800/v7.4.3/wmsdk/include -I../__workspace_pack__/chip_w800/v7.4.3/wmsdk/include/app -I../__workspace_pack__/chip_w800/v7.4.3/wmsdk/include/arch/xt804 -I../__workspace_pack__/chip_w800/v7.4.3/wmsdk/include/arch/xt804/csi_core -I../__workspace_pack__/chip_w800/v7.4.3/wmsdk/include/bt -I../__workspace_pack__/chip_w800/v7.4.3/wmsdk/include/driver -I../__workspace_pack__/chip_w800/v7.4.3/wmsdk/include/os -I../__workspace_pack__/chip_w800/v7.4.3/wmsdk/include/platform -I../__workspace_pack__/chip_w800/v7.4.3/wmsdk/include/wifi -I../__workspace_pack__/chip_w800/v7.4.3/wmsdk/platform/inc -I../__workspace_pack__/chip_w800/v7.4.3/wmsdk/platform/common/crypto -I../__workspace_pack__/chip_w800/v7.4.3/wmsdk/platform/common/params -I../__workspace_pack__/cli/v7.4.3/include/ -I../__workspace_pack__/cli/v7.4.3/ -I../__workspace_pack__/csi/v7.4.3/csi1/include -I../__workspace_pack__/drivers/v7.4.3/csi1/include -I../__workspace_pack__/drv_bt_w800/v7.4.3/ -I../__workspace_pack__/drv_wifi_w800/v7.4.3/ -I../__workspace_pack__/kv/v7.4.3/include -I../__workspace_pack__/minilibc/v7.4.3/include -I../__workspace_pack__/partition/v7.4.3/include -I../__workspace_pack__/rhino_arch/v7.4.3/include -I../__workspace_pack__/rhino_pwrmgmt/v7.4.3/include -I../__workspace_pack__/rhino/v7.4.3/include -I../__workspace_pack__/sec_crypto/v7.4.3/include -I../__workspace_pack__/sec_crypto/v7.4.3/crypto/include -I../__workspace_pack__/ulog/v7.4.3/include -I../__workspace_pack__/uservice/v7.4.3/include -I../__workspace_pack__/w800_evb/v7.4.3/include -Iapp/include csky-elfabiv2-gcc -o Obj/lst.elf -Wl,-ckmap="yoc.map" -Wl,-zmax-page-size=1024 @lst.txt -mhard-float -nostartfiles -Wl,--gc-sections -T../__workspace_pack__/w800_evb/v7.4.3/configs/gcc_eflash.ld -mcpu=ck804ef -LObj -L../__workspace_pack__/aos/v7.4.3/lib -L../__workspace_pack__/at/v7.4.3/lib -L../__workspace_pack__/ble_host/v7.4.3/lib -L../__workspace_pack__/breeze/v7.4.3/lib -L../__workspace_pack__/lwip/v7.4.3/lib -L../__workspace_pack__/mbedtls/v7.4.3/lib -L../__workspace_pack__/smartliving/v7.4.3/lib -L../__workspace_pack__/wifi_provisioning/v7.4.3/lib -L../__workspace_pack__/button/v7.4.3/lib -L../__workspace_pack__/cjson/v7.4.3/lib -L../__workspace_pack__/ers/v7.4.3/lib -L../__workspace_pack__/netmgr/v7.4.3/lib -L../__workspace_pack__/ntp/v7.4.3/lib -L../__workspace_pack__/aos_hal/v7.4.3/lib -L../__workspace_pack__/chip_w800/v7.4.3/lib -L../__workspace_pack__/cli/v7.4.3/lib -L../__workspace_pack__/csi/v7.4.3/lib -L../__workspace_pack__/drivers/v7.4.3/lib -L../__workspace_pack__/drv_bt_w800/v7.4.3/lib -L../__workspace_pack__/drv_bt_w800/v7.4.3/lib -L../__workspace_pack__/drv_wifi_w800/v7.4.3/lib -L../__workspace_pack__/drv_wifi_w800/v7.4.3/lib -L../__workspace_pack__/hal_csi/v7.4.3/lib -L../__workspace_pack__/kv/v7.4.3/lib -L../__workspace_pack__/minilibc/v7.4.3/lib -L../__workspace_pack__/partition/v7.4.3/lib -L../__workspace_pack__/rhino_arch/v7.4.3/lib -L../__workspace_pack__/rhino_pwrmgmt/v7.4.3/lib -L../__workspace_pack__/rhino/v7.4.3/lib -L../__workspace_pack__/sdk_chip_w800/v7.4.3/lib -L../__workspace_pack__/sec_crypto/v7.4.3/lib -L../__workspace_pack__/ulog/v7.4.3/lib -L../__workspace_pack__/uservice/v7.4.3/lib -L../__workspace_pack__/w800_evb/v7.4.3/lib -Wl,--whole-archive -laos -lat -lble_host -lbreeze -llwip -lmbedtls -lsmartliving -lwifi_provisioning -lbutton -lcjson -lers -lnetmgr -lntp -laos_hal -lchip_w800 -lcli -lcsi -ldrivers -lwmbt -ldrv_bt_w800 -lwmwlan -ldrv_wifi_w800 -lhal_csi -lkv -lminilibc -lpartition -lrhino_arch -lrhino_pwrmgmt -lrhino -lsec_crypto -lulog -luservice -lw800_evb -Wl,--no-whole-archive -lm csky-elfabiv2-objcopy -O ihex .//Obj/lst.elf .//Obj/lst.ihex csky-elfabiv2-objdump -S .//Obj/lst.elf > .//Lst/lst.asm size of target: text data bss dec hex filename 699384 5264 191984 896632 dae78 ./Obj/lst.elf checksum value of target:0xD14CC508 (4,323,860) Obj/lst.elf is modified at: 2021/12/7/Öܶþ 11:20:12 Executing Post Build commands ... [INFO] Generated output files ... ---------------------------------------------------------------- boot, 0, 0, 0x08002400, 0x0000dc00, 0x08010000, boot misc, 0, 0, 0x08010000, 0x000c0000, 0x080d0000 prim, 1, 2, 0x080d0400, 0x000efc00, 0x081c0000, prim imtb, 0, 0, 0x081c0000, 0x00001000, 0x081c1000, imtb kv, 0, 0, 0x081c1000, 0x00008000, 0x081c9000 boot, 43088 bytes prim, 704648 bytes imtb, 4096 bytes ---------------------------------------------------------------- Create wm bin files generate normal image completed. generate normal image completed. compress binary completed. generate compressed image completed. generate normal image completed. Done ====0 error(s), 0 warning(s), total time : 29s66ms==== 配对找不到800的wifi. hal_devinfo_dn:DeviceName hal_devinfo_ds:DeviceSecret hal_devinfo_pk:ProductKey hal_devinfo_ps:Product Secret hal_devinfo_pid:Product Id 配 以上五项信息, kv set wifi_ssid TP-LINK_4F1578 //test视实际情况修改 kv set wifi_psk 87654321 //123456视实际情况修改 配 联网信息 [ 122.040] [ 122.060] [ 122.100]app_net Start wifi network [ 122.120] [ 122.220]netmgr start wifi [ 122.950]netmgr_wifi ssid{TP-LINK_4F1578}, psk{87654321} [ 143.550] [ 143.570]netmgr start dhcp [ 148.660]netmgr IP: 192.168.1.108 [ 148.740] [ 149.170] [ 149.180] [ 149.200[prt] log level set as: [ ]<2D ] >SL smartliving client started [ 149.290] ................................. PK : a1RQsMMRUfv DN : 7z9mtyxEuToLljIG0jvF DS : 01b12476d0 PID : example.demo.partner-id MID : example.demo.module-id URL : https://iot-auth-global.aliyuncs.com/auth/bootstrap SM : TLS + Guider TS : 2524608000000 ................................. [ 149.570] [ 149.650] [ 149.670]tls Conn /iot-auth-global.aliyuncs.com/443 [ 149.990] [ 152.410] [ 152.420]tls certverify ret 0x00 [ 153.250]tls discon ................................. PK : a1RQsMMRUfv DN : 7z9mtyxEuToLljIG0jvF DS : 01b12476d0 PID : example.demo.partner-id MID : example.demo.module-id SM : TLS + Direct TS : 2524608000000 ................................. ................................. Host : public.iot-as-mqtt.cn-shanghai.aliyuncs.com Port : 1883 ClientID : a1RQsMMRUfv.7z9mtyxEuToLljIG0jvF|securemode=2,tokenType=0,token=944D49B837BD065EBF9C16BF29206418,_v=sdk-c-2.3.0_FY_1.6.0,timestamp=2524608000000,signmethod=hmacsha1,lan=C,pid=example.demo.partner-id,mid=example.demo.module-id,authtype=custom-ilop,_fy=1.6.0,_ss=1| CA : ('... HMUfpIBvFSDJ3gyI ...') ................................. [ 153.750] [ 153.840] [ 153.860]tls Conn /public.iot-as-mqtt.cn-shanghai.aliyuncs.com/1883 [ 154.330] [ 156.510] [ 156.520]tls certverify ret 0x00 [ 157.650] Device Initialized, Devid: 0 Cloud Connected Post Property Message ID: 0 Post KeyPress Event Message ID: 1 [1;31m[err](158040) IOT_OTA_ReportVersion(498): version string is invalid: must be [1, 32] chars [0m[ 158.400] [ 158.550] Message Post Reply Received, Devid: 0, Message ID: 1, Code: 200, Reply: {} 能连接阿里物网. |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
【平头哥Sipeed LicheeRV 86开发板试用体验】Waft初体验
15706 浏览 1 评论
13761 浏览 4 评论
【平头哥Sipeed LicheeRV 86开发板试用体验】四、烧写waft系统&搭建waft测试环境
19682 浏览 2 评论
59126 浏览 19 评论
【限时福利】加入芯片开发社区,领100G电子工程师资料大礼包
88185 浏览 121 评论
邀请函 | 3月2日 来上海参加平头哥“玄铁RISC-V生态大会”
788浏览 0评论
读书分享会 | 玄铁RISC-V处理器入门与实战电子书免费下载!
685浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 01:34 , Processed in 0.642886 second(s), Total 40, Slave 32 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号