WAP2 不工作:严重隧道故障

发布于 2024-10-30 14:23:39 字数 1035 浏览 1 评论 0原文


我正在为 Blackberry 开发一个应用程序,但我遇到了一些问题。
我想使用 WAP2 连接到世界,但收到此错误:

Critical tunnel failure

我发布了以下代码:

private String connectionParameters() {
        if(WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED) {
            return ";interface=wifi";
        } else {
            int coverageStatus = CoverageInfo.getCoverageStatus();
            ServiceRecord record = this.getWAP2ServiceRecord();
            if(record != null && (coverageStatus & CoverageInfo.COVERAGE_DIRECT) == CoverageInfo.COVERAGE_DIRECT) {
                return ";deviceside=true;ConnectionUID=" + record.getUid();
            } else if((coverageStatus & CoverageInfo.COVERAGE_MDS) == CoverageInfo.COVERAGE_MDS) {
                return ";deviceside=false";
            } else if((coverageStatus & CoverageInfo.COVERAGE_DIRECT) == CoverageInfo.COVERAGE_DIRECT) {
                return ";deviceside=true";
            }
        }
        return null;
    }

我真的希望沃达丰不是在阻止 WAP2 :(
预先感谢大家!

I'm developing an app for Blackberry but I'm stuck with something.
I wanna use WAP2 to connect to the world, but I get this error:

Critical tunnel failure

I'm posting the code below:

private String connectionParameters() {
        if(WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED) {
            return ";interface=wifi";
        } else {
            int coverageStatus = CoverageInfo.getCoverageStatus();
            ServiceRecord record = this.getWAP2ServiceRecord();
            if(record != null && (coverageStatus & CoverageInfo.COVERAGE_DIRECT) == CoverageInfo.COVERAGE_DIRECT) {
                return ";deviceside=true;ConnectionUID=" + record.getUid();
            } else if((coverageStatus & CoverageInfo.COVERAGE_MDS) == CoverageInfo.COVERAGE_MDS) {
                return ";deviceside=false";
            } else if((coverageStatus & CoverageInfo.COVERAGE_DIRECT) == CoverageInfo.COVERAGE_DIRECT) {
                return ";deviceside=true";
            }
        }
        return null;
    }

I really hope it's not Vodafone who's blocking WAP2 :(
Thanks in advance to everyone!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

潇烟暮雨 2024-11-06 14:23:39

检查您的设备上是否填充了正确的 APN 设置。这些设置是特定于无线提供商的,因此请联系沃达丰了解您需要的设置,或者尝试在谷歌上搜索(很可能您会发现它们是公开可用的)。

Check that proper APN settings are populated on your device. The settings are wireless provider specific, so contact Vodafone for the settings you need OR try to google on this (most likely you'll find them publicly available).

我也只是我 2024-11-06 14:23:39

刚刚得到沃达丰阿尔巴尼亚的确认。 WAP仅限于他们的服务,因此上面的代码没有错误。

Just got confirmation from Vodafone Albania. WAP is limited to their services, so there's no error in the code above.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文