×
Notice
The forum is in read only mode.
Forum
VoIP Gateways Support
GSM Gateway
send sms using AT-command
×
Questions about VS-GW2120/GW1600/GW1202 and WGW1002G GSM Series VoIP Gateway
send sms using AT-command
10 years 1 month ago #9480
by IvanShubin
I can not send sms. Using GSM/Toolkit.
[align=left]AT+CMGF=1[/align]
[align=left]OK[/align]
[align=left]AT+CMGS=+380505&&&&&&[/align]
[align=left]>[/align]
[align=left]Hellow[/align]
[align=left]TIMEOUT[/align]
[align=left]What is my error? [/align]
2014-03-13 13:32:03 TX:[AT+CMGF=1]
2014-03-13 13:32:03 OK
2014-03-13 13:32:52 TX:[AT+CMGS=+380505??????]
2014-03-13 13:32:52 >
2014-03-13 13:33:18 TX:[Hellov]
2014-03-13 13:33:30 TX:[Hellov]
2014-03-13 13:33:42 TX:[Hellov]
Less
More
Posts: 10
Thank you received: 1
10 years 1 month ago #9481
by rick.zhu
Hi,
This is Rick!
If you want to send the SMS via AT command,you should translate it to PDU code!
If you want to know more details please contact me directly!
My contact info be shown as below:
Skype: rick.zhu3
Email: This email address is being protected from spambots. You need JavaScript enabled to view it.
Best Regards.
Less
More
Posts: 5
Thank you received: 0
9 years 4 months ago - 9 years 4 months ago #10043
by Louis
Hello friends, this a part of my java code, i would like you help-me to solve it. I'm accessing the Gateway through sockets.
I have defined some constants in my code
public final char GROUP_SEPARATOR = (char) 0x1D;
public final char CONTROL_Z = (char) 0x1A;
pdu mode:
String cmd = "action:command\r\ncommand: gsm send sync at "+this.outSpan+" \"AT+CMGF=0\" 3000\r\n";
this.out.println(cmd);
I put 154 just to simplify because i already know this pdu message size
String cmd = "action:command\r\ncommand: gsm send sync at "+this.outSpan+" \"AT+CMGS=154\" 10000\r\n";
this.out.println(cmd);
the pdu that im using is the following:
0031000C915517387010880010FFA031D98C5E06D1CB737A19442FCFE96510BD3CA797E9E539BD0CA297E7F432BD3CA79741F4F29C5EA697E7F432885E9ED3CBF4F29C5E06D1CB737A995E9ED3CB207A794E2FD3CB737A19442FCFE9657A794E2F83E8E539BD4C2FCFE96510BD3CA797E9E539BD0CA297E7F432BD3CA79741F4F29C5EA697E7F432885E9ED3CBF4F29C5E06D1CB737A995E8EC966
...........................................................................
String cmd = "action:command\r\ncommand: gsm send sync at "+this.outSpan+" \""+pdu+GROUP_SEPARATOR+CONTROL_Z+"\" 10000\r\n";
this.out.println(cmd);
this is the AT log for my message:
2014-11-21 03:07:00 +CSQN: 13,0
2014-11-21 03:07:09 +CSQN: 16,0
2014-11-21 03:07:19 +CSQN: 15,0
2014-11-21 03:07:37 +CSQN: 14,0
2014-11-21 03:07:47 +CSQN: 16,0
2014-11-21 03:07:56 +CSQN: 15,0
2014-11-21 03:08:54 +CSQN: 12,0
2014-11-21 03:09:03 +CSQN: 15,0
2014-11-21 03:09:22 +CSQN: 16,0
2014-11-21 03:09:31 +CSQN: 15,0
2014-11-21 03:09:39 TX:[AT+CMGF=0]
2014-11-21 03:09:39 OK
2014-11-21 03:09:39 TX:[AT+CSCS="UCS2"]
2014-11-21 03:09:39 OK
2014-11-21 03:09:39 TX:[AT+CMGS=154]
2014-11-21 03:09:39 >
2014-11-21 03:09:39 TX:[0031000C915517387010880010FFA031D98C5E06D1CB737A19442FCFE96510BD3CA797E9E539BD0CA297E7F432BD3CA79741F4F29C5EA697E7F432885E9ED3CBF4F29C5E06D1CB737A995E9ED3CB207A794E2FD3CB737A19442FCFE9657A794E2F83E8E539BD4C2FCFE96510BD3CA797E9E539BD0CA297E7F432BD3CA79741F4Py 0x0F ?dr Ctrl+Z]
2014-11-21 03:09:39 +CMS ERROR: invalid input value
2014-11-21 03:09:50 +CSQN: 13,0
2014-11-21 03:10:01 +CSQN: 15,0
what am i doing wrong? how can i send that Control-Z character??
Last Edit: 9 years 4 months ago by
Louis .
Less
More
Posts: 77
Karma: 5
Thank you received: 7
9 years 4 months ago #10045
by Michael.zou
Hi.
why would you want to send Ctrl+Z? It is a send action, please add me to your skype contact list, tell me the detail.
My skype id is along.zou, named Michael.
Less
More
Posts: 5
Thank you received: 0
9 years 4 months ago #10049
by Louis
Thank you.. I'm adding you.. but i can only be online latter (i guess tomorrow for you). i'm not at the company right now.
Forum
VoIP Gateways Support
GSM Gateway
send sms using AT-command
Time to create page: 0.069 seconds