Forum >DFRobot C1001 use of sSleepStatistics DFRobot_HumanDetection::c(void)
How to select

DFRobot C1001 use of sSleepStatistics DFRobot_HumanDetection::c(void)

userHead TERENCE.CURTIS 2025-01-08 12:11:57 279 Views1 Replies

I am building and application as part of my commercial systems for a possibly large application in Aged care and in home care in several countries.      [yes, required approvals and testing] 

and testing the C1001 in Sleep mode, that is generally OK reading the sleep mode, inornotinbed, heartrate / respiration etc, all reasonably ok, I added the normal range control etc

 

I will also do the Fall detect method, looks relatively simple. 

  , however I need to receive the hu.getSleepStatistics();

In the example code there is the following comment..

 sSleepStatistics statistics = hu.getSleepStatistics();  // Get sleep statistics, the sensor reports the whole night's sleep statistics data when it judges the sleep process to be over.

when can I expect that? or can I call it after we are “awake” or “not present?” inotnotinbed etc?

 I am writing the data to the cloud data service, also what are the range of values I expect to see for these items ?

 


Also in the sSleepComposite DFRobot_HumanDetection::getSleepComposite(void)

what will I expect in the .apneaEvents = 0, ?  appears I received an apnea evet of some 132? 

as I need to read that as an event and I can log the time and result .. is that simply 0 - 1 ? not just the stats 

 

appreciate some assistance,, thanks Terence..


 






 

2025-02-28 09:02:37

Question: is there a DFROBOT person on this page??

EXPLAINER: I am very seriously interested in the C1001 for several large scale applications, I have the commercial software working:

 

if some company person can contact me please??

 



I have a working system, with Sleep Monitoring, and using the in bed status, Movement, Heart rate and respiration etc, and that's well understood:

However I need to go deeper in to the Library examples now, and there are some vague presentation of data. 

I wanted to implement the Apnea and other stat data:

Serial.printf("\tAverage respiration rate: %d\n", comprehensiveState.averageRespiration);  

Serial.printf("\tAverage heart rate: %d\n", comprehensiveState.averageHeartbeat);  

Serial.printf("\tNumber of turns: %d\n", comprehensiveState.turnoverNumber); 

Serial.printf("\tProportion of significant body movement: %d\n", comprehensiveState.largeBodyMove);  

Serial.printf("\tProportion of minor body movement: %d\n", comprehensiveState.minorBodyMove);  

Serial.printf("\tNumber of apneas: %d\n", comprehensiveState.apneaEvents);

 and 

 Serial.print("Sleep abnormalities:");  switch (hu.smSleepData(hu.eSleepDisturbances)) {@@and @ sSleepStatistics statistics = hu.getSleepStatistics();  // Get sleep statistics, the sensor reports the whole night's sleep statistics data when it judges the sleep process to be over. 

 

it is unclear when the device judges the process to be over?? 

Also:  

During the Sleep Cycle, its unclear what defines Light Sleep and Deep sleep.

 

userHeadPic TERENCE.CURTIS