Yes, what you say is true. It will display the message.
I see one exception though... Do you have any non-text messages in
your inbox? Such messages may cause problems.
On Dec 10, 8:21 am, "mutumba wycliff" <[EMAIL PROTECTED]> wrote:
> Hello Thanasis,
>
> Sorry may be I didn't phrase question 2 well.
>
> I understand that ReadMessages.java - Sample application is for
> reading SMS messages
> from the GSM modem in this case from Phone.
> What I don't understand is,
> The source of the messages from which the ReadMessages.java reads from, is
> it reading all messages currently in my phone's Inbox?
> If someone sends an SMS message to my phone, does it mean that the
> ReadMessages.java - Sample application will also
> read and display the same message for as long as my virtual
> BlueTooth connection is still up?
>
> thanks®ards,
>
> NB: I also get some errors below as the application starts running.
>
> Modem Information:
> Manufacturer: Sony Ericsson
> Model: AAB-1021051-BV
> Serial No: 354513000493613
> SIM IMSI: ** MASKED **
> Signal Level: 100%
> Battery Level: 92%
>
> 0 [main] ERROR org.smslib - GTW: modem.com40: Wrong type of PDU detected:
> org.a
> jwcc.pduUtils.gsm3040.SmsSubmitPdu
> 0 [main] ERROR org.smslib - GTW: modem.com40: ERROR PDU:
> 07915276010050F011140A
> 8170351639600000AD65CDF03DEC268741F3F4FC2D7E93C965D0BAAE0E83DC6173DD9D2FB7EBA0B7
> B8AE4F8BEB2ED0324C4F83DCE4F7FDFDD68741F4BA3BCC0E8BC3E7B03B0C62DFC3EBBA382D4783CA
> EE73599E0695DDEB7C18A47ED3C3ECF4FDED02
> 0 [main] ERROR org.smslib - GTW: modem.com40: Wrong type of PDU detected:
> org.a
> jwcc.pduUtils.gsm3040.SmsSubmitPdu
> 16 [main] ERROR org.smslib - GTW: modem.com40: ERROR PDU:
> 07915276010050F011130
> C915276214004170000AD0DCB70985D06DDCB6571985D06
> 16 [main] ERROR org.smslib - GTW: modem.com40: Wrong type of PDU detected:
> org.
> ajwcc.pduUtils.gsm3040.SmsSubmitPdu
> 16 [main] ERROR org.smslib - GTW: modem.com40: ERROR PDU:
> 07915276010050F011120
> C915276214960730000AD3DD770189E06B9F56590FB1C6E8BC320FA3D9C0F8BD3EBB00BE40CE7CBA
> 0761D344687DBF0F4DB3D07DDCB6E72DA0582B2C36ED03AFD03
> 16 [main] ERROR org.smslib - GTW: modem.com40: Wrong type of PDU detected:
> org.
> ajwcc.pduUtils.gsm3040.SmsSubmitPdu
> 16 [main] ERROR org.smslib - GTW: modem.com40: ERROR PDU:
> 07915276010050F011000
> A8170478990830000AD58D37959FC06A9CBE230BBEC022DC3EB303D0D7AD3EBF579F91E06ADEBE2F
> A390D12DFC3EE73F907BA86DDE434481C2693CBA0B7B8CE2ED3C3A037FB1E9697D96F90BB2C0E8BE
> BF472791D6ED75D
> 16 [main] ERROR org.smslib - GTW: modem.com40: Wrong type of PDU detected:
> org.
> ajwcc.pduUtils.gsm3040.SmsSubmitPdu
> 32 [main] ERROR org.smslib - GTW: modem.com40: ERROR PDU:
> 07915276010050F011100
> A8170351639600000AD83CDF03DEC26874165F7BCCE0EBB40CB303D0D0AB7C3EE7C18E436D7DDF97
> 2FE0D3A87DD6F50DD9DA697C9A033FB2D0EB341F4F218ED7EB3DFE77479CE02D5DD697A990C3AB3D
> FE2301B94A482E66F769D9E7EBBE72C50DD9DA697C9A033FB2D0EB341F3B7997E0FCBCBA0F99B5DA
> 7A7DFEEB90B
> 32 [main] ERROR org.smslib - GTW: modem.com40: Wrong type of PDU detected:
> org.
> ajwcc.pduUtils.gsm3040.SmsSubmitPdu
> 32 [main] ERROR org.smslib - GTW: modem.com40: ERROR PDU:
> 07915276010050F0110F0
> A8170714590780000AD244779394C07C1CB72F35BDE0EBBC7651728D986BFE5F4B09B0E9297E7753
> 6DD05
> 32 [main] ERROR org.smslib - GTW: modem.com40: Wrong type of PDU detected:
> org.
> ajwcc.pduUtils.gsm3040.SmsSubmitPdu
> 32 [main] ERROR org.smslib - GTW: modem.com40: ERROR PDU:
> 07915276010050F0110E0
> A8170351639600000AD13CDF03DEC268741EB303D0D72ABD3EA300B
> 32 [main] ERROR org.smslib - GTW: modem.com40: Wrong type of PDU detected:
> org.
> ajwcc.pduUtils.gsm3040.SmsSubmitPdu
> 32 [main] ERROR org.smslib - GTW: modem.com40: ERROR PDU:
> 07915276010050F0110D0
> A8170351639600000AD4ECB34A81DBE87DDE4F00FB40CD3D320F1FD2D0E83D46F761AF476CFD3E4F
> 43ACD0E83D661507B7E76819CE17C19E45687D77571F8FE0685D7E179B92C0F83D661FADBFD7601
> 32 [main] ERROR org.smslib - GTW: modem.com40: Wrong type of PDU detected:
> org.
> ajwcc.pduUtils.gsm3040.SmsSubmitPdu
> 32 [main] ERROR org.smslib - GTW: modem.com40: ERROR PDU:
> 07915276010050F0110C0
> A8170456855740000AD614137B90C7AB7EBF3B05A1D06B5EBF3F0BC4E26975D2068B8CE06B5EBECF
> 2BA4C269741EB30481C6687DDE33268FD0685D7E579384C4F83CAF2B40BF414D7E7F53A3D0DA2D7D
> 5E1759D1D168741F772790D2AABC32E
> 47 [main] ERROR org.smslib - GTW: modem.com40: Unhandled SMS in inbox,
> skipping
> ...
> java.lang.NullPointerException
> at org.ajwcc.pduUtils.gsm3040.Pdu.setAddress(Pdu.java:233)
> at
> org.ajwcc.pduUtils.gsm3040.PduParser.parseSmsSubmitMessage(PduParser.
> java:306)
> at org.ajwcc.pduUtils.gsm3040.PduParser.parsePdu(PduParser.java:166)
> at
> org.smslib.modem.ModemGateway.readMessagesPDU(ModemGateway.java:407)
> at org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:147)
> at org.smslib.Service.readMessages(Service.java:435)
> at org.smslib.Service.readMessages(Service.java:339)
> at examples.modem.ReadMessages.doIt(ReadMessages.java:110)
> at examples.modem.ReadMessages.main(ReadMessages.java:170)
> 63 [main] ERROR org.smslib - GTW: modem.com40: ERROR PDU:
> 07915276010050F011000
> 0810000AD174137B90C7AB7EBF3B05A1D06B5EBF3F0BC4E269701
> 63 [main] ERROR org.smslib - GTW: modem.com40: Wrong type of PDU detected:
> org.
> ajwcc.pduUtils.gsm3040.SmsSubmitPdu
> 63 [main] ERROR org.smslib - GTW: modem.com40: ERROR PDU:
> 07915276010050F0110A0
> C915276210400160000AD4C4679D83D4ECF59A076D80D4A83DAE13CC8FDA683C4A0B0985D06C940E
> DF0BA0C4AD35DA034086D078541ED72999E769F41737A584E4FBBCFA09A6E06738186ECB4D90C
> 63 [main] ERROR org.smslib - GTW: modem.com40: Wrong type of PDU detected:
> org.
> ajwcc.pduUtils.gsm3040.SmsSubmitPdu
> 63 [main] ERROR org.smslib - GTW: modem.com40: ERROR PDU:
> 07915276010050F011090
> C915276210400160000AD42D3B75C9E7781AE613A081D86C3CBEE3219447F83E8E8301DC40E93F32
> ED0B5CC6683D8653AA85D06A1DFF032280D3A97E9207ABA5D06D1DBF23B
> 63 [main] ERROR org.smslib - GTW: modem.com40: Wrong type of PDU detected:
> org.
> ajwcc.pduUtils.gsm3040.SmsSubmitPdu
> 63 [main] ERROR org.smslib - GTW: modem.com40: ERROR PDU:
> 07915276010050F011180
> A8170214004170000AD31CB303D0D2A83DCF5B6B82C0795E56950AC668BC96C205B0E070395E7F3B
> 29B5E06E9D3F234C82663C17235
> 79 [main] ERROR org.smslib - GTW: modem.com40: Wrong type of PDU detected:
> org.
> ajwcc.pduUtils.gsm3040.SmsSubmitPdu
> 79 [main] ERROR org.smslib - GTW: modem.com40: ERROR PDU:
> 07915276010050F011190
> A8170250572270000AD3ECDB7BE0C72EBCB20F739DC168741EE755D1C76ABC32ED035EC26A7DDF47
> 2BB4C269759A079F81C668741ECBABEEE3ED75DA0213B6D3603
> ===============================================================================
> << InboundMessage >>
> -------------------------------------------------------------------------------
> Gateway Id: modem.com40
> Encoding: 7-bit
> Date: Sun Nov 23 14:49:57 EAT 2008
> Text: Emere watadeko ewera? Ate togimalaawo.
> PDU data:
> C576595E06DDC3F430B9BC7E83CAF7B23CFC0305E96510FD7D4EB7C3EC70F8FE7601
> Originator: 256712192061
> Memory Index: 1
> Multi-part Memory Index:
> Memory Location: SM
> Source / Destination Ports: -1 / -1
>
> On 12/9/08, Thanasis <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi,
>
> > Answers:
>
> > 1) Yes, same parms.
> > 2) ??? I am sorry, I did not quite understand the question.
>
> > On Dec 9, 1:11 pm, "mutumba wycliff" <[EMAIL PROTECTED]> wrote:
> > > Thanks Thanasis,
>
> > > Actually after upgrading my smslib version to a new one, I am now able to
> > > send a msg with smslib via my phone (Sony Ericsson S700i).
>
> > > If I may ask, how does the ReadMessage work?
> > > 1.Do I set the same parameters in the SerialModemGateway() like i did for
> > > the Sendmessage?
> > > 2. For InBound messages,
> > > How does the sender direct the message to the Gateway through my
> > Phone?
>
> > > thanks®ards,
>
> > > On 12/9/08, Thanasis <[EMAIL PROTECTED]> wrote:
>
> > > > Hi,
>
> > > > First of all, you are ages behind in versions.
> > > > Please upgrade to the latest one.
>
> > > > The error you see (java.lang.reflect.InvocationTargetException) is
> > > > probably due to incorrect java comm installation. Check that all three
> > > > javacomm files are in place.
>
> > > > On Dec 9, 7:33 am, "mutumba wycliff" <[EMAIL PROTECTED]> wrote:
> > > > > Hello all,
>
> > > > > hoping you are fine.
>
> > > > > I need some help on how to use the smslib api to send and receive sms
> > via
> > > > a
> > > > > modem/compartible mobile phone.
>
> > > > > I am connecting my phones to the computer via a virtual BlueTooth
> > > > > connection, I am using a Sony Ericson S700i and a Nokia 6085.
> > > > > After successfully connecting these phones to my computer via
> > Bluetooth,
> > > > > they were assigned com ports
> > > > > com41 - S700i
> > > > > com40 - Nokia 6085
>
> > > > > I made the relevant changes in my SendMessage.java file, for the
> > Nokia I
> > > > did
> > > > > the following (Please correct me if I am missing out some steps);
> > > > > SerialModemGateway gateway = new SerialModemGateway("modem.com40",
> > > > "COM40",
> > > > > 33600, "Nokia", "6085");
> > > > > But on trying to run the SendMessage I get the following errors,
>
> > > > > Example: Send message from a serial gsm modem.
> > > > > SMSLib: A Java API library for sending and receiving SMS via a GSM
> > modem
> > > > > or other supported gateways.
> > > > > Web Site:http://smslib.org
> > > > > This software is distributed under the terms of the Apache v2.0
> > License.
> > > > > Version: 3.3.0-B3
> > > > > org.smslib.GatewayException: Comm library exception:
> > > > > java.lang.reflect.Invocat
> > > > > nTargetException
> > > > > at
> > > > > org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.ja
> > > > > :93)
> > > > > at
> > org.smslib.modem.AModemDriver.connect(AModemDriver.java:106)
> > > > > at
> > > > org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:110)
> > > > > at org.smslib.Service$1Starter.run(Service.java:189)
>
> > > > > What could be the problem? Please help me out on this.
>
> > > > > Below is how I reference SerialModemGateway in my SendMessage.jav
>
> > > > > SerialModemGateway gateway = new SerialModemGateway("modem.com40",
> > > > "COM40",
> > > > > 33600, "Nokia", "6085");
>
> ...
>
> read more »- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SMSLib User Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/SMSLib?hl=en
-~----------~----~----~----~------~----~------~--~---