Project

General

Profile

OnMessageReceived event does not fire

Added by Nobels about 9 years ago

Hello,

I have a strange problem:

Currently i have 6 modems running with your toolkit.

I have modems that has ortel as provider.

The strange part is that i can send messages but not retrieve it. :-(

Know i put a breakpoint @ OnMessageReceived method but nothing comes inside the method.

Can you help me out because i am out of options. I do not know how to resolve this problem.

I did a diagnose test and this is the result:
Start diagnosing...
Service Center Address (CSCA).............. [YES]
Message notification (CMTI,CDSI)........... [YES]
Message routing (CMT,CDS).................. [YES]
Call notification (CLIP)................... [YES]
Message PDU mode (AT+CMGF=0)............... [YES]
Message Text mode (AT+CMGF=1).............. [YES]
Supported phone book storage (CPBS) [SM, FD, LD, MC, ON, ME, RC, MT, EN, SN, ]
Subscriber information (CNUM).............. [YES]
Sending message (CMGS)..................... [YES]
List message (CMGL)........................ [YES]
Read message (CMGR)........................ [YES]

FINISHED

Shut down the pc and modem does not work. :-(

Note: My other 4 modems there is everything working. Sending and recieving is working like is should be.

must i set recieving options ?

Regards

Kris


Replies (3)

RE: OnMessageReceived event does not fire - Added by Nobels about 9 years ago

I did this test with your MobileToolkit - SMS Demo

i enter "Bal" as text. and send it to 1966

This message returns the ammount of my prepaid card.

But it does not work :-(

here is the logging:

2012.02.26-04.48.16: Sending: ATZ
2012.02.26-04.48.17: Response: <cr><lf>OK<cr><lf>
2012.02.26-04.48.17: Sending: ATE0
2012.02.26-04.48.17: Response: <cr><lf>OK<cr><lf>
2012.02.26-04.48.17: Sending: AT+CPIN?
2012.02.26-04.48.17: Error in command AT+CPIN? : ERROR
2012.02.26-04.48.18: Sending: ATE0
2012.02.26-04.48.18: Response: <cr><lf><cr><lf>OK<cr><lf>
2012.02.26-04.48.18: Sending: AT+COPS=0,2
2012.02.26-04.48.18: Error in command AT+COPS=0,2 : ERROR
2012.02.26-04.48.18: Sending: ATE0
2012.02.26-04.48.18: Response: <cr><lf>OK
2012.02.26-04.48.18: Sending: AT+CMEE=1
2012.02.26-04.48.19: Response: <cr><lf><cr><lf><cr><lf>OK<cr><lf>
2012.02.26-04.48.19: Sending: AT+CPMS?
2012.02.26-04.48.19: CMS ERROR: 310 SIM not inserted
2012.02.26-04.48.19: Sending: AT+CMGF=0
2012.02.26-04.48.19: Response: <cr><lf><cr><lf>OK
2012.02.26-04.48.19: Sending: AT+CNMI=0,0,0,0,0
2012.02.26-04.48.20: CMS ERROR: 310 SIM not inserted
2012.02.26-04.48.20: Ending Async ConnectedEventHandler call
2012.02.26-04.48.20: Sending: AT+CSCA?
2012.02.26-04.48.20: CMS ERROR: 310 SIM not inserted
2012.02.26-04.48.20: Sending: AT+CPMS="ME","ME","ME"
2012.02.26-04.48.21: CMS ERROR: 310 SIM not inserted
2012.02.26-04.48.21: Sending: AT+CPMS="ME","ME"
2012.02.26-04.48.21: CMS ERROR: 310 SIM not inserted
2012.02.26-04.48.21: Sending: AT+CPMS="ME"
2012.02.26-04.48.21: CMS ERROR: 310 SIM not inserted
2012.02.26-04.48.22: Sending: AT+CSCS=?
2012.02.26-04.48.22: CME ERROR: 10 SIM not inserted
2012.02.26-04.48.22: Sending: AT+CNUM
2012.02.26-04.48.22: CME ERROR: 10 SIM not inserted
2012.02.26-04.48.31: Sending: AT+CGMM
2012.02.26-04.48.31: Response: <cr><lf> MULTIBAND 900E 1800 <cr><lf><cr><lf><cr><lf>OK<cr><lf>
2012.02.26-04.48.31: Sending: AT+GMM
2012.02.26-04.48.31: Response: <cr><lf> MULTIBAND 900E 1800 <cr><lf><cr><lf>OK<cr><lf>
2012.02.26-04.48.31: Sending: AT+CGMI
2012.02.26-04.48.32: Response: <cr><lf> WAVECOM WIRELESS CPU<cr><lf><cr><lf>OK<cr><lf>
2012.02.26-04.48.32: Sending: AT+GMI
2012.02.26-04.48.32: Response: <cr><lf><cr><lf> WAVECOM WIRELESS CPU<cr><lf><cr><lf>OK<cr><lf>
2012.02.26-04.48.32: Sending: AT+CGSN
2012.02.26-04.48.32: Response: <cr><lf>355211011066085<cr><lf><cr><lf>OK<cr><lf>
2012.02.26-04.48.32: Sending: AT+CIMI
2012.02.26-04.48.33: CME ERROR: 10 SIM not inserted
2012.02.26-04.48.33: Sending: AT+CGMR
2012.02.26-04.48.33: Response: <cr><lf>R74a00gg.FSU004 2106632 102809 12:57<cr><lf><cr><lf><cr><lf>OK
2012.02.26-04.48.33: Sending: AT+GMR
2012.02.26-04.48.33: Response: <cr><lf><cr><lf><cr><lf>R74a00gg.FSU004 2106632 102809 12:57<cr><lf><cr><lf><cr><lf>OK<cr><lf>
2012.02.26-04.48.51: Sending: AT+CBC
2012.02.26-04.48.51: Response: <cr><lf>+CBC: 0,0<cr><lf><cr><lf>OK<cr><lf>
2012.02.26-04.48.51: Sending: AT+CSQ
2012.02.26-04.48.51: Response: <cr><lf>+CSQ: 25,0<cr><lf><cr><lf>OK<cr><lf>
2012.02.26-04.49.13: Sending: AT+CMMS=0
2012.02.26-04.49.13: Response: <cr><lf>OK<cr><lf>
2012.02.26-04.49.13: Sending message to 1966
2012.02.26-04.49.13: Content: Bal
2012.02.26-04.49.13: Sending: AT+CSCA?
2012.02.26-04.49.13: CMS ERROR: 310 SIM not inserted
2012.02.26-04.49.14: Sending: AT+CMGS=22
2012.02.26-04.49.14: Response: <cr><lf>>
2012.02.26-04.49.14: Sending: 0011C50481916600000B0D1B1E559E0EB3373E9030CC06
2012.02.26-04.49.14: CMS ERROR: 310 SIM not inserted
2012.02.26-04.49.14: Sending message: Unsupported feature: SendSmsFeature: Send SMS (CMS ERROR: 310 SIM not inserted)
2012.02.26-04.49.14: Trace: at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.SendMessage(Sms message)
at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.Send(IMessage message)
2012.02.26-04.49.15: Sending: AT+CMMS=0
2012.02.26-04.49.15: Response: <cr><lf>OK
2012.02.26-04.49.16: Sending message to 1966
2012.02.26-04.49.16: Content: [Trial] Bal
2012.02.26-04.49.16: Sending: AT+CSCA?
2012.02.26-04.49.16: CMS ERROR: 310 SIM not inserted
2012.02.26-04.49.16: Sending: AT+CMGS=22
2012.02.26-04.49.16: Response: <cr><lf><cr><lf>>
2012.02.26-04.49.16: Sending: 0011DD0481916600000B0D1B1E559E0EB3373E9030CC06
2012.02.26-04.49.16: CMS ERROR: 310 SIM not inserted
2012.02.26-04.49.17: Sending message: Unsupported feature: SendSmsFeature: Send SMS (CMS ERROR: 310 SIM not inserted)
2012.02.26-04.49.17: Trace: at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.SendMessage(Sms message)
at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.Send(IMessage message)
2012.02.26-04.49.18: Sending: AT+CMMS=0
2012.02.26-04.49.18: Response: <cr><lf>OK<cr><lf>
2012.02.26-04.49.18: Sending message to 1966
2012.02.26-04.49.18: Content: [Trial] Bal
2012.02.26-04.49.18: Sending: AT+CSCA?
2012.02.26-04.49.18: CMS ERROR: 310 SIM not inserted
2012.02.26-04.49.18: Sending: AT+CMGS=22
2012.02.26-04.49.19: Response: <cr><lf><cr><lf>>
2012.02.26-04.49.19: Sending: 0011200481916600000B0D1B1E559E0EB3373E9030CC06
2012.02.26-04.49.19: CMS ERROR: 310 SIM not inserted
2012.02.26-04.49.19: Sending message: Unsupported feature: SendSmsFeature: Send SMS (CMS ERROR: 310 SIM not inserted)
2012.02.26-04.49.19: Trace: at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.SendMessage(Sms message)
at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.Send(IMessage message)
2012.02.26-04.49.20: Sending: AT+CMMS=0
2012.02.26-04.49.20: Response: <cr><lf>OK<cr><lf>
2012.02.26-04.49.20: Sending message to 1966
2012.02.26-04.49.20: Content: [Trial] Bal
2012.02.26-04.49.20: Sending: AT+CSCA?
2012.02.26-04.49.21: CMS ERROR: 310 SIM not inserted
2012.02.26-04.49.21: Sending: AT+CMGS=22
2012.02.26-04.49.21: Response: <cr><lf>>
2012.02.26-04.49.21: Sending: 0011F30481916600000B0D1B1E559E0EB3373E9030CC06
2012.02.26-04.49.21: CMS ERROR: 310 SIM not inserted
2012.02.26-04.49.21: Sending message: Unsupported feature: SendSmsFeature: Send SMS (CMS ERROR: 310 SIM not inserted)
2012.02.26-04.49.21: Trace: at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.SendMessage(Sms message)
at MessagingToolkit.Core.Mobile.BaseMobileGateway`1.Send(IMessage message)

RE: OnMessageReceived event does not fire - Added by admin about 9 years ago

Hi,

I noticed that this error is repeated "CMS ERROR: 310 SIM not inserted"

Could you try to connect to the modem using HyperTerminal, and issue a AT+CPIN? command to verify the modem status is okay?

Thanks
Regards
admin

RE: OnMessageReceived event does not fire - Added by Nobels about 9 years ago

OK, I will do the test.

but your software does confirm that it's connected.

Strange to see after sending that the SIM is not inserted.

I will keep you informed.

    (1-3/3)