5394|15

70

帖子

0

TA的资源

一粒金砂(初级)

CDMA ppp 接入UDP传输为什么不行 [复制链接]

各位大虾我现在有一个问题,我采用同样的PPP协议栈,使用GPRS上网TCP UDP都可正常传输,但是采用有线modem及CDMA modem就发现TCP可以,余名解析也可以,但在应用程序发送UDP包时,服务器没有反应(设备和服务器都是同样的程序),是不是lcp协商的问题导致的,以下是我的CDMA连接过程
*** AT Stage: PPP

*** PPP Stage: None

*** PPP Stage: Starting

*** AT Stage: Disc 1

*** PPP Stage: Starting

*** PPP Stage: LCP Options

TX: Protocol: PPP_LCP [c021]    Code:CREQ [1]  ID:1   Len:14
    type:1     len:41500
    type:2     len:6  ACCM: 00000000000000000000101000000000
ID:948941806
3006-0-0
Reset GPS Task

TX: Protocol: PPP_LCP [c021]    Code:CREQ [1]  ID:1   Len:14
    type:1     len:41500
    type:2     len:6  ACCM: 00000000000000000000101000000000
ID:948941806
7011-0-0

RX: Protocol: PPP_LCP [c021]    Code:CREQ [1]  ID:1   Len:29
    type:1     len:41500
    type:2     len:6  ACCM: 00000000000000000000000000000000
    type:3     len:5    AP: C223
    type:5     len:6    MN: 1552180886
    type:7     len:2  PFC
    type:8     len:2  ACFC
     we n-rejected auth-prot:C223 .. asking for PAP instead

TX: Protocol: PPP_LCP [c021]    Code:CNAK [3]  ID:1   Len:8
    type:3     len:4    AP: C023

RX: Protocol: PPP_LCP [c021]    Code:CACK [2]  ID:1   Len:14
    type:1     len:41500
    type:2     len:6  ACCM: 00000000000000000000101000000000

Initialize GPS OK

RX: Protocol: PPP_LCP [c021]    Code:CACK [2]  ID:1   Len:14
    type:1     len:41500
    type:2     len:6  ACCM: 00000000000000000000101000000000

RX: Protocol: PPP_LCP [c021]    Code:CREQ [1]  ID:2   Len:28
    type:1     len:41500
    type:2     len:6  ACCM: 00000000000000000000000000000000
    type:3     len:4    AP: C023
    type:5     len:6    MN: 1552180886
    type:7     len:2  PFC
    type:8     len:2  ACFC
    rejected:7
    rejected:8

TX: Protocol: PPP_LCP [c021]    Code:CREJ [4]  ID:2   Len:8
    type:7     len:2  PFC
    type:8     len:2  ACFC

RX: Protocol: PPP_LCP [c021]    Code:CREQ [1]  ID:3   Len:24
    type:1     len:41500
    type:2     len:6  ACCM: 00000000000000000000000000000000
    type:3     len:4    AP: C023
    type:5     len:6    MN: 1552180886
    accepted:1
    accepted:2
    accepted:3
    accepted:5

TX: Protocol: PPP_LCP [c021]    Code:CACK [2]  ID:3   Len:24
    type:1     len:41500
    type:2     len:6  ACCM: 00000000000000000000000000000000
    type:3     len:4    AP: C023
    type:5     len:6    MN: 1552180886
LCP Success

*** PPP Stage: LCP Options

*** PPP Stage: Auth'ing

TX: Protocol: PPP_PAP [c023]    Code:CREQ [1]  ID:1   Len:14
ID:948941806
4005-0-0

RX: Protocol: PPP_PAP [c023]    Code:CACK [2]  ID:1   Len:5

  They accepted our Auth'

*** PPP Stage: Auth'ing

*** PPP Stage: Sorting IP's
PAP Success

TX: Protocol: PPP_IPCP [8021]    Code:CREQ [1]  ID:1   Len:22
    type:3     len:6   ip: 0.0.0.0
    type:129     len:6   ip: 0.0.0.0
    type:131     len:6   ip: 0.0.0.0

RX: Protocol: PPP_IPCP [8021]    Code:CREQ [1]  ID:4   Len:16
    type:2     len:6   comp-prot: 002D
    type:3     len:6   ip: 220.192.168.3
    rejected:2

