How can I get the phone calling number in my Java application?
问题 I am developing a Java application to get the phone calling number. I'm using a USRobotics 5639 modem (caller ID capable) and I do have the caller id service from my phone company. When I use hyperterminal, I get the number, time and date of the call: https://imgur.com/wwwRHa7 But when I try to do the same in my app, I only get the following: ATZ OK AT+VCID=1 OK This is what I have at the moment: import gnu.io.CommPortIdentifier; import gnu.io.PortInUseException; import gnu.io.SerialPort;