$  Copyright(c) 2002 Sun Microsystems, Inc.
$  All rights reserved.

$  #ident  "@(#)sc2test.msg 1.5 01/13/03 Copyright (c) 2002 Sun MicroSystems Computers Inc."

$ Message ID ranges:
$ VERBOSE  1 ~ 1999
$ INFO     2000 ~ 3999
$ WARNING  4000 ~ 5999
$ ERROR    6000 ~ 7999
$ FATAL    8000 ~ 9998
$ 9999 is reserved by test library for old style messages.
$ 0 is reserved and is an invalid message for all tests.

$ *********************************************
$ *VERBOSE* messages
$ *********************************************
$ TEST_RUN_VMSG 1
1	"Running functional test..."

102	"Start testing..."
103	"testopts=%s"
104	"Invoking cleanup"

300	 "Starting scmregstest, dev at %s"
301	 "Card is %s present"
302	 "Starting scmreadtest, dev at %s" 
303	 "Powering up the card..." 
304	 "Write 0x%0x to %s registser"
305	 "Read %s registser = 0x%x"
306	 "starting IOC_START_XMTRCV_POLLING"
307	 "Card reset done"
308	 "Card not present"
309	 "Reading data..."
310	 "No data read. Check card orientation."
311	 "data = 0x%x count = %d"
312	 "Card Insertion test"
313	 "Cyberlex  serial no: 0x%s"
314	 "          batch: 0x%02x"
315	 "          major: 0x%02x"
316	 "          minor: 0x%02x"
317	 "          cardtype: 0x%02x"
318	 "          cardtype: Augumented-crypto"
319	 "          cardtype: Crypto"
320	 "          cardtype: Unknown cyberflex type"
321	 "          cardstring: 0x%s"
322	 "          class: 0x%02x"
323	 "Walk1s: Reg %s Obs=0x%02x, Exp=0x%02x"
324	 "Walking 1s Test %s"
325	 "device_name: %s"
326	 "No matching ATR found; Retry %d in %d seconds"
327      "    card serial no: 0x%s"
328      "     customer code: 0x%s"
329      "         manuf fac: 0x%02x"
330      "         util code: 0x%02x"
331      "            OS ver: 0x%s"
332      "      Augmented-Crypto uses class byte 00h"
333      "      Augmented-Crypto uses class byte F0h"
334      "      Crypto uses class byte 00h"
335      "      Crypto uses class byte F0h"

1500	 "rd reg %s"
1501	 "rd offset= 0x%04x"
1502	 "Read reg %s, obs= 0x%02x, exp= 0x%02x, xor= 0x%02x."
1503	 "Write 0x%02x in register INS=0x%08x"
1504	 "Read 0x%02x in register INS=0x%08x"
1505	 "Starting IOC_START_XMTRCV_POLLING"
1506	 "Stop IOC_STOP_XMTRCV_POLLING"
1507	 "Set SendTimeout 0x%08x"
1508	 "Set ReceiveTimeout 0x%08x"
1509	 "%s"
1510	 "STC extended errs = 0x%08x"
1511	 "num_received = %d"
1512	 "T0_receiveINSByte: INS Exp/Obs = 0x%02x/0x%02x"
1513	 "T0_readSW: Read SW byte0 = 0x%02x"
1514	 "T0_readSW: Read SW byte1 = 0x%02x"
1515	 "T0_readSW: Exp/Obs = 0x%02x/0x%02x"
1516	 "Power off the card"
1517	 "Init UART"
1518	 "Reset card"
1519	 "Turn off power"
1520	 "Card reset done"
1521	 "Card is inserted"
1522	 "ATRs for %s card found (Type %d)."
1523	 "Send SELECT FILE ID 0x0002"
1524	 "Send GET RESPONSE"
1525	 "READ RECORD"
1526	 "Reading data"
1527	 "GET DATA"
1528	 "Receiving data"
1529	 "Starting APDU test"
1530	 "Card not present (retry %d)"
1531	 "Reading ATR"
1532	 "Read reg %s, Data= 0x%02x"


$ *****************************************************
$ *INFO* messages (includeing INFO, CONSOLE, and LOGFILE)
$ No double quotes (" ") is needed for INFO messages.
$ *****************************************************

