Also talk about BlackBerry network connection

Source: Internet
Author: User

Also talk about BlackBerry network connection


Precautions:

1. The WAP 2 Gateway of CT can only access the HTTP protocol, but the port can be arbitrary, such as access to Http://m.baidu.com, http://crj.fjgat.gov.cn:9080/

(Updated September 15, 2011)

But not accessible://m.baidu.com:80;deviceside=true; CONNECTIONUID=WAP2, the error is as follows

The telecommunication gateway complains as follows (you can get the text returned by the Telecommunication gateway in the BlackBerry Java program):

 

2. Licensed Telecom BlackBerry, there is no service BlackBerry Uim Card, need to modify the phone inside the engineering mode parameters, SIP user from cbtt@mycdma.cn modified to ctwap@mycdma.cn.

This time mobile phone walk Ctwap channel (but not necessarily take WAP Proxy ... ), you can connect to most of the extranet ports directly.

This may be the legendary telecommunications through the Ctwap channel of the argument bar.

2. The BIS connection can access any port


3. The BES connection depends on the IP and port that the enterprise firewall allowed to access. Some foreign companies are very strict management, BES network can only access certain IP and port. For example, do not allow access to Facebook and Sina Weibo, do not allow access to 80 of ports and so on.


4. Telecommunications licensed BlackBerry 9630/9650 opened BlackBerry Service, the default walk CTBB APN, can not walk ctnet, can only walk BES (through the Intranet)/bis/wap 23 channels.

5. The last reference code for a network connection:

      String LCase = Url.tolowercase ();  String [] connectiontypes = {"BES", "directtcp", "WAP2", "WiFi", "Cmnet", "Cmwap", "3gnet", "3gwap", "ctnet", "BIS", "NO
        
        Parameter "};
        if (typesfield.getselectedindex () = = 0) url = url + ";d eviceside=false";
        if (typesfield.getselectedindex () = = 1) url = url + ";d eviceside=true"; if (typesfield.getselectedindex () = = 2) url = url + ";d eviceside=true;
        CONNECTIONUID=WAP2 Trans ";
        if (typesfield.getselectedindex () = = 3) url = url + "; Interface=wifi";
        if (typesfield.getselectedindex () = = 4) url = url + ";d eviceside=true;apn=cmnet"; if (typesfield.getselectedindex () = = 5) url = url + ";d eviceside=true; wapgatewayip=10.0.0.172;
        Wapgatewayapn=cmwap ";
        if (typesfield.getselectedindex () = = 6) url = url + ";d eviceside=true;apn=3gnet"; if (typesfield.getselectedindex () = = 7) url = uRL + ";d eviceside=true; wapgatewayip=10.0.0.172;
        Wapgatewayapn=3gwap ";
        if (typesfield.getselectedindex () = = 8) url = url + ";d eviceside=true;apn=ctnet"; if (typesfield.getselectedindex () = = 9) url = url + ";d eviceside=false;
        Connectiontype=mds-public "; if (typesfield.getselectedindex () = =) url = URL;



Reference: BlackBerry built-in sample inside the Httpdemo


Reference: Different ways to make an HTTP or socket connection

http://supportforums.blackberry.com/t5/Java-Development/Different-ways-to-make-an-HTTP-or-socket-connection/ta-p/445879


Reference Network Connection diagnostic Tool for Developers

Note: This tool needs to be compiled by the programmer for its own use. You can specify the domain name and port of the target server to which you want to access.

http://devblog.blackberry.com/2010/11/network-connectivity/



Reference: A tutorial in the "official tutorials" of the CSDN BlackBerry Community

http://blackberry.csdn.net/



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.