MIracast on imx6Q sdp board using wireless USB Adaptor.

cancel
Showing results for 
Search instead for 
Did you mean: 

MIracast on imx6Q sdp board using wireless USB Adaptor.

1,142 Views
venkateshm
Contributor I

Hi

     I am trying to intergrate wifi display (or Miracast ) on imx6Q SDP board. I have used COMFAST WU825N which has a RTL8192CU chipset. I have used the rtl8192cu driver available from Realtek site, and cross complied it on my PC for the ubuntu OS with kernel version 3.0.35 (3.0.35-2666-gbdde708). I have used the wpa_supplicant (2.0, 2.1 and 2.2) in which I have enabled the CONFIG_WFD, CONFIG_P2P, etc. I am running.

   

    ./wpa_supplicant -Dnl80211 -c/home/miracast/wpa_supplicant.conf -iwlan1 -ddK

    ./wpa_cli

   

when I give the command :   

>p2p_listen

OK

Output on wpa_supplicant:

RX ctrl_iface - hexdump_ascii(len=10):

     50 32 50 5f 4c 49 53 54 45 4e                     P2P_LISTEN     

wlan1: Control interface command 'P2P_LISTEN'

wlan1: P2P: Stopping find

wlan1: P2P: Clear timeout (state=IDLE)

wlan1: P2P: State IDLE -> IDLE

wlan1: P2P: Going to listen(only) state

WPS:  * Version (hardcoded 0x10)

WPS:  * UUID-E

P2P: * P2P IE header

P2P: * Capability dev=21 group=00

P2P: * Device Info

nl80211: Enable Probe Request reporting nl_preq=0xc2a10

nl80211: Register frame type=0x40 nl_handle=0xc2a10

nl80211: Register frame match - hexdump(len=0): [NULL]

nl80211: Remain-on-channel cookie 0x8052bd449db66000 for freq=2462 MHz duration=65535

wlan1: P2P: State IDLE -> LISTEN_ONLY

nl80211: Event message available

nl80211: Remain-on-channel event (cancel=0 freq=2462 channel_type=0 duration=65535 cookie=0x8052bd449db66000 (match))

wlan1: Event REMAIN_ON_CHANNEL (22) received

Off-channel: Send Action callback (without_roc=0 pending_action_tx=(nil))

wlan1: P2P: Starting Listen timeout(65,535000) on freq=2462 based on callback

wlan1: P2P: Set timeout (state=LISTEN_ONLY): 65.555000 sec

But I am not able to detect it on nexus 4 and 5 phone under wifi direct. When I run p2p_find, p2p_peers, p2p_peer MAC-ADDR, I am able to detect the phone but the phone is not able to detect the device. What can be done should I try another device, if so kindly suggest other device names.

Labels (3)
0 Kudos
2 Replies

216 Views
zhuyujun
Contributor II

Hi 

   I have encountered the same problem, p2p_find is ok, but p2p_listen is NG, do you have find the solution?

Sincerely

0 Kudos

216 Views
jamesbone
NXP TechSupport
NXP TechSupport

Hello Venkathesh,

I think your Wifi device it is working, so it is more related to the Android Configuration, which I am really not an expert, but you can take a look into this application note made by  Silex. Also maybe related to Ubuntu, which version are you using? I think this is not related to the HAL of the Wifi, it is in the middle ware.

141-00207-509C_iMX6X_SX-SDCAN_QSG.pdf


Have a great day,
Jaime

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos