作者小头像 Lv.1
27 成长值

个人介绍

这个人很懒,什么都没有留下

感兴趣或擅长的领域

IOT、人工智能、大数据
个人勋章
TA还没获得勋章~
成长雷达
0
12
0
15
0

个人资料

个人介绍

这个人很懒,什么都没有留下

感兴趣或擅长的领域

IOT、人工智能、大数据

达成规则

发布时间 2021/03/21 10:40:51 最后回复 我卖板子养你啊 2021/04/07 19:37:11 版块 小熊派
3672 10 0
他的回复:
回复:墨丶文字™ 发表于 2021-3-23 08:47 参考:https://bbs.huaweicloud.com/blogs/224486首先我这个是LWM2M协议,按照这个上的MQTT配置改回LWM2M协议还是不行,串口看感觉完全没有执行WIFI配置命令,  /* Generated by IoT Link Studio*/#define CONFIG_ARCH_CPU_TYPE "armv7-m"#define CONFIG_UARTAT_RCVMAX 2048#define CONFIG_UARTAT_BAUDRATE 115200#define CONFIG_UARTAT_DEVNAME "atdev"#define CONFIG_LITEOS_ENABLE 1#define CONFIG_AT_ENABLE 1#define CONFIG_DRIVER_ENABLE 1#define CONFIG_AT_DEVNAME "atdev"#define CONFIG_AT_OOBTABLEN 6#define CONFIG_AT_RECVMAXLEN 1024#define CONFIG_AT_TASKPRIOR 10#define CONFIG_LINKLOG_ENABLE 1#define CONFIG_LINKQUEUE_ENABLE 1#define CONFIG_LINKDEMO_ENABLE 1#define CONFIG_OCSERVICES_ENABLE 1#define CONFIG_SHELL_ENABLE 1#define CONFIG_SHELL_TASK_STACKSIZE 2048#define CONFIG_SHELL_TASK_PRIOR 10#define CONFIG_IOT_LINK_CONFIGFILE "iot_config.h"/*Demo*//*#define CONFIG_USER_DEMO "oc_mqtt_demo"*/#define CONFIG_USER_DEMO "hello_world_demo"/*NB-IoT*///#define CONFIG_BOUDICA150_ENABLE 1/*LWM2M*/#define CONFIG_OCLWM2M_ENABLE 1#define CONFIG_OCLWM2MTINY_ENABLE 1#define CONFIG_LWM2M_AL_ENABLE 1#define CONFIG_WAKAAMALWM2M_ENABLE 1/*WIFI*/#define CONFIG_TCPIP_AL_ENABLE 1#define CONFIG_ESP8266_ENABLE 1#define CONFIG_ESP8266_SSID "WIFI300"#define CONFIG_ESP8266_PWD "12345678"/*MQTT*//*#define CONFIG_CJSON_ENABLE 1#define CONFIG_MQTT_AL_ENABLE 1#define CONFIG_PAHO_MQTT 1#define CONFIG_PAHO_CONNECT_TIMEOUT 10000#define CONFIG_PAHO_CMD_TIMEOUT 10000#define CONFIG_PAHO_LOOPTIMEOUT 10#define CONFIG_PAHO_SNDBUF_SIZE 2048#define CONFIG_PAHO_RCVBUF_SIZE 2048#define CONFIG_OCMQTT_ENABLE 1#define CONFIG_OCMQTT_ATCMD 1#define CONFIG_OC_MQTT_V5 1#define CONFIG_OC_TINYMQTTV5_ENABLE 1#define CONFIG_OC_MQTTV5_PROFILE 1#define CONFIG_DTLS_AL_ENABLE 1#define CONFIG_MBEDTLS_ENABLE 1#define CONFIG_MBEDTLS_PSK 1*/另外按照https://bbs.huaweicloud.com/forum/thread-94332-1-1.html 的UI配置,也是一样的      串口监控好像也没有启动WIFI配置Demo是VS Code插件自带的示例Demo(我这以烟感Demo为例),NB已调通且对接IoT平台ok;切换ESP8266后,修改配置如下: LiteOS for STM32L431_BearPi Project configuration For IoT Link This is a demo project and hope you enjoy it Select the cpu arch:armv7-m armv6-m riscv32 x86-64 Config the at uart receive buffer size Config the at uart baud rate Config the at uart device name IoT link SDK configuration you should choose a os kernel first! OS configuration please select one os;if you has your own, please select the os_new  we use the liteos as the os kernel  we use the novaos as the os kernel  we use the linux as the os kernel  we use the macos as the os kernel  we use the new os as the os kernel At configuration  Enable AT framework. and we will select the driver The device for the at io How many oob functions could be hooked The maxlen could be received for the at components The at receive task priority  Enable cJson library.  Enable IoT Link driver management. LinkLog configuration  Enable IoT link log  Enable IoT Link Queue  Enable IoT Link Demo Stimer configuration  Enable IoT link software timer. stimer task stack size stimer task prior  Enable stimer demo Network configuration Tcpip configuration  Enable the tcpip abstract layer please select one tcpip implement; if you have your self, please select none  lwip is for the tcpip  we use RTK8710, and will select the at components  we use esp8266, and will select the at components  we use the macos socket ,and select the macos  we use the linux socket ,and will select the linux  we will create a new tcpip ourself esp8266 configuration The ssid of the wifi The pwd of the wifi Dtls configuration  enable the dtls abstract layer Coap configuration  Enable the coap abstract layer Lwm2m configuration  Enable the lwm2m abstract layer please select one lwm2m implement; if you have your self, please select lwm2m_new  we use the wakaama(the modified version) as the lwm2m protocol  we use the wakaama(the unmodified version) as the lwm2m protocol  we will create a new lwm2m ourself Mqtt configuration  Enable the mqtt abstract layer OceanConnect SERVICE configuration  Enable the oc service, like the mqtt/coap/lwm2m to communicate with the oc platform OceanConnect Coap configuration  Enable the occoap abstract layer OceanConnect Lwm2m configuration  Enable the oclwm2m abstract layer please select one oc lwm2m implement; if you have your self, please select OCLWM2MNULL  we use the TINYLWM2M(This is a software implement) as the oclwm2m protocol  we use the boudica150 as the oclwm2m protocol  we will create a new oc lwm2m ourself  Enable OC LWM2M DEMO OceanConnect Mqtt configuration  Enable the ocmqtt abstract layer Shell configuration  Enable shell component. and we will select the LiteOS The shell task size The shell task priority The specified Configuration Header User Defined Demo  none  Hello World  OC Streetlight  OC Agriculture  OC Track  OC Smoke  OC Cover  OC Infrared  OC Cloud Map/* Generated by IoT Link Studio*/#define CONFIG_ARCH_CPU_TYPE "armv7-m"#define CONFIG_UARTAT_RCVMAX 2048#define CONFIG_UARTAT_BAUDRATE 115200#define CONFIG_UARTAT_DEVNAME "atdev"#define CONFIG_LITEOS_ENABLE 1#define CONFIG_AT_ENABLE 1#define CONFIG_DRIVER_ENABLE 1#define CONFIG_AT_DEVNAME "atdev"#define CONFIG_AT_OOBTABLEN 6#define CONFIG_AT_RECVMAXLEN 1024#define CONFIG_AT_TASKPRIOR 10#define CONFIG_CJSON_ENABLE 1#define CONFIG_LINKLOG_ENABLE 1#define CONFIG_LINKQUEUE_ENABLE 1#define CONFIG_LINKDEMO_ENABLE 1#define CONFIG_STIMER_ENABLE 1#define CONFIG_STIMER_STACKSIZE 2048#define CONFIG_STIMER_TASKPRIOR 10#define CONFIG_TCPIP_AL_ENABLE 1#define CONFIG_ESP8266_ENABLE 1#define CONFIG_ESP8266_SSID "WIFI300"#define CONFIG_ESP8266_PWD "12345678"#define CONFIG_ESP8266_RCVCACHE 1024#define CONFIG_ESP8266_CMDTIMEOUT 2000#define CONFIG_MBEDTLS_PSK 1#define CONFIG_LWM2M_AL_ENABLE 1#define CONFIG_WAKAAMALWM2M_ENABLE 1#define CONFIG_OCSERVICES_ENABLE 1#define CONFIG_OCLWM2M_ENABLE 1#define CONFIG_OCLWM2MTINY_ENABLE 1#define CONFIG_SHELL_ENABLE 1#define CONFIG_SHELL_TASK_STACKSIZE 2048#define CONFIG_SHELL_TASK_PRIOR 10#define CONFIG_IOT_LINK_CONFIGFILE "iot_config.h"#define CONFIG_Demo_Helloworld 1#define CONFIG_USER_DEMO "hello_world_demo"
发布时间 2021/03/21 10:40:51 最后回复 我卖板子养你啊 2021/04/07 19:37:11 版块 小熊派
3672 10 0
发布时间 2021/03/21 10:40:51 最后回复 我卖板子养你啊 2021/04/07 19:37:11 版块 小熊派
3672 10 0
他的回复:
回复:墨丶文字™ 发表于 2021-3-21 22:36按如上操作后编译失败并且配置文件被改,其中#define CONFIG_TCPIP_AL_ENABLE 1这条指令多了一个“P”/* Generated by IoT Link Studio*/#define CONFIG_ARCH_CPU_TYPE "armv7-m"#define CONFIG_UARTAT_RCVMAX 2048#define CONFIG_UARTAT_BAUDRATE 115200#define CONFIG_UARTAT_DEVNAME "atdev"#define CONFIG_LITEOS_ENABLE 1#define CONFIG_AT_ENABLE 1#define CONFIG_DRIVER_ENABLE 1#define CONFIG_AT_DEVNAME "atdev"#define CONFIG_AT_OOBTABLEN 6#define CONFIG_AT_RECVMAXLEN 1024#define CONFIG_AT_TASKPRIOR 10#define CONFIG_CJSON_ENABLE 1#define CONFIG_LINKLOG_ENABLE 1#define CONFIG_LINKQUEUE_ENABLE 1#define CONFIG_LINKDEMO_ENABLE 1#define CONFIG_STIMER_ENABLE 1#define CONFIG_STIMER_STACKSIZE 2048#define CONFIG_STIMER_TASKPRIOR 10#define CONFIG_OTA_ENABLE 1#define CONFIG_OTA_VERSIONLEN 32#define CONFIG_OTA_IMG_DEMO 1#define CONFIG_OTA_IMG_NULL 1#define CONFIG_TCPIP_AL_ENABLE 1#define CONFIG_ESP8266_ENABLE 1#define CONFIG_ESP8266_SSID "WIFI300"#define CONFIG_ESP8266_PWD "12345678"#define CONFIG_ESP8266_RCVCACHE 1024#define CONFIG_ESP8266_CMDTIMEOUT 2000#define CONFIG_DTLS_AL_ENABLE 1#define CONFIG_MBEDTLS_CERT 1#define CONFIG_MBEDTLS_PSK 1#define CONFIG_LWM2M_AL_ENABLE 1#define CONFIG_WAKAAMALWM2M_ENABLE 1#define CONFIG_MQTT_AL_ENABLE 1#define CONFIG_PAHO_MQTT 1#define CONFIG_PAHO_CONNECT_TIMEOUT 10000#define CONFIG_PAHO_CMD_TIMEOUT 10000#define CONFIG_PAHO_LOOPTIMEOUT 10#define CONFIG_PAHO_SNDBUF_SIZE 2048#define CONFIG_PAHO_RCVBUF_SIZE 2048#define CONFIG_OCSERVICES_ENABLE 1#define CONFIG_OCLWM2M_ENABLE 1#define CONFIG_OCLWM2MTINY_ENABLE 1#define CONFIG_OCLWM2M_DEMO_ENABLE 1#define CONFIG_OCMQTT_ENABLE 1#define CONFIG_OCMQTT_ATCMD 1#define CONFIG_OC_MQTT_V5 1#define CONFIG_OC_TINYMQTTV5_ENABLE 1#define CONFIG_OC_MQTTV5_PROFILE 1#define CONFIG_SHELL_ENABLE 1#define CONFIG_SHELL_TASK_STACKSIZE 2048#define CONFIG_SHELL_TASK_PRIOR 10#define CONFIG_IOT_LINK_CONFIGFILE "iot_config.h"#define CONFIG_Demo_Helloworld 1#define CONFIG_USER_DEMO "hello_world_demo"#Generated by IoT Link StudioCONFIG_ARCH_CPU_TYPE="armv7-m"CONFIG_UARTAT_RCVMAX=2048CONFIG_UARTAT_BAUDRATE=115200CONFIG_UARTAT_DEVNAME="atdev"CONFIG_LITEOS_ENABLE=y# CONFIG_NOVAOS_ENABLE is not set# CONFIG_LINUXOS_ENABLE is not set# CONFIG_MACOS_ENABLE is not set# CONFIG_NEW_OS is not setCONFIG_AT_ENABLE=yCONFIG_AT_DEVNAME="atdev"CONFIG_AT_OOBTABLEN=6CONFIG_AT_RECVMAXLEN=1024CONFIG_AT_TASKPRIOR=10CONFIG_CJSON_ENABLE=yCONFIG_DRIVER_ENABLE=yCONFIG_LINKLOG_ENABLE=yCONFIG_LINKQUEUE_ENABLE=yCONFIG_LINKDEMO_ENABLE=y# CONFIG_SECUREC_ENABLE is not setCONFIG_STIMER_ENABLE=yCONFIG_STIMER_STACKSIZE=2048CONFIG_STIMER_TASKPRIOR=10# CONFIG_STIMER_DEMO_ENABLE is not setCONFIG_OTA_ENABLE=yCONFIG_OTA_VERSIONLEN=32# CONFIG_OTA_PATCH is not set# CONFIG_OTA_IMG_CHECK is not setCONFIG_OTA_IMG_DEMO=y# CONFIG_OTA_IMG_MEMORY is not setCONFIG_OTA_IMG_NULL=y# CONFIG_OTA_DOWNLOADCHECK_ENABLE is not set# CONFIG_OTA_DOWNLOAD_ENABLE is not setCONFIG_TCPIP_AL_ENABLE=y# CONFIG_LWIP_ENABLE is not set# CONFIG_RTK8710_ENABLE is not setCONFIG_ESP8266_ENABLE=y# CONFIG_FIBOCOML716_ENABLE is not set# CONFIG_MACOSSOCKET_ENABLE is not set# CONFIG_LINUXSOCKET_ENABLE is not set# CONFIG_NEW_SOCKET is not setCONFIG_ESP8266_SSID="WIFI300"CONFIG_ESP8266_PWD="12345678"CONFIG_ESP8266_RCVCACHE=1024CONFIG_ESP8266_CMDTIMEOUT=2000CONFIG_DTLS_AL_ENABLE=y# CONFIG_MBEDTLS_ENABLE is not set# CONFIG_OPENSSL_ENABLE is not set# CONFIG_NEWTLS_ENABLE is not setCONFIG_MBEDTLS_CERT=yCONFIG_MBEDTLS_PSK=y# CONFIG_COAP_AL_ENABLE is not setCONFIG_LWM2M_AL_ENABLE=yCONFIG_WAKAAMALWM2M_ENABLE=y# CONFIG_WAKAAMARAW_ENABLE is not set# CONFIG_COAP_NEW is not setCONFIG_MQTT_AL_ENABLE=yCONFIG_PAHO_MQTT=y# CONFIG_LITE_MQTT is not set# CONFIG_NEW_MQTT is not setCONFIG_PAHO_CONNECT_TIMEOUT=10000CONFIG_PAHO_CMD_TIMEOUT=10000CONFIG_PAHO_LOOPTIMEOUT=10CONFIG_PAHO_SNDBUF_SIZE=2048CONFIG_PAHO_RCVBUF_SIZE=2048CONFIG_OCSERVICES_ENABLE=y# CONFIG_OCCOAP_ENABLE is not setCONFIG_OCLWM2M_ENABLE=yCONFIG_OCLWM2MTINY_ENABLE=y# CONFIG_BOUDICA150_ENABLE is not set# CONFIG_OCLWM2MNULL is not setCONFIG_OCLWM2M_DEMO_ENABLE=y# CONFIG_OCLW2M_DEMO_BS_ENABLE is not set# CONFIG_OCLWM2M_DEMO_DTLS_ENABLE is not setCONFIG_OCMQTT_ENABLE=yCONFIG_OCMQTT_ATCMD=y# CONFIG_OCMQTT_DEMOENABLE is not setCONFIG_OC_MQTT_V5=y# CONFIG_OC_MQTT_V1 is not setCONFIG_OC_TINYMQTTV5_ENABLE=y# CONFIG_OC_EC2XV5_ENABLE is not set# CONFIG_OCMQTT_NULL is not setCONFIG_OC_MQTTV5_PROFILE=y# CONFIG_OC_MQTTV5_DEMO is not setCONFIG_SHELL_ENABLE=yCONFIG_SHELL_TASK_STACKSIZE=2048CONFIG_SHELL_TASK_PRIOR=10CONFIG_IOT_LINK_CONFIGFILE="iot_config.h"# CONFIG_Demo_None is not setCONFIG_Demo_Helloworld=y# CONFIG_Demo_Streetlight is not set# CONFIG_Demo_Agriculture is not set# CONFIG_Demo_Track is not set# CONFIG_Demo_Smoke is not set# CONFIG_Demo_Cover is not set# CONFIG_Demo_Infrared is not set# CONFIG_Demo_OC_Cloud_Map is not setCONFIG_USER_DEMO="hello_world_demo"
发布时间 2020/07/24 22:43:51 最后回复 Jemon 2021/03/21 17:26:22 版块 IoT物联网
3682 6 1
他的回复:
#define CONFIG_TCPIP_AL_ENABLE 1改成这样后能编译,还是连不上WIFI, 串口信息如下***Smoke Value is  815[DEBUG][395340][observe_step] [395][observe_step:661] Entering[DEBUG][395345][registration_step] [395][registration_step:1377] contextP State: STATE_REGISTER_REQUIRED[DEBUG][395355][registration_step] [395][registration_step:1382] targetP Status: STATE_DEREGISTERED[DEBUG][395364][transaction_step] [395][transaction_step:505] Entering[DEBUG][395371][lwm2m_step] [395][lwm2m_step:767] Final timeoutP: ld[DEBUG][395377][lwm2m_step] [395][lwm2m_step:769] Final state: STATE_REGISTER_REQUIRED[DEBUG][395385][lwm2m_resource_value_changed] [lwm2m_resource_value_changed:512] /19[DEBUG][395393][lwm2m_resource_value_changed] /0[DEBUG][395397][lwm2m_resource_value_changed] /0[DEBUG][395401][lwm2m_resource_value_changed] [DEBUG][395406][lwm2m_step] [395][lwm2m_step:638] timeoutP: ld[DEBUG][395412][lwm2m_step] [395][lwm2m_step:643] State: STATE_REGISTER_REQUIRED[DEBUG][395419][registration_start] [395][registration_start:515] State: STATE_REGISTER_REQUIRED[DEBUG][395428][object_getRegisterPayloadBufferLength] [395][object_getRegisterPayloadBufferLength:637] Entering[DEBUG][395438][object_getRegisterPayload] [395][object_getRegisterPayload:708] Entering[DEBUG][395447][lwm2m_step] [395][lwm2m_step:707] [bootstrap_tag]: ---the return value result = 163 of registration_start-----[DEBUG][395458][lwm2m_setBsCtrlStat] [395][lwm2m_setBsCtrlStat:379] bsctrlstat (3,2) to (3,0)[DEBUG][395467][observe_step] [395][observe_step:661] Entering[DEBUG][395473][registration_step] [395][registration_step:1377] contextP State: STATE_REGISTER_REQUIRED[DEBUG][395482][registration_step] [395][registration_step:1382] targetP Status: STATE_DEREGISTERED[DEBUG][395491][transaction_step] [395][transaction_step:505] Entering[DEBUG][395498][lwm2m_step] [395][lwm2m_step:767] Final timeoutP: ld[DEBUG][395504][lwm2m_step] [395][lwm2m_step:769] Final state: STATE_REGISTER_REQUIRED[DEBUG][395512][lwm2m_resource_value_changed] [lwm2m_resource_value_changed:512] /19[DEBUG][395520][lwm2m_resource_value_changed] /0[DEBUG][395524][lwm2m_resource_value_changed] /0[DEBUG][395529][lwm2m_resource_value_changed] [DEBUG][395533][lwm2m_step] [395][lwm2m_step:638] timeoutP: ld[DEBUG][395539][lwm2m_step] [395][lwm2m_step:643] State: STATE_REGISTER_REQUIRED[DEBUG][395547][registration_start] [395][registration_start:515] State: STATE_REGISTER_REQUIRED[DEBUG][395555][object_getRegisterPayloadBufferLength] [395][object_getRegisterPayloadBufferLength:637] Entering[DEBUG][395566][object_getRegisterPayload] [395][object_getRegisterPayload:708] Entering[DEBUG][395574][lwm2m_step] [395][lwm2m_step:707] [bootstrap_tag]: ---the return value result = 163 of registration_start-----[DEBUG][395586][lwm2m_setBsCtrlStat] [395][lwm2m_setBsCtrlStat:379] bsctrlstat (3,0) to (3,1)******************************Smoke Value is  750
发布时间 2021/03/18 09:02:50 最后回复 Jemon 2021/03/22 15:25:15 版块 小熊派
1535 12 0
发布时间 2021/03/18 09:02:50 最后回复 Jemon 2021/03/22 15:25:15 版块 小熊派
1535 12 0