User Tools

Site Tools


ch10_13_handbook:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
ch10_13_handbook:start [2014/08/11 16:38] – [DOCUMENT PURPOSE] pferrillch10_13_handbook:start [2014/08/12 11:28] – [DOCUMENT PURPOSE] pferrill
Line 16: Line 16:
 IRIG 106-09 added the ability to issue Chapter 6 commands via a TELNET interface. It does not specify how this interface is to be configured nor does it provide any specific commands for that purpose. IRIG 106-09 added the ability to issue Chapter 6 commands via a TELNET interface. It does not specify how this interface is to be configured nor does it provide any specific commands for that purpose.
  
---------+==== SAMPLE CODE ==== 
 +Many if not most programmers learn best from sample code. This update to the IRIG 106 Programmer's Handbook adds a number of new code samples in multiple languages to show how to process different data types and specific features of the Chapter 10 file format. These samples are linked below on individual pages to make it easy to access. A number of these samples use the C library available from [[http://sourceforge.net/projects/irig106/|sourceforge]].
  
 +[[Python Code using DLL]]
 +--------
 ==== CR031 - XML Mapping to Chapter 10 ==== ==== CR031 - XML Mapping to Chapter 10 ====
  
-It was decided during an Recorder Vendor Working Group telecon to push CR031 into an appendix of the next release of the programmer's handbook. The work on this was submitted by Christian Rueck of Data Bus Tools GmbH. +It was decided during an Recorder Vendor Working Group telecon to push CR031 into an appendix of the next release of the programmer's handbook. The work on this was submitted by Christian Rueck of Data Bus Tools GmbH. The XML below presents one example of a file definition based on this concept.
  
 <code XML> <code XML>
 <?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
-<cns:ch10 xmlns:cns="http://www.example.org/XMLCH10Mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" +<cns:ch10 xmlns:cns="http://www.example.org/XMLCH10Mapping"  
-xsi:noNamespaceSchemaLocation="XMLCH10Mapping.xsd" xsi:schemaLocation="http://www.example.org/XMLCH10Mapping XMLCH10Mapping.xsd  +  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
-">+  xsi:noNamespaceSchemaLocation="XMLCH10Mapping.xsd"  
 +  xsi:schemaLocation="http://www.example.org/XMLCH10Mapping XMLCH10Mapping.xsd">
  
 <!-- Include some predefined TMATS file --> <!-- Include some predefined TMATS file -->
Line 50: Line 54:
          
 <!-- Further attributes could be defined but are optional--> <!-- Further attributes could be defined but are optional-->
-    <cns:Packet ChannelID="1" RTC="c+10000000" ChecksumType="CRC16" DataType="Time Format 1" DataTypeVersion="106-13">+    <cns:Packet ChannelID="1" RTC="c+10000000" ChecksumType="CRC16"  
 +      DataType="Time Format 1" DataTypeVersion="106-13">
         <cns:TimeData MonthYearAvailable="True" LeapYear="True" TimeFormat="IRIG B" TimeSource="External">         <cns:TimeData MonthYearAvailable="True" LeapYear="True" TimeFormat="IRIG B" TimeSource="External">
             <cns:TimeDataRelativeContent Offset="1000000000"/>             <cns:TimeDataRelativeContent Offset="1000000000"/>
Line 57: Line 62:
                  
 <!-- Errors can be introduced--> <!-- Errors can be introduced-->
-    <cns:Packet ChannelID="1" RTC="c+10000000" DataType="Time Format 1" DataLength="+2" PacketLength="27" HeaderCRC="+0001" DataOverflow="True" SequenceNumber="+5" DataCRC="1234">+    <cns:Packet ChannelID="1" RTC="c+10000000" DataType="Time Format 1" DataLength="+2"  
 +      PacketLength="27" HeaderCRC="+0001" DataOverflow="True" SequenceNumber="+5" DataCRC="1234">
         <cns:GenericData>         <cns:GenericData>
             <cns:Bytes>0F 12 31 EF 6B</cns:Bytes>             <cns:Bytes>0F 12 31 EF 6B</cns:Bytes>
Line 80: Line 86:
  
 <!-- raw data like packet flags and CSDW can be defined as a base an modified by further options --> <!-- raw data like packet flags and CSDW can be defined as a base an modified by further options -->
-    <cns:Packet ChannelID="1" RTC="c+10000000" DataType="Time Format 1" PacketFlags="3F" DataOverflow="True" +    <cns:Packet ChannelID="1" RTC="c+10000000" DataType="Time Format 1" PacketFlags="3F"  
-SecondaryHeaderTimeFormat="Chapter 4 Binary">+      DataOverflow="True" SecondaryHeaderTimeFormat="Chapter 4 Binary">
         <cns:TimeData CSDW="31e5893C" LeapYear="True" TimeSource="Internal From RMM">         <cns:TimeData CSDW="31e5893C" LeapYear="True" TimeSource="Internal From RMM">
             <cns:TimeDataRelativeContent Offset="1000000000"/>             <cns:TimeDataRelativeContent Offset="1000000000"/>
ch10_13_handbook/start.txt · Last modified: 2014/09/12 15:40 by mcferrill

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki