AnsweredAssumed Answered

i.MX6 Wifi-Display function

Question asked by Adam Wen on Jul 10, 2013
Latest reply on Oct 7, 2013 by Adam Wen
Branched to a new discussion

Hi,

 

I am testing the WiFi-Display function (Miracast) in i.MX6Q Sabre SDP
board, but cannot connect successfully. I have tried two different Miracast sink devices,
and the result is same

 

I can see the connection is stopped in RTSP connection stage from the TV
screen. And the log msg is below. From the log info, we can see the hdcp and
codec error. So can anyone help us to analyze the problem? Or this
function is not fulfilled in this release version BSP.

 

The Android BSP version is android_jb4.2.2_1.0.0-ga.

 

The log message is as below: (error in red)

 

I/wpa_supplicant( 4015): p2p0: P2P-FIND-STOPPED

I/WifiDisplayController( 2613): Connecting to Wifi display: Wifi Display00:6F:00:00:06:60

I/WifiDisplayController( 2613): Initiated connection to Wifi display: Wifi Display00:6F:00:00:06:60

W/audio_hw_primary( 2327): card 0, port 0 device 0x2

W/audio_hw_primary( 2327): rate 44100, channel 2 period_size 0xc0

I/wpa_supplicant( 4015): p2p0: P2P-INVITATION-RESULT status=0

E/wpa_supplicant( 4015): Using interface p2p0 with hwaddr 02:30:24:25:95:89 and ssid "DIRECT-7D-Android_3fd6"

D/dalvikvm( 2613): GC_CONCURRENT freed 512K, 10% free 6078K/6728K, paused 2ms+6ms, total 41ms

I/wpa_supplicant( 4015): p2p0: CTRL-EVENT-CONNECTED - Connection ADDRCONF(NETDEV_CHANGE): p2p0: link becomes ready

to 02:30:24:25:95:89 completed (auth) [id=1 id_str=]

I/wpa_supplicant( 4015): p2p0: P2P-GROUP-STARTED p2p0 GO ssid="DIRECT-7D-Android_3fd6" freq=2412 passphrase="w0CpknMl" go_dev_addr=02:30:24:25:95:89 [PERSISTENT]

D/CommandListener( 2322): Setting iface cfg

D/CommandListener( 2322): Trying to bring up p2p0

D/TetherController( 2322): Starting tethering services

D/TetherController( 2322): Tethering services running

D/WifiP2pService( 2613): Started Dhcp server on p2p0

I/dnsmasq ( 4145): started, version 2.51 cachesize 150

I/dnsmasq ( 4145): compile time options: no-IPv6 GNU-getopt no-DBus no-I18N DHCP no-scripts no-TFTP

W/dnsmasq ( 4145): warning: no upstream servers configured

I/dnsmasq ( 4145): DHCP, IP range 192.168.49.2 -- 192.168.49.254, lease time 1h

I/dnsmasq ( 4145): read /etc/hosts - 1 addresses

W/audio_hw_primary( 2327): do_out_standby... 1085061328

I/wpa_supplicant( 4015): p2p0: AP-STA-CONNECTED 00:6f:00:00:06:60 p2p_dev_addr=00:6f:00:00:06:60

E/MonoPipe( 2327): Failed to fetch local time frequency when constructing a MonoPipe (res = -32).  getNextWriteTimestamp calls will be non-functional

I/WifiDisplayController( 2613): Connected to Wifi display: Wifi Display00:6F:00:00:06:60

I/WifiDisplayController( 2613): Listening for RTSP connection on 192.168.49.1:7236 from Wifi display: Wifi Display00:6F:00:00:06:60

I/AudioFlinger( 2327): HAL output buffer size 1024 frames, normal mix buffer size 1024 frames

I/AudioMixer( 2327): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project

I/AudioFlinger( 2327): AudioFlinger's thread 0x40ba3008 ready to run

I/r_submix( 2327): out_standby()

I/AudioFlinger( 2327): HAL output buffer size 1024 frames, normal mix buffer size 1024 frames

I/AudioMixer( 2327): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project

I/AudioFlinger( 2327): AudioFlinger's thread 0x40bb4008 ready to run

W/audio_hw_primary( 2327): out_set_parameters routing=0, ret 1, out 1085061328

I/dnsmasq ( 4145): DHCPDISCOVER(p2p0) 00:6f:00:00:06:60

I/dnsmasq ( 4145): DHCPOFFER(p2p0) 192.168.49.241 00:6f:00:00:06:60

I/dnsmasq ( 4145): DHCPREQUEST(p2p0) 192.168.49.241 00:6f:00:00:06:60

I/dnsmasq ( 4145): DHCPACK(p2p0) 192.168.49.241 00:6f:00:00:06:60

I/NetworkSession( 2327): incoming connection from 192.168.49.241:48715 (socket 30)

I/NetworkSession( 2327): added clientSession 2

I/WifiDisplaySource( 2327): We now have a client (2) connected.

I/WifiDisplaySource( 2327): Using AAC audio.

E/HDCP    ( 2327): Unable to locate libstagefright_hdcp.so

E/WifiDisplaySource( 2327): Failed to set HDCP observer.

