Version of smsd: 2.2.20
Smsd installed from: sources
Name and model of a modem / phone: Falcom A2
Interface: serial
Hi, I'm using SMS Tools with a Falcom A2 Modem (http://sup.xenya.si/sup/info/falcom/a2/manuals/A2man.pdf)
Btw.: I got it working by adding the following code to the end of read_from_modem in modeminit.c:
It works fine sending SMS messages, however after sending 255 messages, I have to powercycle the Modem to be able to send messages again.
The reason for this is, that the return Value of AT+CMGS (Message reference numer) is 8bit, so it overflows after sending 255 messages.
2010-12-15 15:15:40,7, GSM1: <- AT+CMGS=91
>
2010-12-15 15:15:40,7, GSM1: -> 0011000C9134...
2010-12-15 15:15:41,7, GSM1: Command is sent, waiting for the answer
2010-12-15 15:15:46,7, GSM1: <- 0011000C9134...
+CMGS: 255
OK
And then:
2010-12-15 15:15:47,7, GSM1: <- AT+CMGS=91
>
2010-12-15 15:15:47,7, GSM1: -> 0011000C9134...
2010-12-15 15:15:48,7, GSM1: Command is sent, waiting for the answer
2010-12-15 15:15:50,7, GSM1: <- 0011000C9134...
+CMS ERROR: 1
2010-12-15 15:15:50,3, GSM1: The modem said ERROR or did not answer.
2010-12-15 15:15:50,5, GSM1: Waiting 10 sec. before retrying
2010-12-15 15:16:00,6, GSM1: Checking if modem is ready
2010-12-15 15:16:00,7, GSM1: -> AT
2010-12-15 15:16:00,7, GSM1: Command is sent, waiting for the answer
2010-12-15 15:16:01,7, GSM1: <- AT
OK
2010-12-15 15:16:01,6, GSM1: Checking if modem needs PIN
2010-12-15 15:16:01,7, GSM1: -> AT+CPIN?
2010-12-15 15:16:01,7, GSM1: Command is sent, waiting for the answer
2010-12-15 15:16:01,7, GSM1: <- AT+CPIN?
+CPIN: READY
OK
2010-12-15 15:16:01,6, GSM1: Checking if Modem is registered to the network
2010-12-15 15:16:01,7, GSM1: -> AT+CREG?
2010-12-15 15:16:01,7, GSM1: Command is sent, waiting for the answer
2010-12-15 15:16:01,7, GSM1: <- AT+CREG?
+CREG: 0,1
OK
2010-12-15 15:16:01,6, GSM1: Modem is registered to the network
2010-12-15 15:16:01,6, GSM1: Selecting PDU mode
2010-12-15 15:16:01,7, GSM1: -> AT+CMGF=0
2010-12-15 15:16:01,7, GSM1: Command is sent, waiting for the answer
2010-12-15 15:16:02,7, GSM1: <- AT+CMGF=0
OK
2010-12-15 15:16:02,7, GSM1: -> AT+CMGS=91
2010-12-15 15:16:02,7, GSM1: Command is sent, waiting for the answer
2010-12-15 15:16:02,7, GSM1: <- AT+CMGS=91
>
2010-12-15 15:16:02,7, GSM1: -> 0011000C9134...
2010-12-15 15:16:03,7, GSM1: Command is sent, waiting for the answer
2010-12-15 15:16:05,7, GSM1: <- 0011000C9134...
+CMS ERROR: 1
2010-12-15 15:16:05,3, GSM1: The modem said ERROR or did not answer.
...
Now I would like to know what the Standard says about the behaviour of the modem, if you send more than 255 messages so that the message regerence number overflows. Does it have to start with 1 again, so, is this a firmware bug of the modem?
Or do I have to specify a fixed message number in the PDU packet and can I reuse the number to solve the problem (so using a number >0 in the 3rd byte of the PDU).
Or do I have to reset the internal message reference number somehow with an AT-Command?
Any help would be apreciated. I don't want to powercycle the modem every month.
Regards,
ert