超过460,000+ 应用技术资源下载
pdf

Kolban\'s book on ESP32

  • 1星
  • 日期: 2018-09-26
  • 大小: 14.17MB
  • 所需积分:2分
  • 下载次数:29
  • favicon收藏
  • rep举报
  • 分享
  • free评论
标签: ESP32编程

Kolban\'s book on ESP32

2018年最新完整版,一千多页的参考资料

文档内容节选

Page 1 Table of Contents Introduction48 Important Documentation Notes ESP8266 and ESP3249 Overview49 The ESP3250 The ESP32 specification51 Modules52 ESPWROOM3252 ESP32DevKitC53 ESPWROVERKIT55 The SparkFun ESP32 thing60 Connecting to the ESP3261 Assembling circuits62 USB to UART converters63 Breadboards64 Power65 Multimeter Logic probe Logic Analyzer66 Sundry components66 Physical construction66 Configuration for flashing the device67 Programming for ESP3268 Espressif IoT Development framewo......

Page 1 Table of Contents Introduction................................................................................................................................48 Important Documentation Notes – ESP8266 and ESP32...........................................................49 Overview....................................................................................................................................49 The ESP32............................................................................................................................50 The ESP32 specification.......................................................................................................51 Modules.................................................................................................................................52 ESP-WROOM-32..............................................................................................................52 ESP32-DevKitC................................................................................................................53 ESP-WROVER-KIT..........................................................................................................55 The SparkFun ESP32 thing..............................................................................................60 Connecting to the ESP32...........................................................................................................61 Assembling circuits....................................................................................................................62 USB to UART converters.......................................................................................................63 Breadboards..........................................................................................................................64 Power....................................................................................................................................65 Multi-meter / Logic probe / Logic Analyzer.............................................................................66 Sundry components..............................................................................................................66 Physical construction.............................................................................................................66 Configuration for flashing the device.....................................................................................67 Programming for ESP32............................................................................................................68 Espressif IoT Development framework..................................................................................68 Application entry point......................................................................................................71 How ESP-IDF works.........................................................................................................72 Error handling...................................................................................................................75 The build environment menu configuration.......................................................................75 Adding a custom ESP-IDF component.............................................................................82 Working with memory.......................................................................................................85 Compiling..............................................................................................................................86 Compilation.......................................................................................................................87 Flashing............................................................................................................................89 Loading a program............................................................................................................91 Programming environments..............................................................................................93 Compilation tools..............................................................................................................93 xntensa-esp32-elf-ar....................................................................................................94 esptool.py.....................................................................................................................95 xtensa-esp32-elf-gcc....................................................................................................97 gen_appbin.py..............................................................................................................98 make............................................................................................................................99 xtensa-esp32-elf-strip...................................................................................................99 xtensa-esp32-elf-nm...................................................................................................100 Page 2 xtensa-esp32-elf-objcopy...........................................................................................100 xtensa-esp32-elf-objdump..........................................................................................100 xxd.............................................................................................................................100 Linking.................................................................................................................................101 Sizes of images..............................................................................................................104 Debugging...........................................................................................................................105 ESP-IDF logging.............................................................................................................105 Exception handling.........................................................................................................108 Address to source line....................................................................................................109 Core dump processing....................................................................................................110 Using a debugger (GDB).................................................................................................115 OpenOCD and JTAG......................................................................................................116 Using the ESP-WROVER-KIT for JTAG.....................................................................118 Dumping IP Addresses....................................................................................................119 Debugging and testing TCP and UDP connections.........................................................119 Android – Socket Protocol..........................................................................................119 Android – UDP Sender/Receiver................................................................................119 Windows – Hercules...................................................................................................120 SocketTest..................................................................................................................120 Linux – netcat (nc)......................................................................................................120 Curl............................................................................................................................120 Eclipse – TCP/MON...................................................................................................121 httpbin.org..................................................................................................................123 RequestBin.................................................................................................................123 tcpdump.....................................................................................................................124 ESP-IDF component debugging.....................................................................................124 LWIP..........................................................................................................................124 Run a Blinky....................................................................................................................124 WiFi subsystem........................................................................................................................125 WiFi Theory.........................................................................................................................125 Initializing the WiFi environment..........................................................................................127 Setting the operation mode.................................................................................................127 Scanning for access points..................................................................................................128 Handling WiFi events..........................................................................................................130 Station configuration............................................................................................................137 Starting up the WiFi environment........................................................................................138 Connecting to an access point............................................................................................138 Being an access point.........................................................................................................141 Working with connected stations.........................................................................................145 WiFi at boot time.................................................................................................................145 The DHCP client..................................................................................................................146 The DHCP server................................................................................................................146 Page 3 Current IP Address, netmask and gateway..........................................................................147 WiFi Protected Setup – WPS..............................................................................................147 Designs for bootstrapping WiFi...........................................................................................148 Working with TCP/IP................................................................................................................149 The Lightweight IP Stack – lwip...........................................................................................150 TCP.....................................................................................................................................151 TCP/IP Sockets...................................................................................................................152 Handling errors...............................................................................................................155 Configuration settings.....................................................................................................159 Using select()..................................................................................................................160 Differences from "standard" sockets...............................................................................160 UDP/IP Sockets...................................................................................................................160 TLS, SSL and security.........................................................................................................162 mbedTLS client app structure.........................................................................................164 mbedTLS client example................................................................................................166 mbedTLS server app structure.......................................................................................168 mbedTLS Debugging......................................................................................................170 OpenSSL........................................................................................................................171 RSA encryption/decryption..............................................................................................171 Name Service......................................................................................................................171 Multicast Domain Name Systems........................................................................................172 mDNS API programming.................................................................................................173 Installing Bonjour............................................................................................................174 Avahi...............................................................................................................................177 Working with SNTP.............................................................................................................178 Java Sockets.......................................................................................................................180 Bluetooth..................................................................................................................................183 Bluetooth specification........................................................................................................183 Bluetooth UUIDs.............................................................................................................186 Bluetooth GAP................................................................................................................186 Low level packet.........................................................................................................187 GAP Advertizing data.................................................................................................188 Advertisability – limited and general...........................................................................191 Directed advertising....................................................................................................191 Non-connectable advertising......................................................................................192 Filtering devices.........................................................................................................192 Performing a scan......................................................................................................192 Performing advertising...............................................................................................195 Bluetooth GATT..............................................................................................................196 GATT Characteristic...................................................................................................198 Being a GATT client...................................................................................................199 Being a GATT Server.................................................................................................201 Notifications and indications.......................................................................................201 GATT XML descriptions..............................................................................................202 Page 4 Service Discovery Protocol.............................................................................................202 ESP32 and Bluetooth..........................................................................................................203 GATT Server – Read request..........................................................................................204 Debugging ESP32 Bluetooth..........................................................................................205 Bluetooth C Programming in Linux......................................................................................205 hci_get_route..................................................................................................................205 hci_open_dev.................................................................................................................205 hci_inquiry......................................................................................................................206 hci_read_remote_name..................................................................................................207 str2ba..............................................................................................................................207 ba2str..............................................................................................................................207 Bluetooth programming in Node.js......................................................................................208 Using Noble....................................................................................................................208 Using Bleno....................................................................................................................213 Bluetooth Audio...................................................................................................................214 Bluetooth RFCOMM............................................................................................................215 Bluetooth tools.....................................................................................................................217 l2ping..............................................................................................................................217 rfcomm............................................................................................................................217 bluetoothctl.....................................................................................................................218 hciconfig.........................................................................................................................219 hcidump..........................................................................................................................220 hcitool.............................................................................................................................220 gatttool............................................................................................................................221 Bluetooth examples.............................................................................................................222 The iTag peripheral.........................................................................................................222 Smart Watch / The TW64 Band......................................................................................224 Web Bluetooth.....................................................................................................................226 The Physical Web...............................................................................................................233 BLE beacons.......................................................................................................................233 Hardware interfacing................................................................................................................233 GPIOs.................................................................................................................................234 Pull up and pull down settings........................................................................................236 GPIO Interrupt handling..................................................................................................236 Expanding the number of available GPIOs.....................................................................240 PCF8574....................................................................................................................240 PCF8575....................................................................................................................244 MCP23017.................................................................................................................245 Interrupt Service Routines – ISRs.......................................................................................250 Working with I2C.................................................................................................................252 Using the ESP-IDF I2C driver.........................................................................................254 Common I2C devices......................................................................................................257 Page 5
更多简介内容

