Distance2GoL Querying Target Info to External Microcontroller

Announcements

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
viveksharmaspac
Level 1
Level 1
First reply posted First question asked First like given

Hello there,

I want to export the detected target information(the distances of the detected object) to some external microcontroller(Arduino) in order to make a standalone device.

I have already read some of the documentation in the ComLib_C_Interface documentation that is inside the distance2go folder. It seems that the range/distance data are able to be queried from the EndPointTarget detection library(EndpointTargetDetection.h) on the Target_Info_t Struct.

Is there any example of how to do data queries on the board?

  Best Regard

Vivek Sharma

0 Likes
1 Solution
AliAsgar
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 750 replies posted

Hi Vivek,

The Distance2GoL firmware is implementing a CommLib interface based on a USB CDC serial (Device side). To help user communicate with the Distance2GoL via CommLib USB interface, we offer the CommLib_C based Host side example the one you are referring to.

 EndpointRadarD2GL.c from the CommLib Host side can be used to get the range_m info from the Radar Device, part of the fmcw_result_cnf_t structure. You just need to port the ComLib_C_Interface C project running on PC (as a Host) to an MCU-based project and fetch the range information from the Radar device.

Best Regards,
AliAsgar

View solution in original post

2 Replies
AliAsgar
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 750 replies posted

Hi Vivek,

The Distance2GoL firmware is implementing a CommLib interface based on a USB CDC serial (Device side). To help user communicate with the Distance2GoL via CommLib USB interface, we offer the CommLib_C based Host side example the one you are referring to.

 EndpointRadarD2GL.c from the CommLib Host side can be used to get the range_m info from the Radar Device, part of the fmcw_result_cnf_t structure. You just need to port the ComLib_C_Interface C project running on PC (as a Host) to an MCU-based project and fetch the range information from the Radar device.

Best Regards,
AliAsgar

Thank you
Really appreciated 

0 Likes