Giter VIP home page Giter VIP logo

Comments (13)

Jo59Devs avatar Jo59Devs commented on June 8, 2024 1

Yes, exactly:
this
I try to compile the Project in Arduino Studio, and it seems the compiling works.

Now it's working fine!!!!
Thank You!

from bresserweathersensorreceiver.

matthias-bs avatar matthias-bs commented on June 8, 2024 1

O.k., thank you!

I also added it in WeatherSensorCfg.h: 81a5889

I didn't notice the menu items for Board Revisions in the Arduino IDE before:
TTGO_LoRa32-OLED_Board_Revisions

The selection above sets the define ARDUINO_TTGO_LoRa32_v21new.

from bresserweathersensorreceiver.

matthias-bs avatar matthias-bs commented on June 8, 2024

Which software release are you using?
Which board did you select in the Arduino IDE?
In which way can "doesn't work" be described in more detail? Could you please provide some output from the compiler (or the running software, if compiling works fine)?

from bresserweathersensorreceiver.

Jo59Devs avatar Jo59Devs commented on June 8, 2024

Hi, I use VisualStudioCode and the compiling works fine.
Selected Board is:
[env:esp32dev]
platform = [email protected]
board = esp32dev
framework = arduino

Result:
Attempting to connect to SSID: MyXXXX.connected!
Checking wifi...
MQTT connecting... connected!
Bresser-5in1-AA79C0/status: online
[ 1357][E][WeatherSensor.cpp:125] begin(): [SX1276] Error initialising: [-2]

I have tested many Pin-Settings.....
Best Regards

from bresserweathersensorreceiver.

matthias-bs avatar matthias-bs commented on June 8, 2024

Currently I am only using Arduino IDE, for VisualStudioCode you have to go a little bit more into details.

First we have to ensure that your desired pin config is actually used. Could you please provide the compiler output? There should be some output from WeatherSensorCfg.h

  • "ARDUINO_TTGO_LoRa32_V1 defined; using on-board transceiver"

    or

  • "Generic ESP32; assuming this is the LoRa_Node board (DFRobot Firebeetle32 + Adafruit RFM95W LoRa Radio)"

WeatherSensorCfg.h tries to detect a define set by the Arduino IDE (or in your case some config file) and choose the matching pin defines.

In case no specific board definition is found, the section starting with

#elif defined(ESP32)
    // Generic pinning for ESP32 development boards

should be used.

In any case, you have to find the pinning four you board in some documentation (maybe here: https://www.thethingsnetwork.org/forum/t/big-esp32-sx127x-topic-part-2/11973) .

from bresserweathersensorreceiver.

matthias-bs avatar matthias-bs commented on June 8, 2024

More pinning info to choose from:
http://www.lilygo.cn/prod_view.aspx?TypeId=50003&Id=1130&FId=t3:50003:3
https://github.com/Xinyuan-LilyGo/TTGO-LoRa-Series

from bresserweathersensorreceiver.

Jo59Devs avatar Jo59Devs commented on June 8, 2024

I cannot find log files, but the following Code-Section ist highlighted:

#elif defined(TTGO_LORA32)
#define PIN_RECEIVER_CS 18
// CC1101: GDO0 / RFM95W/SX127x: G0
#define PIN_RECEIVER_IRQ 26
// CC1101: GDO2 / RFM95W/SX127x: G1
// n.c. on v1/v2?, LORA_D1 on v21
#define PIN_RECEIVER_GPIO 33
// RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
#define PIN_RECEIVER_RST 23
#elif defined(ADAFRUIT_FEATHER_ESP32S2)

Ok, I know the Info above.

from bresserweathersensorreceiver.

matthias-bs avatar matthias-bs commented on June 8, 2024

Is this your board?
https://www.aliexpress.com/item/32915894264.html

from bresserweathersensorreceiver.

matthias-bs avatar matthias-bs commented on June 8, 2024

So which pinout is required?
Is there any define (from the config or IDE) to let the compiler detect the board without having to change a source file manually?

from bresserweathersensorreceiver.

Jo59Devs avatar Jo59Devs commented on June 8, 2024

"Is there any define (from the config or IDE...."
Not really, i have changed to #define USE_SX1276 and #define TTGO_LORA32
The required Pins are:
#define PIN_RECEIVER_CS 18
#define PIN_RECEIVER_IRQ 26
#define PIN_RECEIVER_GPIO 33
#define PIN_RECEIVER_RST 23
Equivalent to: https://github.com/espressif/arduino-esp32/blob/master/variants/ttgo-lora32-v21new/pins_arduino.h

Why it doesn't work with VSCode is beyond me :)

from bresserweathersensorreceiver.

Jo59Devs avatar Jo59Devs commented on June 8, 2024

It now also works with VSCode:
[env:ttgo-lora32-v21]
platform = espressif32
board = ttgo-lora32-v21
framework = arduino
monitor_speed = 115200
lib_deps =
jgromes/RadioLib@^5.6.0
bblanchon/ArduinoJson@^6.20.0
256dpi/MQTT@^2.5.0

Further changes:
#define LED_GPIO 25 // LED pin

from bresserweathersensorreceiver.

Jo59Devs avatar Jo59Devs commented on June 8, 2024

My problem was, that I didn't choose the right board in VSCode.
This caused a lot of misunderstandings.
The problem is solved and can be closed.

Thank you for your effort and your work here, Matthias.

Best Regards Jo

from bresserweathersensorreceiver.

matthias-bs avatar matthias-bs commented on June 8, 2024

You are welcome!

Cheers
Matthias

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.