24kshanji

24kshanji

1个粉丝

8

问答

0

专栏

0

资料

24kshanji  发布于  2017-07-20 20:47:54
采纳率 0%
8个问答
5900

hi3516a使用RT3070无线视频传输不能使用,急!急!急!

 
       一直在开发hi3516a+imx178 rtsp网络视频传输,在VLC中播放视频,现在出现了一个问题,使用有线接口传输可以正常传输,但是换做无线网卡RT3070就不好使了,各个环节都测试了,硬件:无限网卡是好用的(在hi3520d测试过),hi3516a+imx178有线传输没问题(说明采集、压缩、传输都没问题), 软件: 有线和无线的区别就在于移植RT3070的驱动(移植成功,调试信息显示加载成功),如果需要动态设置ip就移植dhcp(为了找问题,这里设置手动设置ip),  各个环节都测试了,就是无法完成视频传输,而且我之前就是用这些程序实现过无线视频传输,只不过是因为之前的hi3516a不小心烧坏了,就换了个一摸一样的hi3516a就不好使了,而且为了以防万一,关于rt3070的驱动我也重新编译了,还是不好用,特向论坛们大神求救,附录调试信息和开机执行程序


开机执行程序:
cd /
insmod rtutil3070ap.ko                    
insmod rt3070ap.ko                        
insmod rtnet3070ap.ko                    
ifconfig ra0 up                          
ifconfig ra0 192.168.1.21 netmask 255.255.255.0
cd /123/ko && ./load3516a -a -sensor imx178 -osmem 128
route add default gateway 192.168.1.1
cd .. && ./rtsp &
udhcpd /etc/udhcpd.conf &


部分调试信息(vlc播放对应的码流地址)
插上网卡后
AP SETKEYS DONE - WPA2, AuthMode(7)=WPA2PSK, WepStatus(4)=TKIP, GroupWepStatus(4)=TKIP


VLC输入地址后的连接

AddClient, 128
Incoming RTSP connection accepted on socket: 16
EventLoop Connection reached: 3
tcp_read, 1684
192.168.1.100 Port:49591
INPUT_BUFFER was:OPTIONS rtsp://192.168.1.21:554/test.264 RTSP/1.0
CSeq: 2
User-Agent: LibVLC/2.2.6 (LIVE555 Streaming Media v2016.02.22)


rtsp_tracepoint: rtspservice.c,RTSP_state_machine,1383
state_machine:current state is  init state
current method code is:  3  
OPTIONS rtsp://192.168.1.21:554/test.264 RTSP/1.0
(Send to client:)
RTSP/1.0 200 OK
CSeq: 2
Public: OPTIONS,DESCRIBE,SETUP,PLAY,PAUSE,TEARDOWN


leaving rtsp_state_machine!
exit Rtsp_state_machine
4
SOUTPUT_BUFFER length 80
RTSP/1.0 200 OK
CSeq: 2
Public: OPTIONS,DESCRIBE,SETUP,PLAY,PAUSE,TEARDOWN


tcp_read, 1684
192.168.1.100 Port:49591
INPUT_BUFFER was:DESCRIBE rtsp://192.168.1.21:554/test.264 RTSP/1.0
CSeq: 3
User-Agent: LibVLC/2.2.6 (LIVE555 Streaming Media v2016.02.22)
Accept: application/sdp


rtsp_tracepoint: rtspservice.c,RTSP_state_machine,1383
state_machine:current state is  init state
current method code is:  0  
server:192.168.1.21
port:-1094691078
Failed to get host eth0 or wlan0 ip


GetSdpDescr,660===>psp.base64profileid=42001F,psp.base64sps=Z0IAH52oFAFum4CAgIE=,psp.base64pps=aM48gA==

(Send to client:)
RTSP/1.0 200 OK
CSeq: 3
Server: sunshine/1.11
Date: Thu, 01 Jan 1970 00:02:19 GMT
Content-Type: application/sdp
Content-Base: rtsp://sock_ntop_host: unknown AF_xxx: 13980, len 16/test.264/
Content-Length: 544

v=0
o=-2208988928 2208988928 IN IP4 sock_ntop_host: unknown AF_xxx: 13980, len 16
s=H.264 Video, streamed by the Zyqhziee Media Server
i=test.h264
t=0 0
a=tool:Zyqhziee Streaming Media v2015.11.27
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:H.264 Video, streamed by the Zyqhziee Media Server
a=x-qt-text-inf:test.h264
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=42001F;sprop-parameter-sets=Z0IAH52oFAFum4CAgIE=,aM48gA==
a=control:track1

