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
preguntada hace 3 meses135 visualizaciones
1 Respuesta
2
Respuesta aceptada

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
EXPERTO
respondido hace 2 meses
profile picture
EXPERTO
revisado hace 2 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas