Giter VIP home page Giter VIP logo

Comments (12)

matthias-bs avatar matthias-bs commented on May 29, 2024

Hi,

It looks like you just have bad reception. To prove this, just run the sketch a little longer; eventually you should be able to receive a valid message. The lines starting with [CC1101] Data: D4 3F ... show some valid data, but then there is still a parity error.

Please have a look at https://github.com/matthias-bs/BresserWeatherSensorReceiver/wiki#radio-transceiver-range for some hints about improving signal quality.

BTW: Which weather sensor are you using?

Regards
Matthias

from bresserweathersensorreceiver.

grotma avatar grotma commented on May 29, 2024

Hi,
thanks for your quick reply. Good to hear the connection between c1101 and esp shouldn't be the problem but the reception. I will try to move it closer and/or in actual line-of-sight to the weather station, and/or use a different antenna.

It's a simple 7002511.

Thanks again
Matthias

from bresserweathersensorreceiver.

matthias-bs avatar matthias-bs commented on May 29, 2024

Hi, do you have any news on that?

from bresserweathersensorreceiver.

grotma avatar grotma commented on May 29, 2024

Hi Matthias,
thanks for asking. So far I had no luck with just getting it closer to the weatherstation using the MQTT sketch. Quality of signal was at best between -70 and -80 (but sometimes as well -100), which I believe should be sufficient? I hope it's not just a zigbee device it's detecting.
Anyhow, once I got the time to try a different sized antenna, I'll give you an update!

from bresserweathersensorreceiver.

matthias-bs avatar matthias-bs commented on May 29, 2024

Yes, the signal level should be fine. You can find log files in the examples' directories with similar values. I think you've been receiving the correct signal, because the preamble was detected successfully and some parts of the raw data look familiar and different transmissions are similar.
So it's just a matter of bit error rate, I think.
Did you try to replace a helical coil antenna with a straight wire antenna or vice versa?

from bresserweathersensorreceiver.

grotma avatar grotma commented on May 29, 2024

Hi,
sorry for the late reply. Yes, I tried straight wire as well as the (very cheap looking) coil antenna from the c1101. Still no luck. I'll try with a different setup, I'll keep you updated

from bresserweathersensorreceiver.

grotma avatar grotma commented on May 29, 2024

Quick update,
I got a TTGO Lora Oled now and tried, but at least connected to my PC still no joy.
21:11:05.739 -> [178737][D][WeatherSensor.cpp:463] decodeBresser5In1Payload(): Parity wrong at column 0
21:11:17.734 -> [190729][V][WeatherSensor.cpp:220] getMessage(): [SX1276] Data: D4 A5 DB 73 93 44 83 18 FE AD FE 15 C8 27 66 85 BB B0 57 20 00 00 00 00 00 00 00
21:11:17.734 -> [190731][D][WeatherSensor.cpp:222] getMessage(): [SX1276] R [D4] RSSI: -102.5
21:11:17.782 -> [190738][D][WeatherSensor.cpp:463] decodeBresser5In1Payload(): Parity wrong at column 0
21:11:41.742 -> [214730][V][WeatherSensor.cpp:220] getMessage(): [SX1276] Data: D4 DB CE 73 93 44 83 18 FD 7A FD 13 D8 27 66 85 BB B2 BE 00 00 00 00 00 00 00 00
21:11:41.742 -> [214732][D][WeatherSensor.cpp:222] getMessage(): [SX1276] R [D4] RSSI: -101.5
21:11:41.742 -> [214739][D][WeatherSensor.cpp:463] decodeBresser5In1Payload(): Parity wrong at column 0
21:11:53.768 -> [226731][V][WeatherSensor.cpp:220] getMessage(): [SX1276] Data: D4 DE 48 73 93 C4 83 18 FD BB FD 13 58 FF D9 C9 FF 01 59 00 00 00 00 84 00 00 00
21:11:53.768 -> [226732][D][WeatherSensor.cpp:222] getMessage(): [SX1276] R [D4] RSSI: -101.5
21:11:53.768 -> [226739][D][WeatherSensor.cpp:463] decodeBresser5In1Payload(): Parity wrong at column 0

I'll try again getting closer later this week

from bresserweathersensorreceiver.

matthias-bs avatar matthias-bs commented on May 29, 2024

Thanks for the information. I hope it is still a matter of range.

Or maybe your PC is creating to much noise - either as radiated emission or as conducted emission (USB power)?

from bresserweathersensorreceiver.

grotma avatar grotma commented on May 29, 2024

