i worked on this all day (>6 hours) which for someone more experienced would have been a couple minutes but i learned lots and feel very good about my achievement.
i can now do what i need, send stuff to the serial port and have the arduino understand it.
i'm just using a direct connection to the TX1 pin to the arduino RX pin, grounding the arduino to the wrt54g's serial ground.
i was originally changing the baud from 115200 on the wrt54g to 9600 but the arduino i found can do 115200! lots of credit to the link below, i took parts of his code to make something much simpler than what he was doing. here it is:
Arduino code, credit
http://kennethfinnegan.blogspot.com/2010/09/hacking-wrt54gl-serial-port.html - my code is based on this
char k;
int j;
void setup() {
Serial.begin(115200);
}
void loop() {
if (Serial.available() > -1) {
for (j=0; j < 16 && Serial.available(); j++) {
k = Serial.read();
Serial.print(k);
}
}
}
this will output whatever you see on the console during boot time, as well as stuff you echo with echo "b" > /dev/tts/0 from the wrt54g for example.
now for a beer
