Page 2 of 3

Re: No internet connection

Posted: Sat Mar 05, 2011 4:41 pm
by Muffinman
Okay, tomorrow I'll change the SSID and the encryption.

Re: No internet connection

Posted: Sun Mar 06, 2011 3:45 am
by Muffinman
Great, Thank you Jeff & Jeroen. Now it works and i can try to add music to the mpd client with ario.

Re: No internet connection

Posted: Sun Mar 06, 2011 11:10 am
by mightyohm
Awesome! Good luck! :D

Re: No internet connection

Posted: Fri Mar 11, 2011 9:34 am
by Muffinman
Wow, works great! There is only one problem, when I reboot the router, my mpc playlist is empty.

An other problem is, that I can't talk to the router over my wireless network. Every time i need to connect the router over lan with my PC.

Greets John

Re: No internet connection

Posted: Fri Mar 11, 2011 11:02 am
by mightyohm
Humm...

I posted my config files a while back.

viewtopic.php?f=2&t=275&p=1199&hilit=%2 ... wall#p1199

Take a look at /etc/config/firewall and make sure your file matches mine. The default is to reject incoming connections over the wireless interface.

Regarding mpd not saving the playlist, take a look at this post: http://www.mightyohm.com/forum/viewtopi ... conf#p1122

One option is to make a script that sets up the playlist every time you reboot, or you can try to get state save to work like you want... Depends on how you have things set up.

Re: No internet connection

Posted: Sat Mar 12, 2011 3:05 am
by Muffinman
Thanks Jeff, but the firewallconfiguration doesn't work.

I noticed, that the asus router doesn't appear in my network. The asus is just connected to the internet but it doesn't appear anywhere. My windows recognize the router as single network and I can use the router as "wlan stick".

EDIT:

Now it works and it plays automatically the di.fm electro stream, when I boot up the router. I just edited the vi/etc/init.d/mpd:

Code: Select all

root@OpenWrt:~# vi /etc/init.d/mpd
        pld=`grep playlist_directory /etc/mpd.conf | cut -d "\"" -f 2 | sed "s/~
        if [ ! -d $pld ]; then
                mkdir -p $pld
        fi
        #create mpd db
        /usr/bin/mpd --stdout --create-db

        #optional export for mpc
        #export MPD_HOST=127.0.0.1

        #start mpd
        /usr/bin/mpd

        #generate playlist and start to play
        #/usr/bin/mpc listall | /usr/bin/mpc add -
        #/usr/bin/mpc play
        /usr/bin/mpc repeat
        /usr/bin/mpc add http://scfire-dtc-aa02.stream.aol.com:80/stream/1025
        /usr/bin/mpc play
}

stop() {
        killall mpd


Re: No internet connection

Posted: Sat Mar 12, 2011 10:38 am
by mightyohm
That is one way to do it.

So you have mpd working but you still can't ssh into the router over your wireless network?

Do you know what the IP address of the router is?

Re: No internet connection

Posted: Sat Mar 12, 2011 2:57 pm
by Muffinman
When i try to talk over ethernet to my router it is 192.168.1.10, but i don't know the ip for the wireless ssh connection.

Re: No internet connection

Posted: Mon Mar 14, 2011 12:56 pm
by mightyohm
If you ssh into the router over your LAN or serial cable and run ifconfig, it will tell you the IP address to use for the wireless interface.

Code: Select all

root@OpenWrt:~# ifconfig wl0
wl0       Link encap:Ethernet  HWaddr 00:22:15:9A:EB:34
          inet addr:192.168.24.153  Bcast:192.168.24.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2407 errors:0 dropped:0 overruns:0 frame:4417
          TX packets:2326 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:184978 (180.6 KiB)  TX bytes:191355 (186.8 KiB)
          Interrupt:2 Base address:0x5000

Re: No internet connection

Posted: Tue Mar 15, 2011 4:17 am
by Muffinman
Great! Awesome! Thanks Jeff :D Now, i can build your version of the radio!