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
asked 2 months ago125 views
1 Answer
2
Accepted Answer

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
EXPERT
answered 2 months ago
profile picture
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions