HTTPS with Wifi and 3G connections

Hello

I have a code to open a connection https using Connector.open ().

I check for the MDS coverage and, if not true to add deviceside = false to the URL I check for BIS support and add deviceside = false and ConnectionType = mds public, otherwise I check to support DIRECT and add deviceside = true.

It was everything works very well if you use a SIM card with BB internet services activated. Even though it was not a mobile connection but Wifi available it would connect via Wifi (that I found on other forums it seems to manage it's "free").

However, I got a problem when you use an Orange SIM card with no active internet service. Even if there is Wifi available it wouldn't connect. I then added '= wifi interface' and 'deviceside = true' for the URL and it connects via Wifi.

This is my code

if( _mdsSupport ) {
            name = name.concat( ";deviceside=false" );
        } else if( _bisSupport ) {
            name = name.concat( ";deviceside=false;ConnectionType=mds public" );
        } else if (_directSupport) {
            name = name.concat( ";deviceside=true" );
        }
        else {
            name = name.concat( ";interface=wifi;deviceside=true" );
        }

        return Connector.open( name, mode, timeouts );

My problem is that when I use a SIM card with no internet service at all or with the 3G, they both return with _directSupport (IE. CoverageInfo.COVERAGE_DIRECT is enough) but then none of them will ever connect if I have the network of mobile telephony, Wifi, or both.

With the SIM card with no internet service I expected to return CoverageInfo.NONE and try and connect via Wifi.

With the SIM with 3G, I expected him to come back with CoverageInfo.DIRECT but it does not connect successfully.

Please can someone help explain this? I tried it on a Curve 8900 and the Torch 9800.

Thanks for any help.

Hi Peter,.

I managed to get all this work on Friday. Thanks for your other thread with information on making connections. Between your phone and the demo app he began finally to all the senses. Still do not know why this is all handled by the API!

I have test to try, and then sign in using BES and BIS, then Wifi, WAP and finally direct TCP, but you're right that I have need information about AFN to define.

Thanks again for your help. Your son has been invaluable.

Tags: BlackBerry Developers

Similar Questions

  • I am not able to download apps for my iPhone on the App Store. He just 'waiting '. But never starts the download. I tried with wifi and mobile data. The two are not download apps

    I am not able to download apps for my iPhone on the App Store. He just 'waiting '. But never starts the download. I tried with wifi and mobile data. The two are not downloading the applications Can u find out what's wrong? I use iPhone 5s

    I had the same problem. At the same time hold the screen lock button and the home button until your iPhone restarts. That solved the problem for me.

  • Since the last system upgraded my menu bar top with wifi and time, date etc etc is hidden unless I have sulk my cursor on it. Same thing with apps from shingles. How can I restore it is always there?

    Since the last system upgraded my menu bar top with wifi and time, date etc etc is hidden unless I have sulk my cursor on it. Same thing with apps from shingles. How can I restore it is always there? bar menus hidden-how do I restore?

    SystemPreferences-> Dock: automatically hide / show Dock

    SystemPreferences-> general: automatically hide / show menu bar

  • I use airplane mode on my iPhone 6, with wifi and I still receive calls. I don't want to. How can I change?

    I use airplane mode on my iPhone 6, with wifi and I still receive calls. I don't want to. How can I change?

    -do not disturb - the settings on

  • WIFI and WWAN connected simultaneously

    I have a W510 and both WiFi and WWAN works but not at the same time. I tried to change the configuration several times but I do not operate at the same time. If I connect the WiFi when WWAN is running, the WWAN is disconnected. It's like WiFi replace the WWAN connection and internet connection turns of (IE WWAN). I use the printer WiFi connection and I don't want to turn/on the WWAN connection, whenever I want to print something.

    1. is WWAN and WiFi supposed to operate simultaneously?

    2. If so, what is the WWAN and WiFi configuration in 'Connections Acess'? (Could you please add a screenshot of the configuration)

    / Hans

    I tried with AC and it did not work. I then uninstalled AC and tried Ad - hoc only with win7 and I couldn't make it work. Then I discovered that Intel have a solution called Intel MyWiFi and after installation, it worked perfectly. The software allows the computer create a PAN and Wi - Fi devices can be connected as connect to a normal router. Of course the network works as long as my computer is running...

    / Hans

  • Poor wifi and Bluetooth connectivity after iOS 9.3.1

    9.3.1 IOS is installed on my iPhone 6 wifi in my house guard fall!

    My Bluetooth connectivity keeps cutting to work! So annoyin!

    General suggestions for Wi - Fi problems, maybe one of them will help you...

    (1) perform a forced reboot: hold the Home and Sleep/Wake buttons simultaneously for about 15-20 seconds, until the Apple logo appears. Leave the device to reboot.

    (2) resetting the network settings: settings > general > reset > reset network settings. Join the network again.

    (3) change of Google DNS: settings > Wi - Fi > click the network, delete all the numbers under DNS and enter 8.8.8.8 or otherwise 8.8.4.4

    (4) reboot router/Modem: unplug power for 2 minutes and reconnect. Update the Firmware on the router (support Web site of the manufacturer for a new FW check). Also try different bands (2.4 GHz and 5 GHz) and different bandwidths (recommended for 2.4 to 20 MHz bandwidth).

    (5) disable the prioritization of device on the router if this feature is available.

    (6) determine if other wireless network devices work well (other iOS devices, Mac, PC).

    (7) try the device on another network, i.e., neighbors, the public coffee house, etc.

    (8) to restore the device (ask for more details if you wish).

    https://support.Apple.com/en-us/HT201252

    (9) go to the Apple Store for the evaluation of the material.

  • Satellite L650/1MC - WiFi and LAN connection keep dropping out

    In the last two weeks, that my wifi connection dropped regularly - only a reboot solves the problem. Because it became so frequent (and boring) I returned with an ethernet cable, which worked OK for a few days, but tthat hen started making the same thing: no internet connection.

    I must emphasize that my other active wifi (android and android phone Tablet) kit continue to connect to internet via wifi etc, even when the connection of the laptop has fallen. This leads me to suspect that the problem is mobile partner no router etc. relates. The laptop is rarely used on battery, so I do not have the power as a problem management.

    I have a Satellite L650/1MC running W7 64-bit. I made no changes to my system recently which may give rise to this problem - everything works perfectly until a few weeks before.

    I checked for updated firmware updated on my router in the case where it is the question - it's not.

    Any suggestions to fix this annoying would be welcome!

    > I checked for updated firmware updated on my router in the case where it is the question - it's not.

    Have you tried to reboot the router?
    Since the two connections (LAN and WLan) stops falling, I think that the router is the problem.
    OK, two other android devices seems to work properly but the fact is that router shares automatically and possibly IP addresses, the IP address cannot be assigned correctly.

    However, you can check the WLan and LAN TCP/IP protocol settings.
    Uninstall the TCP/IP v6 and use only the v4 TCP/IP for LAN and WLan.

    Also ensure that your security programs (firewall & anti-virus software) don't affect the internet connection.

  • HP Envy 27 3 in 1netn: HP Envy 27 Wifi and Ethernet connections

    New HP Envy 27 and have now no end of problems in charge a constant connection or using Wifi or Ethernet.

    All my other hardware such as laptop, I phone etc work fine, number of calls to the Helpdesk but still no luck.

    anyone else having similar problems. Crashes for a brief moment, enough to cancel a download.

    Hello @Divanduin,

    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the Forums of HP, I would like to draw your attention to the Guide of the Forums HP first time here? Learn how to publish and more.

    I read your post on how your desktop computer is not able to connect to your wired or wireless network, and I'd be happy to help you in this case!

    To re - establish a coherent link between your computer and the network, I recommend later in this document on troubleshooting wireless network and Internet (Windows 8), as well as Troubleshooting Wired Home networks (Windows 8). This should help to run a diagnostic on your system using the network and Internet troubleshooting, as well as measures to maintain your system over the wireless network.

    In addition, I suggest also follows the steps below to ensure that your power management settings do not interfere with

    the connection to the network:

    1. open DEVICE MANAGER
    2. open the NETWORK CARDS
    3. right click on the WiFi adapter for the pc and left click on PROPERTIES
    4. click on POWER up.
    5. remove the check mark beside : ALLOW the COMPUTER TO TURN THIS DEVICE SAVE START STOP
    6. click on OK
    7. close DEVICE MANAGER and test.

  • WRVS4400N with AG300 and VPN connections

    I bought a WRVS4400N router hoping to add wireless and VPN capability at a remote office LAN. I want to be able to establish a VPN connection from my PC to the central office to the WRVS4400N to remote desktop, access and administer systems at the remote office. Remote desktop systems is unnecessary access to systems to the central office.

    Before you deploy the WRVS4400N to remote desktop, I'm stable and by configuring it to our central office.

    Our central office is a router Linksys AG300 and ADSL service for Internet connection. It works well and I don't want to change it.

    I have connected the WRVS4400N to our central office LAN and it has an IP address on its WAN port assigned by the DHCP server on the AG300.

    What I do not understand how to establish a VPN connection to a system on the Internet at the WRVS4400N on the local network. I have a laptop with the QuickVPN software installed. If I connect my laptop to the AG300 (i.e. the same switch as the WAN port on the WRVS4400N) I can establish a VPN connection to the WRVS4400N but if I connect to my laptop to the Internet (via my ADSL service at home), I am unable to set up the VPN. I don't know how to configure the AG300 so that the VPN from my laptop reaches the WRVS4400N.

    I transfer ipsec enabled on the AG300, but this does not seem to run the VPN with the WRVS4400N.

    Can someone tell me what I need to do?

    Is there some other DSL modem I could use that facilitates the connection? There is another DSL modem (I don't know make/model until I visit the site) used in remote desktop, but I could replace it if I knew that the replacement work.

    Update: I got it to work. See https://supportforums.cisco.com/thread/2108785 for the advice that has been most useful.

    The essential steps have been before the ports indicated in this article (and UDP 500) to the WRVS4400N and I dropped a bit of the MTU (do not know if this was really necessary). Now I can establish connection QuickVPN, except when the Windows Firewall interferes.

    Hello

    Thank you for posting. In the AG300, transmit the following ports to the IP address of the WAN WRVS4400N port: 443, 500, 4500, 60443. This allows you to establish a QuickVPN for the WRVS4400N using the WAN IP of the AG300.

  • Profile of Windows 8 wifi and WEP connectivity issues

    Windows 8 running a Lenovo X 201 and similar questions on Samsug Tablet XE700T1A-A04US

    Updated the latest drivers for WiFi driver for Intel for Windows cards 8 64 - version 15.05.3000.1496 on 26/10/2012

    I can't connect to the active WEB Wifi access Points (my iPad and Galaxy tablet can)

    Also

    I can see previous wifi connections in the register:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Network\DataUsage\Wlan

    But I can't find anyway through the user of Windows 8 interface to modify or delete these profiles.  Example, I have some of networks when I traveled in Europe and no longer need them.

    Example:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Network\DataUsage\Wlan\LLOYDHOTEL

    BTW, I don't want to just delete the entry in the registry without knowing if it's the right way to remove?

    I did use the netsh wlan show profiles command and those in the registry is not listed (see above), so no still no chance to remove them.

    Thank you

    A number of people have asked on various forums on setting up WEP on Windows 7 and Windows 8.

    The vast majority of the responses say that you cannot do and just talk about why you should not use WEP in the first place. The fact is that sometimes you have TO connect to a wireless network and it happens to be using WEP. It can be a wireless network at home of a friend, at school, or other places which do not own you. Or it can be your own wireless network and you just want to use it without the hassle of configuring your router and all your computers (again).

    YES, people, you CAN manually configure your desktop or laptop computer running Windows 7 or Windows 8 to work with a wireless network using WEP. And the good news is that it is very simple to do.

    You must manually configure a wireless profile. The process is very simple and painless.

    Go to start/Control Panel / Network and sharing Center
    Select "set up a new connection or network".
    Select "manually connect to a wireless network.
    Fill in "Network name" (this is the SSID)
    Select the type of 'security' (in drop-down list, select WEP or other type)
    Choose the "type of encryption" (choose in the drop-down list)
    Fill in "Security key" (for example 10 hex character or password)
    You can also check:
    Hide the characters (recommended)
    Start this connection automatically (recommended)
    Connect even if the network is not broadcasting (read the disclaimer)

    Once the profile has been set up, you should be able to automatically or manually connect to the wireless network using WEP.

    Tech Guru / Fr. Tom McGahee

  • Satellite Pro L450 - 16 M - problem with WIFI and Webcam

    Hey guys

    At first, I'm sorry for my bad English. Last time I heard about 20 years ago at school.
    Here's my problem:
    I have a Toshiba Satellite Pro L450 - 16M. My OS is Windows7 32 Bit und my router is called Easybox 602.
    Whenever I use my Chicony USB 2.0 Webcamin Skype or other Onlineapplications my Wlan is turned off.

    I can't turn off and turn on before I restarted my computer. I think I downloaded the latest driver
    from this page. I also fixed my system with the recovery CD. Please help me!

    Welcome them
    Sascha

    Hello

    So with other words webcam and WIFI are not usable more right?
    You wrote that you did an installation of recovery using Toshiba Recovery disk: all devices recognized and listed correctly in the Device Manager? Please check this box.

    Generally the wireless network card can also be enabled by using the FN + F8 key combination.

    If webcam doesn t work I would like to reinstall latest driver of the webcam of the official website of Toshiba.

  • Problem with Wifi and Ethernet

    My laptop is Aspire E1 - 570G. After the update to Windows 10 my laptop says Limited/Restricted each time when I want to use the Wi - Fi or LAN cable. Help, please.

    Ok.

    can you post your Lan Ethernet adapter model?

    key of the Windows logo + x

    Device Manager

    Click the network card

    then with the ethernet cable is connected, right-click on the icon with a yellow triangle next to clock and date, choose 'open network... '. »

    on the next window, click "ethernet", then click on 'details', take a screenshot and send me a private message to this screenshot.

  • WRT160NL connection with n and USB connection problem

    Hi guys,.

    I have the Linksys WRT160NL router and I have two fundamental problems with that:

    1. I have a laptop HP with n on its wireless card connection. (it's an HP probook 4720 s). So I know that this laptop has ability. n I have the most recent driver vor he 3.1.18. The thing is that my Linksys router does not transmit sound wireless n, just g...

    What should I do to make it work with n as well?

    2. the second issue is that the USB connection is working in a very strange way. I have attached an ADATA with USB 3.0 HDD external, even. He works in 2.0.

    I have a lot of WAV files on it and when I stream to my receiver files pay with much intrerupptions, break ups. MP3 work very well.

    I don't know what to do to solve this 2 problems... Maybe someone could help me...

    Thank you

    Try changing some settings on the router wireless.

    Connect the computer to the router with the Ethernet cable. Open the router configuration page. Go to the wireless tab and the manual value configuration view. Change the channel to 11 wireless. Make sure that the network is set to mixed. Save the settings.

    Go to wireless security sub tab and change the wireless WPA2 with AES security mode. Save the settings.

    Click the tab under advanced wireless settings change the tag to 75 interval, RTS threshold and fragmentation to 2304. Save the settings. Now try to connect to the network again.

  • Dell Latitude E6520 2 separate monitors with HDMI and VGA connection.

    Hello

    Is it possible to connect 2 external monitors to this model and (with the laptop screen) have 3 monitors altogether? Someone set up hardware hes like that before? It works and is ok with this configuration nvidia card?

    Or is it only the opportunity to work with 2 monitors a time?

    Any help would be great.

    Hi all

    I want to give back to the community a 100% working way additional conecting 2 moniors (maybe more even with docking station) and have 3 screens working altogether (2 outside and 1 notebooks).

    3 things are needed:

    -Intel HD graphics driver

    -Nvidia driver

    -Active Optimus in the bios

    (set up in this order: activate optimus, install intel hd, install nvidia)

    Make sure that the drivers are properly installed. Download driver intel hd dells site driver nvidia and the nvidia site.

    As a result, it is possible to assign 1 monitor to the nvidia graphics card and other intel hd grapgics card 2. Then, it looks like this in config nvidia:

    This works 100% :)!

    Now, he is trying to connect as much as possible :).

    Hope this help anyone!

  • Anyone having problems with wifi? Low connection?

    Recently bought a new Sony Vaio Fit 8 gb laptop for College. The love of my laptop inside and outside except directly from the box of my wifi was very fragile.

    I'll be in a room with 5 bars of wifi, then I go into the next room and I can't go to the Internet at all. -Everyone in the House gets full bars on their laptops throughout the entire House.

    picked up my laptop at best buy, where I bought it from... the male also noticied there wifi problems. They are currently running a test to see if software and everything is up-to-date / / or if something is blocking the wifi?

    There could also be a possibility of the wifi card is bad or a loose antenna is used.

    Does anyone else have these problems? Completely heart broken and worried because I'm leaving for college in 3 weeks and to have my laptop repaired they must send it back to Sony... where it can take up to 2 weeks or two to get repair.

    And no, I don't want a new laptop. I put everything on this one. I don't want to transfer any new

    I will redirect you to the main thread. Vaio adapt Wifi wire. Follow the template below:

    • What exactly is the problem?  (Be specific)
    • What is the Version of the installed wireless driver?
    • Brand name and model of gateway (router)
    • The firmware version of the gateway (router)
    • Approximate distance mobile phone access or router to the point
    • Type of security (WEP, WPA, etc.)
    • Network type (A, B, G or N)
    • Type of frequency: 2.4 Ghz or 5 GHz

    @Tuxzor, spamming your information won't not anythign happen faster. Please try to keep it in the thread so everything is in one place and more likely to attract attention.

Maybe you are looking for