How to modify AWS IoT FleetWise CAN signal simulator?

0

Hello, AWS People I want to test IoT FleetWise by changing the value of CAN simulator in github. I wanted to set the data value of 100 of the signal and collect it by changing the 33-46th line of cansim/cansim.py . But this failed. I want to run the simulator with the signal of the name I want and the data of the signal. What can I do?

Thank you always for your kindness

mzhyo
已提問 3 個月前檢視次數 135 次
1 個回答
2
已接受的答案

To modify the CAN simulator in the IoT FleetWise repository on GitHub to set a specific data value for a signal, follow these steps:

  1. Open the cansim.py file located in the cansim directory of the IoT FleetWise repository.
  2. Locate the lines of code (33-46) where the data for the signal is being set. This may involve modifying the send_can_msg function or any other relevant function where signal data is being generated.
  3. Within those lines of code, find where the specific signal you want to modify is being handled. This may involve searching for the signal name or ID.
  4. Modify the code to set the desired data value for the signal. For example, if you want to set the data value of the signal to 100, ensure that the appropriate variable or parameter is assigned this value.
  5. Save your changes to the cansim.py file.
  6. Run the CAN simulator to test your changes. Ensure that the simulator is correctly configured and connected to the IoT FleetWise platform.
profile picture
專家
已回答 2 個月前
profile picture
專家
已審閱 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南