• No results found

Using the CFG Files

In document cable (Page 24-40)

Using the CFG Files

To use the .cfg file within this document open up the relevant file and copy all of the text below the title (without including the title) to the clipboard.

Launch your favourite text editor (e.g. windows notepad) and paste the contents of the clipboard into the new untitled text file.

Save the text file with the same filename as the title (e.g. tw.cfg) - remembering to change the drop-down box in the notepad "save as" menu to "all files".

Editing the .cfg file with your local area ID

Tip: You can get your local area ID from the local area ID table Open up tw.cfg with wordpad. find the lines where it says:

:Network ID

Set Network ID ntl 406141060

Set Network ID

406141060<<<<<<<<<<<< change the last five digits of this to your area id number.

Get Network ID 4010

Save a copy of the file somewhere safe. It will be needed later.

tw.cfg

******************************************************

* *

* Cable & Wireless Phase 2 *

* DigDebug 2.3 Config File Version 1.8 *

* (c)2003 Bloggs Micro Technology Released xx/xx/xx *

* *

* Written By Fred Bloggs, Test Software Department *

* *

* Version History Phase 1 *

* Ver Date By Comment *

* 1.1 08/03/99 Initial Version *

* 1.2 28/05/99 Various commands added *

* 1.3 07/07/99 Various commands added *

* 1.4 16/07/99 MCNS Tune command for build 45.2 *

* 1.5 21/09/99 Channel select command added for *

* Nagra playout. *

* 1.5 10/04/00 SW 'R' commands modified to include *

* factory feed or true MCNS *

This Digdebug config is used to test the interface for the Cable & Wireless digital unit.

It is for use with the Windows 95 DigDebug.exe program

This file should be be read in conjuction with the spec for testtask comms for Cable & Wireless receiver

Usage Notes:

COMMAND is product specific command code

LABEL is currently always zero but in future may have the MSB of BYTE count BYTECOUNT is num of bytes in data field

DATA is a variable num of bytes depending on packet so smallest packet is 5 bytes (bytecount=0)

Sections in the file start with a tag in column 1 ie *COMMANDS or *RESPONSES then the data follows in pairs of lines

for commands it is :

line1:description seen in window line2:packet (less sync,sync)

note that the software recalculates the byte count before transmission so although is is needed as a placeholder it can be left at 0.

for responses:

line1:is received bytes to match (less sync,sync) line2:is message for response window

Packets in the both lists do not have the sync sync, its hard to type it in the software adds it for you.

to insert user text into a packet add *(TXTPrompt) in the packet where definition Prompt is the text used on the input window which will

pop up for you to enter the text

There is a special packet that does not get sent to the product it is d015 which causes the software to wait, the delay is specified by the last digit, in this above example a 5 sec delay is set.

to spec a value > 9 use the ascii char where char code= val+48d i.e. d01D=20 Multiple packets can be specified by a space in between and hence

spaces cannot be used inside packets.

special escape sequences can be used at present they are as follows:

\r replaced by char 13d

\n replaced by char 10d

*COMMANDS

Start Test (Done Automatically) 000

Version Number 200

Product ID :00

Tune to PMF Test

Q0;06907506952 d012 O0@0908090A09080000 Memory Test - Flash 3010

Memory Test - SDRAM 3011

Memory Test - BCM3250 SDRAM 3012

Memory Test - CL9300 SDRAM 3013

Memory Test - GTX DRAM 3014

Memory Test - SRAM 3015

:Network ID

Set Network ID ntl 406141060

Left Audio Attenuation On 50510010

Right Audio Attenuation On 50510001

Left+Right Attenuation On 50500011

Left + Right Attenuation Off 50510000

LED Control - All ON 70:7?7?7?7?71 LED Control - 55 70:5500000000 LED Control - All OFF 70:0000000000

LED Control Colon On 70:0000000001

:IR and Key Controls IR Front Panel Test 8010

