『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: magic900321

ESP32人体计数VL53L1固件

  [复制链接]

7

主题

397

帖子

2231

积分

金牌会员

Rank: 6Rank: 6

积分
2231
金钱
1834
HASS币
0
发表于 2020-11-28 17:45:17 | 显示全部楼层
magic900321 发表于 2020-11-28 15:47
YourKey is: 8c5d54ad18af20c93678238c

感谢大佬, 我先测试下!!!
回复

使用道具 举报

7

主题

397

帖子

2231

积分

金牌会员

Rank: 6Rank: 6

积分
2231
金钱
1834
HASS币
0
发表于 2020-11-28 18:18:55 | 显示全部楼层
我测试下来是 要重启很多次才会进入工作状态, 经常卡住!!


rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
modeIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:10864
load:0x40080400,len:6404
entry 0x400806b8
VL53L1X people counter V1

ESP32 ChipID = F52DE6B4
ChipID in Dec:4113426100
mounting FS...
Input 1 to format SPIFFS in 5 secs, other or ignore will skip
0
Will use old config to continue
mounted file system
reading config file
opened config file
mqtt_server

Parsed json from local storage
{
  "mqtt_server": "192.168.2.252",
  "mqtt_port": "1883",
  "mqtt_user": "mqtt",
  "mqtt_password": "mqtt",
  "chip_key": "8c5d54ad18af20c93678238c",
  "device_name": "PL-bedroom"
}*WM: [3] allocating params bytes: 20
*WM: [2] Added Parameter: server
*WM: [2] Added Parameter: port
*WM: [2] Added Parameter: mqtt_user
*WM: [2] Added Parameter: mqtt_password
*WM: [2] Added Parameter: ChipKey
*WM: [3] Updated _max_params: 10
*WM: [3] re-allocating params bytes: 40
*WM: [2] Added Parameter: DeviceName
*WM: [1] AutoConnect
*WM: [2] ESP32 event handler enabled
*WM: [2] Connecting as wifi client...
*WM: [3] STA static IP:
*WM: [2] setSTAConfig static ip not set, skipping
*WM: [1] Connecting to SAVED AP: ASUS
*WM: [3] Using Password: 25232523
*WM: [3] WiFi station enable
*WM: [1] connectTimeout not set, ESP waitForConnectResult...
*WM: [2] [EVENT] WIFI_REASON: 4
*WM: [2] Connection result: WL_DISCONNECTED
*WM: [3] lastconxresulttmp: WL_DISCONNECTED
*WM: [3] lastconxresult: WL_DISCONNECTED
*WM: [1] AutoConnect: FAILED
*WM: [2] Starting Config Portal
*WM: [2] AccessPoint set password is VALID
*WM: [1] password
*WM: [3] WIFI station disconnect
*WM: [3] WiFi station enable
*WM: [2] Disabling STA
*WM: [2] Enabling AP
*WM: [1] StartAP with SSID:  PPL_CNT
*WM: [1] SoftAP Configuration
*WM: [1] --------------------
*WM: [1] ssid:             PPL_CNT
*WM: [1] password:         password
*WM: [1] ssid_len:         7
*WM: [1] channel:          1
*WM: [1] authmode:         3
*WM: [1] ssid_hidden:     
*WM: [1] max_connection:   4
*WM: [1] country:          CN
*WM: [1] beacon_interval:  100(ms)
*WM: [1] --------------------
*WM: [1] AP IP address: 192.168.4.1
*WM: [3] setupConfigPortal
*WM: [1] Starting Web Portal
*WM: [3] dns server started with ip:  192.168.4.1
*WM: [2] HTTP server started
*WM: [2] WiFi Scan ASYNC completed in 3706 ms
*WM: [2] WiFi Scan ASYNC found: 21
*WM: [2] WiFi Scan completed in 3707 ms
*WM: [2] Config Portal Running, blocking, waiting for clients...
*WM: [2] NUM CLIENTS: 0
*WM: [2] NUM CLIENTS: 0
*WM: [2] NUM CLIENTS: 0
回复

