Stuck on part 5

Discussion about my Wifi Radio project at http://mightyohm.com/wifiradio/ or my WL-520gU talk at NOTACON.
User avatar
mightyohm
Site Admin
Posts: 1063
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: Stuck on part 5

Post by mightyohm »

I just ran an opkg update here and it worked. On the off chance that the webserver was down when you tried to access it earlier today, can you try again, and also double-check that you can access http://mightyohm.com/files/kamikaze-2.4 ... ackages.gz with your browser if it fails?

Sorry this is proving to be so difficult, we'll figure it out eventually. :geek:
denniston
Posts: 13
Joined: Fri Jan 29, 2010 9:52 pm

Re: Stuck on part 5

Post by denniston »

I'm afraid there's something not right with my internet connectivity. Although I'm able to ping various servers, some servers I cannot. I suspect that's because of some configuration of the other server, but I'm not sure. I set up my own webserver locally and was able to install the usb drivers and mpd /mpc. But I cannot connect to any radio stations. Is it possible that there's something messed up with my internet configuration? I assume if I can ping I should be able to do most other internet functions. Thanks again for all your help with this.

Jason
Attachments
ping_output.txt
Here's the output of my ping attempts.
(1.73 KiB) Downloaded 1454 times
User avatar
mightyohm
Site Admin
Posts: 1063
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: Stuck on part 5

Post by mightyohm »

Did you get this fixed? If so, what was the problem?
denniston
Posts: 13
Joined: Fri Jan 29, 2010 9:52 pm

Re: Stuck on part 5

Post by denniston »

I haven't been able to figure anything out. Everything looks right, but for some reason I don't get any sound :(
User avatar
mightyohm
Site Admin
Posts: 1063
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: Stuck on part 5

Post by mightyohm »

denniston wrote:I haven't been able to figure anything out. Everything looks right, but for some reason I don't get any sound :(
What USB-audio adapter are you using? Post your dmesg results again. Perhaps the adapter is not initializing properly. Does /dev/sound/dsp exist? What sample rates does your audio adapter support?
denniston
Posts: 13
Joined: Fri Jan 29, 2010 9:52 pm

Re: Stuck on part 5

Post by denniston »

I don't know much about the audio adapter, it came without any documentation.
Here's what I have in the sound folder:

Code: Select all

root@OpenWrt:/dev/sound# ls
dsp     mixer   mixer1
Here's my dmesg output:

Code: Select all

root@OpenWrt:/# dmesg
CPU revision is: 00029029
Primary instruction cache 16kB, physically tagged, 4-way, linesize 16 bytes.
Primary data cache 16kB, 2-way, linesize 16 bytes.
Linux version 2.4.35.4 (jkeyzer@wavelen) (gcc version 3.4.6 (OpenWrt-2.0)) #3 Mon Dec 1 17:35:57 PST 2008
Setting the PFC to its default value
Determined physical RAM map:
 memory: 01000000 @ 00000000 (usable)
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
CPU: BCM5354 rev 3 at 240 MHz
Using 120.000 MHz high precision timer.
Calibrating delay loop... 237.56 BogoMIPS
Memory: 14272k/16384k available (1419k kernel code, 2112k reserved, 96k data, 84k init, 0k highmem)
Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
Checking for 'wait' instruction...  unavailable.
POSIX conformance testing by UNIFIX
PCI: no core
PCI: Fixing up bus 0
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Registering mini_fo version $Id$
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
squashfs: version 3.0 (2006/03/15) Phillip Lougher
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0xb8000300 (irq = 3) is a 16550A
ttyS01 at 0xb8000400 (irq = 3) is a 16550A
b44.c:v0.93 (Mar, 2004)
PCI: Setting latency timer of device 00:01.0 to 64
eth0: Broadcom 47xx 10/100BaseT Ethernet 90:e6:ba:8b:4c:90
Physically mapped flash: Found an alias at 0x400000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
Physically mapped flash: Found an alias at 0xc00000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1400000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1c00000 for the chip at 0x0
 Amd/Fujitsu Extended Query Table v1.1 at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
Flash device: 0x400000 at 0x1c000000
bootloader size: 131072
Physically mapped flash: Filesystem type: squashfs, size=0x13e028
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00020000 : "cfe"
0x00020000-0x003f0000 : "linux"
0x0009a800-0x001e0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
0x003f0000-0x00400000 : "nvram"
0x001e0000-0x003f0000 : "rootfs_data"
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 2048)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 84k freed
Algorithmics/MIPS FPU Emulator v1.5
diag: Detected 'ASUS WL-520gU'
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
roboswitch: Probing device eth0: found!
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
jffs2.bbc: SIZE compression mode activated.
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
BFL_ENETADM not set in boardflags. Use force=1 to ignore.
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
device eth0.0 entered promiscuous mode
eth0.0: dev_set_promiscuity(master, 1)
device eth0 entered promiscuous mode
br-lan: port 1(eth0.0) entering learning state
br-lan: port 1(eth0.0) entering forwarding state
br-lan: topology change detected, propagating
eth0.1: add 01:00:5e:00:00:01 mcast address to master interface
PCI: Setting latency timer of device 00:05.0 to 64
PCI/DMA
wl0: wlc_attach: chiprev 3 coreunit 0 corerev 13 cccap 0x104007ea maccap 0x30482205 band 2.4G, phy_type 5 phy_rev 0 ana_rev 6
wl0: Broadcom BCM4318 802.11 Wireless Controller 4.150.10.5
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2002 Netfilter core team
ip_conntrack version 2.1 (5953 buckets, 5953 max) - 344 bytes per conntrack
SB USB20H init
SB COREREV: 2
SB USB20H resetting
USB20H fcr: 0x64
USB20H shim cr: 0x8f7
PCI: Setting latency timer of device 00:03.0 to 64
usb-ohci.c: USB OHCI at membase 0xb8003000, IRQ 6
usb-ohci.c: usb-00:03.0, PCI device 14e4:471a
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
usb.c: registered new driver audio
audio.c: v1.0.0:USB Audio Class driver
hub.c: new USB device 00:03.0-1, assigned address 2
usbaudio: device 2 audiocontrol interface 0 has 1 input and 1 output AudioStreaming interfaces
usbaudio: device 2 interface 2 altsetting 1 channels 1 framesize 2 configured
usbaudio: valid input sample rate 24000
usbaudio: device 2 interface 2 altsetting 1: format 0x00000010 sratelo 24000 sratehi 24000 attributes 0x00
usbaudio: device 2 interface 1 altsetting 0 does not have an endpoint
usbaudio: device 2 interface 1 altsetting 1 channels 2 framesize 2 configured
usbaudio: valid output sample rate 48000
usbaudio: device 2 interface 1 altsetting 1: format 0x01000010 sratelo 48000 sratehi 48000 attributes 0x00
usbaudio: registered dsp 14,3
usbaudio: constructing mixer for Terminal 3 type 0x0301
usbaudio: registered mixer 14,0
usbaudio: constructing mixer for Terminal 6 type 0x0101
usbaudio: registered mixer 14,16
usb_audio_parsecontrol: usb_audio_state at 80bfd920
device wl0 entered promiscuous mode
wl0: attempt to add interface with same source address.
br-lan: port 2(wl0) entering learning state
br-lan: port 2(wl0) entering forwarding state
br-lan: topology change detected, propagating
br-lan: port 2(wl0) entering disabled state
br-lan: port 1(eth0.0) entering disabled state
eth0.0: add 01:00:5e:00:00:01 mcast address to master interface
eth0.0: del 01:00:5e:00:00:01 mcast address from vlan interface
eth0.0: del 01:00:5e:00:00:01 mcast address from master interface
br-lan: port 2(wl0) entering disabled state
device wl0 left promiscuous mode
br-lan: port 1(eth0.0) entering disabled state
device eth0.0 left promiscuous mode
device eth0.0 entered promiscuous mode
eth0.0: add 01:00:5e:00:00:01 mcast address to master interface
br-lan: port 1(eth0.0) entering learning state
br-lan: port 1(eth0.0) entering forwarding state
br-lan: topology change detected, propagating
device wl0 entered promiscuous mode
wl0: attempt to add interface with same source address.
br-lan: port 2(wl0) entering learning state
br-lan: port 2(wl0) entering forwarding state
br-lan: topology change detected, propagating
eth0.1: del 01:00:5e:00:00:01 mcast address from vlan interface
eth0.1: del 01:00:5e:00:00:01 mcast address from master interface
eth0.1: add 01:00:5e:00:00:01 mcast address to master interface
br-lan: port 2(wl0) entering disabled state
br-lan: port 2(wl0) entering disabled state
device wl0 left promiscuous mode
device wl0 entered promiscuous mode
wl0: attempt to add interface with same source address.
br-lan: port 2(wl0) entering learning state
br-lan: port 2(wl0) entering forwarding state
br-lan: topology change detected, propagating
root@OpenWrt:/#
User avatar
mightyohm
Site Admin
Posts: 1063
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: Stuck on part 5

Post by mightyohm »

Code: Select all

usbaudio: device 2 audiocontrol interface 0 has 1 input and 1 output AudioStreaming interfaces
usbaudio: device 2 interface 2 altsetting 1 channels 1 framesize 2 configured
usbaudio: valid input sample rate 24000
usbaudio: device 2 interface 2 altsetting 1: format 0x00000010 sratelo 24000 sratehi 24000 attributes 0x00
usbaudio: device 2 interface 1 altsetting 0 does not have an endpoint
usbaudio: device 2 interface 1 altsetting 1 channels 2 framesize 2 configured
usbaudio: valid output sample rate 48000
usbaudio: device 2 interface 1 altsetting 1: format 0x01000010 sratelo 48000 sratehi 48000 attributes 0x00
usbaudio: registered dsp 14,3
usbaudio: constructing mixer for Terminal 3 type 0x0301
usbaudio: registered mixer 14,0
usbaudio: constructing mixer for Terminal 6 type 0x0101
usbaudio: registered mixer 14,16
usb_audio_parsecontrol: usb_audio_state at 80bfd920
Looks like your adapter supports 48000 and not 44100Hz. Trying changing your mpd.conf to something like this. I have no idea if this will actually work.

Code: Select all

audio_output {
        type                    "oss"
        name                    "My OSS Device"
        device                  "/dev/sound/dsp"   # optional
        format                  "48000:16:2" # optional
}
denniston
Posts: 13
Joined: Fri Jan 29, 2010 9:52 pm

Re: Stuck on part 5

Post by denniston »

I hate to be a bother, but I still don't seem to be able to get anything to happen with my wifiradio.
I changed that setting to 48000, but I'm not sure that my mpd is even connecting with the streams. Is there a way to check that?
Here's what I get:

Code: Select all

root@OpenWrt:/# mpc play 3
http://relay3.slayradio.org:8000/
[playing] #3/3   0:00/0:00 (100%)
volume:100%   repeat: off   random: off
root@OpenWrt:/#
Is there a way to check and see if the wifiradio is actually connecting to a server?
Is there a way to test and see if the sound card works?

Thanks for all your help!
User avatar
mightyohm
Site Admin
Posts: 1063
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: Stuck on part 5

Post by mightyohm »

If mpc gives just the stream name (http://relay3.slayradio.org:8000/), then it is probably not actually connecting to the stream. Usually it will return an artist and a title of the current song when the stream is playing. So I think you still have a connection problem of some sort.

A couple ways to test your soundcard:

Cat a random file into /dev/sound/dsp. Watch out for loud noises. I think something like this will work "cat /bin/ls > /dev/sound/dsp" assuming I have the path to ls correct.

Copy a small mp3 file to the router using scp or wget. Then add that file to the mpd playlist with the "mpd add" command. Then run "mpc play" and you should hear the mp3.
denniston
Posts: 13
Joined: Fri Jan 29, 2010 9:52 pm

Re: Stuck on part 5

Post by denniston »

Ok I definitely think there is something wrong with my internet connectivity. But I'm really baffled. It's weird because I can ping some outside address, but when I tried to wget an mp3 from flashkit.com it wouldn't work, but if I host it on my local laptop I can get it. Any suggestions?
Also I'm not sure what folder to wget the mp3 to, and I'm not sure how to add it once I get it there.

Thanks

Code: Select all

root@OpenWrt:/# wget http://www.flashkit.com/downloads/loops/mp3/6358/Dan.mp3
Connecting to www.flashkit.com (63.236.18.42:80)
wget: cannot connect to remote host (63.236.18.42): Connection timed out
root@OpenWrt:/# wget http://192.168.1.103/dan.mp3
Connecting to 192.168.1.103 (192.168.1.103:80)
dan.mp3              100% |*******************************|   126k 00:00:00 ETA
Pinging attempts

Code: Select all

root@OpenWrt:/# ping 63.236.18.42:80
PING 63.236.18.42:80 (63.236.18.42): 56 data bytes
--- 63.236.18.42:80 ping statistics ---
8 packets transmitted, 0 packets received, 100% packet loss

root@OpenWrt:/# ping google.com
PING google.com (74.125.95.147): 56 data bytes
64 bytes from 74.125.95.147: seq=0 ttl=50 time=37.552 ms
64 bytes from 74.125.95.147: seq=1 ttl=50 time=25.487 ms
64 bytes from 74.125.95.147: seq=2 ttl=50 time=29.179 ms
--- google.com ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 25.487/30.739/37.552 ms

root@OpenWrt:/# ping slickdeals.net
PING slickdeals.net (64.38.238.98): 56 data bytes
64 bytes from 64.38.238.98: seq=0 ttl=48 time=77.342 ms
64 bytes from 64.38.238.98: seq=1 ttl=48 time=75.147 ms
64 bytes from 64.38.238.98: seq=2 ttl=48 time=76.757 ms
64 bytes from 64.38.238.98: seq=3 ttl=48 time=84.406 ms
--- slickdeals.net ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 75.147/78.413/84.406 ms

root@OpenWrt:/# ping 192.168.1.103
PING 192.168.1.103 (192.168.1.103): 56 data bytes
64 bytes from 192.168.1.103: seq=0 ttl=128 time=14.719 ms
64 bytes from 192.168.1.103: seq=1 ttl=128 time=4.160 ms
64 bytes from 192.168.1.103: seq=2 ttl=128 time=4.733 ms
--- 192.168.1.103 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 4.160/7.870/14.719 ms

root@OpenWrt:/# ping relay3.slayradio.org:8000
PING relay3.slayradio.org:8000 (130.237.188.201): 56 data bytes
64 bytes from 130.237.188.201: seq=0 ttl=237 time=143.710 ms
64 bytes from 130.237.188.201: seq=1 ttl=237 time=145.629 ms
64 bytes from 130.237.188.201: seq=2 ttl=237 time=147.122 ms
64 bytes from 130.237.188.201: seq=3 ttl=237 time=156.291 ms

--- relay3.slayradio.org:8000 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 143.710/148.188/156.291 ms
root@OpenWrt:/#

Post Reply