$ Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
$ Use is subject to license terms.

$#ident  "@(#)usbtest.msg  1.4  05/03/16  SMI"

$ --------------------------------------------------
$ VERBOSE
$ --------------------------------------------------

1 	"Printer: Inst= %d, ID= %s, Mfg= %s, Model= %s, Phys_path= %s, Printer_path= %s , Command= %s, Comment= %s"
2 	"prnio_state: status = 0x%08x (PRN_READY= 0x%08x)"
3 	"prnio_state: ok pins= 0x%02x"
4 	"get_ecpp_status: state=0x%x"
5 	"Sending ASCII data"
6	 "Sending postscript data"
7	 "Starting Printer Test."
8 	"Finished Printer Test (check for printed data pattern after transmit delay)."


50 	"Sample Rate =%6.0f Hz, Freq =%5.0f Hz  MONO %s"
51	"record_flush_test"
52      "audio_drain_test"
53      "\nTest Results:\n"
54	"Pass = %d\n"
55	"Fail = %d\n"
56	"Estimated # of seconds to play & drain the audio file: %d\n"
57	"GetAULength is void! \n"
58	"File took %d seconds to drain\n"
59 	"Testing %s in mixer mode...\n"
60	"Testing %s in compact mode...\n"
61	"Recording - Record Active bits should be set."
62	"Done recording (0x%08x bytes)"
63	"\nStarting record thread...\n"
64	"\n\nFlushing the record stream...\n"
65	"Killing the record thread...\n"
66	"Playback the record buffer...\n"
67	"Pausing the record stream...\n"
68	"Unpausing & killing the record thread...\n"


100	"options:  %s"

$ --------------------------------------------------
$ INFO
$ --------------------------------------------------
2000  %s specific arguments:\n\
		dev=<device name>       (default=/dev/kbd)\n\
		*** USB Printer Specific Option *** \n\
		getdevid=Enable|Disable (getdevid subtest) \n\
		printer=Enable|Disable  (printer test - requires printer)\n\
		data=ascii,postscript   (printer data type)\n\
		delay=<number> (Seconds delay after printing; default= 60)\n\
		*** USB Audio SPecific Option *** \n\
		I=<ioctl device name>       (ex: I=/dev/sound/<unit_no>ctl)\n\
		M[=Enable|Disable]          (Music Test)\n\
		O=<speaker|headphone|line-out> (Music output device)\n\
		V=<0-255> (Music output volume)\n\
		MF=<music file name>        (optional music file)\n



2050    'line-in'
2051    'speaker'
2052    'headphone'
2053    'microphone'
2054	Busy: <%s: Could not open, error = %s>
2055 	Idle: <%s: %s>
2056    audio: Playing %d second(s) 1 KHz tone through the %s port...
2057    done.\n
2058 	Debug status: <%s: %s, Driver: %s, Driver config: name=%s, config=%s, version=%s>
2059 	Error: <%s: Could not open, error = %s>


2100	Busy: <%s: Could not open, error = %s>
2101	Error: <%s: Could not open, error = %s>
2102	, Connector status = device attached, Pin status = 0x%x(%s)
2103	, Connector status = device not attached or offline, Pin status = 0x%x(%s)
2104 	, Connector status = unknown, Pin status = 0x%x(%s)
2105 	, Connector status = loopback connector or device attached, Pin Status = 0x%x(%s)
2106 	"ECPPIOC_GETPARMS: write_timeout=%d, mode=0x%x"

2150	"%s is on."
2151	"Mixer mode set to off successfully"
2152    "Mixer mode restored successfully"
2153	"Received Volume Up.\n PRESS VOLUME DOWN BUTTON ON SPEAKERBOX..."
2154    "PRESS VOLUME UP BUTTON ON SPEAKERBOX..."
2155    "Received Volume Down.\nPRESS MUTE BUTTON ON SPEAKERBOX..."
2156    "Received Mute.\nPRESS ANY BUTTON ON SPEAKERBOX AGAIN..."
2157    "Done.\nControls test passed"\n
2158    "WARNING: Unexpected volume up press."\n
2159    "WARNING: Unexpected volume down press."\n
2160    "WARNING: Unexpected mute press."\n

2200 	"g_usbau_ports: %s, %s\n"
2201	"Sample Rate = %d\n"

