Worth Data 802 RF user manual WD802Term/ActiveX, Programming Considerations

Page 41

promptline2 as string promptline3 as string NextIfError as integer NextIfOK as integer

End Type

dim TransactionSequence(10) as TransactionElement

TransactionSequence(1).commandcode = 1 'InputAny TransactionSequence(1).promptline1 = "Go to Location " + GetLocationCode TransactionSequence(1).promptline2 = "Press Enter When Ready "

TransactionSequence(1).NextIfError = 1 TransactionSequence(1).NextIfOK = 2 Etc.

As mentioned above, it is important to keep your event handlers short and efficient. This means that your program should spend as little time as possible "inside" the event handler (running the handler's code). Also, it is important to NOT call WD802Term methods from inside WD802Term event handlers. So a solution is needed that allows your program to respond to events outside of the event handlers.

An easy way to do this is with a polling scheme. Add a timer object to your application and in the timer's event handler check the TermData structure for the state of each terminal and make any appropriate WD802Term method calls from within the timer object's event handler. The timer can be set to fire every 100 milliseconds or every 10 seconds or anything in between that is appropriate for your application.

Another, more advanced way to decouple the WD802Term method calls from the event handlers is using threading techniques where each terminal is "running" in a thread that monitors that terminal's state.

WD802Term/ActiveX

WD802Term is a drop in ActiveX component that allows programmers to easily add the ability to send prompts to and receive data from their R/F Terminal across a wireless 802.11b Ethernet network connection.

The ActiveX component is compatible with Visual Basic, Visual C++, Delphi, and most other 32-bit development platforms.

Programming Considerations

Remember, plan for every error that the Server might return including:

Sequence Errors detected

Illegal Command detected

Addressing a Terminal Not Signed In

6-4

Image 41
Contents February 2006 Worth Data Inc Table of Contents Appendix B Appendix aAppendix C Appendix DInstallation Tips InstallationUsing the RF Terminal keypad… ComponentsPage Mm/dd/yy hhmm Battery Life IndicatorFinish, Sign Off Change Batteries Hit Any Key To change the AA batteries Terminal Menu FunctionsRecharging the batteries Checking Batteries Please Wait………Setup Mode Site Survey Opening screen can be bypassed upon power up. See ChapterInstalling the 802 Terminal Utilities Software RF Terminal Default Settings RF System SetupRF Terminal Setup Using the bar code RF Terminal Setup Menu Default RF Terminal ConfigurationRF Setup Batteries--4 BarCodes Using the keypad to setup the RF TerminalTerminal Voice Operations-2 RS232Group you will find the parameter RF SetupDevice IP Address RF Terminal Setup ParametersServer IP Address Subnet MaskControl Keys Only AuthenticationWEP Encryption Key Skip Opening Screens LCD Backlight Display ModeBacklight Duration Enter 0-9 for Volume Control Current Value is Speaker and Headphone Volume ControlsKey Current Value Automatic Check BackCode 3 of 9 Code UPC/EAN Code ID character is transmitted in front of the bar code data Codabar5 Code MSI and Plessey 5 LengthBatteries RSS-14Beep Tone Display of Year Set DateSet Time Shut Down Time Voice Message PartitionsLaser Scanner Options 303015Aiming Dot Duration ResetParity Baud RateData Bits Stop BitsBasic RF System communications… Operational TheoryLittle more in depth… Looking for Dhcp Server Please WaitWaiting for Prompt From Host Computer Can I change a prompt after it has been sent? Page Evaluating your area of planned operation Performance Issues80% Ssid65% 35%Page Page Before you begin programming… Hardware Failures Operator ErrorsFailure Planning Objects, Properties, Methods, and Events Programming for the 802 RF TerminalIntroduction Go to location Press enter when ready Pick Item YY qty N Scan barcode Enter Qty Picked Programming Considerations WD802Term/ActiveXServer Shut Down Due to Host Logic Error Network SetupServer Communications WD802Term.InitializeServer WD802Term.ServerActive = TrueTerminal Tracking Control Keys for Possible ProgrammingTest For Good Communication 999 Concepts WD802Term ActiveXProperties WD802Term ActiveX True, False 5000-65536Any valid file path and name Through 2GBNone Methods WD802Term ActiveXLine, position, prompt, shifted, timestamped Line, position, promptData Entry while scanning with the integrated laserLine, position, prompt, shifted Special Considerations Msgnum LineCount TermNumber Terminal, data Events WD802Term ActiveXTerminal One-for-one host prompt/terminal response OnTermLeftArrow Zebra Cameo Printer Portable PrintersCameo and QL 320 Common Information Track 1&2 Zebra QL 320 PrinterPart Number Description Price Roll Page Voice Message Operations Why Use Voice Messages and Prompts?Tips for Using Voice Prompts Programming Voice Messages Terminal Setup-1 Voice Operations----2RF Terminal’s Voice Message Mapping KEY R/P? Recording and Playback of Voice MessagesCloning Master Cloning Receiver Default Voice Messages End of Cloning Hit Any Key Recv Setup/Voice Please WaitXmit Setup/Voice Please Wait Page General Considerations TroubleshootingSystem Test Radio TestXXXBAT-zz% Meaning Action Required Terminal Error MessagesMessage RF Terminal Problems Troubleshooting specific problemsUnit won’t power up with batteries good batteries My response time is poorGet 6 beeps when the RF Terminal powers up Problems reading Bar CodesReader wont beep when I try to read bar codes Have very poor read rates when scanning bar codesWorth Data Inc Swift St Santa Cruz, CA 95060 If you have a problem…Remember Printer Pin-outsLaser and CCD Page Firmware Download via Radio Link Firmware UpgradesTerminal Firmware Upgrades Enter Firmware Rev Number 3 digits Serial Firmware Download for a TerminalFailsafe Firmware Download for a Terminal C39 Code 39 SpecificationsMod 43 Check Character Code 39 Advanced Features and Functions+ 2 + 3 + 33 + 34 + 35 = 108/43 = 2 with a RemainderFull Ascii Extension to Code Clear Enter Accumulate ModeStart/Stop Character only Code 93 Specifications Page Codabar start/stop transmission Codabar SpecificationsPage UCC-128/ EAN-128 Code 128 SpecificationsUCC-128 Shipping Container Code Interleaved 2 of 5 Mod 10 check digit calculation Interleaved 2 of 5 Code SpecificationsEven Odd + 1 =+ 48 = + 9 x 3 =60 57 = 019873UPC / EAN Specifications Supplemental codes Isbn SpecificationsChecksum calculation for UPC-A, EAN-13 and EAN-8 UPC/EAN checksum character01234500006 UPC-E Checksum Calculation835 x 2 = MSI/Plessey Specifications+ 6 + 7 + 0 = + 4 + 14 =4,5,6,7,2,3,4,5,6,7 943457842+ 12 + 32 + 35 + 30 + 28 + 6 + 12 + 36 = 195/11 = 17 remainderLaser and CCD Scanners How to scan a bar codeLaser Options To return to the default 2-second beam, scanAiming the Laser Dot To return to the single decode beam, scanDifficult Code 39 Reading Page Using the Scan Stand Page CCD Scanners Optional FeaturesLaser Scanners LI50 Linear Imager ScannerLZ400 Laser Scanner Laser AccessoriesPSC Long Range Laser H11 Laser HolderT46 Holster for RF Terminal RF Terminal Cases and HolstersF41 Leather RF Terminal Carrying Case Rubber Boot for RF Terminal BEL Ascii Code Equivalent TablePage Display Character Code Mapping Page UPC/EAN RF Terminal Setup MenuDisable Codabar Ssid Resets current individual parameter Back to default settings Full Ascii Menu 056 057 058 059 060 061 062 063 064 065 066 067 +T* *+U* *+V* *+W Page Index EDI Label Code 4 Printer Setup Mode Upgrading firmware in Base,Relay or