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.

IWR1642BOOST: Is there any way to avoid end the pplcount_gui.exe,even if I use it for a long time?

Part Number: IWR1642BOOST

Hi,

I uses CCS and People Count sample program to count moving people in our office,
continuously for several days.

But GUI(pplcount_gui.exe) program that started in yesterday evening
has been ended in a few hours after the start ,not last until today's morning.
I did it several times and all the same results.

Is there any way to avoid end the pplcount_gui.exe?

Is it impossible for this program to run for a long time?
Will serial error or temperature error tend to occur?

--------------The details are as follows.-------------

Using:
mmwave_industrial_toolbox_2_2_0
lab0011-pplcount
mmwave_sdk_01_01_00_02
BORD:IWR1642BOOT


1.I modified the program.
  task_app.c:
   1).After "gtrack_moduleStep()" , check X and Y position of targets,
      judge whether or not within a certain range.
  2).If there is anything in the targets list that catches the check,
    write X and Y position using "CLI_write()".
  3).In addition to this, I also use the GPIO to light the LED.

2.Write the program to IWR 1642 BOOT, start the pplcount_gui.exe,
   and confirm that Point Cloud is displayed normally.

3.Monitoring the port of UART with Tera Term Pro
   and write the information of Positions received from the program to the log file.
   At this time, output the time by the option of Tera Term Pro together.

4.I started processing at 17:30 as described above and came home.

5.This morning ,at 8:30 ,the GUI program had ended.
   Message:"The specified amount of data was not returned within the Timeout period."
  (From Matlab?)

The following are invalidated.
 screen saver
 Power off with no operation
 Hard disk off with no operation.
 Screen lock with no operation.(Although it turned off on PC setting only.
 Because I can not change the function to turn off from the network server.
 This morning ,screen locked by network server.)

According to the Tera Term Pro log, it was the following measurement situation.
  17:30 to 19:30...People Counted.(Sum persons.)
  19:30 to 22:30...Nothing.
  22:30............People Counted.(Maybe one person.)
  22:30 to 8:07....Nothing.
   8:07 to  8:40.....People Counted.(Sum persons.)

I am checking the PC at 8:40.

Since the warning message(The specified amount of...)
appears on the console that launched the GUI, the output time is unknown.

  • Hi,

    It appears there is an error with the GUI in this situation. The error you are receiving occurs when the GUI does not receive data from the device. From the timeline you gave, it seems Tera Term was receiving information from the device until you checked the log at 8:40. Is this the case? After you started the demo, did you check the Visualizer to make sure that it was running? Did you run the visualizer and the Tera Term log at the same time? If that is the case, Tera Term was capturing UART data, but this makes it impossible for the matlab visualizer to receive the data.

    Regards,
    Justin
  • Hi,

    Thank you very much.


    >It appears there is an error with the GUI in this situation.
    >The error you are receiving occurs when the GUI does not receive data from the device.
    >From the timeline you gave, it seems Tera Term was receiving information from the device until you checked the log at 8:40.
    >Is this the case? After you started the demo, did you check the Visualizer to make sure that it was running?
    >Did you run the visualizer and the Tera Term log at the same time?
    Yes,after the "pplcount_gui.exe" was started,I start TeraTerm Pro.
    I moved my hand in front of the sensor and we walked and confirmed the display of the GUI.
    At the same time, we confirmed that logs are output to TeraTerm only when there is any data.
    (I set the TeraTerm log to save to the file on the hard disk. )
    At that time, time was added from TeraTerm, so we could check the output time.
    I confirmed the time from the log file the next morning.
    (Because TeraTerm cannot display time on console.)

    >If that is the case, Tera Term was capturing UART data, but this makes it impossible for the matlab visualizer to receive the data.
    Since data reception is task_mbox and transmission of XY coordinates is task_app,
    I thought that it was possible to transmit when the timing did not overlap.


    Initially we tried to process the Japanease local time using the function of time.h inside task_app,
    but since we can not get the time value accurately,
    we added it with TeraTerm.
    With this method, the time becomes the one at the time of TeraTerm output,
    and it is somewhat off the reception time,
    but because there was no other way to think about it.

  • Hi,

    When Matlab and TeraTerm are both connected to the same COM Ports, they will interfere with each other. The device will send Point Cloud data then detection/tracking data sequentially, but these are all sent from task_mbox (unless you have modified the code).

    The GUI can be set to save an "FHist" that stores all data collected during its run time. It will store frame number, and frame time is constant, so time can be calculated that way.

    Regards,
    Justin
  • Hi,

    Thank you very much.

    Perhaps the program ends because I think that communication timing is not matched.

    I would like to test the time by enabling "FHist".
    But I have a question.

    Where should I fix it to enable "FHist"?

    There was no corresponding item in the source of DSS and MSS.
    Although it was in main_pplcount_viz.m,
    since I see the code of the extension "m" for the first time,
    I do not know how to use it.
    I think that it is to change this,
    build it and make it into the form of pplcount_gui.exe,
    but I can not find a project for build.

    Regards,
    user5205609

  • Hi,

    The FHist is generated by the GUI.  It will be saved when you press EXIT in the GUI.  It stores data from the device, as well as some meta data generated by the GUI.

    The project for the GUI is in Matlab. You can find it in the Industrial Toolbox: <INDUSTRIAL_TOOLBOX>\labs\lab0011-pplcount\lab0011_pplcount_gui

    Regards,

    Justin

  • Hi,

    Thank you very much.

    Is there only one line at the beginning "fhistRT" file is readable as the data output time?
    Does not it mean time every point cloud?
    It is not a file of Microsoft Access,is it?

    I pressed EXIT in the GUI,console message told me "Saving data and exiting".

    In folder of pplcount_gui.exe,I find "fhistRT"(kind:Shortcut) updeated date and time.
    But when I click this,Microsoft Access is started up.Online template selection is displayed.

    (I think that setting extension of Windows 10 is only related to Access.)

    In text editor,I can read caracters of "MATLAB 5.0 MAT-file, Platform: PCWIN64, Created on: Tue Jun 05 09:29:06 2018" at the top of "fhistRT".
    The rest of the sentence could not be read even if you change the encoding variously.

    I searched Drive C(windows10) all,I find "fhirstRT.mat"(kind:Internet shortcut) in folder of pplcount_gui.exe.
    I click this,Microsoft Access is started up,too.
    And Exploler does not display this fhirstRT.mat,but fhistRT is displayed only.
    (Exploler options are all files display even hidden.)

    Regards,
    user5205609

  • Hi,

    The FHistRT is the Matlab struct. To properly view this, you will need Matlab. If you don't have access to Matlab and want to save the data, you can see the data structure here under "Data Formats" and write your own parser accordingly.  

    Have you been able to try a long run of the GUI without Tera Term running?

    Regards,

    Justin 

  • Hi,

    Thank you very much.

    I will investigate and check the structure of Matlab in detail.

    Even if with Tera Term, I changed the output timing of COM in the program ,
    then it was able to run for a longer time.

    Regards,
    user5205609