找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: sancome

【原创】把TL-WR703N打造成真正的AirPlay播放器

 火.. [复制链接]
发表于 2013-1-31 11:47 | 显示全部楼层
这个解决方案好,收藏了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-2-14 17:52 | 显示全部楼层
感谢你的折腾精神。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-2-24 19:19 | 显示全部楼层
天山上的雪 发表于 2013-1-29 13:51
楼主我只想知道一个问题
我拿移动硬盘+703+IPAD2未越狱,完全脱离电脑,能否完美方便观看移动硬盘里的电影 ...

想完美脱离电脑的话原带的4m的flash尺寸不够因为block mount和samba都非常占空间必须用改8m的才可以,固件的话可以刷下面这个,刷好后samba共享不需要配置直接可访问,我自己也是一直在用
https://www.right.com.cn/forum/thread-76261-1-1.html
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-3-1 07:35 | 显示全部楼层
很好,这篇文章非常有用
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-3-5 01:49 | 显示全部楼层
能发现,但不能连接是啥问题
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-3-5 20:16 | 显示全部楼层

能发现,但不能连接是啥问题,固件是自己编译的9341

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2013-3-5 20:59 | 显示全部楼层
sutuo 发表于 2013-3-5 20:16
能发现,但不能连接是啥问题,固件是自己编译的9341

执行ps命令,把结果贴上来看看呢。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-3-6 10:01 | 显示全部楼层
root@OpenWrt:/# ps
  PID USER       VSZ STAT COMMAND
    1 root      1508 S    init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    5 root         0 SW<  [kworker/0:0H]
    6 root         0 SW   [kworker/u:0]
    7 root         0 SW<  [kworker/u:0H]
    8 root         0 SW<  [khelper]
    9 root         0 SW   [kworker/u:1]
   66 root         0 SW   [bdi-default]
   68 root         0 SW<  [kblockd]
   97 root         0 SW   [kswapd0]
  142 root         0 SW   [fsnotify_mark]
  157 root         0 SW<  [ath79-spi]
  168 root         0 SW   [mtdblock0]
  173 root         0 SW   [mtdblock1]
  178 root         0 SW   [mtdblock2]
  183 root         0 SW   [mtdblock3]
  188 root         0 SW   [mtdblock4]
  193 root         0 SW   [mtdblock5]
  198 root         0 SW   [mtdblock6]
  336 root         0 RW   [kworker/0:1]
  342 root         0 SW<  [deferwq]
  622 root         0 SW<  [cfg80211]
  633 root         0 SW   [khubd]
  766 root      1508 S    init
  867 root      1516 S    /usr/sbin/crond -c /etc/crontabs -l 5
  972 root      1512 S    /sbin/syslogd -C16
  974 root      1496 S    /sbin/klogd
  976 root       880 S    /sbin/hotplug2 --override --persistent --set-rules-file /etc/hotplug2.rules --set-cold
  982 root      1012 S    /sbin/procd
  996 root       872 S <  ubusd
1153 root      1504 S    /sbin/watchdog -t 5 /dev/watchdog
1670 root      1496 S    telnetd -p 23 -l /bin/telnetlogin.sh
1703 root      1180 S    /usr/sbin/uhttpd -f -h /www -r OpenWrt -x /cgi-bin -t 60 -T 30 -A 1 -n 3 -p 0.0.0.0 80
1717 root      1704 S    /usr/sbin/dbus-daemon --system
1755 nobody    2184 S    avahi-daemon: running [OpenWrt.local]
1807 root         0 SWN  [jffs2_gcd_mtd3]
1915 root      1504 S    /usr/sbin/ntpd -n -p 0.openwrt.pool.ntp.org -p 1.openwrt.pool.ntp.org -p 2.openwrt.poo
3011 root      1152 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22
3088 root      1624 S    avahi-publish-service 0044316A2B4E@airplay Room _raop._tcp 5002 tp=UDP sm=false sv=fal
3117 root         0 SW<  [kworker/0:1H]
3921 root      1240 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22
3922 root      1516 S    -ash
4831 root      1544 S    /sbin/netifd
4901 root         0 SW   [kworker/0:0]
4924 root      1504 S    udhcpc -p /var/run/udhcpc-eth0.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth0 -C
5926 root      1404 S    wpa_supplicant -B -P /var/run/wifi-wlan0.pid -D nl80211 -i wlan0 -c /var/run/wpa_suppl
5956 root      1516 S    udhcpc -p /var/run/udhcpc-wlan0.pid -s /lib/netifd/dhcp.script -f -t 0 -i wlan0 -C
6053 nobody     944 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf
7502 root         0 SW   [flush-mtd-unmap]
8240 root      1216 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22
8241 root      1500 S    -ash
9353 root      1500 R    ps
root@OpenWrt:/#
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-3-6 10:03 | 显示全部楼层
楼主QQ多少,发个远程协助给你帮我看看
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-3-6 10:04 | 显示全部楼层
perl shairport.pl
依赖哪些perl包?
能不能把shairport 的makefile发上来
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-3-6 10:06 | 显示全部楼层
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2013-3-6 10:33 | 显示全部楼层
sutuo 发表于 2013-3-6 10:06
https://github.com/mikejuni/OpenWRT-ShairPort
我是用的这个

你用mikejuni的源编译的话,应该是没有shairport.pl的呀,也不需要perl。
从你的进程里看

两个必须的服务有了,这里没问题
/usr/sbin/dbus-daemon --system
avahi-daemon: running [OpenWrt.local]

shairport相关进程应该有两个,你这里却只有一个
avahi-publish-service 0044316A2B4E@airplay Room _raop._tcp 5002 tp=UDP sm=false sv=fal
应该还有一个类似如下:
/usr/sbin/shairport -a xxx -o xxx -d

你检查一下/etc/init.d/shairport文件,贴出来看下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-3-6 13:16 | 显示全部楼层
root@OpenWrt:/tmp# shairport -a shairport_1 -b 320 -o 5002 --alsa_pcm=default --als
a_ctl=default --alsa_volume=Speaker
LogLevel: 1
AirName: shairport_1
HWID: Wh/p`
HWID_Hex(12): 0057682F7060
Failed to create ipv6 socket. Trying ipv4: Address family not supported by protocol
Error: Could not bind socket: Address family not supported by protocol
Error setting up server socket on port 5002, try specifying a different port
root@OpenWrt:/
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-3-6 13:50 | 显示全部楼层
/etc/init.d/airplay

#!/bin/sh /etc/rc.common

NAME=airplay
START=99

handle_airplay() {
        local config="$1"
        local custom="$2"
        local bname
        local initbuf
        local port
        local password
        local daemonize
        local pcm
        local ctl
        local volume
        extra="-d"
       
        config_get bname "$1" bname "AirPort"
        config_get initbuf "$1" initbuf "90"
        config_get port "$1" port "5002"
        config_get password "$1" password
        config_get_bool daemonize "$1" daemonize 1
        config_get pcm "$1" pcm "default"
        config_get ctl "$1" ctl "default"
        config_get volume "$1" volume "Speaker"
       
        if [ $daemonize -eq 0 ]
        then
                if [ "x$password" == "x" ]
                then
                        shairport -a "$bname" -b $initbuf -o $port --alsa_pcm=$pcm --alsa_ctl=$ctl --alsa_volume=$volume
                else
                        shairport -a "$bname" -b $initbuf -o $port -p $password --alsa_pcm=$pcm --alsa_ctl=$ctl --alsa_volume=$volume
                fi       
        fi
        if [ "x$password" == "x" ]
        then
                shairport -a "$bname" -b $initbuf -o $port $extra --alsa_pcm=$pcm --alsa_ctl=$ctl --alsa_volume=$volume
        else
                shairport -a "$bname" -b $initbuf -o $port -p $password $extra --alsa_pcm=$pcm --alsa_ctl=$ctl --alsa_volume=$volume
        fi
}

start() {
        config_load airplay
        config_foreach handle_airplay airplay
}

stop() {
        killall -9 shairport
        killall -9 avahi-publish-service
}


我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2013-3-6 17:42 | 显示全部楼层
sutuo 发表于 2013-3-6 13:50
/etc/init.d/airplay

#!/bin/sh /etc/rc.common

mikejuni的脚本我编译过,他用的是Skaman的源码,编译完第一次刷机能成功,重启就不行了,不知道是不是源码的bug,而且他的shairport启动要带很多参数,感觉怪怪的。
建议还是用jlars的脚本吧,他用的是albertz的源码,基本没有bug,我用的就是这个。
这里有个参考教程:http://www.custom-openwrt-builds ... hairport_On_OpenWrt
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-25 04:54

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表