Serial Port Communication
-
Hi All, I have an appliation that communicates with a hardware device attahced with the system. So far, the device had been attached using USB so the application was determining the PORT using Port Name. Now, the newer device have 9-pin serial port. How can I now determine the Port number? I don't want to iterate through all the ports and send any command and analyse the response to determine the required Port. Any suggestion or hint would be greatly helpful...
Regards, -SIFAR.
-
Hi All, I have an appliation that communicates with a hardware device attahced with the system. So far, the device had been attached using USB so the application was determining the PORT using Port Name. Now, the newer device have 9-pin serial port. How can I now determine the Port number? I don't want to iterate through all the ports and send any command and analyse the response to determine the required Port. Any suggestion or hint would be greatly helpful...
Regards, -SIFAR.
-
use class "serialport".
SerialPort serialport1 = new SerialPort();
use this class and using this obj u can read port no.... ok. TANIM TAFIN:thumbsup:
-
Hi All, I have an appliation that communicates with a hardware device attahced with the system. So far, the device had been attached using USB so the application was determining the PORT using Port Name. Now, the newer device have 9-pin serial port. How can I now determine the Port number? I don't want to iterate through all the ports and send any command and analyse the response to determine the required Port. Any suggestion or hint would be greatly helpful...
Regards, -SIFAR.
There really is no way to determine that without iterating. Unless you make the user pick the port manually.