From: Kenneth S. <Kenneth.Straver@Sun.COM> - 2007-02-08 19:43:09
|
All : having trouble interpreting the version SAI-HPI-B.02.01 for api call saHpiControlSet. When using the saf test in test section" HPI-B.01.01/src/control/saHpiControlGet" test 10.test it appears that they are attempting to change the control text datatype from whatever it is, currently ASCII6 in this case, to UNICODE and it produces an error. The control type is set to TEXT. Here is a snippet of the code from the test : if (retval == SAF_TEST_UNKNOWN) { CtrlOldState = CtrlSetState = CtrlState; CtrlSetState.StateUnion.Text.Line = 1; CtrlSetState.StateUnion.Text.Text.DataType = SAHPI_TL_TYPE_UNICODE; // set text content CtrlSetState.StateUnion.Text.Text.Language = SAHPI_LANG_ENGLISH; CtrlSetState.StateUnion.Text.Text.Data[0] = 0xff; CtrlSetState.StateUnion.Text.Text.Data[1] = 0xfe; CtrlSetState.StateUnion.Text.Text.Data[2] = 0x11; CtrlSetState.StateUnion.Text.Text.Data[3] = 0x62; CtrlSetState.StateUnion.Text.Text.DataLength = 4; CtrlMode = SAHPI_CTRL_MODE_MANUAL; status = saHpiControlSet(session, resourceId, c_num, CtrlMode, &CtrlSetState); It returns an error of Return value: SA_ERR_HPI_INVALID_DATA. If the data type is changed to another text type such as "SAHPI_TL_TYPE_TEXT" it works OK. It seems to have a problem with data type SAHPI_TL_TYPE_UNICODE. Is this possible or whatever is stipulated by the RDR need to be matched by the set data? The spec really does not say exactly what can be done here. Also, is there a later version of the saf test? Thanks. Regards Ken Straver -- ================================================= Ken Straver - SSQA Sun Microsystems, Inc. MS AUS09; Building C 5300 Riata Park Court, Bldg 9 Austin, TX 78727 Phone: 512 401-1121 (x64121) Office: 1105 Email: Kenneth.Straver@Sun.Com ================================================= |