Connections slow UDP of blackBerry Smartphones

Hello

I'm building a client/server UDP application similar to the UDP demo which comes with the 9530 Simulator: http://www.blackberry.com/go/udpsample.  This example works fine.  However, at my request, the Simulator sends a UDP message to the server and it is very well run, but when the server sends a message beck to the Simulator, there is a problem.  As far as I can see, the UDP datagram is sent by the server, but the Simulator/client is blocked on the "[UDPDatagramConnection] .receive ([Datagram]) ' command.  It sits there for about 10 seconds, and then must expire or something.  It then responds with the message well received, and all is well.  As far as I can see, no information has been received at the end of this period of 10 seconds, so I guess that is not the problem of the server.  If everything works fine, except this time of 10 seconds.  Of course, since the source code of this function is not provided by RIM, it is impossible to get the debugger in there to see what he's stuck on.  Are there known issues with UDP connections being slow to receive an incoming connection?  Again, my setup is very similar to the example provided by RIM.

Well, I think that I thought about it.  In my application, I have a main thread running, and the UDP connection is in thread side.  The main thread uses a

While (udpThreadHasNotFinished & timeout.isAlive ())

instruction to wait than the thread of the UDP at the end of its activities.  It seems that the main thread is blocked somehow the

[UDPDatagramConnection] .receive)

command in the thread of the UDP with the statement 'all'; as soon as the time-out period has expired, the almost finished UDP thread immediately.    This is perhaps due to priorities of the threads or something; I'm not sure.

In the end, I used a

UDPThread.join ();

command in the main thread instead of the command 'everything '.  This makes the main thread wait that the UDP thread to terminate before it proceeds.  RIM too bad decided not to include the function of time-out on the command "join!"

Tags: BlackBerry Smartphones

