I have some time I've been studying the library smslib but right now I'm in a strange problem with the library. To give you an introduction to the problem can read the post ago I put a couple of weeks with subject 'Strange operation' Just hit to view it: "Hi!.
First i out you in context: SMSLib API version: 3.4.0 SMSServer version: 3.4.0 Mobile: SonyEricsson k550i Mode: PDU I'm running smsserver with database gateway enabled. When i try to send a message like this "que es lo que pasa" the server works well; but when i add some chars to the string e.g. "que es lo que pasa pues" the message fails whith a +CMS ERROR: 304.". Thanasis responded that he must place the SMSC number. Thanasis In the words of the answer was "Try to set the SMSC number yourself (use the gateway.setSmscNumber () method) and check if this problem persists." I did the change suggested by Thanasis and the pdu was generated correctly. I verified this going to Después de haber realizado el cambio sugerido por Thanasis, el pdu se generó de manera correcta. La manera como yo lo verifico es entrando a http://twit88.com/home/utility/sms-pdu-encode-decode. Now, I try to send an sms with a short phrase as "Mando una frase corta en sms" and the sms is sent properly, but if I send an sms with 100 or 140 characters long, I get the same error +CMS ERROR: 304 I saw thin something weird and decided to go to a lower level and send the sms directly from a minicom session using the proper AT commands. My celular is a SonyEricsson k550, and I search its documentation and found the command to send is AT+CMGS, and the syntax is: AT+CMGS=<length><CR><pdu><ctrl-Z/ESC> As you can see, the command end with crtl-Z or with ESC, but in this case, if I end the command with ESC, I got the +CMS ERROR: 304, but if I end the command with ctrl-Z, the message is sent in a satisfactory way. Then, I go to the smslib source code to verify that the end character is ctrl-Z, and I fact it is. That is my situation... at the moment I can only send 60 characters long messages. How is possible to get so weird behaviour? Please Thanasis, help. Mauricio Tabares. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
