Upload sketches via serial (TCP/IP > Serial)

I’d like to be able to upload new sketches and monitor the serial port remotely.

Harware used:

  • Arduino UNO
  • RS232 → TTL (MAX202)
  • Digi portserver ts4 (Serial over IP)

PC > Network > Portserver > MAX202 > Arduino (for TX/RX)

The MAX202 converter seems to work. I can monitor the serial TX/RX remotely.
I’m aware that the arduino needs to be reset right before uploading a new sketch. This is done by pulling RTS (and CTS) low which is connected to the reset pin of the atmega.

I’ve connected the RTS/CTS pins to a BC547B which is also connected to ground and the reset pin.

When uploading a new sketch, the UNO is being reset right after compiling the program, but i keep getting these errors:
avrdude: stk500_getsync(): not in sync: resp=0x30
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

!(http://www.pingtimeout.nl/fora/2011-10-26 16_35_11.jpg)

The rts is usualy connected via 100nf capacitor to reset - which creates a short pulse, rather than a logic level…p.

Maybe there are timing issues going through TCP etc.


Rob

pito: The rts is usualy connected via 100nf capacitor to reset - which creates a short pulse, rather than a logic level..p.

It's a bit hard to see but there is a 100nf capacitor connected between the RTS wire and the BC457B.

Graynomad: Maybe there are timing issues going through TCP etc.


Rob

Hm could be. Not really what i wanted to hear :)