$ USAGE_1 2000

2000	"%s specific arguments [defaults]:\n\
    regs=[Enable|Disable]		Regs read and walking 1's tests enable\n\
    atr=[Enable|Disable]        	AnswerToReset tests enable\n\
    apdu=[Enable|disable]    		card unique ID test enable\n"

$ USAGE_2 2001

2001	[mode= ][,ocfbasedtest= ][,cardremovaltest= ][,dev= ]\n

2010	"Callback %s invoked"
2011	"ocf_test starts"
2012	"Status=%d Handle=%d"
2013	"Card is present"
2014	"Card is not present: status=%d"
2015	"Card removed\n"
2016	"Timeout, Card not removed: status=%d"
2017	"Enter Password: "
2018	"Waiting for card removal"

2100	"Card is present"
2101	"Card is not present"

2102	"Connected <Device %s: Regs read Test %s>"
2103	"Connected <Device %s: Walking 1s Test %s>"

$ *********************************
$ *WARNING* messages
$ *********************************
$ TEST_WARNMSG 4000

4005	"Unknown interface"
4008	"Card not present.. Check card; Retry %d in %d seconds"

4100	"read failed, errno = %d, num_received=%d, rc=%d"

$ ********************************
$ *ERROR* messages
$ ********************************


6100	"Cannot open device %s, %s."\
Probable_Cause(s): \
<i2c device driver not installed> \
<System software error>\
Recommended_Action(s): \
<Install i2c device driver> \
<Check device tree configuration i.e. #prtconf> \
<Contact SUNvts support>

6101	"Ioctl %s failed, %s."\
Probable_Cause(s): \
<Device driver not installed> \
<System software error>\
Recommended_Action(s): \
<Install i2c device driver> \
<Check device tree configuration i.e. #prtconf> \
<Contact SUNvts support>

6102	"read failed, %s."\
Probable_Cause(s): \
<Connectivity problem> \
<Card not seated>\
<Faulty reader>\
Recommended_Action(s): \
<Check cable connectivity> \
<Check card> \
<Replace reader and retry> \
<Contact SUNvts support>

6103	"write failed (error %d)"\
Probable_Cause(s): \
<Connectivity problem> \
<Card not seated>\
<Faulty reader>\
Recommended_Action(s): \
<Check cable connectivity> \
<Check card> \
<Replace reader and retry> \
<Contact SUNvts support>

6150	"Reg %s read data miscompared, obs= 0x%02x, exp= 0x%02x, xor= 0x%02x"\
Probable_Cause(s): \
<Faulty cardreader>\
<Potential cable connectivity>\
<System software error>\
Recommended_Action(s): \
<Replace cardreader> \
<Check cable connectivity> \
<Contact SUNvts support>

6151	"writereg ioctl failed (error %d)"\
Probable_Cause(s): \
<Potential cable connectivity>\
<Potential faulty cardreader>\
<System software error>\
Recommended_Action(s): \
<Check cable connectivity> \
<Replace cardreader> \
<Contact SUNvts support>

6152	"read ioctl failed (error %d)"\
Probable_Cause(s): \
<Potential cable connectivity>\
<Potential faulty cardreader>\
<System software error>\
Recommended_Action(s): \
<Check cable connectivity> \
<Replace cardreader> \
<Contact SUNvts support>

6153	"IOC_START_XMTRCV_POLLING ioctl failed (errno %d)"\
Probable_Cause(s): \
<Potential cable connectivity>\
<Potential faulty cardreader>\
<System software error>\
Recommended_Action(s): \
<Check cable connectivity> \
<Replace cardreader> \
<Contact SUNvts support>

6154	"IOC_STOP_XMTRCV_POLLING ioctl failed (errno %d)"\
Probable_Cause(s): \
<Potential cable connectivity>\
<Potential faulty cardreader>\
<System software error>\
Recommended_Action(s): \
<Check cable connectivity> \
<Replace cardreader> \
<Contact SUNvts support>

6155	"IOC_SET_WRITETIMEOUT ioctl failed (errno %d)"\
Probable_Cause(s): \
<Potential cable connectivity>\
<Potential faulty cardreader>\
<System software error>\
Recommended_Action(s): \
<Check cable connectivity> \
<Replace cardreader> \
<Contact SUNvts support>

