Hello everyone,
I'm trying to use smslib through Victor Martins / Pixelnerve's library for processing.
My hardware is a D-Link DWM-156.
This is my setup:
gw = new SerialModemGateway( "test", "COM6", 128000, "D-Link CORPORATION","DWM-156" );
And I receive the following error message. Which then keeps going on a loop. Anyone has an idea?
-------------------------------------------------------------
--- CREATE SERVICE
0 2011-07-05 14:50:24,422 [Animation Thread] INFO org.smslib.helper.Logger - SMSLib: A Java API library for sending and receiving SMS via a GSM modem or other supported gateways.
This software is distributed under the terms of the Apache v2.0 License.
Web Site: http://smslib.org
2 2011-07-05 14:50:24,424 [Animation Thread] INFO org.smslib.helper.Logger - Version: 3.4.1
2 2011-07-05 14:50:24,424 [Animation Thread] INFO org.smslib.helper.Logger - JRE Version: 1.6.0_24
2 2011-07-05 14:50:24,424 [Animation Thread] INFO org.smslib.helper.Logger - JRE Impl Version: 19.1-b02
2 2011-07-05 14:50:24,424 [Animation Thread] INFO org.smslib.helper.Logger - O/S: Windows 7 / x86 / 6.1
--- CREATE SERIAL MODEM GATEWAY
--- CREATE INBOUND NOTIFICATION
24 2011-07-05 14:50:24,446 [Thread-3] INFO org.smslib.helper.Logger - GTW: test: Starting gateway, using Generic AT Handler.
24 2011-07-05 14:50:24,446 [Thread-3] INFO org.smslib.helper.Logger - GTW: test: Opening: COM6 @128000
65 2011-07-05 14:50:24,487 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: ModemReader thread started.
67 2011-07-05 14:50:24,489 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: AsyncNotifier thread started.
68 2011-07-05 14:50:24,490 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: AsyncMessageProcessor thread started.
68 2011-07-05 14:50:24,490 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: clearBuffer() called.
1068 2011-07-05 14:50:25,490 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: SEND :(27)
1269 2011-07-05 14:50:25,691 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: SEND :+++
1469 2011-07-05 14:50:25,891 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: SEND :ATZ
1670 2011-07-05 14:50:26,092 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: clearBuffer() called.
2670 2011-07-05 14:50:27,092 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: SEND :ATZ(cr)
2870 2011-07-05 14:50:27,292 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: SEND :ATE0(cr)
3070 2011-07-05 14:50:27,492 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: clearBuffer() called.
4070 2011-07-05 14:50:28,492 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: SEND :AT+CPIN?(cr)
4083 2011-07-05 14:50:28,505 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: BUFFER: +CPIN: READY4084 2011-07-05 14:50:28,506 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: RECV :+CPIN: READY(cr)
4084 2011-07-05 14:50:28,506 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: SEND :ATE0(cr)
4284 2011-07-05 14:50:28,706 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: clearBuffer() called.
5284 2011-07-05 14:50:29,706 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: SEND :AT+CLIP=1(cr)
5291 2011-07-05 14:50:29,713 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: BUFFER: OK5292 2011-07-05 14:50:29,714 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: RECV :OK(cr)
5292 2011-07-05 14:50:29,714 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: SEND :AT+COPS=0(cr)
5300 2011-07-05 14:50:29,722 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: BUFFER: ERROR5301 2011-07-05 14:50:29,723 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: RECV :ERROR(cr)
5301 2011-07-05 14:50:29,723 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: SEND :ATE0(cr)
5502 2011-07-05 14:50:29,924 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: clearBuffer() called.
6502 2011-07-05 14:50:30,924 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: SEND :AT+CREG?(cr)
6505 2011-07-05 14:50:30,927 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: BUFFER: +CREG: 0,0
OK6506 2011-07-05 14:50:30,928 [Thread-3] DEBUG org.smslib.helper.Logger - GTW: test: RECV :+CREG: 0,0(cr)OK(cr)
6506 2011-07-05 14:50:30,928 [Thread-3] ERROR org.smslib.helper.Logger - GTW: test: GSM: Auto-registration disabled!
org.smslib.GatewayException: GSM Network Auto-Registration disabled!
--- READ MODEL INFORMATION
7024 2011-07-05 14:50:31,446 [Animation Thread] DEBUG org.smslib.helper.Logger - GTW: test: SEND :AT+CGMI(cr)
7030 2011-07-05 14:50:31,452 [Animation Thread] DEBUG org.smslib.helper.Logger - GTW: test: BUFFER: D-Link CORPORATION
OK7031 2011-07-05 14:50:31,453 [Animation Thread] DEBUG org.smslib.helper.Logger - GTW: test: RECV :D-Link CORPORATION(cr)OK(cr)
D-Link CORPORATION
7031 2011-07-05 14:50:31,453 [Animation Thread] DEBUG org.smslib.helper.Logger - GTW: test: SEND :AT+CGMM(cr)
7038 2011-07-05 14:50:31,460 [Animation Thread] DEBUG org.smslib.helper.Logger - GTW: test: BUFFER: DWM-156
OK7038 2011-07-05 14:50:31,460 [Animation Thread] DEBUG org.smslib.helper.Logger - GTW: test: RECV :DWM-156(cr)OK(cr)
DWM-156
7039 2011-07-05 14:50:31,461 [Animation Thread] DEBUG org.smslib.helper.Logger - GTW: test: SEND :AT+CGSN(cr)
7047 2011-07-05 14:50:31,469 [Animation Thread] DEBUG org.smslib.helper.Logger - GTW: test: BUFFER: 352249040198381
OK7048 2011-07-05 14:50:31,470 [Animation Thread] DEBUG org.smslib.helper.Logger - GTW: test: RECV :352249040198381(cr)OK(cr)
352249040198381
7048 2011-07-05 14:50:31,470 [Animation Thread] DEBUG org.smslib.helper.Logger - GTW: test: SEND :AT+CSQ(cr)
7051 2011-07-05 14:50:31,473 [Animation Thread] DEBUG org.smslib.helper.Logger - GTW: test: BUFFER: +CSQ: 99,99
OK7051 2011-07-05 14:50:31,473 [Animation Thread] DEBUG org.smslib.helper.Logger - GTW: test: RECV :+CSQ: 99,99(cr)OK(cr)
319
7051 2011-07-05 14:50:31,473 [Animation Thread] DEBUG org.smslib.helper.Logger - GTW: test: SEND :AT+CBC(cr)
7059 2011-07-05 14:50:31,481 [Animation Thread] DEBUG org.smslib.helper.Logger - GTW: test: BUFFER: +CBC: 0,100
OK7059 2011-07-05 14:50:31,481 [Animation Thread] DEBUG org.smslib.helper.Logger - GTW: test: RECV :+CBC: 0,100(cr)OK(cr)
100
15024 2011-07-05 14:50:39,446 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - Running task: WatchDog
15024 2011-07-05 14:50:39,446 [pool-1-thread-1] WARN org.smslib.helper.Logger - WatchDog: Gateway: test restarting.
15024 2011-07-05 14:50:39,446 [pool-1-thread-1] INFO org.smslib.helper.Logger - GTW: test: Stopping gateway...
15025 2011-07-05 14:50:39,447 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: Trying to shutdown asyncNotifier thread...
15025 2011-07-05 14:50:39,447 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: Trying to shutdown asyncMessageProcessor thread...
15025 2011-07-05 14:50:39,447 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: Trying to shutdown modemReader thread...
15026 2011-07-05 14:50:39,448 [SMSLib-AsyncNotifier : test] DEBUG org.smslib.helper.Logger - GTW: test: AsyncNotifier thread ended.
15026 2011-07-05 14:50:39,448 [SMSLib-AsyncMessageProcessor : test] DEBUG org.smslib.helper.Logger - GTW: test: AsyncMessageProcessor thread ended.
15026 2011-07-05 14:50:39,448 [SMSlib-ModemReader-test] DEBUG org.smslib.helper.Logger - GTW: test: ModemReader thread ended.
15028 2011-07-05 14:50:39,450 [pool-1-thread-1] INFO org.smslib.helper.Logger - GTW: test: Closing: COM6 @128000
15028 2011-07-05 14:50:39,450 [pool-1-thread-1] INFO org.smslib.helper.Logger - GTW: test: Gateway stopped.
15028 2011-07-05 14:50:39,450 [pool-1-thread-1] INFO org.smslib.helper.Logger - GTW: test: Starting gateway, using Generic AT Handler.
15029 2011-07-05 14:50:39,451 [pool-1-thread-1] INFO org.smslib.helper.Logger - GTW: test: Opening: COM6 @128000
15072 2011-07-05 14:50:39,494 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: ModemReader thread started.
15072 2011-07-05 14:50:39,494 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: AsyncNotifier thread started.
15073 2011-07-05 14:50:39,495 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: AsyncMessageProcessor thread started.
15073 2011-07-05 14:50:39,495 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: clearBuffer() called.
16073 2011-07-05 14:50:40,495 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: SEND :(27)
16273 2011-07-05 14:50:40,695 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: SEND :+++
16473 2011-07-05 14:50:40,895 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: SEND :ATZ
16673 2011-07-05 14:50:41,095 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: clearBuffer() called.
17673 2011-07-05 14:50:42,095 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: SEND :ATZ(cr)
17873 2011-07-05 14:50:42,295 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: SEND :ATE0(cr)
18073 2011-07-05 14:50:42,495 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: clearBuffer() called.
19074 2011-07-05 14:50:43,496 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: SEND :AT+CPIN?(cr)
19081 2011-07-05 14:50:43,503 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: BUFFER: +CPIN: READY19081 2011-07-05 14:50:43,503 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: RECV :+CPIN: READY(cr)
19082 2011-07-05 14:50:43,504 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: SEND :ATE0(cr)
19282 2011-07-05 14:50:43,704 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: clearBuffer() called.
20282 2011-07-05 14:50:44,704 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: SEND :AT+CLIP=1(cr)
20289 2011-07-05 14:50:44,711 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: BUFFER: OK20289 2011-07-05 14:50:44,711 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: RECV :OK(cr)
20289 2011-07-05 14:50:44,711 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: SEND :AT+COPS=0(cr)
20298 2011-07-05 14:50:44,720 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: BUFFER: ERROR20298 2011-07-05 14:50:44,720 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: RECV :ERROR(cr)
20298 2011-07-05 14:50:44,720 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: SEND :ATE0(cr)
20499 2011-07-05 14:50:44,921 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: clearBuffer() called.
21499 2011-07-05 14:50:45,921 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: SEND :AT+CREG?(cr)
21501 2011-07-05 14:50:45,923 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: BUFFER: +CREG: 0,0
OK21502 2011-07-05 14:50:45,924 [pool-1-thread-1] DEBUG org.smslib.helper.Logger - GTW: test: RECV :+CREG: 0,0(cr)OK(cr)
21502 2011-07-05 14:50:45,924 [pool-1-thread-1] ERROR org.smslib.helper.Logger - GTW: test: GSM: Auto-registration disabled!
21503 2011-07-05 14:50:45,925 [pool-1-thread-1] ERROR org.smslib.helper.Logger - WatchDog: error while starting Gateway: test
org.smslib.GatewayException: GSM Network Auto-Registration disabled!
at org.smslib.modem.AModemDriver.waitForNetworkRegistration(AModemDriver.java:417)
at org.smslib.modem.AModemDriver.connect(AModemDriver.java:167)
at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:158)
at org.smslib.Service$WatchDog.process(Service.java:1395)
at org.smslib.scheduler.ASchedulerTask.run(ASchedulerTask.java:80)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)