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.

IWR1642: IWR1642 Matlab custom gui People Count Demo

Part Number: IWR1642

Hi All, 

I'm looking at reducing the Baud rate for the IWR1542 on the people count demo, I have been able to alter and recompile the project with a slower baud rate. When I then open the quick start GUI  it does not run I believe this is down to the quick start GUI being hard-coded to open the COM Port at 115200, I have downloaded a trail of Matlab but I can't get this to work, I'm able to import the GUI Files and I'm able to open a custom GUI window but I can't connect to the Com Ports or see the positioning radar. 

I might be missing something any help or directions to a tutorial document on how to make a custom Matlab GUI would be greatly appreciated.

  • Hi Marcus,

    There are 3 GUI files.

    1. Main_pplcount_viz.m runs the GUI after the device is initialized.  It parses data from the "DATA" com port (baud rate: 921600) and plots this data n the graph.
    2. setup.fig controls the way the setup (first) window looks.
    3. setup.m controls all the functions for the setup window. 

    You will find the baud rate settings in #3, setup.m. The only edit you need to make will be to the baudrate that is set.

    What are you hoping to achieve with a lower baud rate?

    Thanks,

    Justin

     

  • Hi, thanks for the reply I'm just about to finish for the day so I will try again tomorrow with your instructions. the reason for the reduced baud rate is that I'm looking at using a wireless medium to send the data and need to find out what is the slowest possible baud rate that the IWR1642 can handle before I get buffer overflows
  • Hi Marcus,

    For configuring the device, baud rate won't matter, as these commands only need to be sent once, and are not time sensitive. Please see this TI design for an example of using the people counting demo with a sub-1 GHz wireless device.

    Regards,

    Justin

  • hi, 

    I have followed your suggestions/guidance and have now been able to get a custom Gui working, (For anyone trying this that has never used Matlab before; you need to either install an add-on for the web camera function or remove all bits of code from main_pplcount_viz.m and setup.m  and deleting the web camera UI elements from setup.fig by right-clicking on setup.fig then open in GUIDE) .

    The issue is that I now see where the baud rate is stored in the setup.m file and I can change it. When I run the GUI trough Matlab, I can see everything works as usual but if the 921600 is changed to anything slower the plotting popup window does not pop up. 

    After looking at the code for the GUI, I believe this is due to the GUI using the full point cloud data to plot the tracked people. It was mentioned to look at the mmWave using sub 1ghz wireless, after looking at this implementation I can see that the device is running at a slower baud rate by not using the point cloud data and just using a TLV of object x/y pos and id.

    The reason for trying to get the IWR1642 to work at a slower baud rate is that I'm looking at getting the result similar to the sub 1ghz wireless but when developed and being used a way of visualizing the tracked items would really help with commisioning the device.

  • Hi Marcus,

    If you are using the People Counting drop from Industrial Toolbox 2.5.2, you can disable the Point Cloud transmission by adding the command "PointCloudEn 0" to the cfg file. Then the demo will only transmit the information for tracked people. This will allow a lower transmission rate.

    When you lower the baud rate in the gui, are you lowering the device's baud rate as well?

    Regards,
    Justin
  • Hi, yes I have been changing the baud rate for both the GUI and the code on the IWR1642 and have tried adding the disable point cloud line to the .cfg file I'm using. However, the code that I have compiled is based on the 2.3.0, not the 2.5.2. 

    I did try the 2.5.2 code in CCS, but it was unable to rebuild and gave several errors for both the MSS and DSS when I had made no changes to the code. The only code that I was able to get to rebuild was 2.3.0.

  • Hi Marcus,

    You will need to create a new workspace in CCS to compile a different version of the people counting lab, as the projects all have the same name and CCS will not let you import projects with the same name into the same workspace.

    2.3.0 and 2.5.2 use different SDKs.  If you want to compile 2.5.2 without errors, you will need to install SDK 2.0.0.4.  If you have not installed SDK 2.0.0.4 yet, please check the device nomenclature to ensure that you have an ES2.0.  ES2.0 will say 502AC, while ES1.0 will say 502.

    If you have an ES1.0, you will need to use 2.3.0.  You can see the task_mbox.c section to modify the demo so it does not output point cloud info (or whatever info you want to remove).

    Regards,

    Justin