Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry pi 2 Ubuntu-mate 1604 with a TL-W722N #173

Closed
valinoberry opened this issue Feb 16, 2017 · 9 comments
Closed

Raspberry pi 2 Ubuntu-mate 1604 with a TL-W722N #173

valinoberry opened this issue Feb 16, 2017 · 9 comments

Comments

@valinoberry
Copy link

I need help!

What have I done. on a new fresh system: systemctl --version
systemd 229
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN

./test-hardware-capabilities.sh
wlx8416f915e4a9 supports P2P

sudo apt-get install glib* git vlc build-essential bison flex cmake automake libsystemd-dev libudev-dev libreadline-dev libgstreamer1.0-dev gstreamer1.0 libtool
git clone https://github.com/albfan/miraclecast.git
cd miraclecast/
./autogen.sh
mkdir build
cd build
../configure --prefix=/usr/local #avoid --prefix for a standard install
make -j8
sudo cp ../res/org.freedesktop.miracle.conf /etc/dbus-1/system.d/
sudo make install

./write-udev-rule.sh
choose device to use with miraclecast:

  1. enxb827eb211681
  2. wlx8416f915e4a9
  3. exit
    #? 2
    Provide order to udev rule (default 10): 10
    ...Press enter to finish (sorry, don't know why. It is related with sudo tee)

file /etc/udev/rules.d/10-network.rules writed
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="84:16:f9:15:e4:a9", NAME="wlx8416f915e4a9", TAGS+="miracle"
valino@berry:~/miraclecast/res$

sudo systemctl stop Network.service
Failed to stop Network.service: Unit Network.service not loaded.

sudo killall wpa_supplicant

sudo service network-manager stop

sudo miracle-wifid --wpa-bindir /sbin &
[1] 5885
valino@berry:~/miraclecast/res$ miracle-wifid: unrecognized option '--wpa-bindir

sudo miracle-wifid &
[1] 5906

sudo miracle-sinkctl --uibc
[ADD] Link: 3
[miraclectl] #

[miraclectl] # list
LINK INTERFACE FRIENDLY-NAME
3 wlx8416f915e4a9 berry

LINK PEER-ID FRIENDLY-NAME CONNECTED

0 peers and 1 links listed.

sudo ./normal-wifi.sh
[sudo] password for valino:
killing existing wpa_supplicant connection
choose device for normal connection:

  1. enxb827eb211681
  2. wlx8416f915e4a9
  3. exit
    #? 2
    starting wpa_supplicant for normal connection
    Successfully initialized wpa_supplicant
    Failed to open config file '/run/network/wpa_supplicant_wlx8416f915e4a9.conf', error: No such file or directory
    Failed to read or parse configuration '/run/network/wpa_supplicant_wlx8416f915e4a9.conf'.

$ sudo journalctl -f |& tee journal.log
$ sudo miracle-wifid --log-level trace |& tee wifid.log
$ sudo miracle-sinkctl --log-level trace |& tee sink.log

journal.log.zip
sink.log.zip
wifid.log.zip

thank you

@albfan
Copy link
Owner

albfan commented Feb 16, 2017

See info on #100 (mostly valid although for rapberri pi 3) for more info. I will review this as soon as possible

@valinoberry
Copy link
Author

I cannt find the misstake pleace help

@albfan
Copy link
Owner

albfan commented Feb 22, 2017

Looking at your tries you execute too much I guess.

After stop network manager you need to kill all running instances of wpa_supplicant. (kill-wpa.sh can help with that but is just simple as do:

$ killall wpa_supplicant

)

Then you need to execute this commands to provide log

check system logs
$ sudo journalctl -f |& tee journal.log

run miraclecast wifi daemon
$ sudo miracle-wifid --log-level trace |& tee wifid.log

run miraclecast sink controller
$ sudo miracle-sinkctl --log-level trace |& tee sink.log

Execute each one on different terminal as you need to interact with miracle-sinkctl

That should work

@albfan
Copy link
Owner

albfan commented Feb 22, 2017

you need to upload the files that commads generates:

wifi.log
sink.log
journal.log

They are the complete log for a try

@valinoberry
Copy link
Author

@valinoberry
Copy link
Author

im see jet the peer but i cant connet

@valinoberry
Copy link
Author

you can close it.

the problem was the device

@valinoberry
Copy link
Author

but i have a question. is it possible to use the wifi stick at the same time as miracleclast and access point? And for the security. can i do that connect only with pin or to at a fix mac adresse

@albfan
Copy link
Owner

albfan commented Mar 8, 2017

You can select connection method on connect command in miracle-sinkctl

Here are the avaliable methods

static bool is_valid_prov(const char *prov)

About use at same time for access point I'm working on it (trying to delegate that task on NetworManager) the idea is to open two interfaces on wpa_supplicant

@albfan albfan closed this as completed Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants