@mfalkvidd thank you very much for your quick answer! I'll look into that.
Giovanni Chiva
@Giovanni Chiva
Best posts made by Giovanni Chiva
-
RE: Building a gateway with two transport layers
Latest posts made by Giovanni Chiva
-
RE: MQTT Ethernet Gateway with Wired RS485 Network
Hey @ATha1, I'm sorry for reviving this old topic but I'm currently struggling with getting RS485 and RF24 to work together. I can't find any other threads mentioning this so I'm really wondering if you did manage to make them work together and how.
-
RE: Something's cooking in the MySensors labs...
@BearWithBeard No need to say sorry! You did point me to the right direction, I was clueless
I've tried a different RS485 DE pin, but still no luck.
#define MY_RS485_DE_PIN 4
I've seen people mentioning RS485 transport here in the comments but I'm not sure if anyone actually did test this combination (RF24 & RS485).
-
RE: Something's cooking in the MySensors labs...
@BearWithBeard
Apparently the main development branch does not include multitransport support. I've eventually found @tekka 's branch and was able to download it from here https://github.com/mysensors/MySensors/tree/09434a4b9fb668fbaa2d47803b5541f2d7b05d29The error message is gone now, however only RF24 transport layer is working. If I comment the RF24 transport, then RS485 starts working.
-
RE: Something's cooking in the MySensors labs...
@BearWithBeard thanks for the reply!
Unfortunately I'm getting the same error message :/libraries/MySensors-development/MySensors.h:295:2: error: #error Only one forward link driver can be activated
Am I missing something?
Here is my gateway code :
// Enable debug prints to serial monitor #define MY_DEBUG // Enable RS485 transport layer #define MY_RS485 // Define this to enables DE-pin management on defined pin #define MY_RS485_DE_PIN 2 // Set RS485 baud rate to use #define MY_RS485_BAUD_RATE 9600 #define MY_RF24_CS_PIN 10 // Used by the MySensors library. #define MY_RF24_CE_PIN 7 // Used by the MySensors library. #define MY_RADIO_RF24 // Define radio module #define MY_RF24 #define MY_RF24_PA_LEVEL RF24_PA_MAX // Set radio power to max #define MY_RF24_DATARATE RF24_1MBPS // Limit transmission to 1MBS // Enable serial gateway #define MY_GATEWAY_SERIAL #include <MySensors.h> void setup() { // Setup locally attached sensors } void presentation() { // Present locally attached sensors } void loop() { // Send locally attached sensor data here }
-
RE: Something's cooking in the MySensors labs...
Hi guys! I'm trying to enable RS485 and RF24 transports but I'm getting the following error :
/libraries/MySensors/2.3.2/MySensors.h:290:2: error: #error Only one forward link driver can be activated
I saw the MY_RFM69_NEW_DRIVER example and tried to apply the same logic :
#define MY_RS485_NEW_DRIVER
This made the error go away but the RS485 transport layer is not initialized.
I've tried enabling only the RS485 layer and it works.Any idea on how to enable multitransport with RF24 and RS485 ?
-
RE: Building a gateway with two transport layers
@mfalkvidd thank you very much for your quick answer! I'll look into that.
-
Building a gateway with two transport layers
Hi everyone. After using MySensors for 2.5 years and lurking on this forum, I'm finally feeling confident enough to ask a question here.
I'm building a new house and I want to integrate everything to HomeAssistent using MySensors.Since I don't want my house lighting to rely on radio communication (I.e. RF24) and since the distance between the controller and the gateway is quite big, I'm thinking of using RS485 between them.
However, I also want to be able to dynamically add nodes around the house later on using RF24 if I want to.
Here's exactly what I'm trying to achieve :
So essentially I'm asking if there's a way to enable two separate transport layers : RS485 and RF24 at the same time.
If yes, how would that be implemented?
If no, is there an alternative to this? Does anyone have an idea of how can something like this be done?