XEP_configure_and_run example using mcp_wrapper_1.3.0 for X4M03

Discussion in 'Module Connector (MC)' started by Snehal Patel, Aug 7, 2018.

  1. Snehal Patel

    Snehal Patel New Member

    Hi All,

    I implementing C language program using mcp_wrapper/example/generic , which is equivalent to XEP config and run example,
    is it possible to get data float using mcp_wrapper?
    if YES than please provide few inputs.

    Regards,
    Snehal
     
  2. Charlie Shao

    Charlie Shao Moderator Staff Member

    Hi Snehal,
    It is possible. You need to add a new function like mcpw_demo_x4m03(com_port).
    Then implement the procedure on XEP_X4M200_X4M300_plot_record_playback_radar_raw_data.py.
    You will be able to get generic float data messages, which contains RF or baseband radar raw data.
     
  3. Snehal Patel

    Snehal Patel New Member

    Hi Charlie,

    Thanks for the response,
    I am able to get float data messages, but with in one single frame there is 1452 or more data float elements,
    where with python/c++ application giving 370 float data element in one call of xep.read_message_data_float api.
    Is this 1452 data float elements are valid?

    Here is the frame interpretation for reference which I am following.
    x4m03_frame.png

    Where data float element = 0x5bb = 1467


    Regards,
    Snehal
     
  4. Charlie Shao

    Charlie Shao Moderator Staff Member

    Hi Snehal,
    I just updated MCP Document: https://www.xethru.com/community/resources/xethru-module-communication-protocol.130/ . Section 6.1.1
    Data: Array of float values. Depending on downconversion is enabled or not, the message
    data is baseband IQ data (first half I, second half Q) or RF data.

    The float data array length is decided by your detection range setting. RF data can provide up to 1536 RF data items, baseband data can provide up to 188*2 items.
     
  5. Snehal Patel

    Snehal Patel New Member

    Hi Charlie,

    Thanks for updated document,
    We have 368 numbers of baseband data now.

    Thanks for the support.
    Regards,
    Snehal