rtl_433_ESP icon indicating copy to clipboard operation
rtl_433_ESP copied to clipboard

ESP32 with WH65B

Open pcfritz opened this issue 2 years ago • 5 comments

Current Situation

Hello, thank you first of all for the great work!

I am trying to receive and decode the weather data from the WH65B, unfortunately I am not succeeding in either. I have a cc1101 connected to my ESP32, but unfortunately I can't receive anything. In addition, I have tried a door contact switch, which works.

Am I making a mistake? Thanks in advance!

Logs

N: ****** setup complete ******
----- CC1101 Status -----
CC1101_MDMCFG1: 0x02
CC1101_MDMCFG2: 0x00
CC1101_MDMCFG3: 0x5b
CC1101_MDMCFG4: 0x69
-------------------------
CC1101_DEVIATN: 0x44
CC1101_AGCCTRL0: 0x91
CC1101_AGCCTRL1: 0x40
CC1101_AGCCTRL2: 0x03
-------------------------
CC1101_IOCFG0: 0x0d
CC1101_IOCFG1: 0x2e
CC1101_IOCFG2: 0x29
-------------------------
CC1101_FIFOTHR: 0x07
CC1101_SYNC0: 0xad
CC1101_SYNC1: 0x12
-------------------------
CC1101_PKTLEN: 0xff
CC1101_PKTCTRL0: 0x32
CC1101_PKTCTRL1: 0x04
-------------------------
CC1101_ADDR: 0x00
CC1101_CHANNR: 0x00
CC1101_FSCTRL0: 0x00
CC1101_FSCTRL1: 0x0f
-------------------------
CC1101_FREQ0: 0x71
CC1101_FREQ1: 0xb0
CC1101_FREQ2: 0x10
-------------------------
CC1101_MCSM0: 0x14
CC1101_MCSM1: 0x30
CC1101_MCSM2: 0x07
-------------------------
CC1101_FOCCFG: 0x76
CC1101_BSCFG: 0x6c
CC1101_WOREVT0: 0x6b
CC1101_WOREVT1: 0x87
CC1101_WORCTRL: 0xf8
CC1101_FREND0: 0x10
CC1101_FREND1: 0x56
-------------------------
CC1101_FSCAL0: 0x0d
CC1101_FSCAL1: 0x13
CC1101_FSCAL2: 0x2c
CC1101_FSCAL3: 0xaa
-------------------------
CC1101_RCCTRL0: 0x00
CC1101_RCCTRL1: 0x41
-------------------------
CC1101_PARTNUM: 0x00
CC1101_VERSION: 0x14
CC1101_MARCSTATE: 0x0d
CC1101_PKTSTATUS: 0xb1
CC1101_RXBYTES: 0x00
----- CC1101 Status -----
rtl_433_ESP(7): Average RSSI Signal -106 dbm, adjusted RSSI Threshold -97, samples 50000
rtl_433_ESP(7): Average RSSI Signal -107 dbm, adjusted RSSI Threshold -98, samples 50000
rtl_433_ESP(7): Average RSSI Signal -107 dbm, adjusted RSSI Threshold -98, samples 50000
rtl_433_ESP(6): Ignored Signal length: 5, Time since last bit length: 1107, Gap length: 162109353, Signal RSSI: -76, Current RSSI: -109, pulses: 0, noise count: 0

Configuration

[env:esp32_cc1101]
card = esp32dev
build_flags = 
  '-DLOG_LEVEL=LOG_LEVEL_TRACE'
  '-DONBOARD_LED=2' ; My ESP32 board had this wiring
; *** rtl_433_ESP options ***
; '-DRF_MODULE_FREQUENCY=915.00'
  '-DOOK_MODULATION=false' ; False is FSK, True is OOK
  '-DRTL_DEBUG=4' ; rtl_433 detailed mode
; '-DRTL_VERBOSE=58' ; LaCrosse TX141-Bv2, TX141TH-Bv2, TX141-Bv3, TX141W, TX145wsdth Sensor
; '-DRAW_SIGNAL_DEBUG=true' ; Display of received raw data
'-DMEMORY_DEBUG=true' ; Display of information on memory usage
  '-DDEMOD_DEBUG=true' ; Display signal debug information
'-DMY_DEVICES=true' ; Subset of devices
'-DPUBLISH_UNPARSED=true' ; Publishing unparsed signal details
  '-DMINRSSI=-82'
'-DRSSI_THRESHOLD=12' ; apply a delta of 12 to the average RSSI level
'-DAVERAGE_RSSI=5000' ; Display RSSI floor (average of 5000 samples)
; '-DSIGNAL_RSSI=true' ; Display on signal reception
; '-DOOK_MODULATION=false' ; False is FSK, True is OOK
*** RF module options ***
  '-DRF_CC1101="CC1101"' ; CC1101 transceiver module
'-DRF_MODULE_CS=5' ; Pin is used as chip select
  '-DRF_MODULE_GDO0=13' ; CC1101 pin GDO0 - breadboard is soldered on 22 versus 13
  '-DRF_MODULE_GDO2=4' ; CC1101 pin GDO2
; '-DRF_MODULE_INIT_STATUS=true' ; Show transceiver configuration during start-up
; *** RadioLib options ***
; '-DRADIOLIB_DEBUG=true' ; '-DRADIOLIB_DEBUG
; '-DRADIOLIB_VERBOSE=true' ; '-DRADIOLIB_DEBUG=true
  *** FSK setting test ***
  ; '-DsetBitrate'
  ;'-DsetFreqDev'
  ;'-DsetRxBW'

Environment

MacOS

Process Supervisor

not applicable

Additional Context

No response

pcfritz avatar Oct 15 '23 16:10 pcfritz

Did you see this in the closed issues - https://github.com/NorthernMan54/rtl_433_ESP/issues/102

NorthernMan54 avatar Oct 15 '23 23:10 NorthernMan54

Thank you, I have. However, I had understood that the fix only applies to SX1278, I use the CC1101 chip.

pcfritz avatar Oct 16 '23 08:10 pcfritz

It applies to both

NorthernMan54 avatar Oct 16 '23 12:10 NorthernMan54

Hi @pcfritz

Not sure if you have already solved your issue, and this can be closed, but be aware that if your WH65B is a 868MHZ version you need to set the frequency to 868**.35**MHZ, e. g.

'-DOOK_MODULATION=false' ; FSK modulation activated
'-DRF_FREQUENCY=868.35'

DigiH avatar Apr 05 '24 14:04 DigiH