Replies: 10 comments 41 replies
-
The irrigation sketch was built with multi-channel relay modules in mind. I only ever used it using a single-channel relay module, however. The coil pin is the signal pin. I'll update the info on it once I re-visit bidirectional communication. |
Beta Was this translation helpful? Give feedback.
-
Changing to LORA because of distance... When i start with lora i have 18:18:22.097 -> During the upload of the controller i have some errors, i don't know if is releted: The gateway seems to work properly with lora. |
Beta Was this translation helpful? Give feedback.
-
Sorry, It's in the docs but not emphasized enough that LoRa controller functionality isn't implemented yet. I was delaying it while I learned more about LoRa, but I think I'll add it somewhat soon. As you noted, you can still send controller messages via LoRa gateways, but the final hop must use ESP-NOW. This is still how I'll recommend setting up the system after I add LoRa controllers too, because ESP-NOW is quicker and requires less airtime. |
Beta Was this translation helpful? Give feedback.
-
Hi timm, some problems with the configuration i have organize the net as you sugget and i have #include <fdrs_globals.h> #define UNIT_MAC 0x01 // The address of this gateway #define ESPNOWG_ACT sendSerial(); // Protocols -- Define which protocols the gateway will use. //#define USE_ESPNOW // Neighboring gateway addresses // Neighbor Actions //Pins for UART data interface (ESP32 only) //Logging settings -- Logging will occur when MQTT is disconnected // SPI Configuration -- Needed only on boards with multiple SPI interfaces like the ESP32 #define SPI_SCK 5 // LoRa Configuration -- Needed only if using LoRa //433E6 for Asia // Buffer Delays - in milliseconds - Uncomment to enable any buffer //#define ESPNOW1_DELAY 0 #define PEER_TIMEOUT 300000 // FastLED -- Not yet fully implemented // WiFi and MQTT Credentials -- Needed for MQTT only if "fdrs_globals.h" is not included //#define MQTT_AUTH //Enable MQTT authentication // MQTT Topics and this is what monitor say when i send the mqtt command
this is the configuration of 0x02 `// FARM DATA RELAY SYSTEM #include <fdrs_globals.h> #define UNIT_MAC 0x02 // The address of this gateway // Actions -- Define what happens when a packet arrives at each interface: #define ESPNOWG_ACT sendSerial(); bufferLoRa(1); #define USE_ESPNOW // Neighboring gateway addresses // Neighbor Actions //Pins for UART data interface (ESP32 only) //Logging settings -- Logging will occur when MQTT is disconnected // SPI Configuration -- Needed only on boards with multiple SPI interfaces like the ESP32 #define SPI_SCK 32 // LoRa Configuration -- Needed only if using LoRa //433E6 for Asia // Buffer Delays - in milliseconds - Uncomment to enable any buffer //#define ESPNOW1_DELAY 0 #define PEER_TIMEOUT 300000 // FastLED -- Not yet fully implemented // WiFi and MQTT Credentials -- Needed for MQTT only if "fdrs_globals.h" is not included //#define MQTT_AUTH //Enable MQTT authentication // MQTT Topics and this is the output of the monitor: As you see, LOra is inizialized, same channel and band, the espnow 0x03 is correctly registred but the lora packet didn't arrived and so the esponow packet isn't send. |
Beta Was this translation helpful? Give feedback.
-
ok change to "release_01_2023". This is my code for 1_UART_gateway // FARM DATA RELAY SYSTEM #include <fdrs_globals.h> #define UNIT_MAC 0x01 // The address of this gateway //#define USE_ESPNOW // Actions -- Define what happens when a packet arrives at each interface: // // LoRa Configuration //Pins for UART data interface (ESP32 only) // WiFi and MQTT Credentials -- These will override the global settings //#define MQTT_ADDR "192.168.0.8" //Logging settings -- Logging will occur when MQTT is disconnected ///#define USE_OLED As You can see i have this PIN connection |
Beta Was this translation helpful? Give feedback.
-
same as before // FARM DATA RELAY SYSTEM #include <fdrs_globals.h> #define UNIT_MAC 0x01 // The address of this gateway //#define USE_ESPNOW // Actions -- Define what happens when a packet arrives at each interface: // // LoRa Configuration //#define CUSTOM_SPI //Pins for UART data interface (ESP32 only) // WiFi and MQTT Credentials -- These will override the global settings //#define MQTT_ADDR "192.168.0.8" //Logging settings -- Logging will occur when MQTT is disconnected ///#define USE_OLED |
Beta Was this translation helpful? Give feedback.
-
First of all, it's me who thanks you for your patience and support, and I apologize for the gross error. I've been busy and only now have I been able to try your code, and now lora works. Now i'm going to upload the lora reciver that has to pass throw espnow the command to the irrigation... in the config i put #include <fdrs_globals.h> #define UNIT_MAC 0x01 // The address of this gateway //#define USE_ESPNOW // Actions -- Define what happens when a packet arrives at each interface: // // LoRa Configuration #define CUSTOM_SPI //Pins for UART data interface (ESP32 only) i supposed that: sendLoRaNbr(1) => #define LORA_NEIGHBOR_1 0x02 // LoRa1 Address but... config file: #include <fdrs_globals.h> #define UNIT_MAC 0x02 // The address of this gateway // Actions -- Define what happens when a packet arrives at each interface: #define ESPNOWG_ACT sendLoRaNbr(1); // Protocols -- Define which protocols the gateway will use. #define USE_ESPNOW // Neighbor addresses // Neighbor Actions // LoRa Configuration #define CUSTOM_SPI an other question... and this part |
Beta Was this translation helpful? Give feedback.
-
Lora controller?! This Is fantastic. |
Beta Was this translation helpful? Give feedback.
-
Sorry if this is a dumb question, but is there some documentation on this somewhere that i've missed? I'd like to use this to control a relay via MQTT, but i'm not sure how to structure the incoming mqtt message to instruct FDRS to do something. Please and thanks |
Beta Was this translation helpful? Give feedback.
-
Hi timm,
How are you? I finally make the irrigation system (soon i Will make an
article in my blog).
I have a questione for a strange behaviour.
In the final nodes esp+l'ora and ESP+espnow+relay: the 2 ESP have separate
Power supply with the buck 220 volt ti 5 volts. When i send the lora
message After the First One the system crash. If i use the USB there Is no
problem.
Do you have some idea how ti debug It and some solutions as i would likes
to do not use 2 USB charger?
Thank you very much
Il lun 17 apr 2023, 20:49 bkcberry ***@***.***> ha scritto:
… I see what you mean, the irrigation sketch has 13 and 14 defined as coil
pins but for the Heltec V3 those are LoRa pins. Would have never caught
that.
Working now, thank you for all of your help!!!
—
Reply to this email directly, view it on GitHub
<#38 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARQPTY6TEPINTTGJXUIL7MDXBWGBZANCNFSM6AAAAAASNK6AE4>
.
You are receiving this because you were mentioned.Message ID:
<timmbogner/Farm-Data-Relay-System/repo-discussions/38/comments/5640763@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Hi,
Please, share more information about hardware setup on irrigation system
https://github.com/timmbogner/Farm-Data-Relay-System/tree/main/Controllers/Irrigation
Best
Beta Was this translation helpful? Give feedback.
All reactions