This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FR5043: How to measure using Hilbert Wide version

Guru 12335 points
Part Number: MSP430FR5043


Hi,

I am using the library (Lobe Wide and Hilbert Wide) provided by TI with the following settings.

・ PATTERN_SEQ_MULTI_TONE (multitone: 2 frequencies)
・ USS_ALG_ABS_TOF_COMPUTATION_MODE_HILBERT_WIDE (HilbWide algorithm)
・ USS_ALG_FILT_IS_FILTER_ENABLED (BP-Filter enabled)

As a result of changing to the Hilbert Wide library by referring to the following document to reduce the memory, it was confirmed that the memory is reduced.

https://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/USSSWLib/USSSWLibWater/02_40_00_00/exports/USSLib_02_40_00_00/docs/LibUsersGuide/markdown/OptimLib.html

However, all the measurement results will be "0".

Even if I change to another library (Hilbert, Lobe, LobeWide), the measurement result is "0", and currently only Lobe Wide and Hilbert Wide can operate normally.

Is there any change required to use the Hilbert Wide version, such as changing the Config parameter specified in the USS library?

Thanks,

Astro

  • Hi, Eason

    Currently, we are making a prototype with "Hilbert WideAndRobe", and we are able to measure correctly.
    When I change the TI library to "Hilbert Wide" in that state, the measured value = 0 will be output. No particular changes have been made to anything other than the library. If you know something, please let me know.

    Thanks,

    Astro

  • Hi, Eason

    Do you have any update? The currently set parameters are attached below.

    #define H_USS_F1_FREQ							(210)											/* 210kHz F1											 */
    #define H_USS_F2_FREQ							(220)											/* 220kHz F2											 */
    #define H_USS_PATTERN_OPTION					PATTERN_SEQ_MULTI_TONE							/* Multi Tone Pattern									 */
    #define H_USS_ADC_SAMP_COUNT_SEC				(130)											/* 130us Gap between pulse start and ADC capture(us)	 */
    #define H_USS_NUM_OF_TRILL_PULSES				(4)												/* 4pulse Number of Pulses								 */
    #define H_USS_RESTART_CAP_COUNT_SEC				(2000)											/* 2ms UPS and DNS Gap(us)								 */
    #define H_USS_SYS_MEASUREMENT_PERIOD			(30)											/* 30ms UPS0 and UPS1 Gap(ms)							 */
    #define H_USS_GAIN_RANGE						USS_Capture_Gain_Range_1_9						/* 27(1.9dB) GUI Based Gain Control						 */
    #define H_USS_VOLUME_SCALE_FACTOR				(61.00f)										/* 61.00 Meter Constant(l/h)							 */
    #define H_USS_XT_FREQ							(8000)											/* 8000kHz USSXT(kHz)									 */
    #define H_USS_ADC_SAMPLING_FREQ					(200)											/* 200kHz ADC Sampling Frequency(kHz)					 */
    #define H_USS_SIGNAL_SAMPLING_FREQ				(1000)											/* 1000kHz Signal Sampling Frequency(kHz)				 */
    #define H_USS_ADC_OVER_SAMPLING_RATE			(80)											/* 80 ADC Over Sampling Rate							 */
    #define H_USS_ALG_DCOFFSET						(0)												/* 0ps Delta TOF Offset(ps)								 */
    #define H_USS_ALG_ADC_ADDITIONAL_CAP_DLY		(0)												/* 0ns Abs TOF Additional Delay(ns)						 */
    #define H_USS_CAPTURE_DURATION_USEC				(200)											/* 200us Capture Duration(us)							 */
    #define H_USS_FLOW_RATE_UNIT					(1)												/* l/h Flowrate Unit									 */
    #define H_USS_ALG_ABS_TOF_COMPUTATION_MODE		USS_ALG_ABS_TOF_COMPUTATION_MODE_HILBERT_WIDE	/* Hilbert-Wide Algorithm Option						 */
    #define H_USS_ALG_ABS_TOF_HILB_CROSS_THRESHOLD	(50)											/* 50% Envelope Crossing Threshold						 */
    #define H_USS_START_CAPTURE_SEC					(200000)										/* 200us Start PPG Count(ns)							 */
    #define H_USS_TURN_ON_ADC_COUNT_SEC				(20000)											/* 20us Turn On ADC Count(ns)							 */
    #define H_USS_PGA_IN_BIAS_COUNT_SEC				(200000)										/* 200us Start PGA and IN Bias Count(ns)				 */
    #define H_USS_HSPLL_USSXTAL_SETTLING_USEC		(180)											/* 180us USS XTAL Settling Count(us)					 */
    #define H_USS_EXTERNAL_AMP_COUNT				(10000)											/* 10us USS External Amplifier Count(ns)				 */
    #define H_USS_USER_PARAM_8						(128)											/* 128 User Param #8									 */
    #define H_USS_ALG_ABS_TOF_SEARCH_RANGE			(8)												/* 8 Search Range										 */
    #define H_USS_USER_PARAM_10						USS_ALG_FILT_IS_FILTER_ENABLED					/* 1=true User Param #10								 */
    

    This parameter works normally with Lobe Wide and Hilbert Wide version. I would like to know if there are any inappropriate parameters when replacing it with the Hilbert Wide version.

    Thanks,

    Astro

  • Hi, 

    Do you have any update?

    Thanks,

  • Sorry, I know little about USS. I will find an expert to help you.

  • Hi Astro,

    The Lobe Wide and Hilbert Wide is OK in FR5043, right?

    This parameter works normally with Lobe Wide and Hilbert Wide version

    You change other Library, which library?

    Now, in my library, we use Lobe wide for water meter, Hilbert Wide used for Gase meter, what is your end-product?

    Thanks!

    Best Regards

    Johnson

  • Hi, Johnson

    The Lobe Wide and Hilbert Wide is OK in FR5043, right?

     Yes. 

    It works fine on "Lobe Wide and Hilbert Wide", I replaced it with "Hilbert Wide" and it cannot be measured correctly.

     

    You change other Library, which library?

    Now, in my library, we use Lobe wide for water meter, Hilbert Wide used for Gase meter, what is your end-product?

    We just changed "Lobe Wide and Hilbert Wide" to "Hilbert Wide".

    Also, the end product is an anemometer.

    Thanks,

    Astro

  • Hi Astroke,

    Anemomter should belong gas application. I think Hibert Wide should be OK, but I don't have a board duoe work in home.

    I can try to consult other member or test "Hibert Wide" after I got the board.

    Thanks!

    Best Regards

    Johnson

  • Hi, Johnson

    Do you have any update? .

  • Hi Astro,

    I am still work in home due to 2019-COVID, thus don't have the board to do test.

    I am touching other member to check if they can do some test.

    Thanks!

    Best Regards

    Johnson  

  • Johnson

    Thank you for reply.
    We look forward to your update.

    Thanks,

    Astro

  • Hi, Johnson

    Do you have any update?

  • Hi Astro,

    I am still work in home, thu can't do any test in board.

    Could you tell me where you changed to "Hilbert Wide"? In your code? which file? Maybe I can find something via code.

    Thanks!

    Best Regards

    Johnson

  • Hi, Johnson

    Please wait for a while as we will confirm the changes to the customer.

    Also since the application code contains sensitive information, is it possible to respond with a private message?

    Thanks,

    Astro

  • Hi Astro,

    Offline support this case.

    Thanks!

    Best Regards

    Johnson

**Attention** This is a public forum