|
|
Hi,
I have an embedded device and need to reach it via computer RS-232 (serial) interface. I was using C++ previosly but i wish my program will run on all platfrom therefore, i changed the programing language to java. I have a object like Kanal1 which has 8 different byte attribute (byte variable).
I need to send these 8 byte to target board to say it what to do. I observed java and and usefull SDN links. As fas as i understand there is an extension package named Comm which involves serial communication java APIs. But these APIs are applicable on Linux/Solaris platforms. I need to clarify following topics.
1. How i will program serial interface on windows platform?
2. I can program serial interface on Linux palatforms by using comm package
3. To call correct method with respect to OS platform i need to find out on which OS platform my program runs. How i will do this?
I stacked on a project. I will be very pleased if i get usefull information.
Thanks in advance,
Serkan Turan