Please help me,

I am working on a project aiming to detect a 5V external DC signal from USB port. For that I am using RS232/USB adaptor.

Corresponding to that I am writing an application in java using javax.comm library and following this tutorial .

I am able to detect the port at which adaptor is attached

and also able to open that port. But when I am passing the 5V signal with duration >100milliseconds and <500 milliseconds( taken from another USB port pins) to CTS,DSR or RxD pin and 0V to pin 5 of RS232 there is not any data detected.

Tell me how to conquer that problem. I am attaching a project that I am using to check this (I found this one from net), it is not in java I am just using to check the status of pins but not getting any response find an .exe in it somewhere to run directly.

Please tell me what type of data is generated and how could I read that data.