Reliability again
-
What type of radio do you have on the gateway? Amplified? If yes, did you follow the troubleshoot page instruction and lowering the transmit power or feeding the radio with from some other source than the Nanos 3.3V output which might be insufficient at full power?
Still doesn't explain the loss communication with the rest of the nodes you explained above (if your radio don't enter some weird state after power brownout).
-
What type of radio do you have on the gateway? Amplified? If yes, did you follow the troubleshoot page instruction and lowering the transmit power or feeding the radio with from some other source than the Nanos 3.3V output which might be insufficient at full power?
Still doesn't explain the loss communication with the rest of the nodes you explained above (if your radio don't enter some weird state after power brownout).
@hek
I have amplified version on both Gateway and this sensor (NodeID 1). Both have 47 uF capacitor. I have used RF24_PA_LOW explicitly before but with 1.4 that is the default but I now see it's only for gateway but sensors uses RF24_PA_MAX as default, right? I guess that is because most sensors doesn't use amplified version.
Will change the sensor code to start with.I guess the other sensors stops working because gateway fails on sending Variable1 and hangs?!
-
-
-
@JeJ
Yes, thats it! A bug in the PulseSensor code.
I will check in an updated version during the evening (CET). lastSend must be updated in loop()...... } else if (sendTime && !pcReceived) { // No count received. Try requesting it again gw.request(CHILD_ID, V_VAR1); lastSend=now; } ..... -
Can someone explain how to call gw.begin(); in a sensor to adjust the power level?
I read the troubleshooting page but it wasn't clear how the parameters would look.
When calling the function, do you have to call all the parameters or just the power level?
gw.begin(RF24_PA_LOW); ?
Is it the same for a gateway?
-
The best place to set the power level is in MyConfig.h. You can set the channel, gateway power level and sensor power level. See https://github.com/mysensors/Arduino/blob/master/libraries/MySensors/MyConfig.h
@blacey said:
The best place to set the power level is in MyConfig.h.
I am not sure if I agree if you have different sensors with different hardware (as I have) since changing MyConfig.h will change it globally.
@tbully
I have used this code:gw.begin(incomingMessage, AUTO, false, AUTO, RF24_PA_LOW);Since the PA parameter is the fourth one, you need to set the ones before (but go with defaults for the ones after)
-
@jocke4u said:
I have implemented it but still the gateway hangs when sending the requested KWH value to the sensor.
Strange. Is the sensor still "spamming" the gateway?
@hek said:
Strange. Is the sensor still "spamming" the gateway?
Damn, I made the fix but because of a stupid reason I uploaded the old version :(
I have now loaded a limited software with only EnergyPulseMeter, it partly works but I get too many "fail" when sending (even though many reaches GW).
As next step I think I need to connect an external 5V power supply and AMS1117 to feed the radio and hopefully get better reliability in transmits.
I guess no extra capacitor is needed due to 800mA max current? -
@blacey said:
The best place to set the power level is in MyConfig.h.
I am not sure if I agree if you have different sensors with different hardware (as I have) since changing MyConfig.h will change it globally.
@tbully
I have used this code:gw.begin(incomingMessage, AUTO, false, AUTO, RF24_PA_LOW);Since the PA parameter is the fourth one, you need to set the ones before (but go with defaults for the ones after)
@jocke4u said:
I have used this code:
gw.begin(incomingMessage, AUTO, false, AUTO, RF24_PA_LOW);
Since the PA parameter is the fourth one, you need to set the ones before (but go with defaults for the ones after)
Yes, the MySensors configuration design is to set the unified configuration parameters in MyConfig.h to ensure common sensor configs (.e.g. channel) across sensors but then override on a per-sensor basis as needed.