DESP Protocol Guide Version 1.00
Total Page:16
File Type:pdf, Size:1020Kb
DESP Protocol Guide Version 1.00 43 Broad Street Unit C103 Hudson, MA 01749 Tel: (866) 837‐1931 Tel: (978) 461‐1140 FAX: (978) 461‐1146 http://www.diamondt.com/ Liability Diamond Technologies Inc. shall not be liable for technical or editorial errors or omissions contained herein, nor for incidental or consequential damages resulting from the use of this material. Those responsible for the use of this device must ensure that all necessary steps have been taken to verify that the applications meet all performance and safety requirements including any applicable laws, regulations, codes, and standards. There are many applications of this product. The examples and illustrations in this document are included solely for illustrative purposes. Because of the many variables and requirements associated with any particular implementation, Diamond Technologies Inc. cannot assume responsibility for actual use based on these examples and illustrations. Diamond Technologies Inc., reserves the right to modify our products in line with our policy of continuous product development. The information in this document is subject to change without notice and should not be considered as a commitment by Diamond Technologies Inc. Intellectual Property Rights © 2020 Diamond Technologies Inc. * ALL RIGHTS RESERVED.* Protected to the fullest extent under U.S. and international laws. Copying, or altering of this document is prohibited without express written consent from Diamond Technologies Inc. Diamond Technologies Inc. and others have intellectual property rights relating to technology embodied in the product described in this document. These intellectual property rights may include patents and pending patent applications in the US and other countries. Diamond Technologies Inc. and the Diamond Technologies logo are trademarks of Diamond Technologies Inc. All other trademarks are the property of their respective holders. DESP Protocol Guide Version 1.00 Page 2 Contents Decoded Engine Serial Protocol .................................................................................................................... 7 Introduction .................................................................................................................................................. 7 DESP Protocol Specification .......................................................................................................................... 7 Overview ................................................................................................................................................... 7 Packet Definition ....................................................................................................................................... 7 ByteStuffing Technique ......................................................................................................................... 9 Protocol modes ......................................................................................................................................... 9 Synchronization..................................................................................................................................... 9 Results structure ................................................................................................................................. 10 DESP Commands ..................................................................................................................................... 11 Commands Overview .......................................................................................................................... 11 Commands .......................................................................................................................................... 14 Sequence diagrams ................................................................................................................................. 25 Configuration settings ......................................................................................................................... 33 DESP Software Library ................................................................................................................................. 34 Getting started ........................................................................................................................................ 35 Software Architecture overview ............................................................................................................. 35 Modules: ................................................................................................................................................. 35 Desp_api interface .............................................................................................................................. 36 Desp_api_integration interface .......................................................................................................... 41 Simplified Software Trigger ......................................................................................................................... 41 Enabling and Customizing ....................................................................................................................... 41 Example workflow to set custom Trigger or Response packets ......................................................... 42 Forbidden Strings .................................................................................................................................... 42 Develop using DESP: C++ testSample ..................................................................................................... 43 Configuration Properties List ...................................................................................................................... 43 Trace ........................................................................................................................................................ 43 Info .......................................................................................................................................................... 43 Launcher .................................................................................................................................................. 44 Bootloader .............................................................................................................................................. 44 DiagnosticManager ................................................................................................................................. 44 DESP Protocol Guide Version 1.00 Page 3 USART ...................................................................................................................................................... 45 Sensor properties .................................................................................................................................... 46 Trigger ..................................................................................................................................................... 52 ExternalScanEngine ................................................................................................................................. 52 PictureContrastCalc................................................................................................................................. 53 LensPositioner ......................................................................................................................................... 53 LaserAim .................................................................................................................................................. 53 Illuminator_extension ............................................................................................................................. 54 ResultChannel ......................................................................................................................................... 56 ImageChannel ......................................................................................................................................... 56 ConfigurationParser ................................................................................................................................ 57 ReadyReporter ........................................................................................................................................ 57 Processing ............................................................................................................................................... 57 Digimarc .................................................................................................................................................. 58 Autofocus ................................................................................................................................................ 59 MotionDetection ..................................................................................................................................... 59 Decoder ................................................................................................................................................... 59 Common .................................................................................................................................................. 62 EAN/UPCA properties ............................................................................................................................