Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Sun Nov 19, 2017 8:58 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Jun 07, 2011 12:13 am 
Offline

Joined: Mon Mar 21, 2011 2:40 pm
Posts: 22
On a Qterm-G72 and Qlarity 2.63, I have stored a half-dozen "factory configuration" parameters in the user config memory area (not the Flash File System). One of these parameters is written if and only if my program detects that the parameter has not yet been defined/written -- which is what is expected just after the first bootup of the program. After the installer configures the parameter(s), the values are stored and the terminal will not ask the user/installer for that information again -- even after subsequent restarts.

Problem is, I sometimes need to erase that configuration point in order to "start-over" with a fresh terminal. I thought clearing the FFS from the power-up screen would do it, but it only clears the flash file area.

I need to know if I can erase user config area or if I can write a temporary program that can effectively clear the config points.


Top
 Profile  
 
PostPosted: Tue Jun 07, 2011 8:04 am 
Offline
User avatar

Joined: Thu Mar 02, 2006 2:12 pm
Posts: 487
Location: Salt Lake City, Utah
If you are using the PersistentVariables object, then you can clear the user config area by downloading an application with this code in Globals.

Code:
func Startup ()
    handles MSG_INIT
    WriteUserConfig("\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF")
    return
endfunc

_________________
Ron L.

http://www.beijerelectronicsinc.com/


Top
 Profile  
 
PostPosted: Wed Jun 08, 2011 7:09 am 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
To restore the user config to the factory default state use:

Code:
dim buf[] as byte
init buf := [255]
dim i as integer
'Fill buffer with 8192 0xFF characters.
for i = 1 to 13
    buf = buf + buf
next
WriteUserConfig(buf)

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group