Skip to content
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

Can't read firmware #34

Open
mgiesen opened this issue Oct 20, 2024 · 0 comments
Open

Can't read firmware #34

mgiesen opened this issue Oct 20, 2024 · 0 comments

Comments

@mgiesen
Copy link

mgiesen commented Oct 20, 2024

I don't get the firmware version out of the sensor. Anyone know what to do?

Code:

#define HUMAN_PRESENCE_RX 17
#define HUMAN_PRESENCE_TX 18

ld2410 radar;

void setup()
{
  delay(100);

  Serial.begin(115200);

  delay(500);

  Serial2.begin(256000, SERIAL_8N1, HUMAN_PRESENCE_TX, HUMAN_PRESENCE_RX);

  delay(500);

  radar.debug(Serial);
  radar.begin(Serial2);

  Serial.println();
}

void loop()
{

  if (radar.read())
  {
    if (radar.presenceDetected())
    {
      Serial.println("True");
    }
    else
    {
      Serial.println("False");
    }
  }

  delay(1000);
}

Output:

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0xb (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x4bc
load:0x403c9700,len:0xbd8
load:0x403cc700,len:0x2a0c
entry 0x403c98d0
ld2410 started

LD2410 firmware: no response

Cmnd : FD FC FB FA 08 00 FF 01 00 00 01 00 40 00 04 03 02 01 
ACK frame payload: 8 bytes
ACK for entering configuration mode: OKFalse
True
True
True
True
True
False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant