infineon4engi@twitter infineon@linkedin infineon4engineers infineon@youtube
twitter Facebook Linkedin Youtube

+ Reply to Thread
Results 1 to 4 of 4

Thread: extract_raw_data.c "The device didn't send any message." after ~1hour of listening

  1. #1
    Beginner Beginner wszczurek is on a distinguished road
    Join Date
    Sep 2019
    Posts
    5
    Points
    57.5

    extract_raw_data.c "The device didn't send any message." after ~1hour of listening

    Sensor: Position2Go

    I have this problem with "Infineon\IFX_P2G-HW-SW_V1.0.2\Firmware_Software\Communication Library\ComLib_C_Interface\examples\extract_raw_da ta.c"

    After listening to the 'ep_radar_base_get_frame_data' for about one hour I got "The device didn't send any message" error message. Why would the sensor stop sending data? What function can help with debugging the problem? The program didn't crash, simply it stopped reporting the data.

    I was able to replicate the issue multiple times. The device was on power all the time and no other USB devices were attached/detached during the listening.

    Below is the code snipped where I got the error message.

    Code:
    ...
    while (1)
    {
           // get raw data
    	des = ep_radar_base_get_frame_data(protocolHandle, endpointRadarBase, 0);
    
    	if(des < 0) {
    		printf("%s (%d)", protocol_get_status_code_description(protocolHandle, des), des);
    	}	
    }
    ...
    Last edited by wszczurek; Nov 22nd, 2019 at 09:25 AM.

  2. #2
    Beginner Beginner agallenSMX is on a distinguished road
    Join Date
    Jul 2019
    Posts
    10
    Points
    95
    This happens to me as well. I just check the error code, and if its the one for "Device didn't send any message" I ignore it and keep going.

    Have you checked the device temperature at all? I've noticed the Position2Go starts to become unstable above 80 C.
    Last edited by agallenSMX; Dec 3rd, 2019 at 05:22 PM.

  3. #3
    Beginner Beginner wszczurek is on a distinguished road
    Join Date
    Sep 2019
    Posts
    5
    Points
    57.5
    Thanks @agallenSMX for that suggestion. That is the error message I got: "Device didn't send any message". I checked the temperature and it is ~66C-67C while reading the data and around the time it stops. Did you make any progress with this problem?
    Last edited by wszczurek; Dec 12th, 2019 at 12:02 PM.

  4. #4
    Beginner Beginner wszczurek is on a distinguished road
    Join Date
    Sep 2019
    Posts
    5
    Points
    57.5
    Got this from Infineon support:

    In the file “\Application\src\application.c” in the function body of “void app_init( void)”

    around line 144:

    One argument of the call to protocol_init(…) should be changed:
    From:
    protocol_init(endpoint_list, sizeof(endpoint_list)/sizeof(endpoint_list[0]), SYSTIMER_GetTime, BSP_HOST_TIMEOUT_USEC, system_reset);
    to:
    protocol_init(endpoint_list, sizeof(endpoint_list)/sizeof(endpoint_list[0]), NULL, BSP_HOST_TIMEOUT_USEC, system_reset);

    The handler function to get the system time should be set to NULL. This disables the wrongly implemented time-out check of the protocol.
    With that wrong implementation, the device detects a time-out and resets the communication after about 65 minutes, and the host would require to resume the connection.

+ Reply to Thread
Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.