G'day all,

I am using a Teltonika ModemCom/G10 with a FreeBSD 7.0 running Kannel 1.4.1

I seem te be able to receive messages OK, and dump them into a database.

I can also send them, apparently fine, and they show up nicely on the receiver's phone.

But I have noticed that between message sends (they are being sent from http-get mechanism) I get the above error about 5 times, then the device is closed and restarted see log:

2008-05-23 23:46:50 [1942] [9] DEBUG: boxc_receiver: sms received
2008-05-23 23:46:50 [1942] [9] DEBUG: send_msg: sending msg to box: <127.0.0.1> 2008-05-23 23:46:52 [1942] [6] DEBUG: AT2[MINMIN]: TP-Validity- Period: 24.0 hours
2008-05-23 23:46:52 [1942] [6] DEBUG: AT2[MINMIN]: --> AT+CMGS=45^M
2008-05-23 23:46:52 [1942] [6] DEBUG: AT2[MINMIN]: <-- >
2008-05-23 23:46:52 [1942] [6] DEBUG: AT2[MINMIN]: send command status: 1 2008-05-23 23:46:52 [1942] [6] DEBUG: AT2[MINMIN]: --> 0011000A8140848827020000A724C3B01B94044D8B4E2228EC7ED3D16539A85D9ECFC3E7 32889D5E974174747A0E
2008-05-23 23:46:52 [1942] [6] DEBUG: AT2[MINMIN]: --> ^Z
2008-05-23 23:47:01 [1942] [8] DEBUG: Dumping 1 messages to store
2008-05-23 23:47:13 [1942] [6] DEBUG: AT2[MINMIN]: send command status: -1
2008-05-23 23:47:13 [1942] [6] DEBUG: AT2[MINMIN]: --> AT+CMGS=45^M
2008-05-23 23:47:13 [1942] [6] ERROR: AT2[MINMIN]: Couldnot write to device.
2008-05-23 23:47:13 [1942] [6] ERROR: System error 5: Input/output error
2008-05-23 23:47:13 [1942] [6] DEBUG: AT2[MINMIN]: <-- >
2008-05-23 23:47:13 [1942] [6] DEBUG: AT2[MINMIN]: send command status: 1 2008-05-23 23:47:13 [1942] [6] DEBUG: AT2[MINMIN]: --> 0011000A8140848827020000A724C3B01B94044D8B4E2228EC7ED3D16539A85D9ECFC3E7 32889D5E974174747A0E 2008-05-23 23:47:13 [1942] [6] ERROR: AT2[MINMIN]: Couldnot write to device.
2008-05-23 23:47:13 [1942] [6] ERROR: System error 5: Input/output error
2008-05-23 23:47:13 [1942] [6] DEBUG: AT2[MINMIN]: --> ^Z
2008-05-23 23:47:13 [1942] [6] ERROR: AT2[MINMIN]: Couldnot write to device.
2008-05-23 23:47:13 [1942] [6] ERROR: System error 5: Input/output error
2008-05-23 23:47:34 [1942] [6] DEBUG: AT2[MINMIN]: send command status: -1
2008-05-23 23:47:34 [1942] [6] DEBUG: AT2[MINMIN]: --> AT+CMGS=45^M
2008-05-23 23:47:34 [1942] [6] ERROR: AT2[MINMIN]: Couldnot write to device.
2008-05-23 23:47:34 [1942] [6] ERROR: System error 5: Input/output error
2008-05-23 23:47:40 [1942] [6] DEBUG: AT2[MINMIN]: send command status: -1
2008-05-23 23:47:46 [1942] [6] DEBUG: AT2[MINMIN]: --> AT+CPMS?^M
2008-05-23 23:47:46 [1942] [6] ERROR: AT2[MINMIN]: Couldnot write to device.
2008-05-23 23:47:46 [1942] [6] ERROR: System error 5: Input/output error
2008-05-23 23:47:50 [1942] [6] DEBUG: failed to send mem select command to modem -1
2008-05-23 23:47:50 [1942] [6] DEBUG: AT2[MINMIN]: memory check error
2008-05-23 23:47:50 [1942] [6] INFO: AT2[MINMIN]: closing device
2008-05-23 23:47:50 [1942] [6] ERROR: AT2[MINMIN]: Couldn't connect (retrying in 10 seconds).
2008-05-23 23:47:51 [1942] [8] DEBUG: Dumping 0 messages to store
2008-05-23 23:48:00 [1942] [6] INFO: AT2[MINMIN]: opening device
2008-05-23 23:48:00 [1942] [6] DEBUG: AT2[MINMIN]: device opened
2008-05-23 23:48:00 [1942] [6] DEBUG: AT2[MINMIN]: device opened
2008-05-23 23:48:00 [1942] [6] INFO: AT2[MINMIN]: init device
2008-05-23 23:48:00 [1942] [6] INFO: AT2[MINMIN]: speed set to 115200

There is nothing much I can find about this error - or even a list of the errors.

Here is the reported modem status - it shows 2 failed (since I started bearerbox), but I have only tried to send two and they have both come through.

Kannel bearerbox version `1.4.1'. Build `Apr 28 2008 09:50:29', compiler `4.2.1 20070719 [FreeBSD]'. System FreeBSD, release 7.0- RELEASE, version FreeBSD 7.0-RELEASE #1: Fri May 23 21:11:00 WST 2008 :/usr/obj/usr/src/sys/MINMIN, machine i386. Hostname xxxxxxx.minmin, IP 10.0.1.201. Libxml version 2.6.31. Using OpenSSL 0.9.8g 19 Oct 2007. Using native malloc.

Status: running, uptime 0d 0h 16m 38s

WDP: received 0 (0 queued), sent 0 (0 queued)

SMS: received 0 (0 queued), sent 0 (0 queued), store size 0

SMS: inbound 0.00 msg/sec, outbound 0.00 msg/sec

DLR: 0 queued, using internal storage

Box connections:
    smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 16m 34s)

SMSC connections:
MINMIN AT2[MINMIN] (online 7s, rcvd 0, sent 0, failed 2, queued 0 msgs)


From what I can tell this could be :

1. a mismatch of the modem I have with the generic driver, or one special command in it, 2. a problem with the permissions on the system, although I can send and receive OK,
3. a problem with information crossing over, and confusing the system,
4. something I have no idea about.

I am not a computer programmer, but we a trying to use sms for a research data collection project, so any help would be appreciated.

cheers

Ben




--

Ben Madin
REMOTE INFORMATION

t : +61 8 9192 5455
f : +61 8 9192 5535
m : 0448 887 220
Broome   WA   6725

[EMAIL PROTECTED]





                                        Out here, it pays to know...










Reply via email to