Hi,
I'll explain the problem: when i connect Arduino to Flash via TinkerProxy I only get 1-way communication over the Flash-Socket.
When I send some dummy data from Arduino to Flash, everything is ok ( the line in code below Serial.print("No Serial Data"); )
Sending data to Arduino over the same socket fails without any warning.
Arduino Code
void loop(){
timer ++; // timer is just a little counter used to prints "no serial data" on the serial port every n time )
if (Serial.available() > 0) {
char message = Serial.read(); // Works in Serial Monitor but not from Flash
Serial.print(message);
timer = 0;
}
if(timer > timerResetVal){ // enough time has passed
Serial.print("No Serial Data"); // Flash receives this perfectly
timer = 0;
}
}
I used the examples provided here http://tinker.it/now/2007/05/11/tinkerproxy-for-windows/ ( Flash & Arduino sample files are in the zipfile )
I've disabled my firewall, put in some delays, tried all transferspeeds ( yes, both the same in Arduino & TinkerProxy ) and different portnumbers, but no luck ...
Does anybody have any suggestions ?
Thx !