推荐帖子

请问TI芯片的后缀含义在哪里能查到?
比如ADS1256手册里的包装信息中提到 有后缀是IDBR和IDBT的两种类型, R和T应该是REEL和TUBE的缩写,可是还有个IDBRG4和IDBTG4,而且介绍上完全一样,这个G4又是什么含义呢??? 另外IDB的意思又是什么呢?同样是ADC芯片 ADS1248的后缀就是IPW和IPWR,其中前者是管装包装后者是卷带包装,那IPW又是啥意思呢?这些有没有什么比较统一的命名格式可以查到?
babyrabbit1234 TI技术论坛
请问TI芯片的后缀含义在哪里能查到?
比如ADS1256手册里的包装信息中提到 有后缀是IDBR和IDBT的两种类型, R和T应该是REEL和TUBE的缩写,可是还有个IDBRG4和IDBTG4,而且介绍上完全一样,这个G4又是什么含义呢??? 另外IDB的意思又是什么呢?同样是ADC芯片 ADS1248的后缀就是IPW和IPWR,其中前者是管装包装后者是卷带包装,那IPW又是啥意思呢?这些有没有什么比较统一的命名格式可以查到?
babyrabbit1234 TI技术论坛
请问TI芯片的后缀含义在哪里能查到?
比如ADS1256手册里的包装信息中提到 有后缀是IDBR和IDBT的两种类型, R和T应该是REEL和TUBE的缩写,可是还有个IDBRG4和IDBTG4,而且介绍上完全一样,这个G4又是什么含义呢??? 另外IDB的意思又是什么呢?同样是ADC芯片 ADS1248的后缀就是IPW和IPWR,其中前者是管装包装后者是卷带包装,那IPW又是啥意思呢?这些有没有什么比较统一的命名格式可以查到?
babyrabbit1234 TI技术论坛
请问TI芯片的后缀含义在哪里能查到?
比如ADS1256手册里的包装信息中提到 有后缀是IDBR和IDBT的两种类型, R和T应该是REEL和TUBE的缩写,可是还有个IDBRG4和IDBTG4,而且介绍上完全一样,这个G4又是什么含义呢??? 另外IDB的意思又是什么呢?同样是ADC芯片 ADS1248的后缀就是IPW和IPWR,其中前者是管装包装后者是卷带包装,那IPW又是啥意思呢?这些有没有什么比较统一的命名格式可以查到?
babyrabbit1234 TI技术论坛
请问TI芯片的后缀含义在哪里能查到?
比如ADS1256手册里的包装信息中提到 有后缀是IDBR和IDBT的两种类型, R和T应该是REEL和TUBE的缩写,可是还有个IDBRG4和IDBTG4,而且介绍上完全一样,这个G4又是什么含义呢??? 另外IDB的意思又是什么呢?同样是ADC芯片 ADS1248的后缀就是IPW和IPWR,其中前者是管装包装后者是卷带包装,那IPW又是啥意思呢?这些有没有什么比较统一的命名格式可以查到?
babyrabbit1234 TI技术论坛
请问TI芯片的后缀含义在哪里能查到?
比如ADS1256手册里的包装信息中提到 有后缀是IDBR和IDBT的两种类型, R和T应该是REEL和TUBE的缩写,可是还有个IDBRG4和IDBTG4,而且介绍上完全一样,这个G4又是什么含义呢??? 另外IDB的意思又是什么呢?同样是ADC芯片 ADS1248的后缀就是IPW和IPWR,其中前者是管装包装后者是卷带包装,那IPW又是啥意思呢?这些有没有什么比较统一的命名格式可以查到?
babyrabbit1234 TI技术论坛

评论


点评赢奖
+报名

即日起—5月15日,点评资料2次以上,即可参加精彩抽奖!点击查看活动详情

登录/注册

意见反馈

求资源

回顶部
电源设计技术资料
点击获取

TI最新应用解决方案

工业电子 汽车电子 个人电子

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版 版权声明

北京市海淀区知春路23号集成电路设计园量子银座1305 电话:(010)82350740 邮编:100191

电子工程世界版权所有 京ICP证060456号 京ICP备10001474号 电信业务审批[2006]字第258号函 京公海网安备110108001534 Copyright © 2005-2020 EEWORLD.com.cn, Inc. All rights reserved
$(function(){ var appid = $(".select li a").data("channel"); $(".select li a").click(function(){ var appid = $(this).data("channel"); $('.select dt').html($(this).html()); $('#channel').val(appid); }) })