Problem occurred internal to model specific code

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem occurred internal to model specific code

Rodrigo Montiel

Hi list!

My environment:

[root@elx-gnokii-sms ~]# lsusb | grep uaw
Bus 001 Device 003: ID 12d1:1506 Huawei Technologies Co., Ltd.
Modem/Networkcard --> NOTE: model E3131
Bus 001 Device 002: ID 12d1:1506 Huawei Technologies Co., Ltd.
Modem/Networkcard --> NOTE: model E3131
Bus 001 Device 004: ID 12d1:1003 Huawei Technologies Co., Ltd. E220
HSDPA Modem / E230/E270/E870 HSDPA/HSUPA Modem --> NOTE: model E160

[root@elx-gnokii-sms ~]# uname -a
Linux elx-gnokii-sms.localdomain 2.6.18-371.1.2.el5 #1

My gnokii configuration:

Gnokii version:     0.6.31
SMSD version:       1.5.2

Gnokiirc:

[phone_1]
model = AT
port = /dev/ttyUSB2
connection = serial
handshake = software
#initlength = default
use_locking = no
#serial_baudrate = 19200
smsc_timeout = 10
#report=yes

In the logs, to many "Problem occurred internal to model specific code"
and command timeout causing the restarting of the connection. In most
cases with the E3131 model (blow the full log):

Text: Hi ERICK VERTIDO, you have won a save plan car, please call back.
Sending to 3516638121 unsuccessful. Error: Problem occurred internal to
model specific code.
write: [AT+CPMS="ME"<cr>]
read : [^STIN: 1, 0, 0<cr><lf><cr><lf>^STIN: 1, 0,
0<cr><lf><cr><lf>^STIN: 1, 0, 0<cr><lf><cr><lf>^STIN: 1, 0,
0<cr><lf><cr><lf>^STIN: 1, 0, 0<cr><lf><cr><lf>^STIN: 1, 0,
0<cr><lf><cr><lf>^STIN: 1, 0, 0<cr><lf><cr><lf>^STIN: 1, 0,
0<cr><lf><cr><lf>^STIN: 1, 0, 0<cr><lf><cr><lf>^STIN: 1, 0,
0<cr><lf><cr><lf>^STIN: 1, 0, 0<cr><lf><cr><lf>^STIN: 1, 0, 0<cr><lf>AT
+CMGS=128<cr><cr><lf>> ]
Message received: 0x00 / 0x00e6
01 5e 53 54 49 4e 3a 20 31 2c 20 30 2c 20 30 0d |  ^STIN: 1, 0, 0
0a 0d 0a 5e 53 54 49 4e 3a 20 31 2c 20 30 2c 20 |    ^STIN: 1, 0,
30 0d 0a 0d 0a 5e 53 54 49 4e 3a 20 31 2c 20 30 | 0    ^STIN: 1, 0
2c 20 30 0d 0a 0d 0a 5e 53 54 49 4e 3a 20 31 2c | , 0    ^STIN: 1,
20 30 2c 20 30 0d 0a 0d 0a 5e 53 54 49 4e 3a 20 |  0, 0    ^STIN:
31 2c 20 30 2c 20 30 0d 0a 0d 0a 5e 53 54 49 4e | 1, 0, 0    ^STIN
3a 20 31 2c 20 30 2c 20 30 0d 0a 0d 0a 5e 53 54 | : 1, 0, 0    ^ST
49 4e 3a 20 31 2c 20 30 2c 20 30 0d 0a 0d 0a 5e | IN: 1, 0, 0    ^
53 54 49 4e 3a 20 31 2c 20 30 2c 20 30 0d 0a 0d | STIN: 1, 0, 0  
0a 5e 53 54 49 4e 3a 20 31 2c 20 30 2c 20 30 0d |  ^STIN: 1, 0, 0
0a 0d 0a 5e 53 54 49 4e 3a 20 31 2c 20 30 2c 20 |    ^STIN: 1, 0,
30 0d 0a 0d 0a 5e 53 54 49 4e 3a 20 31 2c 20 30 | 0    ^STIN: 1, 0
2c 20 30 0d 0a 0d 0a 5e 53 54 49 4e 3a 20 31 2c | , 0    ^STIN: 1,
20 30 2c 20 30 0d 0a 41 54 2b 43 4d 47 53 3d 31 |  0, 0  AT+CMGS=1
32 38 0d 0d 0a 3e                               | 28   >          
Received message type 00
Message sent: 0x00 / 0x000d
41 54 2b 43 50 4d 53 3d 22 53 4d 22 0d          | AT+CPMS="SM"    
write: [AT+CPMS="SM"<cr>]
read : [^A0+CPMS="ME"<cr><cr><lf>+CMS ERROR: 304<cr><lf>]
Message received: 0x00 / 0x0020
04 01 30 2b 43 50 4d 53 3d 22 4d 45 22 0d 0d 0a |   0+CPMS="ME"  
2b 43 4d 53 20 45 52 52 4f 52 3a 20 33 30 34 0d | +CMS ERROR: 304
Received message type 00
lowlevel.c:463 error: 4, Problem occurred internal to model specific
code.

Is there something that I can look into?
Sometimes it works, sometime smsd finds those errors and restart the
connection.

Maybe there are incompatibilities or something that I am not aware of?

Thanks my gurues!

Rgds,



_______________________________________________
gnokii-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/gnokii-users
Reply | Threaded
Open this post in threaded view
|

Re: Problem occurred internal to model specific code

Daniele Forsi-2
2013/12/9 Rodrigo Montiel:

> Maybe there are incompatibilities or something that I am not aware of?

libgnokii gets confused by those ^STIN: 1, 0, 0 messages but it should
work fine if you can disable them

if the modem command to disable them isn't permanent, ie you need to
issue it after every ATZ, then you need to use the git version of
gnokii (actually commit 6248e1d564cb1f528fc963301534136f7f190b50
should be enough) and a connect_script to issue the command

see in Docs/sample/ppp/ for examples of connect scripts

since this problem is likely to affect all users if that device, if
you can provide a script I'll be happy to add it

you need to experiment but the script can be as simple as
Docs/sample/ppp/portech-logout

--
Daniele Forsi

_______________________________________________
gnokii-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/gnokii-users
Reply | Threaded
Open this post in threaded view
|

Re: Problem occurred internal to model specific code

Rodrigo Montiel
First of all, thanks for your response, it is much appreciated.

I was wondering if those "STIN: 1,0,0" are rubbished messages from the
past? or maybe some memory positions in the SM card?

Will try to find out how to disable them manually, then will give a try
on a connect/disconnect script.

Thank you,

On Mon, 2013-12-09 at 19:31 +0100, Daniele Forsi wrote:

> 2013/12/9 Rodrigo Montiel:
>
> > Maybe there are incompatibilities or something that I am not aware of?
>
> libgnokii gets confused by those ^STIN: 1, 0, 0 messages but it should
> work fine if you can disable them
>
> if the modem command to disable them isn't permanent, ie you need to
> issue it after every ATZ, then you need to use the git version of
> gnokii (actually commit 6248e1d564cb1f528fc963301534136f7f190b50
> should be enough) and a connect_script to issue the command
>
> see in Docs/sample/ppp/ for examples of connect scripts
>
> since this problem is likely to affect all users if that device, if
> you can provide a script I'll be happy to add it
>
> you need to experiment but the script can be as simple as
> Docs/sample/ppp/portech-logout
>



_______________________________________________
gnokii-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/gnokii-users
Reply | Threaded
Open this post in threaded view
|

Re: Problem occurred internal to model specific code

Rodrigo Montiel
After some research, I was able to get rid of the issue by telling the
modem to avoid them thru minicom.

Stdout from smsd shoot "Unsolicited frame, skipping..." when it detects.

At least so far I do not see this affecting the libgnokii behavior, but
need more troubleshooting on production and with a little bit load.

Will keep you posted.

Rgds,

On Mon, 2013-12-09 at 16:10 -0300, Rodrigo Montiel wrote:

> First of all, thanks for your response, it is much appreciated.
>
> I was wondering if those "STIN: 1,0,0" are rubbished messages from the
> past? or maybe some memory positions in the SM card?
>
> Will try to find out how to disable them manually, then will give a try
> on a connect/disconnect script.
>
> Thank you,
>
> On Mon, 2013-12-09 at 19:31 +0100, Daniele Forsi wrote:
> > 2013/12/9 Rodrigo Montiel:
> >
> > > Maybe there are incompatibilities or something that I am not aware of?
> >
> > libgnokii gets confused by those ^STIN: 1, 0, 0 messages but it should
> > work fine if you can disable them
> >
> > if the modem command to disable them isn't permanent, ie you need to
> > issue it after every ATZ, then you need to use the git version of
> > gnokii (actually commit 6248e1d564cb1f528fc963301534136f7f190b50
> > should be enough) and a connect_script to issue the command
> >
> > see in Docs/sample/ppp/ for examples of connect scripts
> >
> > since this problem is likely to affect all users if that device, if
> > you can provide a script I'll be happy to add it
> >
> > you need to experiment but the script can be as simple as
> > Docs/sample/ppp/portech-logout
> >
>
>
>
> _______________________________________________
> gnokii-users mailing list
> [hidden email]
> https://lists.nongnu.org/mailman/listinfo/gnokii-users

--
Rodrigo Montiel
Ing. en Telecomunicaciones
Elastix Certified Engineer ECE#209728189
Mikrotik Certified MTCNA#1210NA066

Cel: +549 351 2581376

Freetech Solutions
www.freetechsolutions.com.ar
Tel/Fax: +54 351 6387585




_______________________________________________
gnokii-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/gnokii-users