LD2420在配置完灵敏度之后,一直处于有人状态,无法再次进入”无人状态“,且检测结果比配置前明显偏高

发布于 2024-02-22 09:27:41

MCU通过UART向LD2420发送配置灵敏度的指令之后,LD2420一直提示有人,一直无法正确地识别到”无人“,需要LD2420断电重启才能恢复正常,发命令让模组重启也无法解决,而在MCU配置灵敏度之前,LD2420上报一直是“无人”状态。

监测LD2420上的TX和RX引脚,发现在MCU发送数据给LD2420之后,各距离门能量值明显比之前有较大的提高(详见以下加粗字体的数据),这个过程LD2420所处的环境无人,是通过WIFI模组远程控制MCU进行配置灵敏度的。

此问题发生在多个产品型号上,且LD2420的供电电源纹波均不高于40mV!

图片1.png

配置灵敏度前,5条LD2420的状态上报:
15:11:29:236-< F4 F3 F2 F1 23 00 00 00 00 90 24 24 09 10 00 14 00 12 00 09 00 14 00 12 00 14 00 0A 00 0A 00 12 00 0D 00 0D 00 0D 00 10 00 F8 F7 F6 F5
15:11:29:345-< F4 F3 F2 F1 23 00 00 00 00 6A 2A FA 0A 1D 00 1A 00 0A 00 0D 00 11 00 14 00 0D 00 0D 00 12 00 0D 00 0D 00 0A 00 0D 00 0A 00 F8 F7 F6 F5
15:11:29:439-< F4 F3 F2 F1 23 00 00 00 00 4A 26 A2 09 14 00 0A 00 11 00 14 00 0D 00 0D 00 19 00 12 00 12 00 14 00 20 00 11 00 0A 00 0A 00 F8 F7 F6 F5
15:11:29:564-< F4 F3 F2 F1 23 00 00 00 00 91 21 84 08 14 00 1D 00 0D 00 0D 00 1D 00 19 00 14 00 0A 00 0D 00 10 00 12 00 14 00 0A 00 08 00 F8 F7 F6 F5
15:11:29:642-< F4 F3 F2 F1 23 00 00 00 00 74 19 CD 06 1A 00 0D 00 0D 00 11 00 0D 00 11 00 14 00 12 00 0A 00 08 00 0D 00 0D 00 1A 00 0A 00 F8 F7 F6 F5

配置灵敏度后,5条LD2420的状态上报:
15:11:29:978-< F4 F3 F2 F1 23 00 00 00 00 48 1D 5D 07 10 00 11 00 11 00 0D 00 19 00 14 00 0A 00 0D 00 0A 00 11 00 10 00 0D 00 11 00 1D 00 F8 F7 F6 F5
15:11:30:166-< F4 F3 F2 F1 23 00 01 00 00 59 F9 1A 67 21 2B 90 11 F9 07 D9 07 D9 03 42 04 A9 01 05 03 45 01 F4 01 21 01 32 01 FA 00 B9 00 F8 F7 F6 F5
15:11:30:292-< F4 F3 F2 F1 23 00 01 08 00 CD D4 ED 85 19 96 68 42 25 1B C2 11 AA 07 81 06 C5 07 02 02 6D 03 20 02 D5 02 EA 00 E5 03 B9 01 F8 F7 F6 F5
15:11:30:401-< F4 F3 F2 F1 23 00 01 09 00 D9 5C EA C4 44 C3 E5 42 C9 1D 11 11 C2 0A 24 09 A5 04 94 04 28 03 75 02 F9 01 54 01 85 01 31 01 F8 F7 F6 F5
15:11:30:496-< F4 F3 F2 F1 23 00 01 09 00 4D F1 22 04 45 C9 0D 42 04 21 29 13 C8 0C ED 0A 0D 06 95 05 D5 04 01 03 74 03 88 02 15 02 42 02 F8 F7 F6 F5

查看更多

关注者
0
被浏览
337
5 个回答
Q530851347
Q530851347 2024-02-22
This guy hasn't written anything yet

使用上位机设置参数则没有问题,使用MCU按照一模一样的数据格式发送则会有此问题。

@18789246419
管工上午好,看到你之前有回答过类似的问题,特请您帮忙看看

决然
决然 认证专家 2024-02-22
:)

是发送时序的问题。你可以提高每条指令发送的速度。这样模块设置就和上位机一样。

Q530851347
Q530851347 2024-02-22
This guy hasn't written anything yet

@juerany 您好,感谢指导,MCU在发送指令给模组时,是等待模组ACK之后继续发送下一条,中间未进行其他延时。

请问您描述的“每条指令发送的速度”是指波特率,还是指每帧数据包的间隔?

Q530851347
Q530851347 2024-02-22
This guy hasn't written anything yet

@juerany 决然你好,以下是春节期间,侦测了PC上位机和模组之间、上位机发送给模组的配置灵敏度相关的数据,可见上位机会先连续发送两次“FD FC FB FA 04 00 FF 00 02 00 04 03 02 01”给模组,且中间间隔300ms(也就是模组ACK后,还特地延长了一小段时间),不知是否与此相关?

01:59:15:881-< FD FC FB FA 04 00 FF 00 02 00 04 03 02 01
01:59:16:167-< FD FC FB FA 04 00 FF 00 02 00 04 03 02 01
FD FC FB FA 14 00 07 00 00 00 00 00 00 00 01 00 0C 00 00 00 02 00 01 00 00 00 04 03 02 01
FD FC FB FA 14 00 07 00 03 00 0A 00 00 00 04 00 05 00 00 00 10 00 4B EA 00 00 04 03 02 01
FD FC FB FA 14 00 07 00 11 00 28 75 00 00 12 00 B7 0B 00 00 13 00 D0 07 00 00 04 03 02 01
FD FC FB FA 14 00 07 00 14 00 F4 01 00 00 15 00 90 01 00 00 16 00 90 01 00 00 04 03 02 01
FD FC FB FA 14 00 07 00 17 00 2C 01 00 00 18 00 2C 01 00 00 19 00 2C 01 00 00 04 03 02 01
FD FC FB FA 14 00 07 00 1A 00 2C 01 00 00 1B 00 FA 00 00 00 1C 00 FA 00 00 00 04 03 02 01
FD FC FB FA 14 00 07 00 1D 00 C8 00 00 00 1E 00 C8 00 00 00 1F 00 C8 00 00 00 04 03 02 01
FD FC FB FA 14 00 07 00 20 00 3A 9C 00 00 21 00 1F 4E 00 00 22 00 90 01 00 00 04 03 02 01
FD FC FB FA 14 00 07 00 23 00 2C 01 00 00 24 00 2C 01 00 00 25 00 C8 00 00 00 04 03 02 01
FD FC FB FA 14 00 07 00 26 00 C8 00 00 00 27 00 96 00 00 00 28 00 96 00 00 00 04 03 02 01
FD FC FB FA 14 00 07 00 29 00 64 00 00 00 2A 00 64 00 00 00 2B 00 64 00 00 00 04 03 02 01
FD FC FB FA 14 00 07 00 2C 00 64 00 00 00 2D 00 64 00 00 00 2E 00 64 00 00 00 04 03 02 01
FD FC FB FA 08 00 07 00 2F 00 64 00 00 00 04 03 02 01
FD FC FB FA 02 00 FE 00 04 03 02 01

Q530851347
Q530851347 2024-03-04
This guy hasn't written anything yet

经过测试,发现此问题核心在于设置了0x2F,如果不设置0x2F则不会出现此问题。

此问题经过升级到2.0.0固件之后已解决。

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览