I tried it, but it didn't help.
I snooped around in the rxtx code, and I think this is what they are doing to set RTS:
I tried to put the ioctl statements in the freeport code, but it still didn't help.
I guess I give up for tonight. Tomorrow's another day...
I snooped around in the rxtx code, and I think this is what they are doing to set RTS:
JNIEXPORT void JNICALL RXTXPort(setRTS)( JNIEnv *env, jobject jobj, jboolean state ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); char message[80]; ENTER( "RXTXPort:setRTS" ); ioctl( fd, TIOCMGET, &result ); if( state == JNI_TRUE ) result |= TIOCM_RTS; else result &= ~TIOCM_RTS; ioctl( fd, TIOCMSET, &result ); sprintf( message, "setRTS( %i )\n", state ); report( message ); LEAVE( "RXTXPort:setRTS" ); return; }
I tried to put the ioctl statements in the freeport code, but it still didn't help.
I guess I give up for tonight. Tomorrow's another day...