Search code examples
veinssumo

Can i use sumo or veins to send real data?


I am in the process of creating a simulated scenario to test the amount of data a RSU can receive at any given time. I have real world CANbus data and would like to simulate a vehicle sending this data to the RSU. For example, simulate a vehicle sending one line of data per second from a file stored on my local PC, and then simulate 100, 200, 300 vehicles transmitting this data. Is this possible


Solution

  • Sure thing. Encode your source data according to the frame format you wan to simulate (e.g., that used by BSMs), deduce the frame size in bits, then configure your cars to send messages of that size. For inspiration, try out the Veins tutorial example. Here, all cars send messages of the same size, but you can easily see where this is set.