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

Raw Messages - RTL_433_ESP discussion #1

Open
cgmckeever opened this issue Jun 2, 2024 · 1 comment
Open

Raw Messages - RTL_433_ESP discussion #1

cgmckeever opened this issue Jun 2, 2024 · 1 comment

Comments

@cgmckeever
Copy link

@dirkbeer, thanks for the updates through the other issue .. Taking you up on your offer - moving it here to reduce noise ;)

Background

Let me preface, all this is brute force and learning along the way.

I was originally using RC-Switch to get decoded button messages. The decoded messages look like

Decimal: 8571080 (24Bit)
Binary: 100000101100100011001000
Tri-State: not applicable
PulseLength: 321 microseconds
Protocol: 1

I could then rf-transmit those back out via RC-Switch to relay/replay/etc

At the same time, I was using RTL_433_ESP to capture IOT device messages and relay them via a HTTP request to my home automation setup.

Working code

Problem

With the previous change to RTL_433_ESP moving the RF driver from SmartRC to RadioLib there is a conflict with how all these pieces work.

Hope

  1. I would like to figure out if its possible to use RTL_433_esp to decode the same way RC-switch does, flagging RTL_ANALYZER at build gives me some results, but I cant see any correlation between the two reports. Detail conversation of the two decodes
  2. Would like to use RTL_433_ESP (via RadioLib) to do the rf-transmit

I know Im talking out my ass here.

Questions

  1. In your RTL_433_ESP fork, you do a bytes_to_hex_string but then it looks like you decode it function decode(hexString) back to a data format similar to what RTL provides -- wondering what is going on here? Im probably missing the obvious
const data = {
        model: 'Fineoffset-WH45',
        id: id.toString(16),
        battery_ok: batteryOk.toFixed(1),
        temperature_C: tempC.toFixed(1),
        humidity: humidity,
        pm2_5_ug_m3: pm25.toFixed(1),
        pm10_ug_m3: pm10.toFixed(1),
        co2_ppm: co2,
        ext_power: extPower,
        mic: 'CRC',
  1. Any thoughts on using the hexstring to accomplish what Im trying to do? Literally dont know what/how to use it.

Really appreciate any ideas you might have

@dirkbeer
Copy link
Owner

dirkbeer commented Jun 10, 2024 via email

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

2 participants