Reliability again
-
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.