nguyenbahuong / smslib

Automatically exported from code.google.com/p/smslib
0 stars 0 forks source link

org.smslib.GatewayException: The GSM modem does not support the PDU protocol. #453

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I am using a modem to send messages. Initially after starting the service the 
modem sends and receives messages for some time. However after some time I 
receive a error which causes the service to hang. I have to physically reset 
the modem and restart the service for the messages to go again. I am attaching 
the log of the error.

Please help, the messaging is crucial for my application.

2012-01-19 16:58:37,932 INFO  smslib @ Version: 3.4.6
2012-01-19 16:58:37,932 INFO  smslib @ JRE Version: 1.6.0_21
2012-01-19 16:58:37,932 INFO  smslib @ JRE Impl Version: 17.0-b16
2012-01-19 16:58:37,932 INFO  smslib @ O/S: Windows 2003 / x86 / 5.2
2012-01-19 16:58:37,932 DEBUG smslib @ Initialized.
2012-01-19 16:58:37,932 DEBUG smslib @ Running...
2012-01-19 16:58:37,932 DEBUG smslib @ DelayQueueManager running...
2012-01-19 16:58:37,932 DEBUG smslib @ Initialized.
2012-01-19 16:58:37,932 DEBUG smslib @ Running...
2012-01-19 16:58:37,932 DEBUG smslib @ NotifyQueueManager running...
2012-01-19 16:58:37,932 DEBUG smslib @ Initialized.
2012-01-19 16:58:37,932 DEBUG smslib @ Running...
2012-01-19 16:58:37,932 INFO  smslib @ GTW: TP: Starting gateway, using Generic 
AT Handler.
2012-01-19 16:58:37,932 INFO  smslib @ GTW: TP: Opening: COM4 @115200
2012-01-19 16:58:38,135 DEBUG smslib @ Initialized.
2012-01-19 16:58:38,135 DEBUG smslib @ Running...
2012-01-19 16:58:38,135 DEBUG smslib @ Initialized.
2012-01-19 16:58:38,135 DEBUG smslib @ ** disabled **
2012-01-19 16:58:38,135 DEBUG smslib @ GTW: TP: ModemReader thread started.
2012-01-19 16:58:38,135 DEBUG smslib @ GTW: TP: AsyncNotifier thread started.
2012-01-19 16:58:38,135 DEBUG smslib @ GTW: TP: AsyncMessageProcessor thread 
started.
2012-01-19 16:58:38,135 DEBUG smslib @ GTW: TP: clearBuffer() called.
2012-01-19 16:58:39,135 DEBUG smslib @ GTW: TP: SEND :(27)
2012-01-19 16:58:39,338 DEBUG smslib @ GTW: TP: SEND :+++
2012-01-19 16:58:39,542 DEBUG smslib @ GTW: TP: SEND :ATZ(cr)
2012-01-19 16:58:39,745 DEBUG smslib @ GTW: TP: clearBuffer() called.
2012-01-19 16:58:40,745 DEBUG smslib @ GTW: TP: SEND :ATZ(cr)
2012-01-19 16:58:40,948 DEBUG smslib @ GTW: TP: SEND :ATE0(cr)
2012-01-19 16:58:41,151 DEBUG smslib @ GTW: TP: clearBuffer() called.
2012-01-19 16:58:42,151 DEBUG smslib @ GTW: TP: SEND :AT+CPIN?(cr)
2012-01-19 16:58:42,151 DEBUG smslib @ GTW: TP: BUFFER: +CME ERROR: 515

2012-01-19 16:58:42,151 DEBUG smslib @ GTW: TP: RECV :+CME ERROR: 515(cr)
2012-01-19 16:58:42,151 WARN  smslib @ GTW: TP: Erroneous CPIN response, 
proceeding with defaults.
2012-01-19 16:58:42,151 DEBUG smslib @ GTW: TP: SEND :ATE0(cr)
2012-01-19 16:58:42,354 DEBUG smslib @ GTW: TP: clearBuffer() called.
2012-01-19 16:58:43,354 DEBUG smslib @ GTW: TP: SEND :AT+CLIP=1(cr)
2012-01-19 16:58:43,354 DEBUG smslib @ GTW: TP: BUFFER: +CME ERROR: 515

2012-01-19 16:58:43,354 DEBUG smslib @ GTW: TP: RECV :+CME ERROR: 515(cr)
2012-01-19 16:58:43,354 DEBUG smslib @ GTW: TP: SEND :AT+COPS=0(cr)
2012-01-19 16:58:43,354 DEBUG smslib @ GTW: TP: BUFFER: +CME ERROR: 515

2012-01-19 16:58:43,354 DEBUG smslib @ GTW: TP: RECV :+CME ERROR: 515(cr)
2012-01-19 16:58:43,354 DEBUG smslib @ GTW: TP: SEND :ATE0(cr)
2012-01-19 16:58:43,557 DEBUG smslib @ GTW: TP: clearBuffer() called.
2012-01-19 16:58:44,557 DEBUG smslib @ GTW: TP: SEND :AT+CREG?(cr)
2012-01-19 16:58:44,557 DEBUG smslib @ GTW: TP: BUFFER: +CME ERROR: 515

2012-01-19 16:58:44,557 DEBUG smslib @ GTW: TP: RECV :+CME ERROR: 515(cr)
2012-01-19 16:58:44,557 WARN  smslib @ GTW: TP: Network Registration failed, 
proceeding with defaults.
2012-01-19 16:58:44,557 DEBUG smslib @ GTW: TP: SEND :AT+CMEE=1(cr)
2012-01-19 16:58:44,557 DEBUG smslib @ GTW: TP: BUFFER: +CME ERROR: 515

2012-01-19 16:58:44,557 DEBUG smslib @ GTW: TP: RECV :+CME ERROR: 515(cr)
2012-01-19 16:58:44,557 DEBUG smslib @ GTW: TP: SEND :AT+CPMS=?(cr)
2012-01-19 16:58:44,573 DEBUG smslib @ GTW: TP: BUFFER: +CME ERROR: 515

2012-01-19 16:58:44,573 DEBUG smslib @ GTW: TP: RECV :+CME ERROR: 515(cr)
2012-01-19 16:58:44,573 WARN  smslib @ GTW: TP: CPMS detection failed, 
proceeding with default storage 'SM'.
2012-01-19 16:58:44,573 INFO  smslib @ GTW: TP: MEM: Storage Locations Found: SM
2012-01-19 16:58:44,573 DEBUG smslib @ GTW: TP: SEND :AT+CNMI=?(cr)
2012-01-19 16:58:44,573 DEBUG smslib @ GTW: TP: BUFFER: +CME ERROR: 515

2012-01-19 16:58:44,573 DEBUG smslib @ GTW: TP: RECV :+CME ERROR: 515(cr)
2012-01-19 16:58:44,573 WARN  smslib @ GTW: TP: Retrying the detection of CNMI, 
modem busy?
2012-01-19 16:58:47,573 DEBUG smslib @ GTW: TP: SEND :AT+CNMI=?(cr)
2012-01-19 16:58:47,573 DEBUG smslib @ GTW: TP: BUFFER: +CME ERROR: 515

2012-01-19 16:58:47,573 DEBUG smslib @ GTW: TP: RECV :+CME ERROR: 515(cr)
2012-01-19 16:58:47,573 WARN  smslib @ GTW: TP: Retrying the detection of CNMI, 
modem busy?
2012-01-19 16:58:50,573 DEBUG smslib @ GTW: TP: SEND :AT+CNMI=?(cr)
2012-01-19 16:58:50,573 DEBUG smslib @ GTW: TP: BUFFER: +CME ERROR: 515

2012-01-19 16:58:50,573 DEBUG smslib @ GTW: TP: RECV :+CME ERROR: 515(cr)
2012-01-19 16:58:50,573 WARN  smslib @ GTW: TP: Retrying the detection of CNMI, 
modem busy?
2012-01-19 16:58:52,932 DEBUG smslib @ Running...
2012-01-19 16:58:53,573 WARN  smslib @ GTW: TP: CNMI detection failed, 
proceeding with defaults.
2012-01-19 16:58:53,573 WARN  smslib @ GTW: TP: Callback indications were *not* 
set succesfully!
2012-01-19 16:58:53,573 DEBUG smslib @ GTW: TP: SEND :AT+CMGF=0(cr)
2012-01-19 16:58:53,573 DEBUG smslib @ GTW: TP: BUFFER: +CME ERROR: 515

2012-01-19 16:58:53,573 DEBUG smslib @ GTW: TP: RECV :+CME ERROR: 515(cr)
2012-01-19 16:58:53,573 DEBUG smslib @ Stopped.
2012-01-19 16:58:53,573 DEBUG smslib @ Stopped.
2012-01-19 16:58:53,573 DEBUG smslib @ GTW: TP: AsyncNotifier thread ended.
2012-01-19 16:58:53,573 DEBUG smslib @ GTW: TP: AsyncMessageProcessor thread 
ended.
2012-01-19 16:58:53,573 DEBUG smslib @ GTW: TP: ModemReader thread ended.
2012-01-19 16:58:53,604 INFO  smslib @ GTW: TP: Closing: COM4 @115200
2012-01-19 16:58:53,932 DEBUG smslib @ NotifyQueueManager end...
2012-01-19 16:58:53,932 DEBUG smslib @ Stopped.
2012-01-19 16:58:53,932 DEBUG smslib @ Stopped.
2012-01-19 16:58:53,932 INFO  smslib @ GTW: TP: Stopping gateway...
2012-01-19 16:58:53,932 INFO  smslib @ GTW: TP: Closing: COM4 @115200
2012-01-19 16:58:53,932 INFO  smslib @ GTW: TP: Gateway stopped.
2012-01-19 16:58:54,042 DEBUG smslib @ Running...
2012-01-19 16:58:54,042 DEBUG smslib @ NotifyQueueManager running...
2012-01-19 16:58:54,042 DEBUG smslib @ NotifyQueueManager end...
2012-01-19 16:58:54,151 DEBUG smslib @ Running...
2012-01-19 16:58:54,151 DEBUG smslib @ NotifyQueueManager running...
2012-01-19 16:58:54,151 DEBUG smslib @ NotifyQueueManager end...
2012-01-19 16:58:54,260 DEBUG smslib @ Running...
2012-01-19 16:58:54,260 DEBUG smslib @ NotifyQueueManager running...
2012-01-19 16:58:54,338 DEBUG smslib @ Stopped.
2012-01-19 16:58:54,338 ERROR com.technopurple.sms.SMSManager @ 
org.smslib.GatewayException: The GSM modem does not support the PDU protocol.

Original issue reported on code.google.com by technopu...@gmail.com on 19 Jan 2012 at 1:04

GoogleCodeExporter commented 9 years ago
What modem are you using?
Have you tried different baud rates - maybe your modem will be more stable at a 
lower rate.

Original comment by T.Delenikas on 20 Jan 2012 at 1:51

GoogleCodeExporter commented 9 years ago
I am using a Waveform Modem with the following settings.
I will try other baud rates and post back.

baudRate=115200
flowControlIn=0
flowControlOut=0
databits=8
stopbits=1
parity=0

Original comment by technopu...@gmail.com on 23 Jan 2012 at 6:44

GoogleCodeExporter commented 9 years ago

Original comment by T.Delenikas on 7 Feb 2012 at 3:12