gsmcomm

Send At Command to gsm modem with Java

冷暖自知 提交于 2019-12-19 10:34:23
问题 I am trying to make a program to send a sms. I wrote the program but doesn't successfully send the message. My program send an At command to the Port COM in my computer but I do not get a response from my gsm modem. I am using COM terminal (Temp pro...) to send sms with the at command and I am able to send sms. Therefore I don't know why the program can't send a sms. import java.io.*; import java.util.*; import gnu.io.*; public class prawiefinal { static Enumeration portList; static

Can't send more than 160 characters sms C# using GSM Modem

南楼画角 提交于 2019-12-02 19:02:34
问题 I have searched a lot but still couldn't find exactly what am looking for. Actually i'm working on a winforms app that will allow user to send bulk sms using GSMCOMM library with the help of a GSM Modem. What i have achieved so far is that i can send text messages that are <= 160 characters but problem begins when a message gets longer that 160 characters. I don't get any error and sms seemed to have been sent but its not actually. I'm sharing my code snippet that is used to send sms. Please

Can't send more than 160 characters sms C# using GSM Modem

倾然丶 夕夏残阳落幕 提交于 2019-12-02 09:29:26
I have searched a lot but still couldn't find exactly what am looking for. Actually i'm working on a winforms app that will allow user to send bulk sms using GSMCOMM library with the help of a GSM Modem. What i have achieved so far is that i can send text messages that are <= 160 characters but problem begins when a message gets longer that 160 characters. I don't get any error and sms seemed to have been sent but its not actually. I'm sharing my code snippet that is used to send sms. Please have a look at it and let me know where the problem is. Thanks. SmsSubmitPdu[] pdus; comm.Open(); pdus

Send At Command to gsm modem with Java

喜欢而已 提交于 2019-12-02 02:32:37
I am trying to make a program to send a sms. I wrote the program but doesn't successfully send the message. My program send an At command to the Port COM in my computer but I do not get a response from my gsm modem. I am using COM terminal (Temp pro...) to send sms with the at command and I am able to send sms. Therefore I don't know why the program can't send a sms. import java.io.*; import java.util.*; import gnu.io.*; public class prawiefinal { static Enumeration portList; static CommPortIdentifier portId; static String messageString = "AT+CMGF=1 \r"; static String messageString2 = "AT+CMGS

How to concat long SMS in GSMComm Library?

南笙酒味 提交于 2019-11-30 15:45:31
问题 Here is my code: According to this page the CreateConcatTextMessage method returns an array with type SmsSubmitPdu[] but, when I try to send it with SendMessages I get a MessageServiceError 500 . What am I missing? SmsSubmitPdu[] pdu2; try{ pdu2 = SmartMessageFactory.CreateConcatTextMessage("My name is Barry Allen. And I am the fastest man alive. When I was a child I saw my mother killed by something impossible. My father went to prison for her murder.", "+639234597676"); comm.SendMessages