E/WifiDisplaySource( 2327): Unable to instantiate HDCP component. Not using HDCP after all.

I/vpu-lib ( 2327): Product Info: i.MX6Q/D/S

I/Converter( 2327): using audio bitrate of 128000 bps, video bitrate of 5000000 bps

E/ACodec  ( 2327): Setting intra macroblock refresh mode (-2147483648) failed: 0x0

I/ACodec  ( 2327): setupVideoEncoder succeeded

E/ACodec  ( 2327): [OMX.Freescale.std.video_encoder.avc.hw-based] configureCodec returning error -2147483648

E/MediaCodec( 2327): Codec reported an error. (omx error 0x80001001, internalError -2147483648)

I/Converter( 2327): We going to manually prepend SPS and PPS to IDR frames.

E/ACodec  ( 2327): Setting intra macroblock refresh mode (-2147483648) failed: 0x0

I/ACodec  ( 2327): setupVideoEncoder succeeded

E/ACodec  ( 2327): [OMX.Freescale.std.video_encoder.avc.hw-based] configureCodec returning error -2147483648

E/MediaCodec( 2327): Codec reported an error. (omx error 0x80001001, internalError -2147483648)

I/OMXPlayer( 2327): LEVEL: 1 FUNCTION: DeInitFilterComponent LINE: 1941

I/OMXPlayer( 2327): DeInitFilterComponent: vpu close failure: ret=0x3

E/PlaybackSession( 2327): video converter returned err -2147483648

I/WifiDisplayController( 2613): Lost RTSP connection with Wifi display due to error 1: Wifi Display00:6F:00:00:06:60

I/WifiDisplayController( 2613): Wifi display connection failed!

I/WifiDisplaySource( 2327): Received TEARDOWN request.

I/WifiDisplayController( 2613): Lost RTSP connection with Wifi display due to error 1: Wifi Display00:6F:00:00:06:60

I/WifiDisplayController( 2613): Wifi display connection failed!

E/NetworkSession( 2327): readMore on socket 30 failed w/ error -104 (Connection reset by peer)

E/WifiDisplaySource( 2327): An error occurred in session 2 (-104, 'Recv failed./Connection reset by peer').

I/WifiDisplayController( 2613): Lost RTSP connection with Wifi display due to error 1: Wifi Display00:6F:00:00:06:60

I/WifiDisplayController( 2613): Wifi display connection failed!

I/WifiDisplayController( 2613): Retrying Wifi display connection.  Retries left: 2

I/WifiDisplaySource( 2327): We're stopped.

I/wpa_supplicant( 4015): p2p0: P2P-GROUP-REMOVED p2p0 GO reason=REQUESTED

I/r_submix( 2327): shutdown

I/wpa_supplicant( 4015): p2p0: AP-STA-DISCONNECTED 00:6f:00:00:06:60 p2p_dev_addr=00:6f:00:00:06:60

I/WifiDisplayController( 2613): Stopped listening for RTSP connection on 192.168.49.1:7236 from Wifi display: Wifi Display00:6F:00:00:06:60

I/WifiDisplayController( 2613): Disconnecting from Wifi display: Wifi Display00:6F:00:00:06:60

I/WifiDisplayController( 2613): Disconnected from Wifi display: Wifi Display00:6F:00:00:06:60

I/WifiDisplayController( 2613): Connecting to Wifi display: Wifi Display00:6F:00:00:06:60

D/WifiP2pService( 2613): Inviting device : 00:6f:00:00:06:60

I/r_submix( 2327): shutdown

D/TetherController( 2322): Stopping tethering services

I/dnsmasq ( 4145): exiting on receipt of SIGTERM

D/TetherController( 2322): Tethering services stopped

D/CommandListener( 2322): Clearing all IP addresses on p2p0

D/NetUtils( 2613): android_net_utils_resetConnections in env=0x6870ffc8 clazz=0x34800001 iface=p2p0 mask=0x3

I/WifiDisplayController( 2613): Failed to initiate connection to Wifi display: Wifi Display00:6F:00:00:06:60, reason=0

I/WifiDisplayController( 2613): Wifi display connection failed!

D/WifiP2pService( 2613): Stopped Dhcp server

W/audio_hw_primary( 2327): out_set_parameters routing=0, ret 1, out 1085061328

I/wpa_supplicant( 4015): wpa_s->ifname p2p0 cmd SET p2p_group_idle 0

I/wpa_supplicant( 4015): p2p0: P2P-DEVICE-LOST p2p_dev_addr=00:6f:00:00:06:60

E/WifiP2pService( 2613): Unhandled message { what=147497 when=-36ms obj=Device:

E/WifiP2pService( 2613):  deviceAddress: 00:6f:00:00:06:60

E/WifiP2pService( 2613):  primary type: null

E/WifiP2pService( 2613):  secondary type: null

E/WifiP2pService( 2613):  wps: 0

E/WifiP2pService( 2613):  grpcapab: 0

E/WifiP2pService( 2613):  devcapab: 0

E/WifiP2pService( 2613):  status: 4

E/WifiP2pService( 2613):  wfdInfo: null }

p2p0: no IPv6 routers present

 

 

 

Outcomes