Hello Experts,
I am using IWR6843ISK Radar sensor with Area Scanner Demo Firmware. I am looking to read the data out of ISK sensor and bring a Working Python Code.
Need your help to add some PYTHON CODE to read the data over UART and parse. I want to read data from ISK via USB by connecting to the computer. Flashed the Area scanner demo on ISK.
I have started with importing pyserial but haven't got working solution to build the code which read serial data over UART from area scanner cfg file and gives me real time data of radar sensor frame by frame in real time and print frame header, TLV ' s fir each frame. For Area scanner: TLV 1, 7,8, 9, 10, 11 are needed
My device manager with COM ports looks like this:
COM 7 : CLI port
COM 8: Data port
..
I want to print:
-
Frame Header :Length: 44 Bytes:Length: 44 Bytes
Value Type Bytes Magic Word uint16_t 8 Version unint32_t 4 Total Packet Length unint32_t 4 Platform unint32_t 4 Frame Number unint32_t 4 Time [in CPU Cycles] unint32_t 4 Num Detected Obj unint32_t 4 Num TLVs unint32_t 4 Subframe Number unint32_t 4 Num Static Detected Obj unint32_t 4 -
TLV Header
Length: 8 Bytes
Value Type Bytes Type unint32_t 4 Length [num bytes] unint32_t 4 -
TLV 1: Detected Object (Dynamic Points)
Type: 1
Value Type Bytes range [m] float 4 angle [rad] float 4 elev [rad] float 4 doppler [m/s] float 4 -
Static Detected Object (Static Points)
Type: 8
Length: 16 Bytes x Num Static Detected ObjValue Type Bytes x [m] float 4 y [m] float 4 z [m] float 4 doppler [m/s] float 4 -
Tracked Object List
Type: 10
Length: 40 Bytes x Num Tracked ObjectsValue Type Bytes Target ID uint32_t 4 pos X [m] float 4 pos Y [m] float 4 vel X [m/s] float 4 vel Y [m/s] float 4 acc X [m/s^2] float 4 acc Y [m/s^2] float 4 pos Z [m] float 4 vel Z [m/s] float 4 acc Z [m/s^2] float 4 -
Point to Track Association
Type: 11
Length: 1 Byte x Num Detected ObjValue Type Bytes Target ID uint8_t 1
I want to get your help in writing Python code to read the TLV's in real time and print these TLV's on console. some useful steps to start with and get a clear understanding on what are functions I need to read serial data and write the data would be much appreciated.
some sample code to test out would be much appreciated
Please provide useful information or test code to do this?
Best Regards,
Shravya