Replay CAN messages as they were recorded using a [panda jungle](https://comma.ai/shop/products/panda-jungle). The jungle has 6x OBD-C ports for connecting all your comma devices. Check out the [jungle repo](https://github.com/commaai/panda_jungle) for more info.
`can_replay.py` is a convenient script for when any CAN data will do.
In order to run your device as if it was in a car:
* connect a panda jungle to your PC
* connect a comma device or panda to the jungle via OBD-C
* run `can_replay.py`
In order to replay specific route:
```bash
MOCK=1 selfdrive/boardd/tests/boardd_old.py
``` bash
batman:replay$ ./can_replay.py -h
usage: can_replay.py [-h] [route_or_segment_name]
# In another terminal:
tools/replay/replay <route-name>
Replay CAN messages from a route to all connected pandas and jungles
parser.add_argument("route_or_segment_name",nargs='?',help="The route or segment name to replay. If not specified, a default public route will be used.")
args=parser.parse_args()
ifnotpanda_jungle_imported:
print("\33[31m","WARNING: cannot connect to jungles. Clone the jungle library to enable support:","\033[0m")