Austin Clark
- Joined Dec 28, 2011
- 412
Try keeping the connection alive from beginning to end. You don't have to physically disconnect them to trigger the Arduino reset. I'm not great at C and I can't really tell if your PC-side code does this. If you're only receiving part of the response you're expecting, perhaps you're reconnecting after sending "Hello?" instead of staying connected throughout, causing the Arduino to reset mid-response.
You might try temporarily disabling auto reset to see if that helps: http://playground.arduino.cc/Main/DisablingAutoResetOnSerialConnection
You might try temporarily disabling auto reset to see if that helps: http://playground.arduino.cc/Main/DisablingAutoResetOnSerialConnection