Alright, Thanks for the clarification.

About the possibility of non-text messages in my inbox, am not so sure if I
have any in there.
But let me findout. Or let me clear my Inbox and start the program afresh
and see if it still throws some exceptions.

If I may ask, incase a new message comes into the inbox while the program is
still listening for incoming msgs, does it only display the
new message in the inbox or it displays all messages in the inbox?

Let me also ask on this, PDU data. Whats that mean?
It appears like some encrypted data, who generated the PDU data and which
module uses this generated PDU data?

Is it possible to modify the smslib ReadMessages program so that it does
some filtering and one does some extra processing on inbound messages that
have come in a particular format e.g. in a banking env, a Balance inquiry
message could be in the format "Bal*acctno*PIN" and then invoke the
SendMessage program with a response to the originator of the message.

thanks

Thanasis, it appears the smslib is ideally compartible with most phones,
like my S700i is not in that list of compartible phones (as indicated in the
guide doc)
but its working with the smslib api.


On 12/10/08, Thanasis <[EMAIL PROTECTED]> wrote:
>
>
> 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&regards,
> >
> > 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
> >
> 8170351639600000AD65CDF03DEC268741F3F4FC2D7E93C965D0BAAE0E83DC6173DD9D2FB7E­BA0B7
> >
> B8AE4F8BEB2ED0324C4F83DCE4F7FDFDD68741F4BA3BCC0E8BC3E7B03B0C62DFC3EBBA382D4­783CA
> > 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
> >
> C915276214960730000AD3DD770189E06B9F56590FB1C6E8BC320FA3D9C0F8BD3EBB00BE40C­E7CBA
> > 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
> >
> A8170478990830000AD58D37959FC06A9CBE230BBEC022DC3EB303D0D7AD3EBF579F91E06AD­EBE2F
> >
> A390D12DFC3EE73F907BA86DDE434481C2693CBA0B7B8CE2ED3C3A037FB1E9697D96F90BB2C­0E8BE
> > 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
> >
> A8170351639600000AD83CDF03DEC26874165F7BCCE0EBB40CB303D0D0AB7C3EE7C18E436D7­DDF97
> >
> 2FE0D3A87DD6F50DD9DA697C9A033FB2D0EB341F4F218ED7EB3DFE77479CE02D5DD697A990C­3AB3D
> >
> FE2301B94A482E66F769D9E7EBBE72C50DD9DA697C9A033FB2D0EB341F3B7997E0FCBCBA0F9­9B5DA
> > 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
> >
> A8170714590780000AD244779394C07C1CB72F35BDE0EBBC7651728D986BFE5F4B09B0E9297­E7753
> > 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
> >
> A8170351639600000AD4ECB34A81DBE87DDE4F00FB40CD3D320F1FD2D0E83D46F761AF476CF­D3E4F
> >
> 43ACD0E83D661507B7E76819CE17C19E45687D77571F8FE0685D7E179B92C0F83D661FADBFD­7601
> > 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
> >
> A8170456855740000AD614137B90C7AB7EBF3B05A1D06B5EBF3F0BC4E26975D2068B8CE06B5­EBECF
> >
> 2BA4C269741EB30481C6687DDE33268FD0685D7E579384C4F83CAF2B40BF414D7E7F53A3D0D­A2D7D
> > 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
> >
> C915276210400160000AD4C4679D83D4ECF59A076D80D4A83DAE13CC8FDA683C4A0B0985D06­C940E
> >
> DF0BA0C4AD35DA034086D078541ED72999E769F41737A584E4FBBCFA09A6E06738186ECB4D9­0C
> > 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
> >
> C915276210400160000AD42D3B75C9E7781AE613A081D86C3CBEE3219447F83E8E8301DC40E­93F32
> > 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
> >
> A8170214004170000AD31CB303D0D2A83DCF5B6B82C0795E56950AC668BC96C205B0E070395­E7F3B
> > 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
> >
> A8170250572270000AD3ECDB7BE0C72EBCB20F739DC168741EE755D1C76ABC32ED035EC26A7­DDF47
> > 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&regards,
> >
> > > > 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 -
> >
>


-- 
MUTUMBA WYCLIFFE
CONSULTANT

Neptune Software plc
Murtala Courts
Plot 33 Lumumba Avenue
Kampala, Uganda
Tel +256  (414) 237781
Fax+256 (414) 237782
Email: [EMAIL PROTECTED]
Website: http://www.neptunesoftwareplc.com

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to