Mondex Init (Do this first!) A014

Reset Nagra Card Read Real Time Clock H010

Reset Real Time Clock H011

:Parallel port

Parallel Port Walking '1's I010

Parallel Port Reset Chip I01E

Parallel Port Read Status I01F

Tune to MCNS 331MHz (Low Level) R0=0331000695211

MCNS 586.750 MHz R0=0586750695211 MCNS 309.250 MHz R0=0309250695211

MCNS 586.750 MHz (64 QAM) R0=0586750695211

MCNS 586.750 MHz (256 QAM) R0=1586750695211

Tune + Lock 8.0 MHz DVB on MCNS R0=0690750695200

603MHz QAM 256(BER) DVB on MCNS R0=1603000695200

MCNS BER 683.000 MHz R0=0683000695211

Tune to MCNS 830MHz(BER) R0=0830000695211

MCNS 830 64QAM R0=0830000695211 :DVB Tune

BER DVB 495.250 MHz (low) Q0;04952596952

Tune to DVB 760MHz(BER) Q0;07600006952

Tune to 603MHz QAM 256(BER) Q0;16030006952

Tune to DVB 309.250MHz(Low Level) Q0;03092506952

Tune to DVB 690.750 MHz(Playout) Q0;06907506952

Tune to DVB 666.750 MHz(Nagra1) Q0;06667506952

Tune to DVB 462.000 MHz(Nagra2) Q0;04620006952

O0@020002811FFE0000

Channel 3 (Nagra Card) U03003

CIM 8MHz Tone Full Amp P0?081000710040001 CIM 10MHz Tone Full Amp P0?101000710040001 CIM 8MHz Tone Half Amp P0?081000350040001

:Read Nagra / MAC Read Nagra Serial No

=010

Read MAC address

=011

Scart Routing IRD - TV Composite

*010

Scart Routing IRD - TV RGB

*012

Scart Routing VCR - TV Composite

*016

Scart Routing VCR - TV RGB

*018

VCR Pin 8 Status +013

Flash ID U5603

GTX Tone 1KHz 100 Amp

%0310A

GTX Tone 1KHz 90 Amp

%03109

GTX Tone 1KHz 80 Amp

%03108

GTX Tone 1KHz 50 Amp

%03105

UHF 21 Test Pattern )0521100

UHF 38 )0538000

UHF 38 Test Pattern )0538100

UHF 69 )0569000

UHF 69 Test Pattern )0569100

70:4000000000

7-Seg 25

responses have a packet to match and the message to display when it is found. The sync,sync is not included in the file

but is taken care of by the software.

A special packet field TEST should be included which is matched if the AT command and response is found. The AT and response to initiate testtask is handled automatically when a receiver is powered up while connected to a PC running the software.

Another special field DELAY is matched when the special delay packet is sent.

In general leave these entries alone.

To include decoded values out of the packet in the response window use

%hxy in the text line where x is the position of the value in the

received packet (1st char is number 0 and count should include 2 for sync,sync) and y is how many to use for the value ie 1 byte, 2bytes, 4bytes

see existing entries for example.

note that the packet must use 'funny hex' ie 0123456789:;<=>?

to spec a value > 9 use the ascii char where char code= val+48d i.e. D=20 To help with decoding the matched bytes are only matched up to the length in this list.Once a match has been found the process stops. This means that you can give some fully decoded entries ie 1010 and 1011 and then give a 'catch all' entry ie 101.

*RESPONSES

CERR

SWare & HWare Version 30500000

Flash Pass 303122

SDRAM Test Not Applicable 30220

Menu Down (Pressed)

9040571

Right (Released)

A010

Real Time Clock Read (Day%h;4 %h91%h:1:%h71%h81:%h51%h61) )00

Nagra / Mac numbers

?00

Parallel Port Fail

Cable Failed to Start S02ZZ

How to Convert Your IRD # and Other

In document cable (Page 24-40)

Related documents