Closed GoogleCodeExporter closed 9 years ago
I will add the logs for reading messages here:
18064 [main] INFO SmsServer - Begin reading messages!
18065 [main] DEBUG smslib - GTW: modem.com5: SEND :AT+CPMS="ME"(cr)
18072 [main] DEBUG smslib - GTW: modem.com5: BUFFER: +CPMS: 0,255,0,10,0,10
OK
18073 [main] DEBUG smslib - GTW: modem.com5: RECV :+CPMS:
0,255,0,10,0,10(cr)OK(cr)
18073 [main] DEBUG smslib - GTW: modem.com5: SEND :AT+CMGL=4(cr)
18078 [main] DEBUG smslib - GTW: modem.com5: BUFFER: OK
18078 [main] DEBUG smslib - GTW: modem.com5: RECV :OK(cr)
18082 [main] DEBUG smslib - GTW: modem.com5: SEND :AT+CPMS="SM"(cr)
18089 [main] DEBUG smslib - GTW: modem.com5: BUFFER: +CPMS: 0,10,0,10,0,10
OK
18089 [main] DEBUG smslib - GTW: modem.com5: RECV :+CPMS:
0,10,0,10,0,10(cr)OK(cr)
18090 [main] DEBUG smslib - GTW: modem.com5: SEND :AT+CMGL=4(cr)
18095 [main] DEBUG smslib - GTW: modem.com5: BUFFER: OK
18095 [main] DEBUG smslib - GTW: modem.com5: RECV :OK(cr)
18095 [main] DEBUG smslib - GTW: modem.com5: SEND :AT+CPMS="SR"(cr)
18101 [main] DEBUG smslib - GTW: modem.com5: BUFFER: +CPMS: 0,10,0,10,0,10
OK
18101 [main] DEBUG smslib - GTW: modem.com5: RECV :+CPMS:
0,10,0,10,0,10(cr)OK(cr)
18101 [main] DEBUG smslib - GTW: modem.com5: SEND :AT+CMGL=4(cr)
18106 [main] DEBUG smslib - GTW: modem.com5: BUFFER: OK
18106 [main] DEBUG smslib - GTW: modem.com5: RECV :OK(cr)
18106 [main] DEBUG smslib - GTW: modem.com5: CheckMpMsgList(): MAINLIST: 0
18106 [main] INFO SmsServer - End reading messages
Original comment by iulia.ri...@gmail.com
on 30 Oct 2011 at 8:45
Hi,
Huawei modems usually create two virtual com ports.
Locate the two ports and try both in order to check which one works.
Original comment by T.Delenikas
on 30 Oct 2011 at 8:58
Hi,
You are right. There are 2 virtual ports created. I checked the 2 ports and try
with both buy I had the same result.
Anyway I found something interesting. The modem comes with a software. I
installed it and start the application. I think this was the problem. I was
sending SMS, and the application was reading it, before my Java program did.
So, theoretically, I didn't have any messages to read.
I stopped the application, start the Java program and I sent an SMS. The
inboundNotification process was called and after that the readMessages() method
showed me the message.
Please, correct me if I'm wrong :D
Thanks for the quick answer,
Iulia
Original comment by iulia.ri...@gmail.com
on 3 Nov 2011 at 6:38
Yes, you are correct.
You shouldn't run any modem software, except (needed in some case) from plain
modem drivers.
I happen to have an E220 and works ok with SMSLib.
So I guess everything is OK. :)
Original comment by T.Delenikas
on 3 Nov 2011 at 7:01
Original issue reported on code.google.com by
iulia.ri...@gmail.com
on 30 Oct 2011 at 8:12