Required Library: apache.commons.net
========================================
import org.apache.commons.net.telnet.TelnetClient;
import java.io.InputStream;
import java.io.PrintStream;
public class AutomatedTelnetClient {
private TelnetClient telnet = new TelnetClient();
private InputStream in;
private PrintStream out;
private String prompt = "%";
2013-12-02
Java - Input library of "apache.commons.net" to IDE Eclipse.
1-
由下面連結下載 "commons-net-3.3-bin.zip".
http://commons.apache.org/proper/commons-net/download_net.cgi
2-
解壓縮 commons-net-3.3-bin.zip
3-
Execute Eclipse --> create a new java project
4-
Left click on project --> Build Path --> Configure Build Path...
On Libraries tab --> Add External JARs...
Browse a file "commons-net-3.3.jar" where you put on.
5-
A Library "commons-net-3.3.jar" should listed on left side Project Explorer.
由下面連結下載 "commons-net-3.3-bin.zip".
http://commons.apache.org/proper/commons-net/download_net.cgi
2-
解壓縮 commons-net-3.3-bin.zip
3-
Execute Eclipse --> create a new java project
4-
Left click on project --> Build Path --> Configure Build Path...
On Libraries tab --> Add External JARs...
Browse a file "commons-net-3.3.jar" where you put on.
5-
A Library "commons-net-3.3.jar" should listed on left side Project Explorer.
2013-08-09
2013-08-08
DNS Master Service bring up
OPERATION ENVIRONMENT
*******************************
CONDITION:
**************
1- Two different Domain
*******************************
OS: Linux CentOS-59
Bind version: BIND 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.5
(Bind imbedded within CentOS-59)
CONDITION:
**************
1- Two different Domain
clear.net.nz
example.com
2013-08-07
apache-tomcat installation within Linux CentOS-59
Tomcat version: 6.0.37
Package: apache-tomcat-6.0.37.tar.gz
# cd /opt
# cp /worktmp/apache-tomcat-6.0.37.tar.gz .
# tar xzvf apache-tomcat-6.0.37.tar.gz
# cd apache-tomcat-6.0.37
Establish a user for manager
******************************
# cd conf
# vim tomcat-users.xml
Package: apache-tomcat-6.0.37.tar.gz
# cd /opt
# cp /worktmp/apache-tomcat-6.0.37.tar.gz .
# tar xzvf apache-tomcat-6.0.37.tar.gz
# cd apache-tomcat-6.0.37
Establish a user for manager
******************************
# cd conf
# vim tomcat-users.xml
Lu: Define a user for manager as blue color.
JAVA JVM/JRE 1.7.0_21 witin Firefox 17.0.5 on CentOS-55
# cd /usr/lib/mozilla/plugins
# ln -s /usr/java/jre1.7.0_21/lib/i386/libnpjp2.so
RELOAD FIREFOX
# ln -s /usr/java/jre1.7.0_21/lib/i386/libnpjp2.so
RELOAD FIREFOX
JAVA JRE 1.7.0_21 installation on CentOS-55
# cd /usr/java
# mv jre-7u21-linux-i586.tar.gz .
# tar xzvf jre-7u21-linux-i586.tar.gz (path: /usr/java/jre1.7.0_21)
# cd /usr/local/bin
# mv java java_old (or remove previous JRE version)
# ln -s /usr/java/jre1.7.0_21/bin/java
# cd /usr/bin
# ln -s /usr/java/jre1.7.0_21/bin/java
FINISH
Digihost media service establishing
Preparation:
01- Linux CentOS-59
02- Tomcat 6
03- DNS server
04- NTP server [date 2010.April.04 / time 12:00
[140409]
Tomcat location: http://10.11.0.1
Tomcat manager login: admin / admin
Local Path: /DH_INSTALL
Server Function: Deploy EPG metadata to STB.
Digisoft DHWeb server package:
Version 1.2 for STB version PROD_2.9.29.11.zip
Version 1.3 for STB version PROD_2.9.31.5.zip
Insert DHWeb into Apache Tomcat
01- Access Tomcat via http://10.11.0.1
02- Login Tomcat manager page: admin / admin
Required field:
WAR filename's naming rule: "digihost.war"
直接 upload Digisoft 給的 Server 檔名為 "DHWeb-1.2-SNAPSHOP.war", 可以 upload 成功, 但是 STB 的 EPG 出不來.
05- DHWeb located on "/DH_INSTALL/apache-tomcat-6.0.29/webapps" after deploy
Upload 成功後, Server 會產生一目錄在 /DH_INSTALL/appche-tomcat-6.0.29/webapps
目錄名稱會與 Upload 的檔名同名.
Note-1: DHWeb 內的檔案修改後
Support IP Streaming
Service: DHWeb / Digihost
File: WEB-INP
Path: /DH_INSTALL/apache-tomcat-6.0.29/webapps/digihost/
只留一條 multicast 的 IP 位置給 STB 使用.
STB 只會讀取 Server 送出的第一條位置/IP.
Test Pattern
1-
別使用有支援多個 programs 的 TS file, 這樣有可能造成 STB 播放的影片與音來自不同的頻道.
就像是影像來自 Channel 1, 但聲音來至 Channel 2 一樣.
2-
別使用也只有支援一個 program 的 TS file, 這樣有可能造成 STB 只有影像, 但沒有聲音.
3-
Pattern 只能使用像 MPEG 檔, 影音同時輸出.
Note-1: WEB-INP 修改給 IP streaming 使用後, 會造成 STB 無法接收來至於 DVB-C pattern generator 的影片.
Test Pattern on DVB-C generator for Manufacturer
Provider: NZ TelstraClear
Filename: 002-TCL_STREAM1_DVB-C_586M_6.956K_64QAM-090609.ts
Program:
Mapping STB channel (FTA channel)
01- Linux CentOS-59
02- Tomcat 6
03- DNS server
04- NTP server [date 2010.April.04 / time 12:00
[140409]
Tomcat location: http://10.11.0.1
Tomcat manager login: admin / admin
Local Path: /DH_INSTALL
Server Function: Deploy EPG metadata to STB.
Digisoft DHWeb server package:
Version 1.2 for STB version PROD_2.9.29.11.zip
Version 1.3 for STB version PROD_2.9.31.5.zip
Insert DHWeb into Apache Tomcat
01- Access Tomcat via http://10.11.0.1
02- Login Tomcat manager page: admin / admin
Required field:
- Context Path (required): digihost
- WAR file to Deploy --> Select WAR file to upload
WAR filename's naming rule: "digihost.war"
直接 upload Digisoft 給的 Server 檔名為 "DHWeb-1.2-SNAPSHOP.war", 可以 upload 成功, 但是 STB 的 EPG 出不來.
05- DHWeb located on "/DH_INSTALL/apache-tomcat-6.0.29/webapps" after deploy
Upload 成功後, Server 會產生一目錄在 /DH_INSTALL/appche-tomcat-6.0.29/webapps
目錄名稱會與 Upload 的檔名同名.
Note-1: DHWeb 內的檔案修改後
Support IP Streaming
Service: DHWeb / Digihost
File: WEB-INP
Path: /DH_INSTALL/apache-tomcat-6.0.29/webapps/digihost/
只留一條 multicast 的 IP 位置給 STB 使用.
STB 只會讀取 Server 送出的第一條位置/IP.
Test Pattern
1-
別使用有支援多個 programs 的 TS file, 這樣有可能造成 STB 播放的影片與音來自不同的頻道.
就像是影像來自 Channel 1, 但聲音來至 Channel 2 一樣.
2-
別使用也只有支援一個 program 的 TS file, 這樣有可能造成 STB 只有影像, 但沒有聲音.
3-
Pattern 只能使用像 MPEG 檔, 影音同時輸出.
Note-1: WEB-INP 修改給 IP streaming 使用後, 會造成 STB 無法接收來至於 DVB-C pattern generator 的影片.
Test Pattern on DVB-C generator for Manufacturer
Provider: NZ TelstraClear
Filename: 002-TCL_STREAM1_DVB-C_586M_6.956K_64QAM-090609.ts
Program:
- CNBC (3.99Mbps)_Video/Mpeg2/PID37_Audio/Mpeg2/PID1102
- Sky News (3.55Mbps)_Video/Mpeg2/PID40_NoAudio
- Discovery Home&Health (4.2Mbps)_Video/Mpeg2/PID2026_Audio/Mpeg2/PID2020
- Arts Channel (2.56Mbps)_Video/Mpeg2/PID1001_Audio/1101
- TV3 HD (13.4 Mbps)_Video/H264/PID450_Audio/MPEG4/PID400
- TV One HD (6.59Mbps)_Video/H264/PID270_Audio/MPEG4/PID320
Mapping STB channel (FTA channel)
- 002 B4U Music --- CNBC (ch015)
- 004 BBC Four ---- Discovery Home & Health (ch017, ch030)
- 005 BBC HD ----- Arts Channel
- 006 BBC News --- TV3 HD (ch019)
- 015 CITV --------- CNBC
- 020 ITV HD ------- TV One HD (ch033)
- 031 RADIO
訂閱:
文章 (Atom)