Skip to content

Using the Car Simulator Control CLI

JulianAnders edited this page Aug 29, 2018 · 5 revisions

Download the Car-Simulator Control CLI from here.

Detect the carsim in the network

To detect CarSim in your network simply use the carsimCLI.jar with the argument discover.

java -jar .\carsimCLI.jar discover

The discovered simulators will be lsited with their IP Address and Version. To use the other otpions of the CLI you'll need this IP address.

Transfer new LUA files from PC to Simulator

With the CarSim Control CLI you easily transfer lua files from your computer to the car simulator. Therefore you just have to use the transfer command.

java -jar .\carsimCLI2.jar transfer hostname path

The hostname will be the IP Address of the Simulator, which can be discovered with the step described previously.

The path will be your new LUA's path on your local machine.

After the file has successfully been transfered. The Simulationserver on the raspberry will restart and load the freshly transfered LUA.

Remotely Delete Files from Simulator

To delete Lua files from the simulator you can use the delete option of the CLI.

java -jar .\carsimCLI.jar execute hostname delete filename

You can also delete all Lua files at once by using the parameter all as filename.

java -jar .\carsimCLI.jar execute hostname delete all

Manually start and restart the Simulator

You can also manually start and restart the simulation server by using:

java -jar .\carsimCLI.jar execute hostname start

or

java -jar .\carsimCLI.jar execute hostname restart

To shutdown the serer manually use:

java -jar .\carsimCLI.jar execute hostname kill

Clone this wiki locally