Closed bonifacey closed 5 years ago
I'm not 100% familiar with the protocols behind AT commands, but my guess would be that there is some amount of framing, delimiting, etc that goes into sending the commands, and smslib probably takes care of those aspects behind the scenes. jSerialComm is just a raw serial library, so whatever you write will be sent across the line verbatim. My suggestion would be to take a dive into the smslib code and see if you can decipher with what exactly is happening when you tell that library to write an AT command. It might be as simple as appending a newline character or delimiter to a string, or it could be something much more involved.
Closing due to inactivity, and not a library-specific issue but rather an application-implementation question.
I'd wish to use your library to send SMS through a serial modem. I've been able to connect the modem Port.
I've noted that once I have the port open, the modem isn't accessible through its software...(mobile partner(Huawei) doesn't show signal strength). Not sure if that's how it should be. When I send the AT commands with the port open, the SMS is not sent.
I had used smslib which has a SerialConnection --- I'd open the connection by specifying a COM port. Then send commands through it and modem would send the SMS.
What I have tried... I have opened the port and got a comPort... Which is the [port to use]
Then, comPort.writeBytes(cmd.getBytes(), cmd.length());