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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容