×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Mar 2008
    Location
    Czech Republic
    Posts
    3

    how to send 8-bit sms

    Hi,
    I need send data sms. sms contains values from 0x00 to 0xff. I have a data in normal string, but function sms_send() requests unicode string. Converting data string to unicode string return error.

    for example:
    Code:
    import messaging
    s='\xff'
    messaging.sms_send(u'777123456',s,'8bit')
    My provisionally solusion is to fill one unicode char with two chars. Then sms send with 'UCS2' flag. But is not good way. UCS2 is for char encoding not for data.

    Any idea?

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: how to send 8-bit sms

    hi xlisec
    first of all welcome to the wonderful python dibo. hope you get the best out of this forum.

    now abt ur question i think we can send only unicode data using the sms_send() function.
    what you actually wnt to do.
    plz give a feedback

  3. #3
    Registered User
    Join Date
    Mar 2008
    Location
    Czech Republic
    Posts
    3

    Re: how to send 8-bit sms

    I encrypt SMS via RSA cypher. RSA returns encrypted data size of 1024 bit (128 byte) in string. I need send this data in one sms. It is all

  4. #4
    Regular Contributor
    Join Date
    Jan 2004
    Location
    Helsinki
    Posts
    376

    Re: how to send 8-bit sms

    Quote Originally Posted by xlisec View Post
    Hi,
    I need send data sms. sms contains values from 0x00 to 0xff. I have a data in normal string, but function sms_send() requests unicode string. Converting data string to unicode string return error.

    for example:
    Code:
    import messaging
    s='\xff'
    messaging.sms_send(u'777123456',s,'8bit')
    Someone tried this recenty in IRC. I think the result was it does not function. There was some API changes between 2nd and 3rd edition. Please consult PyS60 source code.
    Mikko Ohtamaa

    http://mfabrik.com
    http://blog.mfabrik.com

  5. #5
    Registered User
    Join Date
    Mar 2008
    Location
    Czech Republic
    Posts
    3

    Re: how to send 8-bit sms

    I looked in PyS60 source code. I think there is a bug.
    In src/ext/messaging/messaging.py line 80
    Code:
    _my_messaging=_messaging.Messaging(number,unicode(msg),encodingmap[encoding],event_cb)
    This call function _messaging.Messaging is same for each encoding.
    Functions in messagingmodule.cpp request unicode strings.

  6. #6
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: how to send 8-bit sms

    hi xlisec again
    it seems you are correct. But not gettin that it is a bug or what.
    waitin for feedback.

Similar Threads

  1. Send SMS Problem. Cannot Get SMSC Address. Due to Strange SIM Card?
    By cksong in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-07-02, 16:13
  2. Send SMS from midlet without user notification
    By Robert111 in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2007-06-27, 14:26
  3. can i send SMS automatically?
    By vhepeter2005 in forum General Messaging
    Replies: 3
    Last Post: 2007-04-28, 09:23
  4. Error sending SMS
    By jorge_c in forum Multimodecards
    Replies: 0
    Last Post: 2003-10-07, 11:53
  5. Track if a sms is a response to a sms I send
    By tuender in forum General Messaging
    Replies: 1
    Last Post: 2002-07-19, 07:47

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •