logo elektroda
logo elektroda
X
logo elektroda

[w800] XM-HE201 24G Sensor flashed to OpenBeken, sensors partially working

juanwick 39 2
ADVERTISEMENT
  • #1 21796926
    juanwick
    Level 2  
    XM-HE201 24 GHz Human Presence Sensor. I've managed to flash one of these to OpenBeken but I am struggling to get all the sensors working.

    To flash to OpenBeken you need to tie the boot pin to ground on startup, UART will output "C" continuously when it's ready to receive the firmware from wm_tool.exe. Use TX0/RX0 to flash the firmware; TX1/RX1 are connected to the mmWave sensor (LD2410B.)

    Pin 21 is connected to the PIR sensor and Pin 24 to the mmWave sensor's GPIO pin; setting them to DoorSnsrWSleep has them working. I believe the illuminance sensor is between the button and the LED and one of its pins did have continuity with pin 4 but I don't know how to identify it or configure it with OpenBeken. To fully support this device I believe a driver would have to be written to interface the LD2410B UART; way beyond my depth, barely got it flashed with LLM assistance.

    [w800] XM-HE201 24G Sensor flashed to OpenBeken, sensors partially working

    [w800] XM-HE201 24G Sensor flashed to OpenBeken, sensors partially working


    [w800] XM-HE201 24G Sensor flashed to OpenBeken, sensors partially working
    AI: When you try to configure or read from the illuminance sensor in OpenBeken, what exactly happens—do you get any readings, errors, or does it just not show up at all?
    I set the pin to ADC. The value stays between 10k and 12k whether the device is covered or a flashlight is shined directly on it. This is all on the advice of an LLM so it didn't really seem appropriate to even post as it's based on nothing tangible.
    AI: Have you tried any specific OpenBeken settings, commands, or logs to identify or configure the illuminance sensor, and if so, what were the results?
    I wouldn't know what to try; I tried dumping the OEM firmware from a second device, but OpenBK7231T_App couldn't extract the Tuya GPIO information from the dump. The dump had my SSID and network pass inside, so I'm fairly certain it's valid.
  • ADVERTISEMENT
  • #2 21797071
    divadiow
    Level 37  
    I guess it would need some driver writing to parse the uart comms from the S3KM1110?

    I guess if you used wm_tool.exe you didn't come across Easy Flasher which can take a backup of W800 before flashing to OpenW800
  • #3 21797096
    juanwick
    Level 2  
    Thank you for that. Took a backup of a second device. It was not able to extract any Tuya information as far as I can tell, but this backup does look better than my w800-python-flash-read attempt.
    Saving debug Tuya decryption data to lastRawDecryptedStrings.bin
    Failed to extract Tuya keys - no json start found
    Sorry, failed to extract keys from Tuya Config in backup binary.
    Tuya config extractor - magic is at 1933312 


    The protocol is documented. LD2410 tool.exe is able to connect to the chip over TX1/RX1.
ADVERTISEMENT