SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Sat Apr 20, 2024 06:49
SMSTools3 Community » Help and support Bottom

AT prefix

Login and Post Reply

Page:  Previous  1  2

Author Post
Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
bakai wrote
Below answers form polish hardware reseller&support:

Thank's for the answers.

Quote
No, baud rate is OK, but answer is unexpected by minicom - containing additional prefix before oryginal modem response, prefix as '-->gxx > ' where xx are module number.

That is not the issue.

Minicom is just a terminal program which will show any response received from the modem. In this case, the prompt for PDU (>) was not received. From the screen capture we can see it:


at&g0=AT+CMGS=16
<++g00     AT+CMGS=16 (long wait, about 20s)

OK

The line mentioned is missing. The communication should be (missing line shown in red):


at&g0=AT+CMGS=16
<++g00     AT+CMGS=16
-->g00     >

OK

From the log of smsd it can be seen, that the module was trying to give the prompt, but the gateway did not deliver it to the serial port at the correct time:

GSM0: -> at&g0=AT+CMGS=19
GSM0: Command is sent, waiting for the answer. (20)
GSM0: Incorrect answer, put_command expected (>)|(ERROR), timeout occurred. 1.
GSM0: time 20527 ms <- at&g0=AT+CMGS=19  <++g00     AT+CMGS=19
GSM0: -> at&g0=001100099106368895F00000FF0673F29C3C2703.
GSM0: Command is sent, waiting for the answer. (60)
GSM0: time 505 ms <- -->g00     >   -->g00     +CMS ERROR: 500 OK  (Unknown error)

The answer which was received before timeout expired is shown in green, and it contains first two lines only. After the next command is sent to the gateway, missing prompt is received. It's shown in red.

In the first post of this topic there was at&g0=AT+CMGF=1 used and SMS was sent successfully. I assume that at&g0=AT+CMGS=destination_number and at&g0=Message was used, which means that with ASCII mode the communication works as expected. However, smstools does not use ASCII mode because all messages cannot be presented using this mode.

Quote
> Do you know if there are any possibilities to upgrade the firmware for
> those modules?

No possiblities, for upgrade modules will be removed from device and insert to dedicated service box.

My question probably was incorrect :(. I meant firmware of the Gateway, because it seems that there is nothing wrong in the GSM modules.

Quote
For send SMS via 2N gateway is necessary send different commands - special macro commands to gateway, not to module.
As described below:

;catch SMS controlling to interface who sending command (serial port in this case)

...

This means that whole gateway is locked (to low-level controlling for SMS) when any interface wants to send single SMS using single device. Only one SMS can be sent at the time, even if there are up to 31 devices available (depending of a model of the gateway). This does not sound very good, but of course I understand that the main purpose of this gateway is not sending lot of SMS using the serial interface.

In this topic the question was about using one device only, but I have also been asked whether support for multiple devices (4, or up to 20 - 40) can be provided by smstools3. It of course is impossible, or makes no sense, when only one device can send at a time. Those who need multiple devices for bulk sending should select a different gateway.

The locking is required if there are other interfaces which can use devices, or the gateway itself sends some SMS. I do not know this 2N device well, and have none of them, but at least in the manual there is some "no answer sms text" mentioned, and this may mean that gateway will send SMS in some cases. If this kind of usage can all be disabled, there should be no reason for locking and direct AT commands could be used - if they work properly. Also the gateway should work without problems even when there is lot of traffic, let's say more than ten or twenty devices sending and receiving simultaneously. I have no experience on how this gateway can handle simultaneous traffic, so cannot say anything about this.

In any case the syntax for low-level controlling is specific for this device, and I'm not willing to add non-standard commands to the smstools3. Even when some "AT^SM=#,Len,PDU,chk" looks easy, it's not enough. "Locking" and other commands are required too, and the next support question may be "how can I select the module used for sending". Or "receive SMS only from the module which is used for sending".

So, I recommend to use this device just as a GSM gateway, which is it's main functionality, and use different modems for SMS gateway.

Member
Registered:
Oct 2010
Location: Poland
Topic owner
Thanks for time you spent to solve my problem. Best regards.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Do you know if polish reseller&support has seen the content of post #26?

If they have, was the missing "-->g00 >" seen as a bug in the firmware which could be fixed?

Member
Registered:
Oct 2010
Location: Poland
Topic owner
No, tjey said that is "bug" in minicom :D

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Damn... :evil: It clearly is not the bug in minicom, but this attitude is a common: always the bug is in the "another" software...

With Bash you could "prove" where the bug is, but perhaps this is futile. Even if 2N could see that the bug is in their firmware, they probably do not fix it.

Member
Registered:
Oct 2010
Location: San Vito al Tagliamento (PN), Italy
I've just post http://smstools3.kekekasvi.com/topic.php?id=454, also i own a 2n devices (a VoiceBlue Lite) and for me the solution is using the ''simplified PDU mode''.

That probably need specific coding in SMSServer3... ;-(((

Member
Registered:
Jul 2011
Location: moscow, Russian Federation
keke wrote
I have created a private version of smsd for you. It uses single SIM only. Use the loglevel = 7, and in the modem section define mux_out_prefix = at&g0=

Try to send and receive some SMS and show the log file here. I would like to see how the modem gives the answers.

Download link is in the private block:


( PRIVATE BLOCK )

my thailand office has the same device - could i try this version too?
permanent prefixes to choose one sim card (which no queries a random sim) is "at&g0[1-4]=", i think, that it can become a four modems with different prefixes, if it will be persist in a config.


« Last edit by dieug on Fri Jul 29, 2011 08:16, 154 months ago. »
Member
Registered:
Oct 2010
Location: San Vito al Tagliamento (PN), Italy
Probably i've missed something... sorry, i'm not used to forums, i prefer using BTS and lists.

Now i've seen there's a ''private block'' but really i don't know how to use it.


But... in the meantime, for other reasons, i've exchanged my 2n VoiceBlue lite with an 2n OfficeRoute, that have a SMS2mail internal gateway, so i'm using that for now.
Surely i was not known that keke build me a ''custom'' version. sorry.

Worster, i'm going to holidays, for 4 weeks, so... is someone (eg, dieug) in the meantime can do some tests...

Member
Registered:
Jul 2011
Location: moscow, Russian Federation
gaio wrote
Probably i've missed something... sorry, i'm not used to forums, i prefer using BTS and lists.

Now i've seen there's a ''private block'' but really i don't know how to use it.


But... in the meantime, for other reasons, i've exchanged my 2n VoiceBlue lite with an 2n OfficeRoute, that have a SMS2mail internal gateway, so i'm using that for now.
Surely i was not known that keke build me a ''custom'' version. sorry.

Worster, i'm going to holidays, for 4 weeks, so... is someone (eg, dieug) in the meantime can do some tests...

i'm going to vacation for an one week from now, after i can make some tests, if this version will be available in some ways to get it.
in the next three hours i will be in office and tomorrow - at home and can get it for future tests.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Just for your information, I'm looking forward with this 2N device, but right now I cannot say anything...

Member
Registered:
Jul 2011
Location: moscow, Russian Federation
keke wrote
Just for your information, I'm looking forward with this 2N device, but right now I cannot say anything...

nothing terrible - we also have some gsm modems for smsing.
)

Member
Registered:
Oct 2011
Location: Czech Republic
Hi , I would need this special prefix parameter because our company own this device http://levelna.cz/eng/index2.php?obsah=xenp-gb320 and I need use second module for sending notification SMS , my prefix is "at&g2=" , can somebody send me link to this special version , thank you

Login and Post Reply

Page:  Previous  1  2

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.