2013-05-25
■[TV] Panasonic VIERA X3
動画再生
- ×フラッシュプラグイン使えない
- ○VODプラグイン(TTS[ts/mp4]) .CPC - application/X-arib-contentPlayControl
(字幕、チャプター、レジューム、スキップ可)
ARIBやTS送受信制御、CPC周りは地雷特許が多い。何かを検索すればまず特許文章に引っかかる。
- デジタルテレビ ネットワーク機能仕様 ストリーミング機能仕様書 ブラウザ編(Browser-12-20101221.pdf)
- デジタルテレビ ネットワーク機能仕様 ストリーミング機能仕様書 プロトコル編(Protocol-12-20101221.pdf)
- デジタルテレビネットワーク機能仕様 コンテンツ・ダウンロード仕様書(download_1_2_2_public.pdf)
音声再生
- wav、accが再生可能
- 内蔵音声の再生も可能
デジタルテレビ ネットワーク機能仕様 音声再生仕様書(DTVNet-Browser-10.zip > DTVNet-Sound-10.pdf)
動的読み込み
- × XMLHttpRequest
- × script要素の動的作成
- × 生成済みscript要素のsrc属性書き換え
- ○ iframe書き換え/生成による動的読み込み
キーイベント
document.body.onkeydown = function () { // 引数はundefined var code = event.keyCode; switch(code & 0xFF) { case 13://決定ボタン case 37://←ボタン case 38://↑ボタン case 39://→ボタン case 40://↓ボタン case 178://青ボタン case 179://赤ボタン case 180://緑ボタン case 181://黄ボタン case 35://12ボタン case 42://11ボタン case 48://10ボタン case 49://1ボタン case 50://2ボタン case 51://3ボタン case 52://4ボタン case 53://5ボタン case 54://6ボタン case 55://7ボタン case 56://8ボタン case 57://9ボタン break; case 176://dataボタン default: // バブリング抑制 event.cancelBubble = true; // preventDefault()はなく // return falseで代替 return false; } return true; }
- event.keyCode
- event.cancelBubble
- event.which
- event.ctrlKey
- event.shiftKey
- event.altKey
- event.type
- event.data
- event.button
- event.screenX
- event.screenY
- event.clientX
- event.clientY
- event.x
- event.y
- event.offsetX
- event.offsetY
- event.srcElement
- event.fromElement
2012-05-02
■[ATERM] WR8700N Hack
ルーターのコマンドを実行するバグ(Basic認証した後)を発見したが、コマンド分からんですたい。
(operator権限だから、情報の参照くらいしかできない。)
show Interface
Interface FastEthernet0.0 is up MTU size is 1500 bytes Bandwidth 1000000 Kb/s Physical layer is up Physical address 00:**:**:**:**:68 Media Ethernet autoselect ( 1000baseT full-duplex ) Interface statistics Received Packet : 22866626 Octet [byte] : 494663119 Valid Octet [byte] : 0 Multicast : 0 Broadcast : 0 Control Frame : 0 Pause Frame : 0 64 byte Frame : 0 65 - 127 byte Frame : 0 128 - 255 byte Frame : 0 256 - 511 byte Frame : 0 512 - 1023 byte Frame : 0 1024- RMAX byte Frame : 0 Error Dropped Packet : 0 Aligment : 0 Late Collision : 0 CRC Error : 0 Large Packet : 0 Rx Queue Full : 0 MII Error : 0 Runt Packet : 0 Empty Free Queue : 0 Undefine Frame : 0 Length Disagreement : 0 Code Error : 0 False Carrier : 0 Unsupported Protocol : 0 Another Error : 0 ...
show config
![Last Value] !Product=WR8700N !Version=1.0.14 !CM=0 pfc enable pfc v2-enable auto-version-up ! ip dhcp-server profile default mode-assign manual assignable-range 192.168.1.2 32 default-gateway 192.168.1.1 dns-server 192.168.1.1 subnet-mask 24 fixed-assignment 192.168.1.2 00:**:**:**:**:89 fixed-assignment 192.168.1.* **:**:**:**:**:d9 fixed-assignment 192.168.1.* **:**:**:**:**:5e ! ip dhcp-client profile default ...
結果が長すぎるとHTTPサーバーの加減で切れてしまうのかも。
show ip address
Interface FastEthernet0.0 is up IP address: 192.168.1.1/24 Interface FastEthernet1.0 is up IP address: 192.168.0.2/24 Interface Loopback0.0 is up IP address: 127.0.0.1/8
show eco-mode status
eco-mode status : not normal-eco
show eco-mode profile
eco-mode profile : normal
show version
Copyright (c) NEC AccessTechnica,Ltd. 2004, 2005, 2006, 2007, 2008, 2009, 2010 All rights reserved. Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 The NetBSD Foundation, Inc. All rights reserved. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. HITUJI Operating System Software : version 1.0.14 Compiled: 2012年 2月 2日 木曜日 08時42分41秒 uptime is 2 days 6 hours 21 minutes 28 secs. memory size is 67108864 [byte]
show account
username:operator password:$1$Ml3vjEKA$fG5ClEb1XlOVazwKD*****
一部伏せ
2012-04-30
■[Aterm] syslog save facility CGI [enable|disable]
> syslog save facility CGI enable
クイック設定Web経由のアクセスログ+内部コマンドを通信情報ログに記録するかどうか。
たとえば私の環境で「接続先の選択設定」で接続3に切り替えた際のログ
2012/04/30 22:40:22 CGI Set Command [disconnect allsilent] 2012/04/30 22:40:22 CGI Set Command [entry wan 22 connectlimit enable] 2012/04/30 22:40:22 CGI Set Command [entry wan 23 connectlimit enable] 2012/04/30 22:40:22 CGI Set Command [entry wan 24 connectlimit disable] 2012/04/30 22:40:22 CGI Set Command [entry wan 25 connectlimit enable] 2012/04/30 22:40:22 CGI Set Command [entry wan 26 connectlimit enable] 2012/04/30 22:40:22 CGI Set Command [defroute subnumber 24] 2012/04/30 22:40:22 CGI Set Command [defroute number 24 now] 2012/04/30 22:40:22 CGI Set Command [connectlimit cancelsilent] 2012/04/30 22:40:22 CGI Set Command [save sys]
そこから↓のTelnetのコマンドがわかる
>disconnect allsilent >entry wan 22 connectlimit enable >entry wan 23 connectlimit enable >entry wan 24 connectlimit disable >entry wan 25 connectlimit enable >entry wan 26 connectlimit enable >defroute subnumber 24 >defroute number 24 now >connectlimit cancelsilent >save sys
2011-09-20
■[JDownloader] JDownloader の Reconnect 関連設定
「Enable automated Reconnect」ボタン (*1)
自動的にReconnectを実行する
「Let Reconnects interrupt resumeable downloads」(*3)
全て待機状態になるまで待たず、リジューム可能なダウンロードであれば
強制的に一時停止させてReconnect
「Do not start new links if reconnect requested」(*4)
Reconnectするまで次の新規ダウンロードを開始しない
IPアドレスの変更にはおよそ1分。
サーバーの制限による待機時間は5〜60分。
なかなか悩ましい。
2011-09-18
■[Aterm] TELNET コマンド
接続関連
エントリー別WAN側接続情報
> show info wan 22
ENTRY NO ..... 22
IP ADDRESS ..... 123. 45. 67. 89
SUBNET MASK ..... 0. 0. 0. 0
DNS SERVERS
IP ADDRESS1 ..... 123. 45. 67. 1
IP ADDRESS2 ..... 123. 45. 67. 2
AC INFORMATION
AC NAME ..... (empty)
SERVICE NAME ..... (empty)
接続
> connect エントリー番号
切断
> disconnect エントリー番号
全切断→接続拒否
> disconnect all
接続拒否解除
> connectlimit cancel
接続拒否状態の確認
> show status connectlimit (接続拒否) STATUS ..... set (接続拒否解除) STATUS ..... cancel
設定保存
> save sys
Atermを再起動する(登録ボタンに相当)
> reset reboot
【参考】
http://www.tatsuyoshi.net/toyota/tech/20061024/index.html
2ch のAtermスレ
■[Aterm][Perl] 接続を切断し、再接続するスクリプト
# # aterm_reconnect.pl # Aterm用 一時切断して再接続 # my $router_ip = "192.168.0.1"; my $user = "aterm-maintenance-110"; my $pass = "Aterm-Maintenance-119"; my $wait_time = 5 * 60; # 秒 my $wan_entry_no = 22; $|=1; use Net::Telnet; my $prompt = '/>/'; my $buffer = ""; my $result; my $prev_ip; my $next_ip; my $telnet = new Net::Telnet(Timeout => 10,Prompt => $prompt); $telnet->open($router_ip); $telnet->waitfor('/login/i'); $telnet->print($user); $telnet->waitfor('/password/i'); $result = $telnet->cmd($pass); die("Login error.") unless ($result); $telnet->cmd("disconnect all"); $telnet->cmd("exit"); $telnet->close(); sleep($wait_time); $telnet->open($router_ip); $telnet->waitfor('/login/i'); $telnet->print($user); $telnet->waitfor('/password/i'); $result = $telnet->cmd($pass); die("Login error.") unless ($result); $telnet->cmd("connectlimit cancel"); $telnet->cmd("connect $wan_entry_no"); $telnet->cmd("exit"); $telnet->close(); sleep(5); __END__
ちょっと修正