JavaScript Reader SDK

Code Reader JavaScript SDK

This SDK documentation package provides comprehensive guides and tools for customizing the behavior of Code Corporation's image-based barcode readers using JavaScript. It utilizes the Mozilla SpiderMonkey JavaScript engine to enable developers to create both simple data formatting rules and complex, interactive device applications.

Basic Data Manipulation (Rules.js)

  • Allows users to create simple data formatting and manipulation scripts within a rules.js file.
  • Provides predefined functions such as rules_onDecode, rules_onDecodeAttempt, and rules_onEvent to handle decoded barcode data and user events.
  • Supports Regular Expressions to match, modify, or strip specific characters from scanned data before it is sent to the host.

Advanced Application Development (CR3600)

  • Provides a full API for creating complex, interactive applications using the reader's screen and keypad.
  • Features a gui object for building user interfaces with forms, menus, softkeys, and text displays.
  • Includes a reader object to control hardware settings, handle decode events, trigger beeps, and manage LEDs.
  • Offers storage and comm objects for local file system management and host communication via USB or Bluetooth.

Development Tools and Simulator

  • Includes a PC-based CR3600 Simulator (jsSim3600.exe) to test and debug JavaScript applications without needing the physical hardware.
  • Bundles the free SciTE source code editor for writing and evaluating scripts directly alongside the simulator.
  • The simulator accurately mimics the physical display screen, soft buttons, keypad input modes, and decoded symbol inputs.
Inizia download
JavaScript Reader SDK