Creating a Script to read CAN data - Brazil
Posted: Thu Sep 01, 2016 6:36 pm
Hi guys,
I am just starting my business here in Brazil, which one of my services is to test cars for magazines using RCP Pro2 to record acceleration, speed and CAN data. For that, I need to be able to read the CAN data from the vehicles.
It would be very easy if Brazil had chosen OBD2 language for CAN output data. But Brazil created its own "addresses", called OBD-BR2. I have some of the OBD-BR2 addresses and Ryan, from Autosportlabs, helped me to write them in the RCP script. However, it did not work
Now, what I am doing is reading the data that came out from the CAN logger. At least I could read a lot of data from a Suzuki Grand Vitara 2013. But, I don´t have any idea on how to convert these numbers into LUA language and start reading RPM and Pedal Position, at least. I have done this before using other softwares, so I have some idea that I need to check difference that could indicate RPM or Pedal Position "shape". The problem is that I am very fresh and new on RCP and LUA scripting and for this reason I am feeling quite lost on how to create a script file based on the data that I recorded.
Would someone be able to help me with that? The data read is attached.
Thank you guys for your support!
I am just starting my business here in Brazil, which one of my services is to test cars for magazines using RCP Pro2 to record acceleration, speed and CAN data. For that, I need to be able to read the CAN data from the vehicles.
It would be very easy if Brazil had chosen OBD2 language for CAN output data. But Brazil created its own "addresses", called OBD-BR2. I have some of the OBD-BR2 addresses and Ryan, from Autosportlabs, helped me to write them in the RCP script. However, it did not work
Now, what I am doing is reading the data that came out from the CAN logger. At least I could read a lot of data from a Suzuki Grand Vitara 2013. But, I don´t have any idea on how to convert these numbers into LUA language and start reading RPM and Pedal Position, at least. I have done this before using other softwares, so I have some idea that I need to check difference that could indicate RPM or Pedal Position "shape". The problem is that I am very fresh and new on RCP and LUA scripting and for this reason I am feeling quite lost on how to create a script file based on the data that I recorded.
Would someone be able to help me with that? The data read is attached.
Thank you guys for your support!