Closed ralcaide closed 5 years ago
Great, it will be tested asap
Testing.. Results:
At this moment we are receiving always 0.00 as measured power in photodiode. Is that normal? Are you receiving different values? Are you enabling this peripheral? By default is disabled
L3_TF_STATUS_R;072078;0.00;1534247820;
How have you tested up to now the photodiode
Testing:
OK, now is sending different values when the Fiber is not connect.
To be tested
Question: Now, the device is publishing each minute and consuming a lot of battery. How can we change this period in order to set 5 or 10 minutes and see if the battery have more longlife?
Before 802980be85c3f23f9de6174dc0f6d77c941e5e2e commit: Change line 578 in freertos.c from if (nowMinute != prevMinute) to if ((nowMinute != prevMinute) && (nowMinute%5 == 0))
After 802980be85c3f23f9de6174dc0f6d77c941e5e2e commit: Change line 300 in Application.cpp from CTimeEvent timer = new CTimeEvent("TFP", GetTimeStamp(), 1 , -1, 60, SendTF); to CTimeEvent timer = new CTimeEvent("TFP", GetTimeStamp(), 1 , -1, 60*5, SendTF);
Thanks
Now period of publishing L3_TF_STATUS_R could be adjusted using TFPER variable and DEFAULT_PERIOD definition (default value for TFPER).
Thanks, change the status to "To be tested" again
Tested OK
To develop a MVP for the command L3_TF_STATUS_R that contains the ID of the device (last 6 digits of IMEI) , the current power measured by the photo-diode and the timestamp
The main program should perform the following actions each minute