electrojustin
June 26th, 2011, 04:33 PM
Hello all!
I am trying to write a proof-of-concept test program in C/C++ on Ubuntu 11.04 that will communicate with a BASIC Stamp via a Keyspan USB to Serial Adapter. I've programmed the Stamp to blink an LED if it receives the number one through serial input. For some reason, the C/C++ test program I wrote causes the "running" light on the Stamp to simply flicker, implying that it was just reset. After searching the internet for quite a few hours, I came to the conclusion the DTR line being high was causing the reset. My question is, does anyone know how to set the DTR line to low in C/C++?
Thanks in advance,
electrojustin
I am trying to write a proof-of-concept test program in C/C++ on Ubuntu 11.04 that will communicate with a BASIC Stamp via a Keyspan USB to Serial Adapter. I've programmed the Stamp to blink an LED if it receives the number one through serial input. For some reason, the C/C++ test program I wrote causes the "running" light on the Stamp to simply flicker, implying that it was just reset. After searching the internet for quite a few hours, I came to the conclusion the DTR line being high was causing the reset. My question is, does anyone know how to set the DTR line to low in C/C++?
Thanks in advance,
electrojustin