×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 26
  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    46

    Errata in doc: OMA Provisioning for 5100?

    Hello,
    in doc OMA Provisioning for nokia 5100,
    in the middle of page 18,
    I have found an extra '01' in a TO-NAPID PARM.
    The lines is:

    87 22 06 03 67 6E 75 5F 43 53 44 00 01 01

    I do not understand why there are two '01',

    can some one explain if this is right,
    or should be like this:
    87 22 06 03 67 6E 75 5F 43 53 44 00 01

    Thanks

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    23
    Are you sure that this extra "01" is not the end of PHYSISCAL ?

    Anyways, I have this extra "01" + tried to remove it,
    but both attempts failed i.e. I always get "failed to save received connection settings".

    regards,
    f.

  3. #3
    Registered User
    Join Date
    Sep 2003
    Posts
    46
    Hello,
    I think it is extra, because a "01" for pxphysical end is show in the example.

    Anyway, now the mobile receive the setting OK.

    At the begining it shows me the same message as you say.

    Try the example at the end of document:
    OMA-WAP-ProvCont

    By the way,
    in this example at the end of OMA-WAP-ProvCont ask for a settings PIN once it have received the settings.
    I have tried: 1234, 12345, and many others but it does not work.
    I receive OK the settings, but I am not able to save the settings.

    Does any one knows which is the right setting pin I have to enter?


    Where can I found another example that makes no use of security?


    Thanks and regards

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    23
    Hi

    I tried the example in ProvCont and got it working. Great ! finally.
    I am able to save the settings, using the pin 1234.

    If you change something in the ProvCont document, you would have to calculate a new MAC value, using the pin 1234 as an input, othervise it refuses to save the "changed" connection settings.

    regards,
    f.

  5. #5
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    63
    Hi futhark,

    Can you share the "code"? I mean the binary SMS you sent out.

    Thanks.


    Regards,
    Seng Tian

  6. #6
    Registered User
    Join Date
    Mar 2003
    Posts
    23
    Hi koayst,

    I am using standard SMS headers:

    fx.

    (SMS 1 out of 4)
    0x0B; /* User data header length */
    0x05; /* NBS command ports */
    0x04; /* Lenght of ports */
    0x0B; /* Data 1 - listener port */
    0x84; /* Data 2 - listener port */
    0x23; /* Data 3 - sending port */
    0xF0; /* Data 4 - sending port */
    0x00; /* Concat messages */
    0x03; /* User data header length */
    0x01; /* Reference number*/
    0x04; /* Total Messages count */
    0x01; /* This part number*/

    < here comes part of nokia example>

    etc.

    This is standard stuff, and can be found on the internet,
    but there are others options but it depends on how you are sending out SMS'es. The optional choice would be to use a Push Proxy Gateway, and forget about SMS headers. I for my self am sending SMS'es over UCP to a SMSC.

    If you tell me how you are sending out the SMS'es I might
    be of more help.


    regards,
    f.

  7. #7
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    63
    Hi futhark,

    Thanks for the quick response. The method I used is similar to the one described in "Example of a WAP OTA Service Settings Message" found in forum Nokia.

    (http://www.forum.nokia.com/main/1,65..._50_10,00.html)

    I used my handphone as a GSM modem and using the AT commands to send out the SMS.

    Q 1: You mentioned that the header (0B 05 04 0B 84 ...) is standard stuff. Where can I find this standard in the internet? And what standard is this?

    Q 2: Also, what are this listener and sending ports? What value should I use?

  8. #8
    Registered User
    Join Date
    Mar 2003
    Posts
    23
    Alrighty then, lets hope someone has donated you a SIM card
    for use in testing.

    Answer 1:
    The specification in question is part of the WAP specifications, namely "Wireless Datagram Protocol" (WAP-259-WDP-20010614-a) which is available from the OMA website.

    http://www.openmobilealliance.org

    Read pages 38-41 and Appendix D, then you should be covered.


    Answer 2:
    Appendix B in the same specs. gives the port numbers to use.

    Those listed in my earlier answer work for me.

    /f

  9. #9
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    63
    Hi Futhark,

    I still can't get it to work.

    Could you please paste your binary code here for reference?

    Thanks.

  10. #10
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    63
    Strange .... I received the settings now.

    But when I entered 1234 for the PIN, it did not work. The phone complained that the PIN is wrong.

    I didn't change Example 1 either.

  11. #11
    Registered User
    Join Date
    Mar 2003
    Posts
    23
    Hi koayst

    I would take a gooood look at the binaries again or the lenght of the payload in the SMS headers. If the phone assembles the SMS'es correctly and shows "new settings received" it is some string value gone wrong, but not the structure.

    If it happens that you are splitting the SMS'es on a string value, and the payload is of wrong length, the MAC value is incorrecly calculated. Just a thought.

    Which type of phone are you working on ?

    regards,
    /f.

  12. #12
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    63
    Hi Futhark,

    You have been a GREAT help. I got it working now. The PIN is 1234.

    I entered the binaries wrongly. Therefore, after the corrction, it worked now.

    Do you know whether there is a open source code to generate the MAC?

  13. #13
    Registered User
    Join Date
    Mar 2003
    Posts
    23
    Great ! Satisfying isn't it.

    I am not sure about the open source but there is a lot of code
    out there in all kinds of languages. I would google for a program called HashCalc.

    /f.

  14. #14
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    63
    Hi Futhark,

    I found HashCalc from google. It is from www.slavasoft.com right?

    I have used it to calculate the HMAC/SHA-1 and according to the specification, I need to go thru the resulted string from HashCalc to the formula MOD 10 + 48.

    However, the value I got didn't quite tally with the example 1 MAC binaries (pg 75) from OMA-WAP-ProvCont.

    Have you got the correct MAC result? Or I didn't understand the algorithm correctly?

  15. #15
    Registered User
    Join Date
    Mar 2003
    Posts
    23
    Hi koayst

    You are using the rigth program.

    >>according to the specification, I need to go thru the resulted >>string from HashCalc to the formula MOD 10 + 48.

    Could you please explain what this formula does, I understand that +48 is a string to ASCII conversion, but what about the modulus 10 ?


    regards,
    f.

Page 1 of 2 12 LastLast

Posting Permissions

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