自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(146)
  • 资源 (5)
  • 收藏
  • 关注

转载 dos2unix 目录

因为经常在windos平台和linux平台之间协同开发,所以不可避免的就碰到了CRLF的问题,dos2unix 和 unix2dos可以说是最常用的解决CRLF问题的工具了。下面列出怎么对整个目录中的问题做dos2unix操作$ find . -type f -exec dos2unix {} ;其中具体命令的解释如下:find .= find files in the current directory-type f= of type f-exec dos2unix {} ;= and

2020-12-14 15:16:04 485

原创 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 578

原创 如何通过电流波形分析 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 1688

原创 如何计算芯片的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 2755

转载 i2c-tool

Linux系统下i2c工具 i2c-tool 的使用1. 下载和安装下载地址:https://www.kernel.org/pub/software/utils/i2c-tools/解压后, 进入解压后的目录, 然后编译:cd i2c-tools-4.1make安装:sudo make install 使用终端输入i2c按两次Tab键会出现可选命令:i2cdetect显示所有可用的I2C总线i2cdetect -l使用...

2020-07-13 16:34:39 512

原创 函数指针,走过路过来分析一下

void (*fun)(void);void (*fun[10])(void);void (*fun[10])(int,int,void(*)(void*));void (*(*fun)[10])(int,int,void(*)(void*));void (*(*(*fun)[10])(int,int,void(*)(void*)))(int,int,void(*)(void*));

2020-06-04 19:58:46 117

原创 验证 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 382

原创 如何使用 c 语言的二级指针

参考1: https://www.cnblogs.com/reality-soul/p/6372915.htmlvoid fun(void){ int tmp = 0; change(tmp); printf("################ tmp = %d /n"); return ;} void change(int tmp_t){ tmp_t =1; return;}void fun(void){

2020-05-25 11:25:12 127

原创 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 505

原创 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 413

原创 连续的二进制文件以两位为单位进行分割

需求:把二进制文件中类似这样的内容:436572746966进行分割为:43 65 72 74 69 66,#include<stdio.h>main(){ FILE * fp; char buffer[3300]; fp = fopen ("ca.txt.md", "r+"); memset(buffer,0x0,3300); fread(buffer, 3232+1, 1, fp); int val ; for(int i=0; i<3233;

2020-05-20 09:20:55 238

原创 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 713

原创 如何获取服务器的 CA 证书?

前言HTTPS 通俗地来讲, 是在 HTTP 协议的基础上, 加入了 SSL 层来保证上层通信的安全. 它的主要作用可以分为两种: 其一, 单纯地建立信息安全通道, 来保证数据传输的安全; 其二, 通过证书校验的方式来验证网站的真实性. 其中, 在证书校验中包含单向认证和双向认证. 以单向认证为例, 客户端如何获取 CA 证书来校验服务器端的合法性?本文档根据 CA 证书的来源, 分来两种场景进行了详细介绍.CA 机构签发: 场景描述1自签 CA: 场景描述2场景描述1将最新固件上传到 H

2020-05-13 16:51:57 13355 3

原创 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 1431

原创 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 3746

原创 在 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 1233 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 806

原创 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 827

原创 esp32 probe req 采用的校验

2020-05-08 17:24:06 230

原创 ESP32 ADC1写入校准数值

https://esp32.com/viewtopic.php?p=36882#p36882

2020-04-27 16:13:01 1760

原创 HTTP 调试工具

https://easy-mock.com/http://www.testclass.net/interface/flask_mock/https://github.com/jamesdbloom/mockserverhttps://github.com/dreamhead/moco

2020-04-24 16:37:46 262

原创 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 916

原创 结构体的成员的地址用法

#include <stdio.h>#define STUB__RESERVED_SIZE &(((response_status_t*)0)->reserved_0)typedef struct __attribute__((packed)){ unsigned char failed; unsigned char error; un...

2020-04-14 14:33:08 1103

原创 git ---打补丁

相关命令行检查patch/diff是否能正常打入:git apply --check 【path/to/xxx.patch】git apply --check 【path/to/xxx.diff】打入patch/diff:git apply 【path/to/xxx.patch】git apply 【path/to/xxx.diff】或者git am 【path/to/xxx...

2020-04-13 09:38:12 106

原创 [ubuntu] usb_mon 的使用

$ sudo modprobe usb_monmodprobe: FATAL: Module usb_mon not found in directory /lib/modules/4.15.0-88-generic$ sudo mount -t debugfs none /sys/kernel/debugmount: /sys/kernel/debug: none already mou...

2020-04-02 10:27:32 817

原创 git 子模块移除

git submodule deinit components/lwip/lwip

2020-03-25 13:58:54 711

原创 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 1174

原创 嵌入式 C 编程4字节对其写法

uint32_t padding_bytes = s_flash_write_size - size; uint8_t *data = (uint8_t *)payload; uint32_t padding_index = size; while (padding_bytes--) { data[padding_index++] = PADDING...

2020-03-20 16:03:03 183

原创 8266 flash

http://wiki.jackslab.org/ESP8266_Flash

2020-03-20 08:55:25 87

原创 esptool.py 流程

esptool.py 流程预备知识SLIPCommandResponseCommand Opcodes流程8266 stub loader 为例说明SLIP(Serial Line IP)串行线路网际协议,是串行线路上对 IP 数据包进行的简单封装形式。IP 数据包以特殊字符 0xc0 结束,有的数据包开始处也会传一个 0xc0 以防止数据报到来之前的线路噪声...

2020-03-13 19:14:05 1284

原创 ESP32 烧写的管脚

2020-03-12 18:59:35 4783 2

转载 setsockopt和getsockopt函数

备注:本文非楼主原创,是楼主在网上发现的。。写的不错,存起来,以备后用功能描述:获取或者设置与某个套接字关联的选项。选项可能存在于多层协议中,它们总会出现在最上面的套接字层。当操作套接字选项时,选项位于的层和选项的名称必须给出。为了操作套接字层的选项,应该将层的值指定为SOL_SOCKET。为了操作其它层的选项,控制选项的合适协议号必须给出。例如,为了表示一个选项由TCP协议解析...

2020-03-03 09:59:02 264

原创 snprintf函数使用总结

【依赖头文件】#include<stdio.h>【函数原型】int snprintf(char *str, size_t size, const char *format, …);【函数参数】str:目标字符串;size:拷贝字节数(Bytes); format:源字符串; …格式【函数功能】最多从源字符串format中拷贝size字节的内容(含字符串结尾标志’\0’)到...

2020-03-03 09:32:30 642

原创 ESP8266 上电 boot mode

esp8266 管脚复用参考参考:https://blog.csdn.net/espressif/article/details/102646468

2020-03-02 18:53:12 486

原创 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 825

转载 14565B简单使用教程

自从14565B被和谐之后,663XX党多了一样好工具,就相当于给输出加了电流探头和60k采样的音频示波器。但是可惜界面和手册只有英文的,所以作此文,欢迎大神们指点补充。码字辛苦,请体谅,时间有限,慢慢更新。Agilent官网上有一些资料和中文的应用说明http://www.home.agilent.com/zh-CN/pd-852417-pn-14565B/device-characteriza...

2020-02-28 14:59:19 2460 1

原创 c 语言 漫谈 #define

#include <stdio.h>/* Request Methods */#define HTTP_METHOD_MAP(XX) \ XX(0, DELETE, DELETE) \ XX(1, GET, GET) \ XX(2, HEAD, HEAD) \...

2020-02-14 16:36:12 325 3

原创 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 2296

原创 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 354

原创 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 2106

mqtt-cn.zip

mqtt 中文版协议标准

2020-06-03

mqtt-en.pdf

mqtt-en标准英文版

2020-06-03

1711 专题 沈华伟等 在线社交媒体中信息传播的建模与预测

1711 专题 沈华伟等 在线社交媒体中信息传播的建模与预测

2018-07-03

友善之臂-tiny6410-核心板-原理图-PCB-layout

友善之臂-tiny6410-核心板-原理图-PCB-layout

2017-03-21

无纸化二级C题库版.exe

无纸化二级C题库版.exe

2014-01-24

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除