Project

General

Profile

Unsupported feature: SendSmsFeature

Added by beerygaz over 4 years ago

Sometimes when trying to send a SMS via the queue, I get an "Unsupported feature: SendSmsFeature" error. See the attached logs showing a successful event but later a failed message event. It looks like a watchdog message is sent right in the middle of queuing the outbound SMS which may be an issue, but even on the retry attempts it seems to fail.

2015.11.28-01.59.56: Sending watch dog message
2015.11.28-01.59.56: Sending: AT
2015.11.28-01.59.56: Response: <cr><lf><cr><lf><cr><lf>OK<cr><lf>
2015.11.28-02.00.00: Sending message to +31641828373
2015.11.28-02.00.00: Content: Testmelding SMS gateway Homeseer zaterdag, november 28 2015 2:00 
2015.11.28-02.00.00: Sending: AT+CSCA?
2015.11.28-02.00.00: Response: <cr><lf><cr><lf><cr><lf>+CSCA: "+31653131313"<cr><lf><cr><lf>OK<cr><lf>
2015.11.28-02.00.00: Sending: AT+CMGS=71
2015.11.28-02.00.00: Response: <cr><lf><cr><lf>>
2015.11.28-02.00.00: Sending: 00114C0B911346818273F30000A741D4F29CDE2EB3C969F719346D4E41E730BD7C0FE741C877BB3C2F97E5207D985E9693C36716C8FDB697DBE2B21C24C38164B0580D24D3C16020
2015.11.28-02.00.04: Response:  <cr><lf><cr><lf>+CMGS: 206<cr><lf><cr><lf><cr><lf>OK<cr><lf>
2015.11.28-02.00.04: Firing async MessageSent event.
2015.11.28-02.00.04: Ending async MessageEventHandler call
2015.11.28-02.00.16: Sending watch dog message
2015.11.28-02.00.16: Sending: AT
2015.11.28-02.00.17: Response: <cr><lf><cr><lf><cr><lf>OK<cr><lf>
2015.11.28-02.00.27: Sending watch dog message
2015.11.28-02.00.27: Sending: AT
2015.11.28-02.00.27: Response: <cr><lf><cr><lf><cr><lf>OK<cr><lf>
-------------
2015.11.28-03.59.50: Sending watch dog message
2015.11.28-03.59.50: Sending: AT
2015.11.28-03.59.50: Response: <cr><lf><cr><lf><cr><lf><cr><lf>OK<cr><lf>
2015.11.28-04.00.00: Sending message to +31641828373
2015.11.28-04.00.00: Content: Testmelding SMS gateway Homeseer zaterdag, november 28 2015 4:00 
2015.11.28-04.00.00: Sending: AT+CSCA?
2015.11.28-04.00.00: Response: <cr><lf><cr><lf><cr><lf>+CSCA: "+31653131313"<cr><lf><cr><lf>OK<cr><lf>
2015.11.28-04.00.00: Sending: AT+CMGS=71
2015.11.28-04.00.00: Response: <cr><lf><cr><lf>>
2015.11.28-04.00.00: Sending: 0011850B911346818273F30000A741D4F29CDE2EB3C969F719346D4E41E730BD7C0FE741C877BB3C2F97E5207D985E9693C36716C8FDB697DBE2B21C24C38164B0580D44D3C16020
2015.11.28-04.00.00: Sending watch dog message
2015.11.28-04.00.01: CMS ERROR: 500     Unknown error
2015.11.28-04.00.01: Failed to send message: Unsupported feature: SendSmsFeature: Send SMS (CMS ERROR: 500     Unknown error)
2015.11.28-04.00.01: Sending: AT
2015.11.28-04.00.01: Trace:    at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.SendMessage(Sms message)
   at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.ProcessMessageQueue()
2015.11.28-04.00.01: Base exception:    at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.SendMessage(Sms message)
   at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.ProcessMessageQueue()
2015.11.28-04.00.01: Response: <cr><lf><cr><lf>OK<cr><lf>
2015.11.28-04.00.02: Sending message to +31641828373
2015.11.28-04.00.02: Content: Testmelding SMS gateway Homeseer zaterdag, november 28 2015 4:00 
2015.11.28-04.00.02: Sending: AT+CSCA?
2015.11.28-04.00.02: Response: <cr><lf><cr><lf>+CSCA: "+31653131313"<cr><lf><cr><lf><cr><lf>OK
2015.11.28-04.00.02: Sending: AT+CMGS=71
2015.11.28-04.00.02: Response: <cr><lf><cr><lf><cr><lf><cr><lf>>
2015.11.28-04.00.02: Sending: 0011D20B911346818273F30000A741D4F29CDE2EB3C969F719346D4E41E730BD7C0FE741C877BB3C2F97E5207D985E9693C36716C8FDB697DBE2B21C24C38164B0580D44D3C16020
2015.11.28-04.00.03: CMS ERROR: 500     Unknown error
2015.11.28-04.00.03: Failed to send message: Unsupported feature: SendSmsFeature: Send SMS (CMS ERROR: 500     Unknown error)
2015.11.28-04.00.03: Trace:    at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.SendMessage(Sms message)
   at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.ProcessMessageQueue()
