hi when i read contact from phonebook the contact name shown star(?????) if contact name stored unicode but when stored nonunicode(writing language = Standard abc) shown true. i must be decode the contact name after reading.
BUFFER: +CPBR: 1,"02112xxxxx",129,"?????/H" +CPBR: 2,"09212xxxxx",129,"?????/M" .... +CPBR: 18,"+98611xxxxx",145,"???? ????/H" +CPBR: 19,"+98916xxxxx",145,"???? ????/M" ... +CPBR: 58,"+982177xxxxx",145,"E Tejart/M" ... +CPBR: 154,"+982122xxxxx",145,"E Meli/M" OK my next problem when contact name is long BUFFER: +CPBR: 1,"02112xxxxx",129,"?????/H" ..... +CPBR: 100,"0912.... line is too long,please switch to warpped mode to see whole line ... at java.util.StringTokenizer.nextToken(StringTokenizer.java:332) at org.smslib.modem.ModemGateway.readPhonebook(ModemGateway.java:252) at org.smslib.Service.readPhonebook(Service.java:911) at examples.modem.ReadMessages.doIt(ReadMessages.java:129) at examples.modem.ReadMessages.main(ReadMessages.java:204) ----------------------------------- LOG ----------------------------- Example: Read messages from a serial gsm modem. SMSLib: A Java API library for sending and receiving SMS via a GSM modem or other supported gateways. This software is distributed under the terms of the Apache v2.0 License. Web Site: http://smslib.org Version: 3.4.2 SMSLib: A Java API library for sending and receiving SMS via a GSM modem or other supported gateways. This software is distributed under the terms of the Apache v2.0 License. Web Site: http://smslib.org Version: 3.4.2 JRE Version: 1.6.0_05 JRE Impl Version: 10.0-b19 O/S: Windows XP / x86 / 5.1 Initialized. Running... Starting gateway, using SonyEricsson (Generic) AT Handler.modem.com1 Opening: COM6 @9600modem.com1 Initialized. Running... Initialized. ** disabled ** ModemReader thread started.modem.com1 AsyncNotifier thread started.modem.com1 AsyncMessageProcessor thread started.modem.com1 clearBuffer() called.modem.com1 SEND :(27)modem.com1 SEND :+++modem.com1 SEND :ATZ(cr)modem.com1 clearBuffer() called.modem.com1 SEND :ATZ(cr)modem.com1 SEND :ATE0(cr)modem.com1 clearBuffer() called.modem.com1 SEND :AT+CPIN?(cr)modem.com1 BUFFER: +CPIN: READY modem.com1 RECV :+CPIN: READY(cr)modem.com1 SEND :ATE0(cr)modem.com1 clearBuffer() called.modem.com1 SEND :AT+CLIP=1(cr)modem.com1 BUFFER: OK modem.com1 RECV :OK(cr)modem.com1 SEND :AT+COPS=0(cr)modem.com1 BUFFER: OK modem.com1 RECV :OK(cr)modem.com1 SEND :ATE0(cr)modem.com1 clearBuffer() called.modem.com1 SEND :AT+CREG?(cr)modem.com1 BUFFER: +CREG: 0,1 OK modem.com1 RECV :+CREG: 0,1(cr)OK(cr)modem.com1 GSM: Registered to home network.modem.com1 SEND :AT+CMEE=1(cr)modem.com1 BUFFER: OK modem.com1 RECV :OK(cr)modem.com1 SEND :AT+CPMS?(cr)modem.com1 BUFFER: +CPMS: "SM",1,50,"SM",1,50,"ME",0,198 OK modem.com1 RECV :+CPMS: "SM",1,50,"SM",1,50,"ME",0,198(cr)OK(cr)modem.com1 MEM: Storage Locations Found: SMMEmodem.com1 SEND :AT+CNMI=?(cr)modem.com1 BUFFER: +CNMI: (2),(0,1,3),(0,2),(0,1),(0) OK modem.com1 RECV :+CNMI: (2),(0,1,3),(0,2),(0,1),(0)(cr)OK(cr)modem.com1 CNMI: Found best match: 2 CNMI: Found best match: 1 CNMI: Found best match: 0 CNMI: No best match, returning: 1 CNMI: Found best match: 0 SEND :AT+CNMI=2,1,0,1,0(cr)modem.com1 BUFFER: OK modem.com1 RECV :OK(cr)modem.com1 SEND :AT+CMGF=0(cr)modem.com1 BUFFER: OK modem.com1 RECV :OK(cr)modem.com1 >>> Gateway Status change for modem.com1, OLD: STOPPED -> NEW: STARTING Initialized. >>> Gateway Status change for modem.com1, OLD: STARTING -> NEW: STARTED Gateway started.modem.com1 Running... Modem Information: SEND :AT+CGMI(cr)modem.com1 BUFFER: Sony Ericsson OK modem.com1 RECV :Sony Ericsson(cr)OK(cr)modem.com1 Manufacturer: Sony Ericsson SEND :AT+CGMM(cr)modem.com1 BUFFER: AAB-1022041-BV OK modem.com1 RECV :AAB-1022041-BV(cr)OK(cr)modem.com1 Model: AAB-1022041-BV SEND :AT+CGSN(cr)modem.com1 BUFFER: 359672003008615 OK modem.com1 RECV :359672003008615(cr)OK(cr)modem.com1 Serial No: 359672003008615 SIM IMSI: ** MASKED ** SEND :AT+CSQ(cr)modem.com1 BUFFER: +CSQ: 15,99 OK modem.com1 RECV :+CSQ: 15,99(cr)OK(cr)modem.com1 Signal Level: 48% SEND :AT+CBC(cr)modem.com1 BUFFER: +CBC: 0, 66 OK modem.com1 RECV :+CBC: 0, 66(cr)OK(cr)modem.com1 Battery Level: 66% SEND :AT+CPBS=?(cr)modem.com1 BUFFER: +CPBS: ("ME","SM","DC","LD","FD","MC","MV","RC","HP","BC") OK modem.com1 RECV :+CPBS: ("ME","SM","DC","LD","FD","MC","MV","RC","HP","BC")(cr)OK(cr)modem.com1 SEND :AT+CPBS="ME"(cr)modem.com1 BUFFER: OK modem.com1 RECV :OK(cr)modem.com1 SEND :AT+CPBR=?(cr)modem.com1 BUFFER: +CPBR: (1-2500),80,180 OK modem.com1 RECV :+CPBR: (1-2500),80,180(cr)OK(cr)modem.com1 SEND :AT+CPBR=1,2500(cr)modem.com1 java.util.NoSuchElementException BUFFER: +CPBR: 1,"......... +CPBR: 2," OK modem.com1 at java.util.StringTokenizer.nextToken(StringTokenizer.java:332) at org.smslib.modem.ModemGateway.readPhonebook(ModemGateway.java:252) at org.smslib.Service.readPhonebook(Service.java:911) at examples.modem.ReadMessages.doIt(ReadMessages.java:129) at examples.modem.ReadMessages.main(ReadMessages.java:204) RECV :+CPBR: 1,............ ..... /M"(cr)OK(cr)modem.com1 Stopped. Stopping gateway...modem.com1 Stopped. >>> Gateway Status change for modem.com1, OLD: STARTED -> NEW: STOPPING >>> Gateway Status change for modem.com1, OLD: STOPPING -> NEW: STOPPED Stopped. Stopped. AsyncNotifier thread ended.modem.com1 AsyncMessageProcessor thread ended.modem.com1 ModemReader thread ended.modem.com1 Closing: COM6 @9600modem.com1 Gateway stopped.modem.com1 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SMSLib for Java 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 -~----------~----~----~----~------~----~------~--~---
