TLE5012 communication error

Announcements

Measure CO2 When It Matters - Infineon’s XENSIV™ PAS CO2 now comes in SparkFun Red. Check it now!

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

cross mob
leekings
Level 3
Level 3
50 sign-ins 25 replies posted 25 sign-ins

Hello. Infineon team.

i'm using TLE5012 MPS sensor, and try to communicate it.

(and i'm using aurix tc 364 DP)

i send D021 diag to get Angle value, but response start with "D021"and data follows..

is this a normal operation? communication works successfully?

 

is there any TLE5012 example in Aurix MCU, please let me know.

 

thank you.

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
Adithya_S
Moderator
Moderator
Moderator
100 sign-ins First question asked 50 replies posted

Hi, 

Hope you are doing good. Waiting for an update from you. Though I am attaching a zip file where the communication is established between the controller and the sensor. You can refer this.

Thanks and regards,
Adithya

View solution in original post

0 Likes
5 Replies
Adithya_S
Moderator
Moderator
Moderator
100 sign-ins First question asked 50 replies posted

Dear valued Infineon Customer,

Thank you for reaching us out. 

Looking into your question "TLE Communication Error", there are few things on which I want you to give some more information.

1. Can you please attach a snapshot of the viewer or the console on which you are receiving the data from sensor the for visualization, if used.

2. Can you please attach the snippet of the code where you are sending the command  from the controller and where you are receiving data from the sensor?

Thanks and Regards,

Adithya

 

 

0 Likes

thank for your reply Adithya

i'm using aurix's ILLD SPI module for 1 ND(number of data) communication(ILLD doesn't support SSC communication)

i made array for Tx command, and Rx data

leekings_0-1669164263642.png

i send data command + '0000' becuase if i don't input '0000', i cant' read the response

(reponse form is '0000'+command')

 

becuase of i'm using ILLD SPI , so i set it like below.

leekings_2-1669164452060.png

 

leekings_1-1669164327389.png

 

after setting SPI setting, i get SPI Tx,Rx data by using ILLD SPI sending function.

leekings_3-1669164517921.png

 

so, when i read rxdata, data form is ('command' + 'data'). 

but according to datasheet, it is written reponse data is consisof ('data' + safety word')

so, i don't know what is wrong.

 

thank you.

 

 

 

 

 

0 Likes
Adithya_S
Moderator
Moderator
Moderator
100 sign-ins First question asked 50 replies posted

Thank you providing the details.

After looking into this scenario, I would like to highlight few points.

Since the sensor is being interfaced with aurix micro-controller, there can be issue either at the sensor's end or at the micro-controller's end. To further investigate deep into this issue, few more information is required.

1) Schematics of how the sensor is interfaced with the micro-controller.

2) Pin mapping : which pin of the sensor is connected to which pin of the micro-controller.

3) project code for better understanding.

Thanks and Regards,

Adithya

 

 

0 Likes
lock attach
Attachments are accessible only for community members.
Adithya_S
Moderator
Moderator
Moderator
100 sign-ins First question asked 50 replies posted

Hi, 

Hope you are doing good. Waiting for an update from you. Though I am attaching a zip file where the communication is established between the controller and the sensor. You can refer this.

Thanks and regards,
Adithya

0 Likes

Hello. Thank you for your concern.

 

I'm successed to communicate MPS sensor just yesterday. 

 

i didn't know Chip select signal keep low while sending TX and receving RX. 

(i didnt' keep Chip select signal low. set it low when tx, and goes up high, and the set low again to recevie data)

 

thank you for your kindness and refer your sample code. thank you.

0 Likes