AnsweredAssumed Answered

SabreSD as Miracast Sink

Question asked by Piyush Agrawal on Oct 21, 2013
Latest reply on Nov 6, 2013 by RandyKrakora

Dear All,

              I am trying to apply a patch, so that SabreSD board can act as Miracast Sink, I am successfully able to connect Nexus7 with SadbreSD board, but I am unable to get Nexus7 display on Sabresd board.

 

Below mentioned are my logs. Can anybody help me on this?

 

./adb logcat

--------- beginning of /dev/log/main

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

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

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

E/wpa_supplicant( 2945): Using interface p2p0 with hwaddr 02:80:92:4d:65:64 and ssid "DIRECT-83-Android_f351"

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): p2p0: CTRL-EVENT-CONNECTED - Connection to 02:80:92:4d:65:64 completed (auth) [id=1 id_str=]

I/wpa_supplicant( 2945): p2p0: P2P-GROUP-STARTED p2p0 GO ssid="DIRECT-83-Android_f351" freq=2437 passphrase="wc61ROnC" go_dev_addr=02:80:92:4d:65:64 [PERSISTENT]

I/wpa_supplicant( 2945): wlan0: WPA: Group rekeying completed with 00:11:74:42:95:b1 [GTK=CCMP]

I/wpa_supplicant( 2945): wpa_s->ifname p2p0 cmd SET p2p_group_idle 10

D/CommandListener( 2350): Setting iface cfg

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

D/TetherController( 2350): Starting tethering services

D/TetherController( 2350): Tethering services running

--------- beginning of /dev/log/system

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

D/P2pSinkActivity( 3752): <br /><font color=fuchsia>onReceive() [android.net.wifi.p2p.THIS_DEVICE_CHANGED]</font>

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

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

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

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

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

D/P2pSinkActivity( 3752): <font color=yellow>Device: Android_f351<br /> deviceAddress: 02:80:92:4d:65:64<br /> primary type: 10-0050F204-5<br /> secondary type: null<br /> wps: 0<br /> grpcapab: 0<br /> devcapab: 0<br /> status: 0<br /> wfdInfo: WFD enabled: trueWFD DeviceInfo: 19<br /> WFD CtrlPort: 7236<br /> WFD MaxThroughput: 50<br /> [<b><i><u>Connected</u></i></b>]</font>

D/P2pSinkActivity( 3752): <br /><font color=lime>mWifiP2pManager.discoverPeers()</font>

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

D/P2pSinkActivity( 3752): <font color=aqua>  onSuccess()</font>

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): p2p0: P2P-DEVICE-FOUND 52:46:5d:1a:1b:ff p2p_dev_addr=52:46:5d:1a:1b:ff pri_dev_type=1-0050F204-1 name='Android_a13d' config_methods=0x188 dev_capab=0x24 group_capab=0x0 wfd_dev_info=0x00000600131c440032

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

D/P2pSinkActivity( 3752): <br /><font color=fuchsia>onReceive() [android.net.wifi.p2p.PEERS_CHANGED]</font>

D/P2pSinkActivity( 3752): try requestPeers()

I/wpa_supplicant( 2945): p2p0: AP-STA-CONNECTED 52:46:5d:1a:9b:ff p2p_dev_addr=52:46:5d:1a:1b:ff

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

D/P2pSinkActivity( 3752): <br /><font color=fuchsia>onReceive() [android.net.wifi.p2p.PEERS_CHANGED]</font>

D/P2pSinkActivity( 3752): try requestPeers()

D/P2pSinkActivity( 3752): <br /><font color=fuchsia>onReceive() [android.net.wifi.p2p.CONNECTION_STATE_CHANGE]</font>

D/P2pSinkActivity( 3752): <font color=#f0e68c>NetworkInfo: type: WIFI_P2P[]<br />  state: CONNECTED/CONNECTED<br />  reason: (unspecified)<br />  extra: (none)<br />  roaming: false<br />  failover: false<br />  isAvailable: true</font>

D/dalvikvm( 3752): GC_CONCURRENT freed 372K, 14% free 3285K/3788K, paused 4ms+4ms, total 27ms

D/P2pSinkActivity( 3752): <br /><font color=lime>invokeSink() call requestGroupInfo()</font>

D/P2pSinkActivity( 3752):  onGroupInfoAvailable():

D/P2pSinkActivity( 3752): <font color=#fffacd>network: DIRECT-83-Android_f351<br /> isGO: true<br /> GO: Device: <br /> deviceAddress: 02:80:92:4d:65:64<br /> primary type: null<br /> secondary type: null<br /> wps: 0<br /> grpcapab: 0<br /> devcapab: 0<br /> status: 4<br /> wfdInfo: null<br /> Client: Device: Android_a13d<br /> deviceAddress: 52:46:5d:1a:1b:ff<br /> primary type: 1-0050F204-1<br /> secondary type: null<br /> wps: 392<br /> grpcapab: 0<br /> devcapab: 36<br /> status: 0<br /> wfdInfo: WFD enabled: trueWFD DeviceInfo: 19<br /> WFD CtrlPort: 7236<br /> WFD MaxThroughput: 50<br /> interface: p2p0<br /> networkId: 0<font color=red><b><br /> password: wc61ROnC</b></font></font>

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

D/P2pSinkActivity( 3752): isWifiDisplaySource() type[3] is-source[true] port[7236]

D/P2pSinkActivity( 3752): invokeSink() isWifiDisplaySource(Android_a13d)=[true]

D/RarpImpl( 3752): execRarp() [0]IP address       HW type     Flags       HW address            Mask     Device

D/RarpImpl( 3752): execRarp() [1]192.168.4.1      0x1         0x2         00:11:74:42:95:b1     *        wlan0

I/RarpImpl( 3752): parseArpLine() this is header line. don't create arp[IP address       HW type     Flags       HW address            Mask     Device]

D/RarpImpl( 3752): parseArpLine() created arp[ IP address:192.168.4.1¥n HW type:0x1¥n Flags:0x2¥n HW address:00:11:74:42:95:b1¥n Mask:*¥n Device:wlan0]

W/RarpImpl( 3752): execRarp() searchArp() p2p0 Not Found!

D/P2pSinkActivity( 3752): retry:0

I/dnsmasq ( 3794): DHCPREQUEST(p2p0) 192.168.49.253 52:46:5d:1a:9b:ff

I/dnsmasq ( 3794): DHCPACK(p2p0) 192.168.49.253 52:46:5d:1a:9b:ff android-a13d7e0e116fe686

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

D/RarpImpl( 3752): execRarp() [0]IP address       HW type     Flags       HW address            Mask     Device

D/RarpImpl( 3752): execRarp() [1]192.168.49.253   0x1         0x2         52:46:5d:1a:9b:ff     *        p2p0

D/RarpImpl( 3752): execRarp() [2]192.168.4.1      0x1         0x2         00:11:74:42:95:b1     *        wlan0

I/RarpImpl( 3752): parseArpLine() this is header line. don't create arp[IP address       HW type     Flags       HW address            Mask     Device]

D/RarpImpl( 3752): parseArpLine() created arp[ IP address:192.168.49.253¥n HW type:0x1¥n Flags:0x2¥n HW address:52:46:5d:1a:9b:ff¥n Mask:*¥n Device:p2p0]

D/RarpImpl( 3752): parseArpLine() created arp[ IP address:192.168.4.1¥n HW type:0x1¥n Flags:0x2¥n HW address:00:11:74:42:95:b1¥n Mask:*¥n Device:wlan0]

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

D/Mira_for_You( 3752): invokeSink() Source Addr[192.168.49.253:7236]

D/NetworkSession( 3752): ANetworkSession() mDiabledLog[0] log-output[true]

D/Mira_for_You_JNI( 3752): Source[192.168.49.253] Port[7236]

I/NetworkSession( 3752): connecting socket 43 to 192.168.49.253:7236

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/WifiDisplaySink( 3752): We're now connected.

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

D/NetworkSession( 3752): --> --> --> sendRequest() session[1] result[0]

D/NetworkSession( 3752): [RTSP/1.0 200 OK

D/NetworkSession( 3752): Date: Mon, 21 Oct 2013 10:14:51 +0000

D/NetworkSession( 3752): User-Agent: stagefright/1.1 (Linux;Android 4.1)

D/NetworkSession( 3752): CSeq: 1

D/NetworkSession( 3752): Public: org.wfa.wfd1.0, GET_PARAMETER, SET_PARAMETER

D/NetworkSession( 3752):

D/NetworkSession( 3752): ]

D/NetworkSession( 3752): --> --> --> sendRequest() session[1] result[0]

D/NetworkSession( 3752): [OPTIONS * RTSP/1.0

D/NetworkSession( 3752): Date: Mon, 21 Oct 2013 10:14:51 +0000

D/NetworkSession( 3752): User-Agent: stagefright/1.1 (Linux;Android 4.1)

D/NetworkSession( 3752): CSeq: 1

D/NetworkSession( 3752): Require: org.wfa.wfd1.0

D/NetworkSession( 3752):

D/NetworkSession( 3752): ]

D/NetworkSession( 3752): --> --> --> sendRequest() session[1] result[0]

D/NetworkSession( 3752): [RTSP/1.0 200 OK

D/NetworkSession( 3752): Date: Mon, 21 Oct 2013 10:14:51 +0000

D/NetworkSession( 3752): User-Agent: stagefright/1.1 (Linux;Android 4.1)

D/NetworkSession( 3752): CSeq: 2

D/NetworkSession( 3752): Content-Type: text/parameters

D/NetworkSession( 3752): Content-Length: 259

D/NetworkSession( 3752):

D/NetworkSession( 3752): wfd_video_formats: 40 00 02 02 0001DEFF 157C7FFF 00000FFF 00 0000 0000 11 none none, 01 02 0001DEFF 157C7FFF 00000FFF 00 0000 0000 11 none none

D/NetworkSession( 3752): wfd_audio_codecs: LPCM 00000003 00, AAC 0000000F 00

D/NetworkSession( 3752): wfd_client_rtp_ports: RTP/AVP/UDP;unicast 19000 0 mode=play

D/NetworkSession( 3752): ]

D/NetworkSession( 3752): --> --> --> sendRequest() session[1] result[0]

D/NetworkSession( 3752): [RTSP/1.0 200 OK

D/NetworkSession( 3752): Date: Mon, 21 Oct 2013 10:14:51 +0000

D/NetworkSession( 3752): User-Agent: stagefright/1.1 (Linux;Android 4.1)

D/NetworkSession( 3752): CSeq: 3

D/NetworkSession( 3752):

D/NetworkSession( 3752): ]

D/NetworkSession( 3752): --> --> --> sendRequest() session[1] result[0]

D/NetworkSession( 3752): [SETUP rtsp://x.x.x.x:x/wfd1.0/streamid=0 RTSP/1.0

D/NetworkSession( 3752): Date: Mon, 21 Oct 2013 10:14:51 +0000

D/NetworkSession( 3752): User-Agent: stagefright/1.1 (Linux;Android 4.1)

D/NetworkSession( 3752): CSeq: 2

D/NetworkSession( 3752): Transport: RTP/AVP/UDP;unicast;client_port=15550-15551

D/NetworkSession( 3752):

D/NetworkSession( 3752): ]

D/NetworkSession( 3752): --> --> --> sendRequest() session[1] result[0]

D/NetworkSession( 3752): [RTSP/1.0 200 OK

D/NetworkSession( 3752): Date: Mon, 21 Oct 2013 10:14:51 +0000

D/NetworkSession( 3752): User-Agent: stagefright/1.1 (Linux;Android 4.1)

D/NetworkSession( 3752): CSeq: 4

D/NetworkSession( 3752):

D/NetworkSession( 3752): ]

I/RTPSink ( 3752): connecting RTP/RTCP sockets to 192.168.49.253:{15550,15551}

D/NetworkSession( 3752): --> --> --> sendRequest() session[1] result[0]

D/NetworkSession( 3752): [PLAY rtsp://x.x.x.x:x/wfd1.0/streamid=0 RTSP/1.0

D/NetworkSession( 3752): Date: Mon, 21 Oct 2013 10:14:51 +0000

D/NetworkSession( 3752): User-Agent: stagefright/1.1 (Linux;Android 4.1)

D/NetworkSession( 3752): CSeq: 3

D/NetworkSession( 3752): Session: 816071798

D/NetworkSession( 3752):

D/NetworkSession( 3752): ]

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/RTPSink ( 3752): packet was -0.00 ms late

I/RTPSink ( 3752): packet was 0.01 ms late

I/RTPSink ( 3752): packet was 0.02 ms late

I/RTPSink ( 3752): packet was 0.08 ms late

I/RTPSink ( 3752): packet was 0.02 ms late

I/RTPSink ( 3752): packet was 0.10 ms late

I/RTPSink ( 3752): packet was 0.14 ms late

I/RTPSink ( 3752): packet was 0.13 ms late

I/RTPSink ( 3752): packet was 0.17 ms late

I/RTPSink ( 3752): packet was 0.23 ms late

I/RTPSink ( 3752): packet was 0.03 ms late

I/RTPSink ( 3752): packet was 0.01 ms late

I/RTPSink ( 3752): packet was 0.06 ms late

I/RTPSink ( 3752): packet was 0.09 ms late

