Is it possible to extract the raw data in C of both antenas in different arrays

Announcements

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

cross mob
User19012
Level 1
Level 1
First question asked
Hello,
I'm using the P2GO radar, and I'm trying to acces to both antennas raw data in C.
What I've came across is the next code, but it doesnt refer to physical Antenna.

* data_value_real = frame_start[(2 * ANTENNA_NUMBER ) *num_samples_per_chirp + SAMPLE_NUMBER];
* data_value_imag = frame_start[(2 * ANTENNA_NUMBER + 1) *num_samples_per_chirp + SAMPLE_NUMBER];

I tried to look into how the data is packed into the transport buffer:

And I wanted to change the function parse_frame_info and see the total frame data and see if by looking at MSG_FRAME_DATA I could extract it.

Any help would be very much appeciated.
0 Likes
1 Solution
Montassar-BR
Employee
Employee
50 likes received 5 questions asked 250 sign-ins
From in the P2G code you can see, how the data is packed into the transport buffer:
In function send_frame_data(…), in file EndpointRadarBase.c you can see that
• 1st the signals per Antenna are interleaved
• 2nd the Antennas
• 3rd the chirps
are wrapped into the message.

So from the frame format it is would be possible to find the required samples.
Important to know, that the comlib is providing already float values, so no need to care about the 12 bit packing.

Best Regards,
Montassar

View solution in original post

0 Likes
2 Replies
Montassar-BR
Employee
Employee
50 likes received 5 questions asked 250 sign-ins
From in the P2G code you can see, how the data is packed into the transport buffer:
In function send_frame_data(…), in file EndpointRadarBase.c you can see that
• 1st the signals per Antenna are interleaved
• 2nd the Antennas
• 3rd the chirps
are wrapped into the message.

So from the frame format it is would be possible to find the required samples.
Important to know, that the comlib is providing already float values, so no need to care about the 12 bit packing.

Best Regards,
Montassar
0 Likes
User19839
Level 1
Level 1
Hi Yassine,
Did you find any solution to the problem? I am also looking for the same solution. If you find any working solution, please share it here too. Thanks in anticipation.
0 Likes