NotePage, Inc. Forum Index

Adding AT command for GSM modem

 
Post new topic   Reply to topic    NotePage, Inc. Forum Index -> NotePager Pro Support
View previous topic :: View next topic  
Author Message
Prosperon



Joined: 04 Nov 2015
Posts: 6
Location: UK

PostPosted: Wed Nov 04, 2015 9:06 am    Post subject: Adding AT command for GSM modem Reply with quote

Hi,

I am trying to configure Notepage to utilise a Zoom 4595 GSM USB dongle, but am having issues:

1. Notepage can see it and communicate with the modem, but errors when sending the SMS
2. The following is the activity from a Terminal session within Putty to the 4595 device (< indicates a command passed and > indicates the return value):
< AT <ENTER>
>OK
<AT+CMGF=1 <ENTER>
>OK
AT+CMGS="0712312312" <ENTER>
>ERROR
3. I have been informed by Zoom support I need to add the following AT commands before the SMS AT command:
AT+CFUN=1 (power on)
AT+CNMI=2,1,0,1,0 (New Messages Indication to TE)

Can someone help with how this can be applied please.

thanks


Back to top
View user's profile
Tech Support



Joined: 25 Aug 2003
Posts: 4041

PostPosted: Wed Nov 04, 2015 9:40 am    Post subject: Reply with quote

You'll want to go in to the settings of the GSMAT carrier in PageGate and use AT+CFUN=1 in the "Init String" field - you can type that in the field.

You'll then want to go in to the settings of Connector 1 and use AT+CNMI=2,1,0,1,0 as the Init String.



_________________
Tech Support
support@notepage.com
http://www.notepage.net
Back to top
View user's profile
Prosperon



Joined: 04 Nov 2015
Posts: 6
Location: UK

PostPosted: Wed Nov 04, 2015 9:45 am    Post subject: Reply with quote

Hi

Thanks for the quick response.

We are using NotePager Pro and not Pagegate. I see there is a carrier Init string entry, but not connector.

thanks


Back to top
View user's profile
Tech Support



Joined: 25 Aug 2003
Posts: 4041

PostPosted: Wed Nov 04, 2015 10:50 am    Post subject: Reply with quote

Ah, in that case, you'll need to issue the commands in a two stage sequence.

So, you'll want to enter this Init String: AT+CFUN=1;+CNMI=2,1,0,1,0



_________________
Tech Support
support@notepage.com
http://www.notepage.net
Back to top
View user's profile
OzCom



Joined: 22 Oct 2003
Posts: 1087
Location: US

PostPosted: Thu Nov 05, 2015 1:13 pm    Post subject: Reply with quote

the "AT+CFUN=1" command is a reset command. You should verify that that modem REQUIRES it before every message. Many cellular networks will see multiple reset commands as an indication of a problem device and deactivate access until the issue is resolved



_________________
Aaron D. Osgood
Streamline Communications, LLC
* Authorized Notepage, Inc. Development Partner and Re-seller
TEL: 207-518-8455
AOsgood@streamline-solutions.net
Creators of AutoPage Spillman CAD interface for PageGate
Back to top
View user's profile Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
OzCom



Joined: 22 Oct 2003
Posts: 1087
Location: US

PostPosted: Thu Nov 05, 2015 1:29 pm    Post subject: Reply with quote

Additionally - the "CNMI" command turns on the "message waiting indicator" - this functionality is not used by PageGate or NotePager Pro



_________________
Aaron D. Osgood
Streamline Communications, LLC
* Authorized Notepage, Inc. Development Partner and Re-seller
TEL: 207-518-8455
AOsgood@streamline-solutions.net
Creators of AutoPage Spillman CAD interface for PageGate
Back to top
View user's profile Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Prosperon



Joined: 04 Nov 2015
Posts: 6
Location: UK

PostPosted: Fri Nov 06, 2015 6:35 am    Post subject: Reply with quote

Hi

Thanks for your responses first of all.

I was confused as to the inclusion of the CNMI command, so I will be testing without this first and see if just the reset command will allow the CMGS command to be accepted.


Back to top
View user's profile
Prosperon



Joined: 04 Nov 2015
Posts: 6
Location: UK

PostPosted: Fri Nov 06, 2015 10:50 am    Post subject: Reply with quote

Hi again,

Still not working. I have gone back to Zoom support to determine if any additional AT commands are required, but if anyone is aware I would appreciate assistance as this is preventing us sending SMS alerts from SolarWinds currently.

06/11/2015 14:42:07 ========================================
06/11/2015 14:42:07 Start connection to carrier: O2
06/11/2015 14:42:07 Connect using GSMAT protocol
06/11/2015 14:42:07 Setting communication parameters
06/11/2015 14:42:08 Attempting to reset modem
06/11/2015 14:42:08 Sent:AT<CR>
06/11/2015 14:42:09 Received:<CR><LF>OK<CR><LF>
06/11/2015 14:42:09 Modem reset
06/11/2015 14:42:09 Attempting to send carrier init string
06/11/2015 14:42:09 Sent:AT+CFUN=1<CR>
06/11/2015 14:42:10 Received:<CR><LF>OK<CR><LF>
06/11/2015 14:42:10 Carrier init string sent
06/11/2015 14:42:10 Sent:AT+CMGF=1<CR>
06/11/2015 14:42:11 Received:<CR><LF>OK<CR><LF>
06/11/2015 14:42:11 Text delivery mode entered
06/11/2015 14:42:11 ----------------------------------------
06/11/2015 14:42:11 Working on message to: <RecipientName> from: administrator
06/11/2015 14:42:11 Formatting message
06/11/2015 14:42:11 Message contained in a single packet
06/11/2015 14:42:11 Sending packet
06/11/2015 14:42:11 Sent:AT+CMGS="07xxxxxxx"<CR>
06/11/2015 14:42:14 Received:<CR><LF>ERROR<CR><LF>
06/11/2015 14:42:14 Sent:administrator:test<SUB>

thanks


Back to top
View user's profile
Tech Support



Joined: 25 Aug 2003
Posts: 4041

PostPosted: Fri Nov 06, 2015 11:05 am    Post subject: Reply with quote

Hm... well, the modem is erroring out when the message submission command is issued. That generally indicates that the cellular modem either isn't registered on the carrier network, the cell signal is weak or some other technical issue with the device. I'm definitely interested in what Zoom support tells you.



_________________
Tech Support
support@notepage.com
http://www.notepage.net
Back to top
View user's profile
Prosperon



Joined: 04 Nov 2015
Posts: 6
Location: UK

PostPosted: Fri Nov 06, 2015 11:12 am    Post subject: Reply with quote

I have confirmed in the Zoom software that the device is registered and the signal strength is good enough.

this is confirmed by the fact you can send a message successfully from within the Zoom application, which is installed on the same server (its a Hyper-V VM)


Back to top
View user's profile
Tech Support



Joined: 25 Aug 2003
Posts: 4041

PostPosted: Fri Nov 06, 2015 11:37 am    Post subject: Reply with quote

There's a test in Putty I'd like you to try:

1) If you don't already have putty, it can be downloaded from http://www.putty.org/

2) Run Putty.

3) Set the COM port and communication parameters to match your cellular modem's requirements.

4) After opening the connection, type the following and hit enter after each command:
AT
AT+CFUN=1 (Note: Wait 10 seconds after issuing this command before proceeding)
AT+CNMI=2,1,0,1,0
AT+CSQ
AT+CMGF=1
AT+CMGS="PhoneNumber"
Enter the text of a message to be delivered, then press enter.
Ctrl+Z

Please let me know what the response was to each of the commands in the sequence.



_________________
Tech Support
support@notepage.com
http://www.notepage.net
Back to top
View user's profile
Prosperon



Joined: 04 Nov 2015
Posts: 6
Location: UK

PostPosted: Fri Nov 06, 2015 12:01 pm    Post subject: Reply with quote

Hi,

The response is:

AT
<OK>
AT+CFUN=1
<OK>
AT+CNMI=2,1,0,1,0
<OK>
AT+CSQ
<+CSQ: 16,81>
AT+CMGF=1
<OK>
AT+CMGS="PhoneNumber"
<ERROR>

Unable to proceed >
Enter the text of a message to be delivered, then press enter.
Ctrl+Z


Back to top
View user's profile
Tech Support



Joined: 25 Aug 2003
Posts: 4041

PostPosted: Fri Nov 06, 2015 12:09 pm    Post subject: Reply with quote

I'm a little baffled, to tell you the truth. We passed each of the commands Zoom support said that the modem required and the modem seems to respond just fine until you pass the AT+CMGS command to identify what phone number the SMS should be delivered to and I can't explain that. I'm definitely interested in what Zoom support has to offer on this.



_________________
Tech Support
support@notepage.com
http://www.notepage.net
Back to top
View user's profile
OzCom



Joined: 22 Oct 2003
Posts: 1087
Location: US

PostPosted: Sat Nov 07, 2015 10:14 am    Post subject: Reply with quote

1) Shut down the Zoom proprietary software that is also connected to the modem
2) Try the PuTTY or HyperTerminal test again - only this time, DROP the COUNTRY CODE from the phone number



_________________
Aaron D. Osgood
Streamline Communications, LLC
* Authorized Notepage, Inc. Development Partner and Re-seller
TEL: 207-518-8455
AOsgood@streamline-solutions.net
Creators of AutoPage Spillman CAD interface for PageGate
Back to top
View user's profile Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    NotePage, Inc. Forum Index -> NotePager Pro Support All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
Theme created by Vjacheslav Trushkin