(Probably could be a little clearer)

Host mode for the SPT 1700 is kind of touched on with the Symbol 
SDK documentation, mostly because of the eye health risks that 
come with firing a scanner haphazardly.  I find that if you link
one of your application buttons to a call to set the scanner to
Host, and another button to set it to Level mode, it works fine.

But I digress...Host mode isn't a non-stop scanning mode by default,
rather, it's a software triggered scanning mode.  To make it into
a triggerless mode, you need to call ScanCmdStartDecode after each 
successful scan, which will fire the scanner off after decoding the
previous data.  To prevent scanning the same barcode twice, you store
the data string returned from the previous scan and do a StrCompare
with the new string to see if it's the same string.  Depending on
what exactly you're doing with your barcodes, you can denote this
as "two identical scans" in an output status field, or you can just
ignore it when you go to display it (or just print the previous barcode
data out).  That should take care of most of the issues of triggerless
scanning.

Hope that helps!
-Rus 
http://www.act.avnet.com/

>(Ooops! Yes, sorry. It is SPT1700 Palm OS 3.2.)
>
>However, we already have the code you suggest in our 
>application (it was
>based on the Simple Scan code provided with Code Warrior V6.
>
>Even with this code in, the scanner still deactivates after a 
>successful
>read.
>
>Any other ideas, please?

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to