08-05-2010 11:06 AM
If anyone is experiencing pages not loading when using the Browser or connectivity issues in applications with the BlackBerry Torch (9800) smartphone simulator then please read this post for information on how to gain network access from the simulator.
*Note that this issue is not specific to this particular simulator, these same steps will need to be taken for any BlackBerry smartphone simulator to receive network access*
To enable internet connectivity in the BlackBerry Smartphone Simulator for use by the browser or any Java application requiring an internet connection, start the MDS Connection Service (MDS-CS) or simulate connecting the Simulator to a WLAN network.
1) Start the BlackBerry MDS-CS simulator
The MDS-CS simulator is included with the BlackBerry JDE, BlackBerry Java Plug-in for Eclipse or as a stand-alone installer; all available for download here. It can be started in the following ways:
- Installed with the BlackBerry JDE (from the Windows Start Menu):
Start > All Programs > Research In Motion > BlackBerry JDE 6.0 > MDS-CS
- Installed independantly:
Start > All Programs > Research In Motion > BlackBerry Email and MDS Services Simulators 4.1.4 > MDS
- Start automatically when launching the simulator from the development environment:
- BlackBerry Java Plug-in for Eclipse:
Run > Run Configurations > BlackBerry Simulator (select the active instance or create a new instance) > Simulator (tab) > General (sub-tab) > check "Launch Mobile Data System Connection Service (MDS-CS) with simulator"
- BlackBerry JDE:
Edit > Preferences > Simulator (tab) > General (sub-tab) > check "Launch Mobile Data System Connection Service (MDS-CS) with simulator"
2) Simulate connecting the Simulator to a WLAN network
- Click the banner at the top of the simulator’s screen
- Click Set Up Wi-Fi Network.
- Click Default WLAN Network.
After one of the two above steps are completed the smartphone simulator should have network access.
- Configure the BlackBerry MDS simulator to work behind a proxy
- BlackBerry MDS Simulator does not launch
08-06-2010 04:01 AM
just to add:
if you use deviceside=true on a simulator the connection works without starting the mds-cs.
08-06-2010 09:08 AM
Yes, using ;deviceside=true will simulate the Direct TCP connection allowing the simulator to connect through the computer's network without using the MDS-CS simulator.
As an FYI, this is essentially the same type of connection what's happening when we simulate connecting to the WLAN network, a Direct TCP connection will be used for the Browser as well as for other applications on the simulator.
08-17-2010 04:44 PM
You can append the deviceside parameters to the target URL when making the connection.
09-08-2010 03:09 PM
Thanks. Yes, I have tried it. It has no effect, at least not for 9800. So I just use the option of launching MDS in the simulator option page and it works. But would be much easier if deviceside=true would work since MDS takes a little while to launch each time.
09-08-2010 03:33 PM
The MDS-CS simulator could be left open to save having to launch it each time the simulator is run.
I just tested ";deviceside=true" here and was unable to reproduce your results, the simulator was able to make the network connection successfully. Please try running the HTTPDemo sample application included with the BlackBerry SDK, point it to the following URL and see if it can fetch the page successfully:
If this does not work, does your environment require a proxy to browse to the Internet?
What operating system are you running (including whether 32 or 64 bit)?
09-09-2010 02:07 AM - edited 09-09-2010 02:18 AM
My system is running under proxy and i have configured my MDS setting to work behind proxy and i am able to make http connection.
Recently i am trying to make a socket connection using XMPP open source code but i am getting " Connection refused:"
exception with mds and when i add deviceside true for direct TCP connection i got "Peer refused the connection" exception.
09-09-2010 07:42 AM
When using Direct TCP your connection falls back to using your computer's default. Depending on how your proxy is configured your computer may not use it by default, which would explain why this connection is being refused by your network. I would suggest sticking with using the MDS-CS simulator with ";deviceside=false" appended to URLs if it is working as expected for network connections.
For the XMPP issue there could be a few reasons why it is happening but I will respond to that thread shortly to continue.