$ --------------------------------------------------
$ DEBUG
$ --------------------------------------------------

3000  "Printer [%s] Found"
3001  "Search returns [ 0x%08x ]"
3002  "Free printer %s"
3003  "Open %s OK"
3004  "printerinfo"
3005  "\t%s : %s \n\t\t\t%s\n"
3006  "id=%s, rlen=%d"
3007  "printer string=%s\n"
3008  "get_ecpp_status: state= 0x%08x\n"
3009  "Found is_a_prnio (ret=%d)
3010  "None prnio ret= %d\n"
3011  "phys_path = %s"
3012  "Dev ID Read%d: inst= %d, id= %s, mfg= %s, model= %s, phys_path= %s, printer_path= %s, fd= 0x%x"
3013  "%s: write(%d, 0x%x...0x%x, %d)\n"
3014  "%s: write(%d, si=%d, ei=%d, size=0x%0x)"
3015  "OS Release %s"
3016  "Found data file: %s"
3017  "Printer can%s support Postscript"

3100	"readlink skipping %s"
3101  	"dc_flag = %d"
3102	"Type = %x\n"
3103	"Offset = %d\n"
3104	"Number of data bytes = %d\n"
3105	"Sound format = %d\n"
3106	"Sample rate = %d\n"
3107	"Number of channels = %d\n"

$ --------------------------------------------------
$ WARNING
$ --------------------------------------------------

4000  "No MFG string"
4001   "Can't get prnio_state"
 
4050  "%s: '%s(%s=0x%x, %s=0x%x, %s=0x%x)' system call hanging.  No response after %d seconds.  Device = %s.  retries left = %d." Probable_Cause(s): <Audio hardware (usually consistent failures)> <System software problem (usually intermittent failures do to excessive loading on the system.)>

4051  "%s: '%s(%s=0x%x, %s=0x%x, %s=0x%x)' system call took %d seconds to complete. Warning threshold is %d seconds."

4052	"Error writing sound, not completely written out"
4053	"Can only set the multiple open ioctl in mixer mode\n"
4054	"Error setting the multiple open ioctl, errno %d"
4055	"Can only set the single open ioctl in mixer mode\n"
4056	"Error setting the single open ioctl (errno %d)"

$ --------------------------------------------------
$ ERROR
$ --------------------------------------------------

6000   	"Cannot get printer_info for %s"
6001   	"Can't get printer status"
6002   	"Cannot find %s (inst %d)"
6003   	"Device ID string miscompared : ID read1 [%s] / ID read2 [%s]"

6050   	"%s is not on.  Probable_Cause(s): [Device is not USB compliance]"

6100   	"testprobe_audiotest: Cannot initialize port sturcture"
6101	"ERROR - Sound file is not an AU file\n"
6102	"Sound file didn't drain properly; Est time to drain file: %d sec; actual time to drain file: %d sec\n"
6103	"Error creating audio thread (errno %d)"
6104 	"Ioctl error when flushing the record stream (errno %d)"
6105	"Cannot open %s (errno %d)"
6106	"Error opening the audio file descriptor errno %d"
6107	"Error setting play parameters, errno %d"
6108	"Error setting record parameters, errno %d"
6109	"Error setting play sample rate, errno: %d\n"
6110 	"Error setting record sample rate, errno: %d\n"
6111	"Error setting the record.pause field, errno %d"
6112	"Error clearing the record.pause field, errno %d"
6113	"Error clearing the play.pause field, errno %d"
6114	"Error getting the play sample count, errno %d"
6115 	"Error setting the play sample count, errno %d"
6116 	"Error changing play port, errno %d"
6117	"Error setting play balance, errno %d"
6118	"Error setting record balance, errno %d"
6119	"Error opening sound file, errno %d"
6120	"Error getting the total number of channels, errno %d"
6121	"Error setting play gain, errno %d"
6122	"Error setting record gain, errno %d"
6123	"Error setting play port, errno %d"
6124	"Error setting record port, errno %d"
6125	"Error getting audio device information, errno %d"
6126	"Error setting the play eof count, errno %d"
6127 	"Error getting channel's number (errno=%d)"
6128	"Error calling AUDIO DRAIN, errno %d"
6129	"Error getting the channel's type, errno %d"
6130	"Error getting channel's information (errno=%d)"
6131	"Error getting sample rates (errno=%d)"
6132	"Samples less than num\n"
6133	"Can only switch mixer modes using an audioctl channel\n"
6134	"Error changing modes, errno %d"
6135	"Can only get the mixer's mode using an audioctl channel, errno=%d"
6136	"Error getting the audio mixer's mode, errno %d"
6137 	"ERROR getting audio settings (errno=%d)"
6138	"iotclt AUDIO_SETINFO failed (errno= %d)"
6139	"Bad choice <%s> for the open flags!\n"
6140	"Options are: O_RDWR (Read + Write), O_WRONLY (Write only), O_RDONLY (Read only)\n"
6141	"Bad choice <%s> for -mode!\n"
6142	"Modes choices are: mixer or compat\n"
6143	"Bad choice <%s> for -output!\n"
6144	"Output options: SPEAKER, HEADPHONE, LINE_OUT, AUX1_OUT, AUX2_OUT, SPDIF_OUT\n"
6145	"Bad choice <%s> for -input!\n"
6146	"Input options: MICROPHONE, LINE_IN, CD, SPDIF_IN, AUX1_IN, AUX2_IN, LOOPB\n"
6147	"Bad argument < %s >\n"

$ --------------------------------------------------
$ FATAL
$ --------------------------------------------------

8000 "Failed to open %s (%s)." Probable_Cause(s): <Faulty USB device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8001 "%s: Failed to allocate %d bytes of memory, error = %s." Probable_Cause(s): <System resources temporarily not available, try again.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>


8002 "%s: device does not exist or is otherwise inaccessible." Probable_Cause(s): <Faulty usb device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8003  "Must be super user (root) to execute." Probable_Cause(s): <Operator error.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8004 "Failed ioctl %s, device = %s, error = %s." Probable_Cause(s): <Faulty usb device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8005 "%s: device busy." Probable_Cause(s): <Another process is using the device.> <Someone is printing with the device.> <Faulty usb device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Make sure no other process is using the device.> <Make sure no one is printing to the device.> <Examine system message files (/var/adm/messages) for other information.>


8100 "ECPPIOC_GETDEVID failed (%s)" Probable_Cause(s): <Faulty printer or cable.> <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): < Check printer cable connectivity >

8101 "PRNIOC_GET_IFCAP failed: %s" Probable_Cause(s): <Faulty printer or cable.> <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): < Check printer cable connectivity >

8102 "prnio_state: PRNIOC_GET_1284_STATUS failed: %s" Probable_Cause(s): <Faulty printer or cable.> <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): < Check printer cable connectivity >

8103 "prnio_state: pins = 0x%02x (PRN_1284_PE)" Probable_Cause(s): <Out of paper> <Faulty printer or cable.> <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): < Check paper supply > < Check printer cable connectivity >

8104 "prnio_state: pins = 0x%02x (OFF/UNPLUGGED)" Probable_Cause(s): <Printer is off or unplugged> <Faulty printer or cable.> <Faulty ecpp device or motherboard hardware.> Recommended_Action(s): < Check if printer is off or unplugged> < Check printer cable connectivity >

8105 "prnio_state: pins = 0x%02x (OFFLINE)\n" Probable_Cause(s): <Printer is off-line> <Faulty printer or cable.> <Faulty ecpp device or motherboard hardware.> Recommended_Action(s): < Check if printer is off or unplugged> < Check printer cable connectivity >

8106 "prnio_state: pins = 0x%02x (NOFAULT)" Probable_Cause(s): <Faulty printer or cable.> <Faulty ecpp device or motherboard hardware.> Recommended_Action(s): < Check if paper jammed> < Check printer cable connectivity > 

8107 "prnio_state: pins = 0x%02x (UNKNOWN)" Probable_Cause(s): <Faulty printer or cable.> <Faulty ecpp device or motherboard hardware.> Recommended_Action(s): < Check if paper jammed> < Check printer cable connectivity >

8108  "can't get_ecpp_status" Probable_Cause(s): <Faulty printer or cable.> <Faulty ecpp device or motherboard hardware.> Recommended_Action(s): < Check printer cable connectivity >

8109 "Must select data type to send to printer" Probable_Cause(s): <Operator error.>

8110  "Not on release %s" Probable_Cause(s): <Not running Solaris release 5.x>

8111  "usbtest for parallel printer supports release 5.9, not %d.%d" Probable_Cause(s): <Not running Solaris release 5.9>

8112  "Exclusive and online mode not supported" Probable_Cause(s): <Illegal command line arguement>

8113  "Printer command set does not support postscript printing" Probable_Cause(s): <Printer not a postscript printerr>

8114  "ecpp device busy: device %s, expected mode = 0x%x, observed mode = 0x%x." Probable_Cause(s): <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8115  "Paper out: device %s, expected mode = 0x%x, observed mode = 0x%x." Probable_Cause(s): <Printer out of paper.> <Faulty printer.> <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Check printer.> <Examine system message files (/var/adm/messages) for other information.>"

8116  "Printer offline: device %s, expected mode = 0x%x, observed mode = 0x%x." Probable_Cause(s): <No printer connected or printer offline.> <Faulty printer or cable.> <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Check printer and cable.> <Examine system message files (/var/adm/messages) for other information.>

8117  "Printer error: device %s, expected mode = 0x%x, observed mode = 0x%x." Probable_Cause(s): <Faulty printer or cable.> <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Check printer and cable.> <Examine system message files (/var/adm/messages) for other information.>"

8118  "Printer unplugged: device %s, expected mode = 0x%x, observed mode = 0x%x. " Probable_Cause(s): <Faulty printer or cable.> <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Check printer and cable.> <Examine system message files (/var/adm/messages) for other information.>"

8119 "Unrecognized printer error: device %s, expected mode = 0x%x, observed mode = 0x%x." Probable_Cause(s): <Faulty printer or cable.> <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Check printer and cable.> <Examine system message files (/var/adm/messages) for other information.>"

8120 "Device not in correct mode, device = %s, expected mode = 0x%x, observed mode = 0x%x." Probable_Cause(s): <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8121 "%s: write() failed, device = %s, error = %s." Probable_Cause(s): <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8122 "%s: write count is wrong, expected = %d, observed = %d." Probable_Cause(s):  <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8123 "Failed to open %s (%s)" Probable_Cause(s): <File not installed in current directory.> <User does not have read privileges.> <System software problem.>

8124 "fstat() failed on %s (%s)" Probable_Cause(s): <File not installed in current directory.> <User does not have read privileges.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8125  "mmap() failed on %s (%s)" Probable_Cause(s): <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8126 "Cannot access postscript files in: %s, %s/%s and %s%s" Probable_Cause(s): <File not installed in above directories.> <User does not have read privileges.> <System software problem.>

8127  "Unsupported option for the device type selected" Probabale_Cause(s): <operator error>

8200  "%s(%d, %s, 0x%x) failed: %s"
8201  "Unable to get platform name."
8202  "%s(%s, 0x%x) failed: %s"
8203  "Only one %s loopback can be selected at a time"
8204  "Cannot enable loopback testing without selecting a loopback type"

8250    "Mixer is turned on. Please turn mixer off with "mixerctl -o" before running this test again."
8251    "Failed call to AUDIO_MIXERCTL_GET_MODE on device %s; errno = %d"
8252    "Mixer was busy"
8253    "Failed call to AUDIO_MIXERCTL_SET_MODE on device %s; errno = %d"
8254	"%s: '%s(%s=0x%x, %s=0x%x, %s=0x%x)' system call timeout.  No response after %d seconds.  Device = %s" Probable_Cause(s): <Audio hardware (usually consistent failures)> <System software problem (usually intermittent failures)>

$ --------------------------------------------------
$ CONSOLE
$ --------------------------------------------------

9000  "Usbaudio: playing 2 seconds 1 KHz tone through the speaker port...done.\n"

$ --------------------------------------------------
$ PROBE
$ --------------------------------------------------


10001 "WARNING: usb device (%s) exists but could not be opened, error = %s.\n"
10002 "ERROR: Must select data to send to printer."
10003 "usbppptest: sysinfo SI_RELEASE failed (%s)"

10004 "ERROR: Only one %s loopback can be selected at a time"
10005 "ERROR: Cannot enable loopback testing without selecting a loopback type"
10006 "WARNING: audio probe error: "

10010 "INFO: could not open %s. \n"
10011 "INFO: Please make sure that both the usb-speaker and usb-microphone are connected.\n"