Similar Questions

  • Connection to Internet of blackBerry Smartphones

    Hi, I have a blackberry 8520

    I live in China and I use China unicom as a service provider...

    I installed gprs/edge and it is still tiny "edge" "gprs".

    Often the phone just loses its internet connection but the edge/gprs is always visible in the upper right.

    I have to do a battery pull and when it restarts internet works again!

    Is there an easier way to re establish my connection? I have tried turing the mobile connection on and outside, but not train... only the work of battery pull.

    Any suggestions?

    Thank you

    If your phone displays gprs and edge in lowercase then it sounds as if your phone is not properly configured. Do you have a data plan blackberry rather than a standard carrier data plan?

  • Connection by Modem of blackBerry Smartphones

    I need help to connect my 8310 BB as a modem with my Macbook

    http://www.BlackBerry.com/BTSC/search.do?cmd=displayKC&docType=kc&externalId=KB05196&sliceId=SAL_Public&dialogID=1114305&StateID=1%200%201132277

  • Unable to connect on your BB BlackBerry Smartphones should I give? !

    Hey,

    I continue to protect themselves from this message whenever I try to connect my bb or my app world... ASIST me please.

    Thank you

    Hello

    I couldn't get to the page of configuration to all the "system check" Please explain how to access because I don't have the link says http://www.blackberry.com/btsc/KB25668
    Thank you

  • Network connections of Mobile My blackBerry Smartphones keeps cutting

    When I go to compose a message to test he told me s radio. I go to the application of connection management and he said that the Mobile network is turned off. I can activate backl but there is not. How can I fix?

    Ahhh... it's very important. Low breakage (1xev) means that your BB sees the network, but is not connected. Only when you have all uppercase (1XEV) you have full connectivity to your corporate network. If you are in the Association? If so, try this:

    Dial * 228, select Option 1

    Dial * 228 again once, select Option 2

    If you are not on VZW, then pass it because I do not know the codes to any other carrier for this.

    Reboot your BB exactly in this way:

    With power ON, remove the hood back and remove the battery. Wait a minute, then replace the battery and cover. Power on and wait patiently through the long reboot - about 5 minutes.

    If you do not yet have all uppercase 1XEV, try this:

    Homescreen > Options > Advanced Options > host Routing Table > (no matter what line is highlighted) BBKey > sign up now

    Once you receive the registration message, recheck the 1XEV. If not yet all capital letters, call your operator that something is not right on their end.

  • Connection App box of blackBerry Smartphones

    Good evening everyone. Are you able to connect to the application of the box?

    I get an error message, 'sorry we can not access this page... ". "I tried via 4G LTE and WIFI.

    Box has solved this problem.

    Thanks again for pointing out this @ivantwilliams!

  • Slow downloads of blackBerry Smartphones

    All of a sudden, my phone (Curve 9360) downloads have slowed completely. I have 3G and internet works fine and at normal pace but my download speed is spent about 200 kb/s 2 Kbps and even slower. Why is this?

    They told me to go into options, then go to the unit and then go to advanced system settings. Once in there, go to the host Routing Table, select "GPRS ZA (655) (65500130)" and then press the menu key and click Save. After that, he must say "Record Message sent." Then before out of the host Routing Table screen, remove your battery for about 30 sends to 1 minute and then put it back. This word before, but not now. I just want to know if maybe it's the curves which is experiencing a problem?

  • Slow Internet for blackBerry Smartphones

    Recently, the internet service on my blackberry curve works very slowly.  This happens with a complete wireless signal and their location (on a 20-mile radius in the Metropolitan new york area) where the service has been great before.  It started to happen about a week to two weeks.  I have not dropped the phone, got wet, or add any new request since that time.  Web pages that takes about 30 seconds to load now take about five minutes.  To download in the upper right corner arrows indicate always the traffic as they did before.  Thanks for any help.  -Jay

    Try to clear the browser cache. Browser > Options > Cachec operations.

  • Frustrated with connection to the browser blackBerry smartphones

    When I try to browse the Internet, I've recently started having a popup box that says: "this is a problem when trying to render the page.  I was not able to connect to the Internet for about 4-5 days.  Can anyone help?

    Is it with any site? First, try to reset the device by removing the battery for a minute and try it.

  • «Connected permanently on desktop» blackBerry smartphones

    I have a BB 8300 which has worked well for months.

    Well, to tell you the truth, I think I have disconnected it by chance when it is synchronized with MS Outlock.

    Now when I try to syn with Desktop Manager, he found the BB device, begin synchronization, but the message * used * to read something like "read-10 record of 20.  Now, it reads "reading %1! s! of %1s! "type stuff.  Then Desktop Manager creates an error message page, which says error and stops in DM, send an error report.

    After that, the Blackberry remains "Attached to the device" screen for a long time.  Once completed, no Outlook calendar item is transferred.

    Any ideas?

    Thanks for any help!

    Man-

    Thank you very much!

    Which I tried and it worked!  I always get the gobblety-goop on the screen as it is taking place, but the process works.

    Thanks again.

  • Connection T - Mobile UK blackBerry Smartphones

    Hi all

    Just thought I would ask if everyone across the United Kingdom has problems with the T-Mobile network and a connection to the Internet Service? Mine is not too bad, but its only the disconnection of one or two times a day last week, it was really bad. I did a software update and it could help him, but I want to see if its affecting all.

    JD

    Hello

    Just to be on the safe side, when you cannot access the make the internet a mobile services test.

    Options, mobile network, touch menu, select diagnostics.

    This will test your radio and make sure your radio device is working properly.

    Thank you

    Bifocals

  • BlackBerry Smartphones not get facebook notifications

    Not getting not facebook notifications

    Hey steffanie1994,

    Perform the following steps, and then test to see if the notifications to work.

    • Log out of Facebook for smartphones BlackBerry from the BlackBerry smartphone.
    • Connect to the Facebook account from a computer.
    • Choose the account, privacy settings, Applications & websites.
    • Choose the Applications you are using, change the settings.
    • Choose the settings in Facebook for BlackBerry, smartphones.
    • Click remove the application.
    • Connect to Facebook for BlackBerry smartphones from the BlackBerry smartphone.
  • BlackBerry Smartphones Flight Mode airplane Mode?

    For 2 days, I tried to find out where I can access flight or flight on my Blackberry 9650 Ver 6.0 Mode can not find in the owner's manual... Thank you

    Hi and welcome to the forums!

    KB13201 How to enable or disable connections wireless on the BlackBerry smartphone

    This process may also be referred to as airplane Mode or flight Mode, or in airplane Mode.

    Thank you

    Bifocals

  • BlackBerry Smartphones BB Curve 8520-Facebook problem

    I'm having a problem with the connection to Facebook app and stay connected.  I get error messages:

    (1) your login session has expired.  Please re - connect to Facebook app.

    (2) Server Facebook returned an unknown error and is not able to respond to your request.

    Does anyone else have this problem.

    P.S. I just upgraded to v 1.9 of Facebook.

    Hello

    See this KB for more useful information:

    KB25326 "Your login Session has expired" appears to attempt to connect to Facebook for BlackBerry smartphones

    Good luck!

  • Phone smart BlackBerry Smartphones had a problem connecting to the server - 8520 new message

    No emails received from a few days ago. I tried to configure the wizard's original e-mail accounts and got the message appears on the header of the message. Have you tried restarting pop battery without success. Also, during another attempt to implement email message "your connection to the mobile network is turned on, but you are not in a wireless coverage area. came. Subsequent attempts gave me the message "device had a problem..." ». Checked my wireless connections and everything is nice and connected. Messenger of Blackberry etc. everything works fine. Phone worked fine until a few days - ideas please.

    Hello and welcome to the community!

    I suggest the following, in order, even if they seem redundant to what you have already tried (steps 1 and 2, each should result in a message to your BB to come...) Please wait for this before moving on to the next step):

    (1) registry HRT

    • KB00510 How to register a BlackBerry smartphone with wireless network
    • Please wait a 'registration' message reach your Messages application

    (2) remove and return Service directories

    • KB05000 Remove the maintenance book for the BlackBerry Internet Service email account in the BlackBerry smartphone
    • If you do not have access CMIME, continue deleting
    • KB02830 Send the directories for the BlackBerry Internet Service
    • Please wait "the Activation' Messages, one per already configured e-mail account, arrive in your Messages. If you have not already configured email accounts, please wait 1 hour.

    (3) restart to take batt

    • Each time a random strange behavior or slow creeps, the first thing to do is a battery pop reboot. With power ON, remove the hood back and remove the battery. Wait a minute, then replace the battery and cover. Power on and wait patiently through the long reboot - about 5 minutes. See if things return to functioning. Like all computing devices, BB suffers from memory leaks and others... with a hard reboot is the best remedy.

    I hope that will move things again for you! If not, then you should try remove and re-add your BIS configuration for these accounts. Otherwise, you should contact your mobile provider for formal support.

    Good luck!

