Lets say you need to remote tune your vehicle of choice, let's do it with a pair of laptops and wifi.
prereq's:
Two laptops with wifi or ethernet connectivity. (wifi for a wireless link)
BOTH must be running Linux. The one connected to the physical MS box can be really low powered, as it doesn't need to run a GUI, a P200 is more than adequate.
interceptty from http://www.suspectclass.com/interceptty/
End to end laptop connectivity (i.e. they must be able to ping each other via TCP/IP)
Setup:
Install interceptty on both machines
Code: Select all
wget http://www.suspectclass.com/interceptty/files/interceptty-0.6.tar.gz
tar xvzf interceptty-latests.tar.gz
cd interceptty-0.6
./configure
make
sudo make install
- Server machine: The ONE connected to the ECU
- Client machine: The one running megatunix through a virtual serial port.
Edit the following scripts to taste (change IP/PORT/PHYSICAL_PORT as needed)
SERVER script
Code: Select all
#!/bin/sh
PORT=3333
SRV_IP=192.168.0.2
PHYSICAL_PORT=/dev/ttyUSB0
BAUD=9600
interceptty -q -s 'ispeed ${BAUD} ospeed ${BAUD}' \
${PHYSICAL_PORT} \
@${SRV_IP}:${PORT}
intercept-client
Code: Select all
#!/bin/sh
SRV_IP=192.168.0.2
PORT=3333
LOCAL_DEV=/tmp/virtual-serial
interceptty -q @${SRV_IP}:${PORT} ${LOCAL_DEV}
Now run megatunix and let it error out on the comm port and go to the comms tab and select "/tmp/virtual-serial" as the port to use and it should linkup and run.