leaving rtsp_state_machine!
exit Rtsp_state_machine
4
SOUTPUT_BUFFER length 762
RTSP/1.0 200 OK
CSeq: 3
Server: sunshine/1.11
Date: Thu, 01 Jan 1970 00:02:19 GMT
Content-Type: application/sdp
Content-Base: rtsp://sock_ntop_host: unknown AF_xxx: 13980, len 16/test.264/
Content-Length: 544

v=0
o=-2208988928 2208988928 IN IP4 sock_ntop_host: unknown AF_xxx: 13980, len 16
s=H.264 Video, streamed by the Zyqhziee Media Server
i=test.h264
t=0 0
a=tool:Zyqhziee Streaming Media v2015.11.27
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:H.264 Video, streamed by the Zyqhziee Media Server
a=x-qt-text-inf:test.h264
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=42001F;sprop-parameter-sets=Z0IAH52oFAFum4CAgIE=,aM48gA==
a=control:track1

tcp_read, 1684
192.168.1.100 Port:49591
INPUT_BUFFER was:SETUP rtsp://sock_ntop_host: unknown AF_xxx: 13980, len 16/test.264/track1 RTSP/1.0
CSeq: 4
User-Agent: LibVLC/2.2.6 (LIVE555 Streaming Media v2016.02.22)
Transport: RTP/AVP;unicast;client_port=56198-56199


rtsp_tracepoint: rtspservice.c,RTSP_state_machine,1383
state_machine:current state is  init state
current method code is:  8  
*** transport: RTP/AVP;unicast;client_port=56198-56199 ***
Failed to get host eth0 or wlan0 ip
<><><><>Creat RTP<><><><>
pstr=-56199
**adding a schedule object action rtsputils.c,322**
(Send to client:)
RTSP/1.0 200 OK
CSeq: 4
Server: sunshine/1.11
Date: Thu, 01 Jan 1970 00:02:20 GMT
Session: 100626
Transport: RTP/AVP;unicast;client_port=56198-56199;destination=192.168.1.100;source=0.0.0.0;server_port=57111-57112


TRANSFER TO READY STATE!
leaving rtsp_state_machine!
exit Rtsp_state_machine
4
SOUTPUT_BUFFER length 222
RTSP/1.0 200 OK
CSeq: 4
Server: sunshine/1.11
Date: Thu, 01 Jan 1970 00:02:20 GMT
Session: 100626
Transport: RTP/AVP;unicast;client_port=56198-56199;destination=192.168.1.100;source=0.0.0.0;server_port=57111-57112


tcp_read, 1684
192.168.1.100 Port:49591
INPUT_BUFFER was:PLAY rtsp://sock_ntop_host: unknown AF_xxx: 13980, len 16/test.264/ RTSP/1.0
CSeq: 5
User-Agent: LibVLC/2.2.6 (LIVE555 Streaming Media v2016.02.22)
Session: 100626
Range: npt=0.000-


rtsp_tracepoint: rtspservice.c,RTSP_state_machine,1383
state_machine:current state is  ready state
current method code is:5
        +++++++++++++++++++++
        start to play 0 now!
        +++++++++++++++++++++
(Send to client:)
RTSP/1.0 200 OK
CSeq: 5
Server: sunshine/1.11
Date: Thu, 01 Jan 1970 00:02:20 GMT
Session: 100626


        Start Playing!
leaving rtsp_state_machine!
exit Rtsp_state_machine
4
SOUTPUT_BUFFER length 105
RTSP/1.0 200 OK
CSeq: 5
Server: sunshine/1.11
Date: Thu, 01 Jan 1970 00:02:20 GMT
Session: 100626


AddClient, 128
Incoming RTSP connection accepted on socket: 17
EventLoop Connection reached: 4
tcp_read, 1684
192.168.1.100 Port:49591
INPUT_BUFFER was:TEARDOWN rtsp://sock_ntop_host: unknown AF_xxx: 13980, len 16/test.264/ RTSP/1.0
CSeq: 6
User-Agent: LibVLC/2.2.6 (LIVE555 Streaming Media v2016.02.22)
Session: 100626


rtsp_tracepoint: rtspservice.c,RTSP_state_machine,1383
state_machine:current state is  play state
(Send to client:)
RTSP/1.0 200 OK
CSeq: 6
Server: sunshine/1.11
Date: Thu, 01 Jan 1970 00:02:35 GMT
Session: 100626


no user online now resetfifo
leaving rtsp_state_machine!
exit Rtsp_state_machine
4
SOUTPUT_BUFFER length 105
RTSP/1.0 200 OK
CSeq: 6
Server: sunshine/1.11
Date: Thu, 01 Jan 1970 00:02:35 GMT
Session: 100626


tcp_read, 1684
192.168.1.100 Port:49597
INPUT_BUFFER was:OPTIONS rtsp://192.168.1.21:554/test.264 RTSP/1.0
CSeq: 2
User-Agent: LibVLC/2.2.6 (LIVE555 Streaming Media v2016.02.22)


rtsp_tracepoint: rtspservice.c,RTSP_state_machine,1383
state_machine:current state is  init state
current method code is:  3  
OPTIONS rtsp://192.168.1.21:554/test.264 RTSP/1.0
(Send to client:)
RTSP/1.0 200 OK
CSeq: 2
Public: OPTIONS,DESCRIBE,SETUP,PLAY,PAUSE,TEARDOWN


leaving rtsp_state_machine!
exit Rtsp_state_machine
4
SOUTPUT_BUFFER length 80
RTSP/1.0 200 OK
CSeq: 2
Public: OPTIONS,DESCRIBE,SETUP,PLAY,PAUSE,TEARDOWN


tcp_read, 1684
fd:16,RTSP connection closed by client.
first error,pRtsp is null
tcp_read, 1684
192.168.1.100 Port:49597
INPUT_BUFFER was:DESCRIBE rtsp://192.168.1.21:554/test.264 RTSP/1.0
CSeq: 3
User-Agent: LibVLC/2.2.6 (LIVE555 Streaming Media v2016.02.22)
Accept: application/sdp


rtsp_tracepoint: rtspservice.c,RTSP_state_machine,1383
state_machine:current state is  init state
current method code is:  0  
server:192.168.1.21
port:-1094691078
Failed to get host eth0 or wlan0 ip


GetSdpDescr,660===>psp.base64profileid=42001F,psp.base64sps=Z0IAH52oFAFum4CAgIE=,psp.base64pps=aM48gA==

(Send to client:)
RTSP/1.0 200 OK
CSeq: 3
Server: sunshine/1.11
Date: Thu, 01 Jan 1970 00:02:36 GMT
Content-Type: application/sdp
Content-Base: rtsp://sock_ntop_host: unknown AF_xxx: 30484, len 16/test.264/
Content-Length: 544

v=0
o=-2208988928 2208988928 IN IP4 sock_ntop_host: unknown AF_xxx: 30484, len 16
s=H.264 Video, streamed by the Zyqhziee Media Server
i=test.h264
t=0 0
a=tool:Zyqhziee Streaming Media v2015.11.27
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:H.264 Video, streamed by the Zyqhziee Media Server
a=x-qt-text-inf:test.h264
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=42001F;sprop-parameter-sets=Z0IAH52oFAFum4CAgIE=,aM48gA==
a=control:track1

leaving rtsp_state_machine!
exit Rtsp_state_machine
4
SOUTPUT_BUFFER length 762
RTSP/1.0 200 OK
CSeq: 3
Server: sunshine/1.11
Date: Thu, 01 Jan 1970 00:02:36 GMT
Content-Type: application/sdp
Content-Base: rtsp://sock_ntop_host: unknown AF_xxx: 30484, len 16/test.264/
Content-Length: 544

v=0
o=-2208988928 2208988928 IN IP4 sock_ntop_host: unknown AF_xxx: 30484, len 16
s=H.264 Video, streamed by the Zyqhziee Media Server
i=test.h264
t=0 0
a=tool:Zyqhziee Streaming Media v2015.11.27
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:H.264 Video, streamed by the Zyqhziee Media Server
a=x-qt-text-inf:test.h264
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=42001F;sprop-parameter-sets=Z0IAH52oFAFum4CAgIE=,aM48gA==
a=control:track1

tcp_read, 1684
192.168.1.100 Port:49597
INPUT_BUFFER was:SETUP rtsp://sock_ntop_host: unknown AF_xxx: 30484, len 16/test.264/track1 RTSP/1.0
CSeq: 4
User-Agent: LibVLC/2.2.6 (LIVE555 Streaming Media v2016.02.22)
Transport: RTP/AVP/TCP;unicast;interleaved=0-1