TX: Protocol: PPP_IPCP [8021]    Code:CREJ [4]  ID:4   Len:10
    type:2     len:6   comp-prot: 002D

RX: Protocol: PPP_IPCP [8021]    Code:CNAK [3]  ID:1   Len:22
    type:3     len:6   ip: 220.207.169.79
    type:129     len:6   ip: 220.192.32.103
    type:131     len:6   ip: 220.192.0.130

TX: Protocol: PPP_IPCP [8021]    Code:CREQ [1]  ID:2   Len:22
    type:3     len:6   ip: 220.207.169.79
    type:129     len:6   ip: 220.192.32.103
    type:131     len:6   ip: 220.192.0.130

RX: Protocol: PPP_IPCP [8021]    Code:CREQ [1]  ID:5   Len:10
    type:3     len:6   ip: 220.192.168.3
    accepted:3

TX: Protocol: PPP_IPCP [8021]    Code:CACK [2]  ID:5   Len:10
    type:3     len:6   ip: 220.192.168.3

RX: Protocol: PPP_IPCP [8021]    Code:CACK [2]  ID:2   Len:22
    type:3     len:6   ip: 220.207.169.79
    type:129     len:6   ip: 220.192.32.103
    type:131     len:6   ip: 220.192.0.130

  Tx Magic Num: 0
  Rx Magic Num: 1552180886

       Tx ACCM: 00000000000000000000101000000000
       Rx ACCM: 00000000000000000000000000000000

        Tx MRU: 1500
        Rx MRU: 1500
n
  Our IP: 220.207.169.79
Their IP: 220.192.168.3
DNS-1 IP: 220.192.32.103
DNS-2 IP: 220.192.0.130

最新回复

学习一下   ppp验证成功后能否用CSocket直接向网络发东西  详情 回复 发表于 2009-10-22 18:48

回复

70

帖子

0

TA的资源

一粒金砂(初级)

经测试可以在ntp服务器,dns服务器之间进行udp传输,但我自己的服务器在铁通,同时电信ADSL拨号上网的临时全局IP测试不能通过,郁闷中。。。

回复

70

帖子

0

TA的资源

一粒金砂(初级)

NAT问题

回复

75

帖子

0

TA的资源

一粒金砂(初级)

能具体一点吗,是联通不提供不知名端口,这个问题怎么解决,已测试知名端口可以使用

回复

55

帖子

0

TA的资源

一粒金砂(初级)

请问楼主:

gprs中有apn设置,cdma需要设置apn或类似的参数吗?

回复

71

帖子

0

TA的资源

一粒金砂(初级)

cdma不需要设置apn,但是需要用户名和密码,匹配就可以了。。。正常访问公网的都是card。

回复

84

帖子

0

TA的资源

一粒金砂(初级)

就是说在建立ppp连接的时候,把用户名和密码设置成card,其余的和gprs差不多?

回复

65

帖子

0

TA的资源

一粒金砂(初级)

那么他所获得的本地ip是内部ip吗?gprs一般是10开头的内部ip

回复

60

帖子

0

TA的资源

一粒金砂(初级)

如果您需要查看本帖隐藏内容,请登录或者注册

回复

81

帖子

0

TA的资源

一粒金砂(初级)

如果您需要查看本帖隐藏内容,请登录或者注册

回复

80

帖子

0

TA的资源

一粒金砂(初级)

如果您需要查看本帖隐藏内容,请登录或者注册

回复

62

帖子

0

TA的资源

一粒金砂(初级)

如果您需要查看本帖隐藏内容,请登录或者注册

回复

63

帖子

0

TA的资源

一粒金砂(初级)

如果您需要查看本帖隐藏内容,请登录或者注册

回复

72

帖子

0

TA的资源

一粒金砂(初级)

如果您需要查看本帖隐藏内容,请登录或者注册

回复

64

帖子

0

TA的资源

一粒金砂(初级)

如果您需要查看本帖隐藏内容,请登录或者注册

回复

85

帖子

0

TA的资源

一粒金砂(初级)

如果您需要查看本帖隐藏内容,请登录或者注册

回复
您需要登录后才可以回帖 登录 | 注册

相关帖子
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/5 下一条
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2023 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表