No internet connection

Discussion about my Wifi Radio project at http://mightyohm.com/wifiradio/ or my WL-520gU talk at NOTACON.
Muffinman
Posts: 17
Joined: Thu Mar 03, 2011 1:51 pm

Re: No internet connection

Post by Muffinman »

Okay, tomorrow I'll change the SSID and the encryption.
Muffinman
Posts: 17
Joined: Thu Mar 03, 2011 1:51 pm

Re: No internet connection

Post by Muffinman »

Great, Thank you Jeff & Jeroen. Now it works and i can try to add music to the mpd client with ario.
User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: No internet connection

Post by mightyohm »

Awesome! Good luck! :D
Muffinman
Posts: 17
Joined: Thu Mar 03, 2011 1:51 pm

Re: No internet connection

Post 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
User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: No internet connection

Post 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.
Muffinman
Posts: 17
Joined: Thu Mar 03, 2011 1:51 pm

Re: No internet connection

Post 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

User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: No internet connection

Post 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?
Muffinman
Posts: 17
Joined: Thu Mar 03, 2011 1:51 pm

Re: No internet connection

Post 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.
User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: No internet connection

Post 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
Muffinman
Posts: 17
Joined: Thu Mar 03, 2011 1:51 pm

Re: No internet connection

Post by Muffinman »

Great! Awesome! Thanks Jeff :D Now, i can build your version of the radio!
Post Reply