rtsp_tracepoint: rtspservice.c,RTSP_state_machine,1383
state_machine:current state is  init state
current method code is:  8  
*** transport: RTP/AVP/TCP;unicast;interleaved=0-1 ***
pstr=/TCP;unicast;interleaved=0-1
AAAAAAAAAAA Unsupported Transport,rtspservice.c,1075
(Send to client:)
RTSP/1.0 461 Unsupported transport
CSeq: 4


TRANSFER TO READY STATE!
leaving rtsp_state_machine!
exit Rtsp_state_machine
4
SOUTPUT_BUFFER length 47
RTSP/1.0 461 Unsupported transport
CSeq: 4


tcp_read, 1684
192.168.1.100 Port:49597
INPUT_BUFFER was:SETUP rtsp://sock_ntop_host: unknown AF_xxx: 30484, len 16/test.264/track1 RTSP/1.0
CSeq: 5
User-Agent: LibVLC/2.2.6 (LIVE555 Streaming Media v2016.02.22)
Transport: RTP/AVP;unicast;client_port=54118-54119


rtsp_tracepoint: rtspservice.c,RTSP_state_machine,1383
state_machine:current state is  ready state
current method code is:8
*** transport: RTP/AVP;unicast;client_port=54118-54119 ***
Failed to get host eth0 or wlan0 ip
<><><><>Creat RTP<><><><>
pstr=-54119
**adding a schedule object action rtsputils.c,322**
(Send to client:)
RTSP/1.0 200 OK
CSeq: 5
Server: sunshine/1.11
Date: Thu, 01 Jan 1970 00:02:36 GMT
Session: 168548
Transport: RTP/AVP;unicast;client_port=54118-54119;destination=192.168.1.100;source=0.0.0.0;server_port=57111-57112


leaving rtsp_state_machine!
exit Rtsp_state_machine
4
SOUTPUT_BUFFER length 222
RTSP/1.0 200 OK
CSeq: 5
Server: sunshine/1.11
Date: Thu, 01 Jan 1970 00:02:36 GMT
Session: 168548
Transport: RTP/AVP;unicast;client_port=54118-54119;destination=192.168.1.100;source=0.0.0.0;server_port=57111-57112


tcp_read, 1684
192.168.1.100 Port:49597
INPUT_BUFFER was:PLAY rtsp://sock_ntop_host: unknown AF_xxx: 30484, len 16/test.264/ RTSP/1.0
CSeq: 6
User-Agent: LibVLC/2.2.6 (LIVE555 Streaming Media v2016.02.22)
Session: 168548
Range: npt=0.000-


rtsp_tracepoint: rtspservice.c,RTSP_state_machine,1383
state_machine:current state is  ready state
current method code is:5
        +++++++++++++++++++++
        start to play 0 now!
        +++++++++++++++++++++
(Send to client:)
RTSP/1.0 200 OK
CSeq: 6
Server: sunshine/1.11
Date: Thu, 01 Jan 1970 00:02:36 GMT
Session: 168548


        Start Playing!
leaving rtsp_state_machine!
exit Rtsp_state_machine
4
SOUTPUT_BUFFER length 105
RTSP/1.0 200 OK
CSeq: 6
Server: sunshine/1.11
Date: Thu, 01 Jan 1970 00:02:36 GMT
Session: 168548


tcp_read, 1684
192.168.1.100 Port:49597
INPUT_BUFFER was:TEARDOWN rtsp://sock_ntop_host: unknown AF_xxx: 30484, len 16/test.264/ RTSP/1.0
CSeq: 7
User-Agent: LibVLC/2.2.6 (LIVE555 Streaming Media v2016.02.22)
Session: 168548


rtsp_tracepoint: rtspservice.c,RTSP_state_machine,1383
state_machine:current state is  play state
(Send to client:)
RTSP/1.0 200 OK
CSeq: 7
Server: sunshine/1.11
Date: Thu, 01 Jan 1970 00:02:38 GMT
Session: 168548


leaving rtsp_state_machine!
exit Rtsp_state_machine
4
SOUTPUT_BUFFER length 105
RTSP/1.0 200 OK
CSeq: 7
Server: sunshine/1.11
Date: Thu, 01 Jan 1970 00:02:38 GMT
Session: 168548


tcp_read, 1684
fd:17,RTSP connection closed by client.
first error,pRtsp is null
我来回答
回答15个
时间排序
认可量排序

cfgrpg

0个粉丝

7

问答

0

专栏

1

资料

cfgrpg 2017-07-21 10:05:20
认可0
rt3070还能买到嘛!
使用wifi网卡 得配置wifi去连接路由器。工具有wireless, wpa_supplicant

cowboy

0个粉丝

9

问答

0

专栏

5

资料

cowboy 2017-07-21 10:38:56
认可0
支持 wpa_supplicant sdp描述是不是有问题?

cowboy

0个粉丝

9

问答

0

专栏

5

资料

cowboy 2017-07-21 10:41:23
认可0
ifconfig ra0 up                          
ifconfig ra0 192.168.1.21 netmask 255.255.255.0

取IP 是取得eth0 和 wlan0 ,有着两个东西么?

24kshanji

1个粉丝

8

问答

0

专栏

0

资料

24kshanji 2017-07-22 10:21:12
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=55821&ptid=18165]cfgrpg 发表于 2017-7-21 10:05[/url]
rt3070还能买到嘛!
使用wifi网卡 得配置wifi去连接路由器。工具有wireless, wpa_supplicant[/quote]

能啊  谢谢关注 你说的那种是无线网卡工作在station模式  我做的数ap模式,然后产生局域网wifi,电脑手机去连接,不太一样

24kshanji

1个粉丝

8

问答

0

专栏

0

资料

24kshanji 2017-07-22 10:25:21
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=55823&ptid=18165]cowboy 发表于 2017-7-21 10:38[/url]
支持 wpa_supplicant sdp描述是不是有问题?[/quote]

我没有移植wpa_supplicant,不过在rt2870ap.dat里边设置为wp2psk模式

24kshanji

1个粉丝

8

问答

0

专栏

0

资料

24kshanji 2017-07-22 10:26:27
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=55823&ptid=18165]cowboy 发表于 2017-7-21 10:38[/url]
支持 wpa_supplicant sdp描述是不是有问题?[/quote]

哪一段程序呢,谢谢

24kshanji

1个粉丝

8

问答

0

专栏

0

资料

24kshanji 2017-07-22 10:27:16
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=55824&ptid=18165]cowboy 发表于 2017-7-21 10:41[/url]
ifconfig ra0 up                          
ifconfig ra0 192.168.1.21 netmask 255.255.255.0

[/quote]

ra0是在rt2870ap.dat里边定义的无线网卡的名字,这个一定没有问题

hzjman

0个粉丝

7

问答

0

专栏

0

资料

hzjman 2017-07-22 14:24:01
认可0
1. 首先确认网络是否通,可以使用ping工具
2. 通则使用ping工具检查可以正常通信包大小

hzjman

0个粉丝

7

问答

0

专栏

0

资料

hzjman 2017-07-22 14:24:41
认可0
按你的描述,很可能是通信数据包受限导致功能异常,比如天线没焊好

24kshanji

1个粉丝

8

问答

0

专栏

0

资料

24kshanji 2017-07-25 13:46:26
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=55905&ptid=18165]hzjman 发表于 2017-7-22 14:24[/url]
1. 首先确认网络是否通,可以使用ping工具
2. 通则使用ping工具检查可以正常通信包大小[/quote]

可以相互ping通  电脑也可以连接无线网卡产生的wifi,就是没又图像

24kshanji

1个粉丝

8

问答

0

专栏

0

资料

24kshanji 2017-07-25 13:47:02
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=55906&ptid=18165]hzjman 发表于 2017-7-22 14:24[/url]
按你的描述,很可能是通信数据包受限导致功能异常,比如天线没焊好[/quote]

无线网卡天线应该没啥问题,在hi3520d里测试时好用的

hzjman

0个粉丝

7

问答

0

专栏

0

资料

hzjman 2017-07-26 11:44:56
认可0
有没有可能是MTU包长限制的问题,用PING命令测试包长看看

hzjman

0个粉丝

7

问答

0

专栏

0

资料

hzjman 2017-07-26 11:45:36
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=56095&ptid=18165]24kshanji 发表于 2017-7-25 13:47[/url]
无线网卡天线应该没啥问题,在hi3520d里测试时好用的[/quote]

有没有可能是MTU包长限制的问题,用PING命令测试包长看看

24kshanji

1个粉丝

8

问答

0

专栏

0

资料

24kshanji 2017-08-12 11:01:03
认可0
解决了,无线网卡与有线网卡冲突,设置在两个网段就行了

lzts

0个粉丝

0

问答

0

专栏

0

资料

lzts 2018-03-12 09:40:23
认可0
帮顶,也在找3516驱动WIFI的例子。3518上有,3516还没看到
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区