6156	"IOC_SET_READTIMEOUT ioctl failed (errno %d)"\
Probable_Cause(s): \
<Potential cable connectivity>\
<Potential faulty cardreader>\
<System software error>\
Recommended_Action(s): \
<Check cable connectivity> \
<Replace cardreader> \
<Contact SUNvts support>

6157	"ioctl extended error failed (error = %d)"\
Probable_Cause(s): \
<Potential cable connectivity>\
<Potential faulty cardreader>\
<System software error>\
Recommended_Action(s): \
<Check cable connectivity> \
<Replace cardreader> \
<Contact SUNvts support>

6158	"IOC_NUMRECIEVED failed (errno %d)"\
Probable_Cause(s): \
<Potential cable connectivity>\
<Potential faulty cardreader>\
<System software error>\
Recommended_Action(s): \
<Check cable connectivity> \
<Replace cardreader> \
<Contact SUNvts support>

6159	"ioctl IOC_NUMRECEIVED returns 0 bytes"\
Probable_Cause(s): \
<Potential cable connectivity>\
<Potential faulty cardreader>\
<System software error>\
Recommended_Action(s): \
<Check cable connectivity> \
<Replace cardreader> \
<Contact SUNvts support>

6160	"T0_receiveINSByte: expected 1 byte, read %d bytes"

6161	"T0_receiveINSByte: INS miscompared Exp/Obs = 0x%02x/0x%02x"\
Probable_Cause(s): \
<Potential cable connectivity>\
<Potential faulty cardreader>\
<System software error>\
Recommended_Action(s): \
<Check cable connectivity> \
<Replace cardreader> \
<Contact SUNvts support>

6162	"T0_ReadSW: expected 1 bytes, read %d bytes"

6163	"T0_readSW: SW miscompared Exp/Obs = 0x%04x/0x%04x"\
Probable_Cause(s): \
<Potential cable connectivity>\
<Potential faulty cardreader>\
<System software error>\
Recommended_Action(s): \
<Check cable connectivity> \
<Replace cardreader> \
<Contact SUNvts support>

6164	"Unexpected status length obs/exp = %d/%d"\
Probable_Cause(s): \
<Potential cable connectivity>\
<Potential faulty cardreader>\
<System software error>\
Recommended_Action(s): \
<Check cable connectivity> \
<Replace cardreader> \
<Contact SUNvts support>

6165	 "Odd number of bytes in ATR %s (length=%d)"\
Probable_Cause(s): \
<ATR contains odd number of bytes>\
Recommended_Action(s): \
<Check sctest.atr file> \
<Contact SUNvts support>

6166	 "Cannot open %s (errno %d)"\
Probable_Cause(s): \
<Connectivity problem> \
<Card not seated>\
<Faulty reader>\
Recommended_Action(s): \
<Check cable connectivity> \
<Check card> \
<Replace reader and retry> \
<Contact SUNvts support>

6167	 "IOC_CARDINSERTED failed (error %d)"\
Probable_Cause(s): \
<Connectivity problem> \
<Card not seated>\
<Faulty reader>\
Recommended_Action(s): \
<Check cable connectivity> \
<Check card> \
<Replace reader and retry> \
<Contact SUNvts support>

6168	 "Card not present"\
Probable_Cause(s): \
<Connectivity problem> \
<Card not seated>\
<Faulty reader>\
Recommended_Action(s): \
<Check cable connectivity> \
<Check card> \
<Replace reader and retry> \
<Contact SUNvts support>


6169	 "cyberflex_receive_data_decode buffer overflow"\
Probable_Cause(s): \
<Software error>\
Recommended_Action(s): \
<Retry> \
<Contact SUNvts support>

6170	 "Cyberflex CardString data miscompared; Offset= 0x%02x, Obs= %s, Exp= %s or %s"\
Probable_Cause(s): \
<New batch of card>\
<Unsupported card>\
<Faulty card or reader>\
Recommended_Action(s): \
<Update ATR file> \
<Rerun with known good card> \
<Check cable connectivity> \
<Contact SUNvts support>

6171	 "APDU test failed for Cyberflex failed"\
Probable_Cause(s): \
Recommended_Action(s): \
<Contact SUNvts support>

6172	 "Unique ID test failed, unknown ATR"\
Probable_Cause(s): \
<New batch of card>\
<Unsupported card>\
<Faulty card or reader>\
Recommended_Action(s): \
<Update ATR file> \
<Rerun with known good card> \
<Check cable connectivity> \
<Contact SUNvts support>

6173	  "Illegal non-hex-digit (%c) detected in ATR\n"\
Probable_Cause(s): \
<Error in ATR file>\
Recommended_Action(s): \
<Check ATR file>

6174	  "Walk1s: access size 0x%x not supported"\
Probable_Cause(s): \
<Software error>\
Recommended_Action(s): \
<Contact SUNvts support>

6175	  "ioctl IOC_WRITEREGISTER %s failed (%s)"\
Probable_Cause(s): \
<Faulty card or reader>\
Recommended_Action(s): \
<Check cable connectivity> \
<Rerun with known good card> \
<Contact SUNvts support>

6176	  "ioctl IOC_READREGISTER %s failed (%s)"\
Probable_Cause(s): \
<Faulty card or reader>\
Recommended_Action(s): \
<Check cable connectivity> \
<Rerun with known good card> \
<Contact SUNvts support>

6177	  "Reg %s walking 1 miscompared Obs=0x%02x, Exp=0x%02x"\
Probable_Cause(s): \
<Faulty card or reader>\
Recommended_Action(s): \
<Check cable connectivity> \
<Rerun with known good card> \
<Contact SUNvts support>

6178	  "Reg %s walking 1s failed"\
Probable_Cause(s): \
<Faulty card or reader>\
Recommended_Action(s): \
<Check cable connectivity> \
<Rerun with known good card> \
<Contact SUNvts support>

6179	  "ocfserv active (process pid %d)"\
Probable_Cause(s): \
<ocfserv or dtlogin are running>\
Recommended_Action(s):\
<use pkill command to terminate ocfserv>\
<Rerun test>

6180	  "Read ATR test failed after %d retries"\
Probable_Cause(s): \
<New batch of card>\
<Faulty card or reader>\
Recommended_Action(s): \
<Update ATR file with new ATR> \
<Check cable connectivity> \
<Rerun with known good card> \
<Contact SUNvts support>

6181	  "retry delay %d out of range"\
Probable_Cause(s): \
<command line argument error>\
Recommended_Action(s): \
<Rerun with positive delay>

6182	  "Error loading from ATR file (%d)"\
Probable_Cause(s): \
<errors in ATR file>\
Recommended_Action(s): \
<Examine ATR file entry or file access permission>

6183	  "Invalid argument %s"\
Probable_Cause(s): \
<command line argument error>\
Recommended_Action(s): \
<Rerun with -u argument for usage> \
<Rerun with valid argument(s)>

$
$ sample message
$
$6009	"Probe failed. %s devices not found\n"\
$Probable_Cause(s): \
$<Check if i2c device driver SUNWi2cr.[ux] is installed>\
$<platform(s) not supported>
$6011	"Device %s voltage ** Not Ok ** "\
$Probable_Cause(s): \
$<Faulty voltage sensor>\
$<Faulty power supply>\
$Recommended_Action(s): \
$<Check voltage senor data path>\
$<Check power supply>
$6013	"WARNING!! Device %s, Current Temprature <%d> exceeds MaxTemp <%d>"\
$Probable_Cause(s): \
$<Faulty temperature sensor>\
$<Faulty device(s)>\
$<Obstructed air flow>\
$Recommended_Action(s): \
$<Check temperature senor data path>\
$<Check devices under monitor for abnormal heat dissipation>\
$<Check for obstruction in air flow and corrected accordingly if applicable>
$6901	"ERROR: cannot find property node for %s"\
$Probable_Cause(s): \
$<Check if i2c device driver SUNWi2cr.[ux] is installed> \
$<System software error>\
$Recommended_Action(s): \
$<Install SUNWi2cr.[ux] packages> \
$<Contact SUNvts support>

$ ********************************
$ *FATAL* messages
$ ********************************