The RSSI is definately a matter of range. I finally got my lenovo laptop out with arduino just below the weatherstation:
rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1184
load:0x40078000,len:13220
ho 0 tail 12 room 4
load:0x40080400,len:3028
entry 0x400805e4
[ 5][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz
[ 43][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=4 scl=15 freq=100000

BresserWeatherSensorMQTT 20221024

xxxxxxx
connected!
Checking wifi...
MQTT connecting... connected!
BresserDomo-E0A35C/status: online
[ 2249][D][WeatherSensor.cpp:85] begin(): [SX1276] Initializing ...
[ 2261][D][WeatherSensor.cpp:98] begin(): success!
[ 2261][D][WeatherSensor.cpp:133] begin(): [SX1276] Setup complete - awaiting incoming messages...
[ 13859][V][WeatherSensor.cpp:220] getMessage(): [SX1276] Data: D4 44 29 73 93 44 83 18 FD E6 FE 13 58 FF D9 C9 FF 01 2D 00 00 00 00 00 00 00 00
[ 13860][D][WeatherSensor.cpp:222] getMessage(): [SX1276] R [D4] RSSI: -76.5
[ 13867][D][WeatherSensor.cpp:463] decodeBresser5In1Payload(): Parity wrong at column 0
[ 25859][V][WeatherSensor.cpp:220] getMessage(): [SX1276] Data: D4 7A B7 73 93 44 83 18 FD E6 FE 13 58 31 96 72 BB B0 2A 00 00 00 00 00 00 00 00
[ 25861][D][WeatherSensor.cpp:222] getMessage(): [SX1276] R [D4] RSSI: -82.5
[ 25867][D][WeatherSensor.cpp:463] decodeBresser5In1Payload(): Parity wrong at column 0
[ 37859][V][WeatherSensor.cpp:220] getMessage(): [SX1276] Data: D4 DC 19 73 93 44 83 18 FE EE FE 13 58 FF D9 C9 FF 01 24 00 00 00 00 00 00 00 00
[ 37861][D][WeatherSensor.cpp:222] getMessage(): [SX1276] R [D4] RSSI: -83.0
[ 37868][D][WeatherSensor.cpp:463] decodeBresser5In1Payload(): Parity wrong at column 0
[ 49860][V][WeatherSensor.cpp:220] getMessage(): [SX1276] Data: D4 BF 60 73 93 44 83 18 FE 79 FE 13 58 31 96 72 BB B0 96 00 00 00 00 00 00 00 00
[ 49862][D][WeatherSensor.cpp:222] getMessage(): [SX1276] R [D4] RSSI: -78.5
[ 49868][D][WeatherSensor.cpp:463] decodeBresser5In1Payload(): Parity wrong at column 0

Unfortunately still the Parity problem. Any idea what else I could try?

from bresserweathersensorreceiver.

matthias-bs avatar matthias-bs commented on May 29, 2024

Hi,

I fed your testdata to BresserWeatherSensorTest.ino and disabled the parity/checksum error aborts in decodeBresser5In1Payload() (WeatherSensor.cpp lines 507 & 525). I got the following results:

20:10:27.259 -> testData[5]
20:10:27.259 -> Id: [      8D] Typ: [B] Battery: [OK ] Ch: [0] Temp: [  0.0C] Hum: [  0%] Wind max: [171.2m/s] Wind avg: [ 0.0m/s] Wind dir: [202.5deg] Rain: [    0.0mm] Moisture: [--%] UV index: [-.-%] Light (lux): [--.-Klux] RSSI: [-56.0dBm]
20:10:28.318 -> testData[6]
20:10:28.318 -> Id: [      36] Typ: [F] Battery: [OK ] Ch: [0] Temp: [  0.0C] Hum: [  0%] Wind max: [332.9m/s] Wind avg: [ 0.0m/s] Wind dir: [ 45.0deg] Rain: [    0.0mm] Moisture: [--%] UV index: [-.-%] Light (lux): [--.-Klux] RSSI: [-56.0dBm]
20:10:29.346 -> testData[7]
20:10:29.346 -> Id: [      8D] Typ: [B] Battery: [OK ] Ch: [0] Temp: [  0.0C] Hum: [  0%] Wind max: [273.6m/s] Wind avg: [ 0.0m/s] Wind dir: [ 45.0deg] Rain: [    0.0mm] Moisture: [--%] UV index: [-.-%] Light (lux): [--.-Klux] RSSI: [-56.0dBm]
20:10:30.373 -> testData[8]
20:10:30.373 -> Id: [      36] Typ: [F] Battery: [OK ] Ch: [0] Temp: [  0.0C] Hum: [  0%] Wind max: [102.5m/s] Wind avg: [ 0.0m/s] Wind dir: [ 45.0deg] Rain: [    0.0mm] Moisture: [--%] UV index: [-.-%] Light (lux): [--.-Klux] RSSI: [-56.0dBm]

As you can see, the input data is still wrong, you do not even get the same ID on every cycle.

Did you already try a different USB cable? (Sounds stupid, but give it a try...)

Did you try with different PCs to sort out a potential problem with a noisy power supply? As far as I remember, you already tried different ESP board/receiver/antenna combinations, right?

Another try would be attaching the debug output to an external serial-to-usb converter to get the data to the PC and supplying the MCU/receiver from a USB power bank.

from bresserweathersensorreceiver.

grotma avatar grotma commented on May 29, 2024

Yes, that's right, tried initally with esp8266/cc1101 and now with TTGO Lora Oled.
The try 2 weeks ago was on a Dell PC, and now on a lenovo laptop.
Just pluged a different cable (no, doesn't sound too stupid ;-)) but still parity error.
I don't have a serial to usb converter handy, unfortunately.

I will let it run tonight close to the sensor using a USB powerbank and MQTT for logging, but I doubt it'll be different (but who knows?)

from bresserweathersensorreceiver.

matthias-bs avatar matthias-bs commented on May 29, 2024

Closed due to inactivity.

from bresserweathersensorreceiver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.