1、 KSKSKSKSKSKSKSK KSKSKS KSKSK KSKS KSK KS KS X 4505 2 2: / KS X 4505 2:2012 2012 12 28 http:/www.kats.go.krKS X 4505 2:2012 : ( ) ( ) () () ( ) : / ( ) SNS ( ) ( ) : (http:/www.standard.go.kr) : :2012 12 28 2012-0830 : : / ( 02-509-7262) (http:/www.kats.go.kr). 10 5 , . KS X 4505 2:2012 i ii 1 1 2 1
2、 3 .1 4 2 5 HNML 3 6 OP Code Payload 4 6.1 .4 6.2 9 6.3 12 6.4 14 6.5 (SIP, ).16 6.6 18 6.7 .22 6.8 24 6.9 ( / ) 26 6.10 ( / ) 28 6.11 / ( / ) 29 6.12 / ( / ) 30 6.13 / .31 6.14 33 6.15 .34 6.16 .36 6.17 37 6.18 .39 6.19 45 6.20 47 6.21 48 6.22 49 6.23 .53 6.24 .66 6.25 68 6.26 .69 A( ) SubType Desc
3、ription .72 B( ) Device Type(Hexadecimal) .75 KS X 4505 2:2012 .76 KS X 4505 2:2012 ii . . , , . , , . KS X 4505 2:2012 2: / The complex server protocol for intelligent home network Part 2: Profile for home gateway/wallpad 1 - / / . / . 2 . . ( ) . KS A 0001, KS X 4500 1, 1: KS X 4501 1, 1: KS X 450
4、1 2, 2: KS X 4501 3, 3: KS X 4501 4, 4: ISO/IEC 15045 1: 2004, Information technology Home Electronic Systems (HES) gateway TTAS.KO-04.0015, (Home Gateway Standard) TTAS.KO-04.0032, FTTH (The Requirement Standard for FTTH Home Gateway) TTAK.KO-04.0083, / RS-485 (RS-485 Protocol For Home Network Wall
5、pad/Home Gateway) 3 . 3.1 , KS X 4505 2:2012 2 3.2 3.3 , , 3.4 , , 3.5 , 3.6 , , , 3.7 , 3.8 , , 3.9 , , , 3.10 , , 4 / , . . , , , . . KS X 4505 2:2012 3 1 . (Complex Server) (Access Network) (Access Network Interface, ANI) (Home Gateway) (Home Network) (Home Network Interface, HNI) (Wallpad) (Home
6、 Network Remote Control Device) 5 HNML “- , , HNML(HomeNetwork Markup Language) . KS X 4505 1 “ ” , OP Code OP Code Payload . 2 KS X 4505 2:2012 4 - “ ” Header Paylaod . Header Example 0xA000(MessageStart) 0x01(Version) 0x01(Flag) 0x00001F00(Length) 0x00000001(MessageID) 0x000000001(SequenceNumber)A
7、BCD5678901234567890(SourceID) 0A010111030000FF0001(DestinationID) 0x2111(OP Code) 2001-12-31T14:00:00(TransactionID) 0xA2340002(CRC) (Optional)0x000A(MessageEnd) Payload Example 11070001 Control 192.168.0.1 E8:39:DF:3E:32:D2 HN 1.0 SUCCESS 6 OP Code Payload - - , . Input/output, Inputs/Outputs name
8、, Inputs/Outputs name Input/output name M: Mandatory, O: Optional Function ID(Name) Type Input(s)Name Data Description Example AccessPasswd(O) 1111 LobbyPasswd(O) 1111 11070003 (PasswordSet) Request Password NewPasswd(M) Passwd 2222 6.1 . IP , MAC , ( ) . . ( , , ) , . KS X 4505 2:2012 5 Control Req
9、uest Payload Schema KS X 4505 2:2012 6 Control Response Payload Schema 6.1.1 * Payload Message Function ID(Name) Type Input(s)Name Data Description Example IPAddress(M) IP 192.168.0.1 PhysicalAddress(O) MAC E8:39:DF:3E:32:D2Port(M) Port 8080 SoftwareTyp(O) Software A SoftwareVersion(O) Sottware 1.0
10、UpgradeStatus(O) A Modelname (M) SHN-1234KS 11070001 (LoginReq) Request LoginInfo ReqInitInfo(O) 0=No, 1=XML, 2=File KS X 4505 2:2012 7 Payload Example 11070001 Control 192.168.0.1 E8:39:DF:3E:32:D2 8000 HN 1.0 SUCCESS SHN-1234 6.1.2 ( ) A . * Payload Message Function ID(Name) Type Output(s)Name Dat
11、a Description Example Timestamp Timestamp(M) 2001-12-31T12:00:00 TerminalType(M) A IPAddress IPAddress(M) IP 192.168.0.1 TerminalType(M) A Alias Alias(M) #100 URLType(M) URL A URL URL(M) URL 123.456.789 CCTVName(M) CCTV1 CCTV IPAddress(M) IP 192.168.0.1 TerminalType(M) A Port Port(M) 09999 Section(M
12、) A ANA0(O) Analog Gain 0 20 ANA1(O) Analog Gain 1 20 SIN(O) Send In Gain 20 SOUT(O) Send Out Gain 20 ROUT(O) Receive Speaker Gain 20 NR(O) Noise Reduction 20 11070001 (LoginReq) ResponseVolume AGC(O) Auto Gain Control 20KS X 4505 2:2012 8 Function ID(Name) Type Output(s)Name Data Description Exampl
13、e Emergency(M) Analog Gain 0 099 MidiVolume Normal(M) 099 IPAddress(M) IP Subnet(M) Subnet mask Gateway(M) Gateway DNS(O) DNS HomeID(M) 14 ID = (4)+ (4)+ (4)+ (2) 00001000100100FtpId(O) FTP ID BasicInfo FtpPassword(O) FTP FileType(M) Xml,txt Encoding(M) Base64 11070001 (LoginReq) ResponseInitInfoFil
14、e FileData(M) Payload Example 0000 11070001 Control 2001-12-31T12:00:00 192.168.0.10 255.255.255.0 192.168.0.1 192.168.0.1 00001000100100 1001 0000 Complex_Server 192.168.0.1 Complex_Server 1 KS X 4505 2:2012 9 METER_READING 123.156.788 CCTV1 192.168.0.1 Complex_Server 22 WALLPAD_WALLPAD 0 1 0 0 0 0
15、 0 50 10 6.2 , (IP , URL, , Alias, , , CCTV ) , . KS X 4505 2:2012 10 6.2.1 * Payload Message Function ID(Name) Type Input(s)Name Data Description Example 11070002 (BasicInfoReq) Request N/A N/A N/A Payload Example 11070002 Control 6.2.2 ( ) A . * Payload Message Function ID(Name) Type Output(s)Name
16、 Data Description Example Timestamp Timestamp(M) String 2001-12-31T12:00:00 TerminalType(M) A IPAddress IPAddress(M) IP 192.168.0.1 TerminalType(M) A Alias Alias(M) #100 URLType(M) URL A URL URL(M) URL 123.456.789 CCTVName(M) CCTV1 CCTV IPAddress(M) IP 192.168.0.1 TerminalType(M) A 11070002 (BasicIn
17、foReq) Response Port Port(M) 09999 KS X 4505 2:2012 11 Function ID(Name) Type Output(s)Name Data Description Example Section(M) A ANA0(O) Analog Gain 0 20 ANA1(O) Analog Gain 1 20 SIN(O) Send In Gain 20 SOUT(O) Send Out Gain 20 ROUT(O) Receive Speaker Gain 20 NR(O) Noise Reduction 20 Volume AGC(O) A
18、uto Gain Control 20 Emergency(M) 099 MidiVolume Normal(M) 099 IPAddress(M) IP Subnet(M) Subnet mask Gateway(M) Gateway DNS(O) DNS HomeID(M) 14 ID = (4)+ (4)+ (4)+ (2) 00001000100100FtpId(O) FTP ID 11070002 (BasicInfoReq) Response BasicInfo FtpPassword(O) FTP Payload Example 0000 11070001 Control 200
19、1-12-31T12:00:00 192.168.0.10 255.255.255.0 192.168.0.1 192.168.0.1 00001000100100 1001 0000 Complex_Server 192.168.0.1 KS X 4505 2:2012 12 Complex_Server 1 METER_READING 123.156.788 CCTV1 192.168.0.1 Complex_Server 22 WALLPAD_WALLPAD 0 1 0 0 0 0 0 50 10 6.3 . . KS X 4505 2:2012 13 6.3.1 * Payload M
20、essage Function ID(Name) Type Input(s)Name Data Description Example AccessPasswd(O) 1111 LobbyPasswd(O) 1111 11070003 (PasswordSet) Request Password NewPasswd(M) Passwd 2222 Payload Example 11070003 Control 1111 2222 6.3.2 ( ) A . * Payload Message Function ID(Name) Type Output(s)Name Data Descripti
21、on Example 11070003 (PasswordSet) Response N/A N/A N/A KS X 4505 2:2012 14 Payload Example 1002 /Invalid Password 11070003 Control 6.4 SIP(URI, IP , Port, Id, , ), ( , , ) . 6.4.1 * Payload Message Function ID(Name) Type Input(s)Name Data Description Example 11070004 (PhoneConfigInfoReq) Request NA
22、N/A N/A Payload Example 11070004 Control 6.4.2 ( ) A . KS X 4505 2:2012 15 * Payload Message Function ID(Name) Type Output(s) Name Data Description Example HomeNo(M) #123 URI(M) URI 192.168.0.1/uriSIPServerIP(M) SIP IP 192.168.0.1 SIPServerPort(M) SIP 9001 Expiry(O) SIP (ms) 30 User(O) SIP ID User P
23、asswd(O) SIP Passwd 1234 DeviceName(O) Cell CallFwdUse(O) (0/1) 1 CallFwdNo(O) 01011112222 CallFwdTime(O) (ms) 30 Domain(O) D PrimaryCSCFIP(O) CSCF IP 192.168.0.1 PrimaryCSCFPort(O) CSCF 9001 SecondCSCFIP(O) CSCF IP 192.168.0.1 SecondCSCFPort(O) CSCF 9001 PrimarySBCIP(O) CSCF IP 192.168.0.1 PrimaryS
24、BCPort(O) CSCF 9001 SecondSBCIP(O) CSCF IP 192.168.0.1 11070004 (PhoneConfigInfoReq) Response SIPConfig SecondSBCPort(O) CSCF 9001 Payload Example 0000 11070004 Control 302 URI 192.168.0.3 55 Test ID 0000 Test 1 01011112222 30 192.168.0.3 KS X 4505 2:2012 16 55 192.168.0.3 55 192.168.0.3 55 192.168
25、.0.3 55 6.5 (SIP, ) SIP(URI, IP , Port, Id, , ), ( , , ) . 6.5.1 * Payload Message Function ID(Name) Type InputName Data Description Example HomeNo(M) #123 URI(M) URI 192.168.0.1/uriSIPServerIP(M) SIP IP 192.168.0.1 SIPServer Port(M) SIP 9001 Expiry(O) SIP (ms) 30 User(O) SIP ID User Passwd(O) SIP P
26、asswd 1234 Devicename(O) Cell CallFwdUse(O) (0/1) 1 CallFwdNo(O) 01011112222 CallFwdTime(O) (ms) 30 11070005 (PhoneConfigSet) Request SIPConfig Domain(O) D KS X 4505 2:2012 17 Function ID(Name) Type InputName Data Description Example PrimaryCSCFIP(O) CSCF IP 192.168.0.1 PrimaryCSCFPort(O) CSCF 9001
27、SecondCSCFIP(O) CSCF IP 192.168.0.1 SecondCSCFPort(O) CSCF 9001 PrimarySBCIP(O) CSCF IP 192.168.0.1 PrimarySBCPort(O) CSCF 9001 SecondSBCIP(O) CSCF IP 192.168.0.1 11070005 (PhoneConfigSet) Reques SIPConfig SecondSBCPort(O) CSCF 9001 Payload Example 11070005 Control 302 URI 192.168.0.3 55 Test ID 000
28、0 Test 1 01011112222 30 192.168.0.3 55 192.168.0.3 55 192.168.0.3 55 192.168.0.3 55 6.5.2 ( ) A . * Payload Message Function ID(Name) Type OutputName Data Description Example 11070005 (PhoneConfigSet) Response N/A N/A N/A KS X 4505 2:2012 18 Payload Example 0000 11070005 Control 6.6 , IP ( , , , ,
29、, ), URL( , , , ), , Alias( , ), , CCTV( IP), , . . 6.6.1 * Payload Message Function ID(Name) Type Input(s)Name Data Description Example 11070006 (SpecificInfoReq) Request InfoType InfoType(O) A Payload Example 11070006 Control IPInfo KS X 4505 2:2012 19 6.6.2 ( ) A . * Payload Message Function ID(N
30、ame) Type Output(s)Name Data Description Example TerminalType(M) A IPAddress IPAddress(M) IP 192.168.0.1 TerminalType(M) A Alias Alias(M) #100 URLType(M) URL A URL URL(M) URL 123.456.789 CCTVName(M) CCTV1 CCTV IPAddress(M) IP 192.168.0.1 TerminalType(M) A Port Port(M) 09999 Section(M) A ANA0(O) Analog Gain 0 1/0 ANA1(O) Analog Gain 1 1/0 SIN(O) Send In Gain 1/0 SOUT(O) Send Out Gain 1/0 ROUT(O) Receive Speaker Gain 1/0 NR(O) Noise Reduction 1/0 Volume AGC(O) Auto Gain Control 1/0 Emergency(M) 099 MidiVolume Info Normal(M) 099 IPAddress(M) IP Subnet(M) Subn