I/RTPSink ( 3752): packet was 0.13 ms late

I/RTPSink ( 3752): packet was 0.15 ms late

I/RTPSink ( 3752): packet was 0.18 ms late

I/RTPSink ( 3752): packet was 0.00 ms late

I/RTPSink ( 3752): packet was 0.04 ms late

I/RTPSink ( 3752): packet was 0.09 ms late

I/RTPSink ( 3752): packet was 0.13 ms late

I/RTPSink ( 3752): packet was 0.17 ms late

I/RTPSink ( 3752): packet was 0.20 ms late

I/RTPSink ( 3752): packet was 0.23 ms late

I/RTPSink ( 3752): packet was 0.29 ms late

I/RTPSink ( 3752): packet was 0.41 ms late

D/TunnelRenderer( 3752): initPlayer() defailt size[-1097959124, 34]

D/TunnelRenderer( 3752): initPlayer() fixed size[1024, 768]

I/RTPSink ( 3752): packet was 0.49 ms late

I/RTPSink ( 3752): packet was 0.55 ms late

I/RTPSink ( 3752): packet was 0.57 ms late

I/RTPSink ( 3752): packet was 0.66 ms late

I/RTPSink ( 3752): packet was 0.77 ms late

I/TunnelRenderer( 3752): fixing real time now.

I/RTPSink ( 3752): packet was 22.68 ms late

I/RTPSink ( 3752): packet was 36.96 ms late

I/ESQueue ( 2355): found AAC codec config (48000 Hz, 2 channels)

I/RTPSink ( 3752): packet was 47.36 ms late

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/avc_utils( 2355): found AVC codec config (1280 x 720, Baseline-profile level 4.0)

E/OMXNodeInstance( 2355): OMX_GetExtensionIndex failed

I/SoftAAC2( 2355): Reconfiguring decoder: 48000 Hz, 2 channels

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

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

I/RTPSink ( 3752): packet was 79.62 ms late

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

E/v_gralloc( 2352): Unknown format: 19

E/v_gralloc( 2352): failed to allocate, status=-1

W/GraphicBufferAllocator( 2352): WOW! gralloc alloc failed, waiting for pending frees!

E/v_gralloc( 2352): Unknown format: 19

E/v_gralloc( 2352): failed to allocate, status=-1

W/GraphicBufferAllocator( 2352): alloc(1280, 720, 19, 08002900, ...) failed -22 (Invalid argument)

E/SurfaceFlinger( 2352): GraphicBufferAlloc::createGraphicBuffer(w=1280, h=720) failed (Invalid argument), handle=0x0

E/BufferQueue( 2352): [A Sink Surface] dequeueBuffer: SurfaceComposer::createGraphicBuffer pfailed

E/ACodec  ( 2355): dequeueBuffer failed: Invalid argument (22)

E/ACodec  ( 2355): Failed to allocate buffers after transitioning to IDLE state (error 0xffffffea)

E/NuPlayer( 2355): Received error from video decoder, aborting playback.

E/NuPlayer( 2355): video track encountered an error (-2147483648)

I/TunnelRenderer( 3752): notify 100, 1, -2147483648

D/NetworkSession( 3752): --> --> --> sendRequest() session[3] result[0]

D/NetworkSession( 3752): [��]

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

D/NetworkSession( 3752): --> --> --> sendRequest() session[3] result[0]

D/NetworkSession( 3752): [��]

W/ThrottleService( 2650): unable to find stats for iface rmnet0

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

D/NetworkSession( 3752): --> --> --> sendRequest() session[3] result[0]

D/NetworkSession( 3752): [��]

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/RTPSink ( 3752): packet was 667.71 ms late

I/TunnelRenderer( 3752): dropping packet. extSeqNo 376 didn't arrive in time

I/ATSParser( 2355): discontinuity on stream pid 0x1100

I/TunnelRenderer( 3752): dropping packet. extSeqNo 384 didn't arrive in time

I/ATSParser( 2355): discontinuity on stream pid 0x1100

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

D/NetworkSession( 3752): --> --> --> sendRequest() session[3] result[0]

D/NetworkSession( 3752): [��]

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

D/NetworkSession( 3752): --> --> --> sendRequest() session[3] result[0]

D/NetworkSession( 3752): [��]

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

D/NetworkSession( 3752): --> --> --> sendRequest() session[3] result[0]

D/NetworkSession( 3752): [��]

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

I/wpa_supplicant( 2945): wpa_driver_set_ap_wps_p2p_ie: Entry

Outcomes