5 Replies Latest reply on Mar 11, 2013 7:42 AM by msur

    Manual threshold in  SmartSense2x UM  in PD5.3

    rocky.marciano

       Manual threshold doesnot work in  SmartSense2x UM  in PD5.3

        • 1. Re: Manual threshold in  SmartSense2x UM  in PD5.3
          tejender.sheoran

           Hi rocky,

             

          There is a bug in SmartSense2X UM code. But there is a workaround for this. In wizard use manual threshold.And in your main code after smartsense initialization use the global variables that stores the threshold for each sensor as shown below.

             

           

             
              //SmartSense Init   
             
                  SmartSense_Start();   
             
                   
             
               SmartSense_InitializeBaselines();        
             
                  
             
               /*Edit these settings as per your board*/   
             
                  
             
               for(ncount=0;ncount<=13 ;ncount++) // 13 no of sensors or assign separately if you want to set different threshold for each sensor   
             
               {   
             
                          
             
               SmartSense_baBtnFThreshold[ncount] = 100;   
             
               }   
             
                  
             

           

             

          Best regards

             

          Tejender

          • 2. Re: Manual threshold in  SmartSense2x UM  in PD5.3
            msur

            Hello,

               

             

               

            Can you expand on what exact issue you are facing?

               

             

               

            If you want to set the threshold manually, you need to select either "Autotune based on sensitivity" or "Manual"  under Threshold setting and modify the <Instance_Name>_baBtnFThreshold[Sensor_No] array to set the finger threshold after you call <Instance_Name>_Start() API and before calling the <Instance_Name>_UpdateSensorBaseline() API or <Instance_Name>_bIsSensorActive() API.

               

             

               

            In case, you want to set the threshold setting you have entered in the wizard (when selecting "Manual" threshold), you have to call <Instance_Name>_SetDefaultFingerThresholds() API. Here <Instance_Name> = The name you have selected for the UM.

               

             

               

            If you are facing any other issues, do let us know. We will help out.

               

             

               

            Regards,

               

            MSUR

            • 3. Re: Manual threshold in  SmartSense2x UM  in PD5.3
              rocky.marciano

               Hi MSUR,

                 

              there is option of setting the manual threshold in Wizard. I am setting it there. 

                 

              Do i still need to do modifications that you are telling.

                 

              If yes can you elaborate with an example 

                 

              Thanks

                 

              Rocky

              • 4. Re: Manual threshold in  SmartSense2x UM  in PD5.3
                msur

                In case you are setting the Threhold in wizard, you need to call <Instance_Name>_SetDefaultFingerThresholds() after you have called <Instance_Name>_Start() API for the threshold setting to take effect.

                   

                 

                   

                 

                   

                Regards,

                   

                MSUR

                • 5. Re: Manual threshold in  SmartSense2x UM  in PD5.3
                  msur

                  On another note, there is a known glitch with 'Manual' Setting in SmartSense2X UM.

                     

                   

                     

                  In this setting, sensors are tuned to a fixed sensitivity rather than the user selected sensitivity. We have already implemented a fix which is scheduled for the next Designer release.

                     

                   

                     

                  Meanwhile an workaround for the issue is as below -

                     

                   

                     

                  1. Use 'Autotune based on sensitivity' setting in the wizard.

                     

                  2. As TEJU mentioned, initialize the <Instance_Name>_baBtnFThreshold[Sensor_No] array as per your Finger threshold requirement.

                     

                   

                     

                   

                     

                  Regards,

                     

                  MSUR