Ministation

Here is how to make an arduino available over the network using an Ubiquiti ministation.

Hook up your arduino on RX, TX and Ground

Pin 1,2 3V3
Pin 3 Rx
Pin 7 Tx
Pin 5, 9,10 GND

Pin 1 is marked with a white dot.

1 3 5 7 9
2 4 6 9 10

Note: Put 1K resistors inline on TX and RX

vi /etc/persistent/serio.sh
#!/bin/sh
cat /etc/inittab|grep -v ttyS0 > /tmp/foo
cat /tmp/foo > /etc/inittab
kill -1 1
kill `ps aux|grep -v grep |grep getty|cut -d " " -f3`
while
nc -l -p 1234 < /dev/ttyS0 > /dev/ttyS0
do
sleep 1
done
chmod 775 /etc/persistent/serio.sh
vi /etc/persistent/rc.poststart
#!/bin/ash
.//etc/persistent/serio.sh
Then make the poststart script executable:
"chmod +x /etc/persistent/rc.poststart"
cfgmtd -w -p /etc/

You broke something.

if you want to reset your radio,
follow these steps exactly:

1. disconnect the PC and network
2. power up the radio; wait 30sec. or more
3. hold reset button down for about 10sec, until the
signal level lights start flashing back and forth
4. release reset button; wait 10sec. or more
5. power down the radio for 10sec. or more
6. power up the radio; wait 30sec. or more
7. reconnect the PC

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License