force identify without runing editor?
stbrnrd
Posts: 35
Hello all -
i have a small dilemma, i'm running a bsx2 stamp parallel with a pc, (when the pc is on, the stamp is on) but have noticed that 1 out of 53 times the pc turns on, the stamp doesn't; but if i run the editor and 'identify' ( ctrl + I ) it (the stamp) comes up like if nothing had happened... is there a way to have that command ( ctrl+I) be in somekind of a batchfile that runs once the pc is on? so not to have a need to run the editor and then identify?
i have a small dilemma, i'm running a bsx2 stamp parallel with a pc, (when the pc is on, the stamp is on) but have noticed that 1 out of 53 times the pc turns on, the stamp doesn't; but if i run the editor and 'identify' ( ctrl + I ) it (the stamp) comes up like if nothing had happened... is there a way to have that command ( ctrl+I) be in somekind of a batchfile that runs once the pc is on? so not to have a need to run the editor and then identify?
Comments
It would help if you explained something about why you need to have the Stamp and PC connected through power cycling and why you need to have the Stamp initialize itself. Other solutions might include not using the programming port to communication with the PC (and using some other pins instead) unless you're actually using the Stamp Editor or using an external timer (like a 555) to hold the Stamp in reset for several seconds (maybe 15-30) until the PC has finished initializing itself.
the reason i had the stamp synced with the pc at start-up is because the pwr sply of the pc is powering up the stamp so as not to have a need for a secondary power supply.
the reason to have the stamp initialize itself, is to avoid having the pc on and the stamp off ( due to you very well made explanation)
the reason i have the stamp connected to serial port of the pc, was to assist in troubleshooting in case of peripheral failure.
can i program a pin of the stamp to do the same as the identify command of the editor? maybe it then can be connected in parallel with the pc-turn-on switch?
just a thought [noparse]:)[/noparse]
but thanks for your answer [noparse]:)[/noparse]
Whenever you do an identify or download operation from the Stamp Editor, it starts off by either opening the com port or toggling the DTR line. This resets the Stamp. After the Stamp has finished its initialization, it listens to the com port. The Stamp Editor sends a request for information to the Stamp after a suitable time (to allow for initialization). If the Stamp is there and receives the request, it sends identification information which the Stamp Editor displays (for an identify) or uses to verify that it's the right Stamp model (for a download).
Anyway, your program can open and close the com port or, if the com port is already open, can toggle DTR in order to reset the Stamp.
You probably don't want to use the PC on-switch as a source for the reset because it takes the PC a while to wake up completely and you don't want the Stamp to wake up before the PC is ready. You really need an "OK to go" signal from a program running under Windows.