Issue in Miracast source with nitrogen6_max

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Issue in Miracast source with nitrogen6_max

跳至解决方案
2,033 次查看
jaiminthakkar
Contributor II

Hi,

 

We are facing issue in miracst "source". We are using nitrogen6_max board with wl1837 module over SDIO interface. Android release is boundary-imx-kk4.4.3_2.0.0-ga . We have successfully interfaced WL1837 module. WiFi Direct/P2P functionality is working properly. We are using "WiFi-Display Sink player" android application as miracast "sink" on Samsung galaxy S6. This sink app is working fine with other mobile phones as miracast source.

 

Please help us to find the issue.

Please find logs and screenshot of distorted result at sink app. Frames changes at sink while changes at source but with distorted effect.

We are getting following error from /myandroid_kk/external/fsl_imx_omx/stagefright/src/OMXFSLPlugin.cpp:

" Not supported color format 4! "

Our Setup: Nitrogen6_max + 1024x768 display + wl1837mod WiFi

 

154191_154191.pngScreenshot_20160623-195738.png

Original Attachment has been moved to: WFDSourceErrorLog.txt.zip

标记 (2)
1 解答
1,377 次查看
gary_bisson
Senior Contributor III

Hi,

Good to see that wl18xx provides a better WiFi Direct support than the wl12xx. You therefore further than we could ever be.

For your issue, can you try modifying the device tree so the framebuffer default_bpp is 32-bit instead of 16-bit?

linux-imx6/imx6qdl-nitrogen6_max.dtsi at boundary-imx-kk4.4.3_2.0.0-ga · boundarydevices/linux-imx6 ...

Let me know if it helps.

Regards,

Gary

在原帖中查看解决方案

5 回复数
1,378 次查看
gary_bisson
Senior Contributor III

Hi,

Good to see that wl18xx provides a better WiFi Direct support than the wl12xx. You therefore further than we could ever be.

For your issue, can you try modifying the device tree so the framebuffer default_bpp is 32-bit instead of 16-bit?

linux-imx6/imx6qdl-nitrogen6_max.dtsi at boundary-imx-kk4.4.3_2.0.0-ga · boundarydevices/linux-imx6 ...

Let me know if it helps.

Regards,

Gary

1,377 次查看
jaiminthakkar
Contributor II

Hi Gary,

We tried as you suggested (default_bpp = 32 ) but we got error while using WFD source like this:

  • "I/OMXPlayer: LEVEL: 1 FUNCTION: OMX_S32 PreProcessIPUInit(VpuEncoderIpuHandle*) LINE: 856 "
  • "I/OMXPlayer: Open /dev/mxc_ipu failed."

Please find below log:

I/WifiDisplayController(  489): Opened RTSP connection with Wifi display: [Phone] Sink-000000

I/DisplayManagerService(  489): Display device added: DisplayDeviceInfo{"[Phone] Sink-000000": 1024 x 768, 60.0 fps, density 227, 227.0 x 227.0 dpi, touch EXTERNAL, rotation 0, type WIFI, address c2:bd:d1:f2:33:99, FLAG_PRESENTATION}

E/libEGL  (  191): EGLBoolean eglSetSwapRectangleANDROID(EGLDisplay, EGLSurface, EGLint, EGLint, EGLint, EGLint):1590 error 3008 (EGL_BAD_DISPLAY)

I/FslHwcomposer(  191): prepare: targetHandle is null

W/SurfaceFlinger(  191): [[Phone] Sink-000000] Unexpected dequeueBuffer() in GLES state

W/SurfaceFlinger(  191): [[Phone] Sink-000000] Unexpected dequeueBuffer() in GLES state

W/SurfaceFlinger(  191): [[Phone] Sink-000000] Unexpected advanceFrame() in GLES state on GLES/MIXED frame

W/SurfaceFlinger(  191): [[Phone] Sink-000000] Unexpected cancelBuffer(pslot=0) in HWC state

I/OMXPlayer(  194): LEVEL: 1 FUNCTION: OMX_S32 PreProcessIPUInit(VpuEncoderIpuHandle*) LINE: 856

I/OMXPlayer(  194): Open /dev/mxc_ipu failed.

I/OMXPlayer(  194): LEVEL: 1 FUNCTION: virtual FilterBufRetCode VpuEncoder::FilterOneBuffer() LINE: 2283

I/OMXPlayer(  194): init pre-process failure !

E/ACodec  (  194): [OMX.Freescale.std.video_encoder.avc.hw-based] ERROR(0x8000100b)

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

E/PlaybackSession(  194): converter signaled error -38

I/WifiDisplaySource(  194): playback session wants to quit.

I/WifiDisplayController(  489): Lost RTSP connection with Wifi display due to error 1: [Phone] Sink-000000

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

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

I/WifiDisplayController(  489): Stopped listening for RTSP connection on 192.168.49.106:7236 from Wifi display: [Phone] Sink-000000

I/WifiDisplaySource(  194): Sending TEARDOWN trigger.

Regards,

Jaimin Thakkar

0 项奖励
回复
1,377 次查看
gary_bisson
Senior Contributor III

Hi,

That is strange, I don't understand why changing the framebuffer depth would impact the /dev/mxc_ipu node access. Are you sure warning isn't there when default_bpp = 16?

Also, what are the permissions of /dev/mxc_ipu, have you tried changing it?

Regards,

Gary

1,377 次查看
jaiminthakkar
Contributor II

Hi Gary,

Now Miracast source works good by your suggestions and changing permission like this in ueventd.freescale.rc.:

/dev/mxc_ipu    0660   graphics   system

to

/dev/mxc_ipu    0666   graphics   system

Thanks for support.

Regards,

Jaimin Thakkar

0 项奖励
回复
1,377 次查看
gary_bisson
Senior Contributor III

Hi,

Great news! Glad to hear it works. As a FYI, if you want to avoid giving the permissions to everyone, I suggest you rebuild the miracast app as a system app sharing the system uid. See a blog post made some time ago on this topic:

https://boundarydevices.com/android-security-part-1-application-signatures-permissions/

Please mark this thread as resolved.

Thanks,

Gary