×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    2

    Datagram Connection on 3650 (Series 60)

    Does the 3650 support DatagramConnection? I'm using Sun One Studio 4 with Series_60_MIDP_SDK_for_Symbian_OS_v_1_0 and get the following error opening a DatagramConnection: javax.microedition.io.ConnectionNotFoundException: java.lang.ClassNotFoundException: com.symbian.midp.io.protocol.datagram.Protocol.

    Thank you.

  2. #2
    Registered User
    Join Date
    Jun 2003
    Posts
    24

    TCP / UDP

    Hi all
    I tried using Socket :// and also Datagram ://
    But i get

    javax.microedition.io.Connector
    java.lang.classNotFoundException
    com.symbian.midp.io.protocol.Datagram.protocol


    But i found that nokia support TCP /UDP support according to their documentation.

    Why is that http support given and its work fine ,but not TCP / UDP.

    Can any one give me some solution for Datagram and Socket over the 60 series phone.

  3. #3
    Registered User
    Join Date
    Aug 2003
    Posts
    2

    Datagram problem

    I have the same problem with using datagram connection, exists any solution?

  4. #4
    Registered User
    Join Date
    Jul 2003
    Posts
    32
    The 3650 does not support DatagramConnection.

    The MIDP spec does not require a phone to provide, well, much of anything. If you read it carefully, you will find that implentations "MAY provide" features you care about.

    MIDP 2 changes this to "SHOULD provide" -- ie, you still can't count on it. Word is that Nokia may catch up with other manufacturers in this regard with the 6600; I'm certainly optimistic. But before the 6600, you're just out of luck.
    --G

  5. #5
    Registered User
    Join Date
    Jun 2003
    Posts
    24

    Datagram Connection

    If this is the case with Nokia in their 3650 . Why was that no documents specify that 3650 does n't support datagram?
    If Nokia 3650 claims that they are MIDP 1.0 complaint and MMAPI complaint . Their technical specifications does n't describe anything about this. Is it that they don't reveal their limitations in their release.

    It was my luck when i tried StreamConnection in 3650 , it worked and i was able to achieve datagram connections.

    Does any one discuss more about Stream Connection , ContentConnection , InputConnection and OutputConnection.

  6. #6
    Registered User
    Join Date
    Jul 2003
    Posts
    32
    Not supporting datagrams or streams is perfectly MIDP compliant -- the MIDP spec doesn't require datagrams or streams, it just requires that if there are datagrams or streams, they must follow this interface.

    This is a serious shortcoming of the spec, but it is not actually Nokia's problem. MIDP just doesn't guarantee datagrams or streams. The only networking that Nokia bothers to provide is http. No TCP (Streams), no UDP (Datagrams), nothing but http, and that implemented in a totally synchronous way so don't even think about using the hold-open-a-POST trick.

    If you want networking, use Sprint. If you want Nokia, use http, or don't network.

    Oh, and be careful with the http. The http is pretty buggy and unreliable. We have been measuring round-trips of several seconds, with as many as 10% of requests lost in the network.
    --G

  7. #7
    Registered User
    Join Date
    Jun 2003
    Posts
    24

    Again, Its question of java or C++?

    If networking is entirely based on MIDP complaint specs.
    It sounds aggreable. But If nokia tries to stop networking in their implementation.
    How it is possible to disable networking in java and enable networking (TCP / UDP) in c++.
    Yes , i mean it . Iam able to create sockets in Symbian C++ and my handsets communicate with my server freely.

    I have even tried developing applications for my 3650 handsets for http access (j2me) , nothing went faulty as you claim.

    May i know what kind of network you have to access http?

  8. #8
    Registered User
    Join Date
    Aug 2003
    Posts
    28

    Datagram Connection with Nokia 7650

    I want to create an application for Nokia 7650 with MIDP 1.0 that use a DatagramConnection.

    WIll it work?

    In an emulator on the PC works fine.

    Here, there are some piece of code:


    // Create a new datagram socket.
    DatagramConnection dc =
    (DatagramConnection)Connector.open("datagram://:5060");

    System.out.println("SYSTEM, datagram server listener:" + "datagram://:5060");

    while (! sipStack.toExit) {
    Datagram datagram =
    dc.newDatagram(MAX_DATAGRAM_SIZE);

    System.out.println("SYSTEM, listening!");
    dc.receive(datagram);
    System.out.println("SYSTEM, packet revceived!");

    // Create asynchronous message handler
    // for this message
    UDPMessageChannel udpMessageChannel =
    new UDPMessageChannel
    (datagram,sipStack);
    }
    } catch (Exception ex) {
    ex.printStackTrace();
    }

    If it doesn't work in Nokia 7650, which kind of mobile can I use for it?

    Thanks in advance

    Best regards

  9. #9
    Registered User
    Join Date
    Aug 2003
    Posts
    28
    >> If you want networking, use Sprint. If you want Nokia, use http, or don't network.

    What do you mean with "Sprint"?

    thanks

  10. #10
    Registered User
    Join Date
    Jul 2003
    Posts
    32
    <i>What do you mean with "Sprint"?</i>

    Sorry, I was being US-centric. Sprint is a US carrier, all of whose MIDP phones support UDP and TCP.

    If you're outside the US, I don't know much about your options -- look for handsets from LG, Sanyo, or Samsung, since I know that they all provide some phones with non-crippled MIDP implementations.
    --G

Posting Permissions

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