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

Adding support for Oregon-CM160 device and enabling OOK_PULSE_MANCHESTER_ZEROBIT using ESP32 DevKit V1 and external SX1278 #52

Merged
merged 14 commits into from
Jan 22, 2023

Conversation

diepeterpan
Copy link
Contributor

Thank you for the assistance, tested for 8 hours straight without any problems, support for Oregon-CM160 device and enabling OOK_PULSE_MANCHESTER_ZEROBIT using ESP32 DOIT DevKit V1 and external SX1278 module (Ai-Thinker Ra-01).

…TER_ZEROBIT using ESP32 DevKit V1 and external SX1278

Does not always work :-(

N:
N: ****** setup ******
rtl_433_ESP(6): SX1278 gpio receive pin: 16
rtl_433_ESP(6): SX1278 receive frequency: 433.920013
rtl_433_ESP(6): # of device(s) configured 102
rtl_433_ESP(6): ssizeof(r_device): 108
rtl_433_ESP(6): cfg->devices size: 11016
rtl_433_ESP(6): # of device(s) enabled 101
M       SX127x
----- SX127x Status -----
RegOpMode: 0x2c
RegPacketConfig1: 0x00
RegPacketConfig2: 0x00
RegBitrateMsb: 0x03
RegBitrateLsb: 0xd0
RegRxBw: 0x01
RegAfcBw: 0x02
-------------------------
RegOokPeak: 0x08
RegOokFix: 0x50
RegOokAvg: 0x72
-------------------------
RegLna: 0x20
RegRxConfig: 0x08
RegRssiConfig: 0x07
-------------------------
RegDioMapping1: 0x00
----- SX127x Status -----
N: ****** setup complete ******
rtl_433_ESP(6): Ignored Signal length: 21003, Time since last bit length: 101439, Gap length: 2282895, Signal RSSI: 0, Current RSSI: -90, pulses: 126, noise count: 24
rtl_433_ESP(6): Ignored Signal length: 36007, Time since last bit length: 101058, Gap length: 132927, Signal RSSI: 0, Current RSSI: -90, pulses: 156, noise count: 8
rtl_433_ESP(6): Ignored Signal length: 6, Time since last bit length: 101059, Gap length: 1278436, Signal RSSI: 0, Current RSSI: -89, pulses: 109, noise count: 12
rtl_433_ESP(6): Ignored Signal length: 6, Time since last bit length: 101052, Gap length: 536462, Signal RSSI: 0, Current RSSI: -90, pulses: 120, noise count: 4
rtl_433_ESP(6): Ignored Signal length: 6, Time since last bit length: 101054, Gap length: 2619485, Signal RSSI: 0, Current RSSI: -91, pulses: 122, noise count: 12
rtl_433_ESP(6): Ignored Signal length: 6, Time since last bit length: 101051, Gap length: 889464, Signal RSSI: 0, Current RSSI: -89, pulses: 112, noise count: 4
rtl_433_ESP(6): Ignored Signal length: 6, Time since last bit length: 101052, Gap length: 950488, Signal RSSI: 0, Current RSSI: -90, pulses: 129, noise count: 8
rtl_433_ESP(6): Ignored Signal length: 6, Time since last bit length: 101056, Gap length: 532487, Signal RSSI: 0, Current RSSI: -90, pulses: 116, noise count: 9
rtl_433_ESP(6): Ignored Signal length: 6, Time since last bit length: 101055, Gap length: 459484, Signal RSSI: 0, Current RSSI: -90, pulses: 105, noise count: 6
rtl_433_ESP(6): Ignored Signal length: 6, Time since last bit length: 101051, Gap length: 1653485, Signal RSSI: -52, Current RSSI: -91, pulses: 124, noise count: 12
rtl_433_ESP(6): Ignored Signal length: 6, Time since last bit length: 101052, Gap length: 1681443, Signal RSSI: 0, Current RSSI: -90, pulses: 139, noise count: 4
rtl_433_ESP(6): Ignored Signal length: 6, Time since last bit length: 101053, Gap length: 1508476, Signal RSSI: 0, Current RSSI: -91, pulses: 144, noise count: 10
rtl_433_ESP(6): Signal length: 130004, Gap length: 165464, Signal RSSI: -68, train: 0, messageCount: 0, pulses: 209
rtl_433_ESP(6): data_output {"model":"Oregon-CM160","id":7,"power_W":354,"protocol":"Oregon Scientific Weather Sensor","rssi":-68,"duration":130004}
N: Received message : {"model":"Oregon-CM160","id":7,"power_W":354,"protocol":"Oregon Scientific Weather Sensor","rssi":-68,"duration":130004}
rtl_433_ESP(6): # of messages decoded 1
rtl_433_ESP(6): Ignored Signal length: 6, Time since last bit length: 101058, Gap length: 1448766, Signal RSSI: 0, Current RSSI: -89, pulses: 107, noise count: 7
rtl_433_ESP(6): Ignored Signal length: 6, Time since last bit length: 101051, Gap length: 637468, Signal RSSI: 0, Current RSSI: -89, pulses: 121, noise count: 2
rtl_433_ESP(6): Ignored Signal length: 7, Time since last bit length: 101050, Gap length: 4176490, Signal RSSI: 0, Current RSSI: -90, pulses: 146, noise count: 4
rtl_433_ESP(6): Ignored Signal length: 6, Time since last bit length: 101052, Gap length: 1281478, Signal RSSI: 0, Current RSSI: -90, pulses: 116, noise count: 6
rtl_433_ESP(6): Ignored Signal length: 5, Time since last bit length: 101052, Gap length: 619476, Signal RSSI: 0, Current RSSI: -91, pulses: 100, noise count: 4
rtl_433_ESP(6):
Change to prevent:

Guru Meditation Error: Core 1 panic'ed (Unknown reason)
Core 1 register dump:
Guru Meditation Error: Core 1 panic'ed (Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Bug fixed, were running correctly for the past 7 hours for Oregon-CM16 and Oregon-CM180i.
@diepeterpan
Copy link
Contributor Author

Also did a OpenMQTTGateway build pointing to my fork and voila!

image

@NorthernMan54
Copy link
Owner

I can release this later today, could you also include a copy of oregon_scientific.c in the contrib directory. I don’t want to lose a copy of your changes, with further updates from rtl_433.

@NorthernMan54
Copy link
Owner

Also, did you see this

// Predefined board wiring

pin mapping based on board type? Simplifies platformio config

@diepeterpan
Copy link
Contributor Author

diepeterpan commented Jan 22, 2023 via email

@NorthernMan54
Copy link
Owner

Sorry I had assumed that it was a single board like the lilygo and heltec with the esp32 and sx127x on the same unit.

just ignore this then

@NorthernMan54 NorthernMan54 merged commit c8d7802 into NorthernMan54:master Jan 22, 2023
@NorthernMan54
Copy link
Owner

Tks very much for this addition, it will be released later today

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

Successfully merging this pull request may close these issues.

2 participants