-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
Conversation
…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.
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. |
Also, did you see this Line 73 in 1b689e1
pin mapping based on board type? Simplifies platformio config |
I did see that, but had two problems:
1) I don’t know how to test for the specific board I could not find a (defined) value in the PlatformIO board file to identify it, maybe just me being dumb, any help appreciated.
2) The ESP32 and Ai-Thinker Ra01 SX1278 are two separate items and you can wire it differently, but if 1) is resolved I can add my selection :-)
… On 22 Jan 2023, at 3:30 PM, Northern Man ***@***.***> wrote:
Also, did you see this
https://github.com/NorthernMan54/rtl_433_ESP/blob/1b689e17c3824eb4f6a4b3e8eed4b04f198b0af9/src/rtl_433_ESP.h#L73
pin mapping based on board type? Simplifies platformio config
—
Reply to this email directly, view it on GitHub <#52 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADS6HRAGDOXLTC7NHNC2L2LWTUY7PANCNFSM6AAAAAAUCZIQ5Y>.
You are receiving this because you authored the thread.
|
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 |
Tks very much for this addition, it will be released later today |
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).