Maybe you are looking for

  • I want Amazon Instant Video on my Apple TV. What is the holdup?

    I love my Apple TV. It even works with my old Apple TV remotes. There is something missing. AMAZON INSTANT VIDEO! What is the holdup? It is ridiculous to use Airplay from my iPhone!

  • I received a scam message.

    Original title: text message... Is - this legitimate or a scam? On Tue Jan 29 20:30 (time British) I received a text message from phone number * asking address ID, password, e-mail address, phone number. Is - this legitimate or a scam?

  • Best practice for simultaneously run two loops (read + write) in sync

    Hello I thought I had a work program that could write and read simultaeously with reasonable accuracy, because it is perhaps not as reliable that I discovered the thought (he sometimes gets out of sync/jumps steps). Is there a good guide, method tuto

  • Failure of the update from Microsoft

    I have Win - XP Prof. with Service Pack 3 installed. In Microsoft Update, after download, the installation of "Office 2003 update for Microsoft Office Outlook 2003 Junk e-mail filter (KB2466074)" fails with error Code: 0x51F. What could be the reason

  • Problem installing Windows on Acer SW10. It freezes

    Hello I applied 'Reset your PC' on my Acer Aspire SW10 and after installing Windows and complete the installation, a screen appears asking you choose between English or Spanish languages, and the frozen screen. You can move between options with the t