Keycorp Limited
Latest News



Home  /  Support  /  I.D.E.E.A.  /  I.D.E.E.A. FAQs  / Inconsistency between I.D.E.E.A. and terminals when setting environment variables [REF:CPR1165]
Inconsistency between I.D.E.E.A. and terminals when setting environment variables [REF:CPR1165]
 
There is an inconsistency to do with "WORD" type environment variables which leads to a number of problems:1. The same user code produces different results when run under IDEEA and on a terminal2. Appman is incorrectly setting Power Off time out (DPT) and Activity Timeout (DBT) timeout values based on the incorrect format of data being downloaded from IDEEA.3. It is not clear how "WORD" type environment variables should be entered in IDEEA settings (ie how is a binary value of 0x0006 to be entered). Context sensitive help or instructions should be available when entering these values.4. The default values for DPT and DBT provided in IDEEA appear to be incorrectly interpreted by Appman as a setting of "0" seconds turns out to be 50:00 minutes on the terminal (K78). Ideea version is 4.2.2Appman version is 2.18The results from the same code run from IDEEA and the k78 are: RUN FROM IDEEADPT:x0000DBT:x3C00 RUN FROM A K78DPT:x30303030DBT:x30303630 The following is the code used to demonstrate this (full module attached): ERRNO AppPowerUp(FLAG fFastPowerOn){ ERRNO xErr; BYTE bEnvVarLen; BYTE bEnvVar[10]; TEXT tEnvName[4];... strcpy( tEnvName, "DPT" ); bEnvVarLen = sizeof( bEnvVar ); xErr = ApmGetEnvVar( tEnvName, (BPTR)&bEnvVar, (BPTR)&bEnvVarLen ); DebugHexStream( D1_OUTPUT_INFO_MSG, tEnvName, bEnvVar, bEnvVarLen ); strcpy( tEnvName, "DBT" ); bEnvVarLen = sizeof( bEnvVar ); xErr = ApmGetEnvVar( tEnvName, (BPTR)&bEnvVar, (BPTR)&bEnvVarLen ); DebugHexStream( D1_OUTPUT_INFO_MSG, tEnvName, bEnvVar, bEnvVarLen );