使用道具 举报

7

主题

397

帖子

2231

积分

金牌会员

Rank: 6Rank: 6

积分
2231
金钱
1834
HASS币
0
发表于 2020-11-28 19:34:11 | 显示全部楼层
按几下板子上的rst 能进工作状态, 如果是拔电 再插 基本都是卡住!!!!!!!!!!!
回复

使用道具 举报

18

主题

267

帖子

2644

积分

论坛技术达人

积分
2644
金钱
2337
HASS币
190
 楼主| 发表于 2020-11-28 22:28:26 | 显示全部楼层
*WM: [2] WiFi Scan completed in 3707 ms
*WM: [2] Config Portal Running, blocking, waiting for clients...
*WM: [2] NUM CLIENTS: 0

出现这些是因为没有连接上你的WIFI,原后在等你用WIFI连接到ESP32 去配置,现在是0个用户连到ESP32
回复

使用道具 举报

7

主题

397

帖子

2231

积分

金牌会员

Rank: 6Rank: 6

积分
2231
金钱
1834
HASS币
0
发表于 2020-11-29 13:40:25 | 显示全部楼层
那就是连接wifi有问题,但是重启几次就好了,但是 家里其他芯片没有这样的情况!
回复

使用道具 举报

18

主题

267

帖子

2644

积分

论坛技术达人

积分
2644
金钱
2337
HASS币
190
 楼主| 发表于 2020-11-29 17:43:31 | 显示全部楼层
qjiang 发表于 2020-11-29 13:40
那就是连接wifi有问题,但是重启几次就好了,但是 家里其他芯片没有这样的情况! ...

换一片ESP32 试一试,我这没这个问题 呢,
回复

使用道具 举报

0

主题

21

帖子

95

积分

注册会员

Rank: 2

积分
95
金钱
74
HASS币
0
发表于 2020-12-1 11:26:26 | 显示全部楼层
我用图中一样的esp32和传感器试好像还不行,即使没有连上esp32的WiFi,串口是不是也会有传感器的数据。另外下程序的时候就只有一个bin然后地址为0x0000吗,对于波特率有要求吗,我目前是921600波特率。

另外新的esp32 Chip ID是6ba8cc84,不知道还有名额吗
配置的时候mqtt的user和password需要写吗,我都是空的
回复

使用道具 举报

0

主题

21

帖子

95

积分

注册会员

Rank: 2

积分
95
金钱
74
HASS币
0
发表于 2020-12-1 11:52:19 | 显示全部楼层
mosquitto_sub -h 192.168.6.8 -p 1883 -t "People_count"
我用了这个命令好像也不行
回复

使用道具 举报

0

主题

21

帖子

95

积分

注册会员

Rank: 2

积分
95
金钱
74
HASS币
0
发表于 2020-12-1 13:23:04 | 显示全部楼层
现在串口有数据了,要配置http://192.168.4.1/ 的wifi信息才行,让esp32连到无线路由器上,之前一直以为笔记本连PPL_CNT就是算建立通信了

但是>mosquitto_sub -t "People_count"还是没有数据,是不是要对mqtt server port 进行设置。填写的是笔记本的ip地址吗还是esp32的
回复

使用道具 举报

0

主题

21

帖子

95

积分

注册会员

Rank: 2

积分
95
金钱
74
HASS币
0
发表于 2020-12-1 14:28:04 | 显示全部楼层
esp32和传感器就相当于mosquitto_pub吧,那么配置的mqtt sever应该是笔记本的ip地址吧,端口默认1883,通过共同连接无线路由器通信。那笔记本上就应该先开一个mosquitto作为mqtt broker,然后再开mosquitto_sub -t people count订阅该主题的消息。但这样操作后,还是没有订阅消息更新,本地用mosquitto_pub -t people count -m test这样是可以收到信息的。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-19 13:48 , Processed in 3.263800 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表