物联网
甲虫ss
这个作者很懒,什么都没留下…
展开
-
如何通过电流波形分析 ESP8266 在 sleep 模式下的功耗
如何通过电流波形分析 ESP8266 在 sleep 模式下的功耗sleep 模式介绍Deep sleep 模式Light sleep 模式Modem sleep 模式功耗分析电流-时间 波形介绍Modem sleep 模式下的功耗分析Light sleep 模式下的功耗分析接收广播包与不接受广播包在波形上的异同1. sleep 模式介绍Light sleep 模式在 light sleep 模式下, 数字外设、大部分RAM, CPU 等都是门控时钟的,通过关闭芯片原创 2020-07-19 16:38:46 · 1762 阅读 · 0 评论 -
如何计算芯片的ESP mac 地址
文章目录如何判断芯片是 ESP32 or ESP8266 ?ESP32ESP8266如何判断芯片是 ESP8285 or ESP8286 ?如何计算芯片的 mac 地址?ESP32ESP8266write_mem 疑问如何判断芯片是 ESP32 or ESP8266 ?ESP32detect_chip 0x60000078UART_DATE_REG_ADDR = 0x60000078 # used to differentiate ESP8266 vs ESP32*UART_DATE_REG2_原创 2020-07-19 16:37:54 · 2785 阅读 · 0 评论 -
验证 HTTPS 中 SSL 链接
https://www.baidu.com/img/bdlogo.gifhttp://mimg.127.net/hxm/dashi-home/p/20151107/style/img/newHome/section1/01_logo-e55a6daec4.pnghttps://s.yimg.com/os/yaft/yaft-0.3.10.min.jshttps://www.google.cn/intl/zh-CN_cn/images/cn_icp.gifhttps://www.gstatic原创 2020-06-04 10:28:51 · 437 阅读 · 0 评论 -
esp32 作 MCU 端 使用 AT 命令对 esp8266 进行 OTA demo
AT+CUSTOTA=total_len,current_packet_len,offset,checksumOKMCU 收到 > 之后发送 data,当前数据写入到 FLASH 之后,打印 RECV OK,当接收到 total_len 所有数据之后,如果校验成功会打印 CUSTOTA OK,否则会打印 ERRORtotal_len: 整个 bin 的大小current_packet_len:当前包的大小offset:当前包在 bin 中的偏移地址checksum:当前包的 chec原创 2020-05-21 20:21:44 · 518 阅读 · 0 评论 -
esp32 上构造当前 task 栈内存被程序别的地方踩踏引起的 crash
/* Hello World Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS.原创 2020-05-20 11:38:01 · 435 阅读 · 0 评论 -
esp32 实现断点续传 demo
/* ESP HTTP Client Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITI原创 2020-05-14 16:42:25 · 760 阅读 · 0 评论 -
esp crash的初步定位与分析
以以下为例,该glab中描述的crash信息如下:[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-rhR7bjgE-1589358807588)(/home/songjiaxiu/.config/Typora/typora-user-images/1565596747250.png)]crash的log信息为:I (254) cpu_start: Pro cpu start user codeI (272) cpu_start: Starting scheduler o原创 2020-05-13 16:38:16 · 1527 阅读 · 0 评论 -
ESP8266-S2 serial-flasher-HSPI流程
ESP8266-S2SPI flash pinsSPI_PAD_CONFIG_CLK Override SD_CLK pad (GPIO6/SPICLK) = 0 R/W (0x0)SPI_PAD_CONFIG_Q Override SD_DATA_0 pad (GPIO7/SPIQ) = 0 R/W (0x0)SPI_PAD_CONFIG_D Override SD_DATA_1 pad (GPIO8/SPI原创 2020-07-19 16:40:29 · 612 阅读 · 0 评论 -
esp32 ADC两点校准流程
4 块模组的 ADC1 测试数据ADC demo 采用 12bits 精度,11DBESP32-WROOM-32efuse V_ref: 1044mVInput/Vapi_read_value/mV0.55301.010281.515361.717392.020362.424382.52542对 ADC1进行两点校准:(校准时采用 0DB 进行校准 )150mV: 380850mV: 3520A1=(380-278原创 2020-05-10 19:35:20 · 3893 阅读 · 0 评论 -
在 esp32/8266 发送自定义组包带IE的自定义802.11组包(beacon,probe_req,probe_rsp)demo
/* Simple WiFi Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS原创 2020-05-10 19:29:30 · 1304 阅读 · 3 评论 -
esp_wifi_set_vendor_ie_cb demo
/* WiFi station Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS原创 2020-05-08 20:33:28 · 833 阅读 · 0 评论 -
esp_802.11_tx demo
/* Simple WiFi Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS原创 2020-05-08 20:32:02 · 885 阅读 · 0 评论 -
esp32 probe req 采用的校验
原创 2020-05-08 17:24:06 · 273 阅读 · 0 评论 -
ESP32 ADC1写入校准数值
https://esp32.com/viewtopic.php?p=36882#p36882原创 2020-04-27 16:13:01 · 1789 阅读 · 0 评论 -
esp8266 检查是否触发看门狗 demo
/* This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, W...原创 2020-04-24 10:11:14 · 940 阅读 · 0 评论 -
ESP32 espcoredump 命令用法
coredump 文件如下,可以认为是一段加密的 crash 信息,coredump 文件的生成可在make menuconfig 中进行配置,详见:https://docs.espressif.com/projects/esp-idf/zh_CN/v4.0/api-guides/core_dump.html。================= CORE DUMP START =======...原创 2020-03-25 11:24:13 · 1222 阅读 · 0 评论 -
esptool.py 流程
esptool.py 流程预备知识SLIPCommandResponseCommand Opcodes流程8266 stub loader 为例说明SLIP(Serial Line IP)串行线路网际协议,是串行线路上对 IP 数据包进行的简单封装形式。IP 数据包以特殊字符 0xc0 结束,有的数据包开始处也会传一个 0xc0 以防止数据报到来之前的线路噪声...原创 2020-03-13 19:14:05 · 1315 阅读 · 0 评论 -
ESP32 烧写的管脚
原创 2020-03-12 18:59:35 · 4875 阅读 · 2 评论 -
ESP8266 上电 boot mode
esp8266 管脚复用参考参考:https://blog.csdn.net/espressif/article/details/102646468原创 2020-03-02 18:53:12 · 502 阅读 · 0 评论 -
ESP8266 烧写的管脚
请通过 UART0 查看 ESP8266 上电打印:ets Jan 8 2013,rst cause:1, boot mode:(1,n)1UART boot 对应 boot mode 第一参数为 1, 此值由 [GPIO15, GPIO0, GPIO2] 决定.即 GPIO15 和 GPIO0 低电平, GPIO2 高电平.参考:...原创 2020-03-02 18:42:48 · 843 阅读 · 0 评论 -
ESP32 蓝牙BLE SCAN demo
/* This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, W...原创 2020-01-15 16:42:36 · 2322 阅读 · 0 评论 -
esp_wifi_scan demo
/* Simple WiFi Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed o...原创 2020-01-15 16:39:59 · 363 阅读 · 0 评论 -
FreeRTOS 各task的运行时间以及CPU占用情况统计
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "driver/uart.h"#include <esp_system.h> s...原创 2019-12-26 18:01:06 · 2223 阅读 · 0 评论 -
sdkconfig adkconfig.defaults 的含义
songjiaxiu@songjiaxiu-OptiPlex-3050:~/customer/11-16-qcloud-gitlab/esp-qcloud/examples/mqtt_demo$ lsbuild CMakeLists.txt main Makefile partitions_qcloud_demo.csv sdkconfig sdkconfig_bk sdkconf...原创 2019-11-20 16:55:03 · 1072 阅读 · 0 评论 -
http post option
demovar invocation = new XMLHttpRequest();var url = 'http://bar.other/resources/post-here/';var body = '<?xml version="1.0"?><person><name>Arun</name></person>'; ...原创 2019-08-13 16:50:30 · 254 阅读 · 0 评论 -
MQTT Connect cleansession
Clean Session Flag1.订阅QoS=0,clean session=0,订阅topic1,连接之后,掉线上线,不订阅任何消息或者订阅非topic1主题,依然能收到topic1的消息broker:mosquitto -c /etc/mosquitto/mosquitto.conf -vsub:mosquitto_sub -c -t topic1 -q 0 -h loc...原创 2019-07-03 20:05:45 · 4207 阅读 · 0 评论 -
mqtt connect(遗嘱 用户名密码) sub/pub(权限)
https://mosquitto.org/man/mosquitto-conf-5.htmlmosquitto --用户配置 及权限管理:https://www.cnblogs.com/saryli/p/9820532.html命令行示例下面是一个Will Message的示例:1.Sub端clientid=sub预定义遗嘱消息:mosquitto_sub --wil...原创 2019-07-03 19:37:08 · 1157 阅读 · 0 评论