Using XEP functions to reconfigure the ModuleConnector's profile

Discussion in 'Respiration Sensor' started by Mahdi Emami, Mar 4, 2019.

  1. Mahdi Emami

    Mahdi Emami New Member

    I'm using X4M200 module to measure the distance to the closest moving object. For this purpose, I used the function read_message_respiration_detectionlist() from ModuleConnector library.

    First, I configure and run X4M200 module as it is done in X4M200_sleep_record example (load_profile() , set_output_control() and set_sensor_mode() ). Then, I try to reconfigure some parameters like Frame_Area and FPS using XEP functions x4driver_get_frame_area() and x4driver_set_fps(). After reading data, everything looks normal and I have the data but the distance data seems inaccurate. Does any change to the profile's parameters makes the algorithm invalid?

    What is the best way to change some parameters in the profile's setting? Specifically, I want to increase the range to 9.9 meter and FPS to 255 as it is mentioned in X4 datasheet. I am just interested in distance to the closest moving object. Is there other ways to achieve this goal?
  2. Charlie Shao

    Charlie Shao Moderator Staff Member

    Hi Mahdi,
    On application mode, which you load a specific profile, the X4 FPS is pre-configured with 17 FPS.
    On XEP mode, you have more freedom to configure X4 settings to achieve other maximum FPS, then you set FPS smaller that this maxFPS. This does not cause any modification on profile at application mode. You can use radar raw data to develop your own DSP algorithm. We have one application note introduce how to configure X4 chip: Example script: