Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Sat Nov 18, 2017 5:54 pm

All times are UTC - 7 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Fri Jun 22, 2007 8:41 am 
Offline
User avatar

Joined: Thu Mar 02, 2006 2:12 pm
Posts: 487
Location: Salt Lake City, Utah
1. In the Hardisk/bin folder is a file called boot.bat. You can edit this file to execute your program. The problem with this is that many windows resources such as the Ethernet port may not be available at that time of boot up. You have some options to deal with this problem.

A. Add code to the boot.bat file to copy another .bat file into /Windows/Startup.

B. Use windows api's to determine if a resource is available in your program, and delay until the resource becomes available.

C. Add a period of sleep at the beginning of your program. I would not reccomend this for a long term solution.



The command lockce can be used to make boot.bat editable (i.e. lockce 0 boot.bat).



2. In future units, we may change Windows/Startup into Hardisk/Startup for persistence, so be sure to check the location of your Startup folder on your Treq. If you have a folder Hardisk/Startup, do not use boot.bat, and copy your executable there.



3. You can edit a registry setting to launch your program at startup. This is described in section 4.4 of the Treq Manual:

http://www.qsicorp.com/engfiles/bleedin ... 5May06.pdf

QSI can configure your production units to include your registry setting and executable.



This information is subject to change.

_________________
Ron L.

http://www.beijerelectronicsinc.com/


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

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