I need to make an SMS transceiver that automatically inputs to a database every SMS that it receives. I am using a USB GSM Modem and able to use AT commands via HyperTerminal at COM Port 3.
Thanks.
The official API from sun/oracle for communication with serial/parallel ports is the Java Communication API ( www.oracle.com slash technetwork/java/index-jsp-141752.html ).
Be aware: this api just contains Java interfaces - no implementation classes. Sun/oracle suggests to use the rxtx library as implementation (licensed as LGPL).
I have been using the rxtx library successfully. The official webpage is not looking promising, but the implementation works fine for serial and parallel ports: http://users.frii.com/jarvi/rxtx/
If you don't want use lib then write your code in cpp and use JNA or JNI to invoke the function. Third party libaray depends on hardware, I am not sure these will behave well.