Serial Bar Code Reader
Previous Topic  Next Topic 

Product

Serial Bar Code Reader

Manufacturer

Standard Satellite Forms component

Website

http://www.satelliteforms.net/

Source code provided

Yes

Platform

PalmOS

Sample project(s)

Barcode

Keywords

Barcode, serial, laser, ID, UPC, Janam, MSR


The Serial Bar Code Reader extension provides control over bar code readers attached to the Palm device via the serial port.  [It is not for use with the Symbol devices that have an integrated scanner -- the Symbol Integrated Scanner control should be used instead for those devices.]


This extension can also be used to control the Janam XP MSR (magnetic stripe reader) attachment.


From the extension help:


Bar Code Reader interfaces to a Bar Code reader through the serial manager.


************* USER DEFINEABLE PROPERTIES *************


The Bar Code Reader is configured using the following keywords:


AFTERSCAN-> A Button to execute after scan is received.


BEEPAFTER -> On,Off -> Beep after GetScan returns data.


BEFORESCAN-> A Button to execute before scan input is saved but after

             CtrlAdv and RecordAdv operations are performed.

             Use to save old value before it is modified (use to Cancel)


CTRLADV-> On or Off Automatically advance to next edit control.

Will perform RecordAdv action when returning to first (Edit1) control.


EDIT1 -> First Field to enter data into (if AutoAdv = True)

EDIT2 -> Second  ....

EDIT3 -> Third   ....


RECORDADV-> Sets Record Advance Mode. NOTE: Use double

            quotes.

             Off Never changes record. (Must do manually from

                     AfterScan event.)

             On  Will advance to last record and stop.

             AlwaysCrt Create a new record after last Edit Control.

             CrtAtEnd Advance thru records, create new after last.


SETFOCUS-> On or Off Sets focus to control after scan.


**************** USER METHODS ****************


The Bar Code Reader has the following methods:


About() - shows information about the control in a dialog box.


BeepAfter(str)- On',Off Beep after scan.


CtrlAdv(str)- On,Off Automatically advance to next

              control/record.


DisableScanner() -  Turns off Serial Port + Disables scanning (uses

                    less battery power).


EnableScanner() -  Turns on Serial Port + Enables scanning (uses more

                   battery power).


FollowCursor(str) - On,Off Tapping a control makes it next to

                    scan. Default Off


GetIndex() - Returns current control index. (EDIT1 returns 1, etc.)


GetRecordAdvMode() - Returns Record Advance Mode

                     0 = Off

                     1 = AlwaysCrt

                     2 = CrtAtEnd

                     3 = On


GetScan(timeout) - Returns string of scanned data. Set timeout to 0. Clears the buffer.


Process() - Call from timer event to process automatic events.


RecordAdv(str)-Off Stays on same record.

               On Advance through existing records.

               CrtAtEnd Advance thru records, create new after last.

               AlwaysCrt Creates a new record.


ResetCtrls()- Sets index to the 1st control, cancels advance.


ScanAvail() -  Returns integer byte count in rcv. buffer.


SetFocus(str)- On,Off Moves cursor to control after scan.

               Default = Off


SetIndex(int) - Sets the control index. (will use next control for the

                next scan)


SetPort(baud,HwHs,Data,Stop,Parity) - baud: Sets Baud rate (i.e. 9600)

        HwHs: Handshake (true = CTS/RTS, false = Xon/Xoff)

        Data: 7 or 8 data bits are valid.

        Stop: 1 or 2 are valid.

        Parity: 0= None 1=Even 2=Odd

        Default setting: SetPort(9600,true,8,1,0)


SetTermChar(chr(x))- Sets termination character to use.

                     Default = Carriage Return


SkipAdvance(t/f) - True= Stays on same control for next scan.


StripTerm(t/f) - Strips the termination character from the end of the

                 string returned by GetScan.  Default=True, strips.


TermRecd() -  Returns True if termination character is last character

               in string. Use after GetScan(x) to verify term recd.



DocID: 10130  DocDate: 2008-05-26