-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LD2420 Support #14
Comments
Will try to figure out how it works. |
I have bought 2 pcs. And both of them did not run. Use original LD2420 tool on PC, it cannot connect. OT1, OT2 and RX always in high state. Electric consumable is ~50mA - normal, as the datasheet. |
I got 5 on AliExpress and the same issue, mfg site has no tool or manual posted which is odd. I wonder if these even shipped with firmware loaded. |
Some observations: https://twitter.com/andresvahter/status/1712460762206372032 |
This note did the trick for me! Thank you! |
At least it responds to version query, but I haven't got reasonable sensor output yet. I am using these resources: Just started to try out scary chinesium tool and logging serial responses with saleae logic analyzer. |
Thanks Andres, really helped me in getting it to work. Does anybody know what the values in the Tool mean? BR, Jan |
Okay, I solved it:
|
@janwego how did you read out distance? EditOkay I was putting device into streaming mode and this is not documented, however hlk tool understands this.
|
You were faster than me - glad it works now for you :) |
If you start this: |
Aaah okay, now I know what you mean - I meant that when I said "I can see the live image from the device" . Don't know if they'll ever deliver the code. The LD2420 isn't completely supported by ESPHome yet is it? |
Were you able to decipher the LD2420 communication? I'm trying to write a driver for it, but the data I get from the device does not match the protocol documented here Instead, I'm getting ASCII output like the one you observed:
The protocol documentation says I should expect a binary reply like I'll appreciate any pointers you can share! I've reached out to the manufacturer who have not been very responsive so far... |
I did not look into deciphering and just went with ASCII output. |
maybe the protocol is the same as ld2410 instead? @andresv I wonder if is the ld2420 the same with regards as reporting gates/energy in "engineering mode" as the ld2410? (as the later reports 9 values of static + 9 values of movement, I wonder if the ld2420 reports 15 of each) |
Here is the reference. |
There's an official component support for LD2420
Sent from mobile. Please pardon any typos
…________________________________
From: Andres Vahter ***@***.***>
Sent: Thursday, December 7, 2023 9:00:35 AM
To: patrick3399/Hi-Link_mmWave_Radar_ESPHome ***@***.***>
Cc: Simon ***@***.***>; Comment ***@***.***>
Subject: Re: [patrick3399/Hi-Link_mmWave_Radar_ESPHome] LD2420 Support (Issue #14)
I did not look into deciphering and just went with ASCII output.
—
Reply to this email directly, view it on GitHub<#14 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHKF4N3GM2YWF65EKRQXHGTYIHDYHAVCNFSM6AAAAAAW4SVJ7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBVGM4TGNZSHA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Hi, what we're talking about? so long |
Thanks @perlchamp I also have board v2.1. The manual I have is v1.2, and the manufacturer also provided a protocol document without a version number (attached). |
Hi, thank you. I have this document, too. |
anyone know the latest firmware? i got with 1.5.9. is there newer? |
Does anybody have a library that works with the LD2420, need to get it running on an ESP32 without ESPHome, thanks. |
Hi. My LD2420 works fine, but the Presence Signal Output (OT2) always has a high level (3.3V). Any ideas? Board v2.1 |
For those coming here looking for an answer to why they are only seeing text (ON/OFF Range ##) when reading the LD2420. It's a matter of being in the right mode and "Normal Working" mode is the default which is why you see the limited text. Following is a list of modes supported by the LD2420. The value (I do mine in HEX) must be sent to the LD2420 before reading the data stream. Once the sensor is put into "Report" mode, you can read the stream and it'll be 45 hex characters long. As mentioned above, once the sensor is power cycled or reset, it reverts into "Normal Working" mode again and needs to be set again. This code puts LD2420 into report mode. Must do before reading buffer. This code puts LD2420 into Normal working mode. This outputs detection results and range gate of detected target. This code puts LD2420 into debugging mode. |
Requesting support for LD2420
The text was updated successfully, but these errors were encountered: