X2 X2m200 keep running without ant output

Discussion in 'X2 & X4 SoC' started by rickykaka8, Dec 31, 2018.

  1. rickykaka8

    rickykaka8 New Member

    Hi, everyone. My name is Yoon.

    I am trying to get real-time raw data of X2M200 module by Matlab R2018b, but i have a problem now.

    Earlier I have downloaded X2m200_bb_example.m file in follow post
    https://www.xethru.com/community/threads/how-to-get-raw-baseband-data-in-x2m200.182/#post-1236

    upload_2018-12-31_16-12-7.png


    Then I added the necessary paths first.

    addpath('C:\Users\윤석현\Documents\MATLAB\UWB\ModuleConnector-win32_win64-1.6.2\matlab\');
    addpath('C:\Users\윤석현\Documents\MATLAB\UWB\ModuleConnector-win32_win64-1.6.2\include\');
    addpath('C:\Users\윤석현\Documents\MATLAB\UWB\ModuleConnector-win32_win64-1.6.2\lib64\');

    After loading the essential library, without any figures drawing, the script just keep running on and on, just create debug file in same folder.

    Then I looked at this debug file, i found that the code is running well at line18 function x2m200.enable_baseband_ap();
    but at [amplitue,phase] = x2m200.get_baseband_ap_data('baseband_ap') it does not do well and keep running a
    [amplitue,phase] = x2m200.get_baseband_ap_data('baseband_ap'). At debug file it just doing like this continually

    0.657304 : enable_baseband -- end
    0.665243 : get_baseband_ap_data -- begin
    0.706111 : bytes in in queue 31
    0.706111 : 32: {0x7d, 0x50, 0x26, 0xfe, 0x75, 0x23, 0xf, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, ..., 0x0, 0xad, 0x7e}
    0.706111 : dispatching packet:
    0.706111 : 29: {0x50, 0x26, 0xfe, 0x75, 0x23, 0xf, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ..., 0x0, 0x0, 0x0}
    0.755978 : bytes in in queue 31
    0.755978 : 32: {0x7d, 0x50, 0x26, 0xfe, 0x75, 0x23, 0x10, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, ..., 0x0, 0xb1, 0x7e}
    0.755978 : dispatching packet:
    0.755978 : 29: {0x50, 0x26, 0xfe, 0x75, 0x23, 0x10, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ..., 0x0, 0x0, 0x0}
    ........

    I could do nothing but wait and then exit the MATLAB forcibly, closing the MATLAB software directly because the debug stop did not work.

    Could you help me to fix this problem?

    Thanks very much, and happy new year.

    Yoon
     

    Attached Files: