Forums - Help In sensor model

4 posts / 0 new
Last post
Help In sensor model
Loris
Join Date: 27 Jul 16
Posts: 35
Posted: Wed, 2016-07-27 02:20

Hello,

       I'm using sensor model  on an PIR sensor based on the temperature sensor sample project, but when i send the occupancy state of PIR by calling sensorvalue() API, i recieved period occupancy state report on the gateway side, which is not same as expected. meanwhile, i can't monitor where my program is going. and i don't why my program send period report. i just send report when occupancy state of PIR sensor changed. why?  troubling me 

  • Up0
  • Down0
Dr. Nissim Zur
Profile picture
Join Date: 6 Jun 16
Location: Skype: nissim.test CSR1010 External design house
Posts: 235
Posted: Fri, 2016-08-05 02:01

CSRmesh was not designed to be battery powered. It will send RF messages all the time 

To see "what is going on" send debug messages to UART terminal 

You can call my Skype nissim.test 

  • Up0
  • Down0
Loris
Join Date: 27 Jul 16
Posts: 35
Posted: Fri, 2016-08-05 02:49

This strange behavior is due to incorrect TimerDelete(). I delete the timer when timer expires, but why this happen is still a mystery.

 

  • Up0
  • Down0
Dr. Nissim Zur
Profile picture
Join Date: 6 Jun 16
Location: Skype: nissim.test CSR1010 External design house
Posts: 235
Posted: Fri, 2016-08-05 07:34

what is bad with incorrect TimerDelete(). ? 
Did you use this way ? 

 

 if (g_partial_buffer_timer_tid != TIMER_INVALID)

{

   /* Kill the partial buffer timer. */

    TimerDelete(g_partial_buffer_timer_tid);

    g_partial_buffer_timer_tid = TIMER_INVALID;

}

 

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.