2015.11.28-04.00.03: Base exception:    at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.SendMessage(Sms message)
   at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.ProcessMessageQueue()
2015.11.28-04.00.04: Sending message to +31641828373
2015.11.28-04.00.04: Content: Testmelding SMS gateway Homeseer zaterdag, november 28 2015 4:00 
2015.11.28-04.00.04: Sending: AT+CSCA?
2015.11.28-04.00.04: Response: <cr><lf><cr><lf>+CSCA: "+31653131313"<cr><lf><cr><lf>OK<cr><lf>
2015.11.28-04.00.04: Sending: AT+CMGS=71
2015.11.28-04.00.04: Response: <cr><lf>>
2015.11.28-04.00.04: Sending: 0011040B911346818273F30000A741D4F29CDE2EB3C969F719346D4E41E730BD7C0FE741C877BB3C2F97E5207D985E9693C36716C8FDB697DBE2B21C24C38164B0580D44D3C16020
2015.11.28-04.00.04: CMS ERROR: 500     Unknown error
2015.11.28-04.00.04: Failed to send message: Unsupported feature: SendSmsFeature: Send SMS (CMS ERROR: 500     Unknown error)
2015.11.28-04.00.04: Trace:    at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.SendMessage(Sms message)
   at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.ProcessMessageQueue()
2015.11.28-04.00.04: Base exception:    at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.SendMessage(Sms message)
   at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.ProcessMessageQueue()
2015.11.28-04.00.04: Firing async MessageSendingFailed event.
2015.11.28-04.00.04: Ending async MessageErrorEventHandler call
2015.11.28-04.00.11: Sending watch dog message
2015.11.28-04.00.11: Sending: AT
2015.11.28-04.00.11: Response: <cr><lf><cr><lf>OK<cr><lf>

Replies (6)

RE: Unsupported feature: SendSmsFeature - Added by admin over 4 years ago

Hi,

By right watch dog command should not be sent if message is being sent. We need to further check on what happened here.

Meanwhile, you may want to disable the watch dog or set the interval to a bigger value.

Thanks
Regards
admin

RE: Unsupported feature: SendSmsFeature - Added by beerygaz over 4 years ago

I cannot disable watchdog as it's the only elegant way to handle the modem being disconnected somehow. If I increase the w/d interval there is still the chance a message and w/d check occurs concurrently so the problem will persist.

Try to power down the modem or disconnect the serial cable and then send a message and an I handled exception occurs, so watchdog is essential to a good user experience.

RE: Unsupported feature: SendSmsFeature - Added by admin over 4 years ago

Hi,

Can you show me how to send the message? By right when a command is being sent to the device, another command should be blocking until the previous command completed, provided both are on the same thread.

Thanks
Regards
admin

RE: Unsupported feature: SendSmsFeature - Added by beerygaz over 4 years ago

Hi, after a lot more testing, it seems this is not the watchdog message. See the attache dlog where the error occurs independently of the watchdog message:


2015.11.23-09.59.46: Sending: AT
2015.11.23-09.59.46: Response: <cr><lf><cr><lf><cr><lf>OK
2015.11.23-09.59.56: Sending watch dog message
2015.11.23-09.59.56: Sending: AT
2015.11.23-09.59.57: Response: <cr><lf><cr><lf><cr><lf>OK<cr><lf>
2015.11.23-10.00.00: Sending message to 0641828373
2015.11.23-10.00.00: Content: Testmelding SMS gateway Homeseer maandag, november 23 2015 10:00 
2015.11.23-10.00.00: Sending: AT+CSCA?
2015.11.23-10.00.00: Response: <cr><lf><cr><lf>+CSCA: "+31653131313"<cr><lf><cr><lf><cr><lf>OK<cr><lf>
2015.11.23-10.00.00: Sending: AT+CMGS=70
2015.11.23-10.00.00: Response: <cr><lf><cr><lf>>
2015.11.23-10.00.00: Sending: 0011B20A8160142838370000A741D4F29CDE2EB3C969F719346D4E41E730BD7C0FE741C877BB3C2F97E5A07638EC2687CF2C90FB6D2FB7C56539483603C960B11A2806D3C16020
2015.11.23-10.00.01: CMS ERROR: 500     Unknown error
2015.11.23-10.00.01: Sending message: Unsupported feature: SendSmsFeature: Send SMS (CMS ERROR: 500     Unknown error)
2015.11.23-10.00.01: Trace:    at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.SendMessage(Sms message)
   at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.Send(IMessage message)
2015.11.23-10.00.02: Sending message to 0641828373
2015.11.23-10.00.02: Content: Testmelding SMS gateway Homeseer maandag, november 23 2015 10:00 
2015.11.23-10.00.02: Sending: AT+CSCA?
2015.11.23-10.00.02: Response: <cr><lf>+CSCA: "+31653131313"<cr><lf><cr><lf>OK
2015.11.23-10.00.02: Sending: AT+CMGS=70
2015.11.23-10.00.02: Response: <cr><lf><cr><lf><cr><lf>>
2015.11.23-10.00.02: Sending: 0011B70A8160142838370000A741D4F29CDE2EB3C969F719346D4E41E730BD7C0FE741C877BB3C2F97E5A07638EC2687CF2C90FB6D2FB7C56539483603C960B11A2806D3C16020
2015.11.23-10.00.03: CMS ERROR: 500     Unknown error
2015.11.23-10.00.03: Sending message: Unsupported feature: SendSmsFeature: Send SMS (CMS ERROR: 500     Unknown error)
2015.11.23-10.00.03: Trace:    at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.SendMessage(Sms message)
   at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.Send(IMessage message)
2015.11.23-10.00.04: Sending message to 0641828373
2015.11.23-10.00.04: Content: Testmelding SMS gateway Homeseer maandag, november 23 2015 10:00 
2015.11.23-10.00.04: Sending: AT+CSCA?
2015.11.23-10.00.04: Response: <cr><lf><cr><lf>+CSCA: "+31653131313"<cr><lf><cr><lf><cr><lf>OK<cr><lf>
2015.11.23-10.00.04: Sending: AT+CMGS=70
2015.11.23-10.00.04: Response: <cr><lf><cr><lf>>
2015.11.23-10.00.04: Sending: 0011770A8160142838370000A741D4F29CDE2EB3C969F719346D4E41E730BD7C0FE741C877BB3C2F97E5A07638EC2687CF2C90FB6D2FB7C56539483603C960B11A2806D3C16020
2015.11.23-10.00.05: CMS ERROR: 500     Unknown error
2015.11.23-10.00.05: Sending message: Unsupported feature: SendSmsFeature: Send SMS (CMS ERROR: 500     Unknown error)
2015.11.23-10.00.05: Trace:    at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.SendMessage(Sms message)
   at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.Send(IMessage message)
2015.11.23-10.00.07: Sending watch dog message
2015.11.23-10.00.07: Sending: AT
2015.11.23-10.00.07: Response: <cr><lf>OK<cr><lf>
2015.11.23-10.00.17: Sending watch dog message
2015.11.23-10.00.17: Sending: AT
2015.11.23-10.00.17: Response: <cr><lf><cr><lf><cr><lf>OK<cr><lf>
2015.11.23-10.00.27: Sending watch dog message
2015.11.23-10.00.27: Sending: AT
2015.11.23-10.00.27: Response: <cr><lf><cr><lf>OK
2015.11.23-10.00.37: Sending watch dog message
2015.11.23-10.00.37: Sending: AT
2015.11.23-10.00.38: Response: <cr><lf><cr><lf><cr><lf>OK<cr><lf>
2015.11.23-10.00.48: Sending watch dog message
2015.11.23-10.00.48: Sending: AT
2015.11.23-10.00.48: Response: <cr><lf><cr><lf>OK<cr><lf>

RE: Unsupported feature: SendSmsFeature - Added by beerygaz over 4 years ago

This is an ongoing issue and I could really use some support. Here's the code I'm using to send the SMS.


 Public Function SendSMS(phoneNumber As String, message As String, ucs2Encoding As Boolean, flash As Boolean) As Integer
   Dim msg As Sms = Sms.NewInstance
        Try
            msg.Flash = flash
            msg.DestinationAddress = phoneNumber
            msg.LongMessageOption = MessageSplitOption.Concatenate
            msg.Content = message
            If ucs2Encoding Then
                msg.DataCodingScheme = MessageDataCodingScheme.Ucs2
            End If
            res = ModemGateway.SendToQueue(msg)
            If res Then
                _log.Debug("Queued " + IIf(flash, "a flash", "an") + " SMS [ID: {2}] to {0} with content:  {1}", phoneNumber, message, msg.Identifier)
            Else
                _log.Error("Plugin error sending SMS: " + ModemGateway.LastError.ToString)
                Return -1
            End If
        Catch ex As Exception
            _log.Error(ex, "Error trying to send SMS to: " & phoneNumber & " : " & ex.Message)
            Return -1
        End Try
        Return 0
End Function

RE: Unsupported feature: SendSmsFeature - Added by admin over 4 years ago

Hi,

Can you let me know

1. What is the model of your modem?
2. How many COM ports you see for this devices?

Thanks
Regards
admin

    (1-6/6)