Infinite Peripherals PP-50 Developer's Manual

Infinite Peripherals PP-50 Developer's Manual

Pda printer

Advertisement

Quick Links

I N F I N I T E
S O L U T I O N S
F R O M
I N F I N I T E P E R I P H E R A L S
PP-50
P D A P r i n t e r
Developer's
Guide
ATLANTA • CHICAGO • DALLAS • LOS ANGELES • NEW YORK
www.ipcprint.com
Manufactured by Datecs

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PP-50 and is the answer not in the manual?

Questions and answers

Summary of Contents for Infinite Peripherals PP-50

  • Page 1 S O L U T I O N S F R O M I N F I N I T E P E R I P H E R A L S PP-50 P D A P r i n t e r Developer's Guide ATLANTA •...
  • Page 2: Table Of Contents

    PP-50 Serial Port Pin Assignments..................30 PP-50 Carrier Pin Assignments .................... 31 Pin Assignments for the PP-50 Palm III carrier: ..............31 Pin Assignments for the PP-50 Palm V carrier: ..............31 Pin Assignments for the PP-50 Visor carrier: ............... 31 Infinite Peripherals, Inc.
  • Page 3 Appendix C..........................34 Serial Cable Examples: ......................34 Infinite Peripherals, Inc. Page 2 ......
  • Page 4: Technical Data

    Thermal paper Roll 57 mm wide, 40 mm Ø (~ 80 feet) Infinite Peripherals, Inc. Page 3 ......
  • Page 5: Overview

    Distributors – for marking prices, sales receipts, shelf labeling, route deliveries, pallets and packages labeling and portable POS. The PP-50 can also serve as a Hot Sync cradle and recharging station for palm devices with the use of an optional cable.
  • Page 6: Printer Control Methods

    Printer Control Methods There are three (3) possible methods to control the PP-50 thermal printer. As shown in the diagram below. Applications running on various palm size devices can be use to control the PP-50 using either the direct control method or using one of the available printer drivers or SDK (gray box).
  • Page 7: Programming Card Reader

    MCR and store the information read on the host device usually a PDA or palm size computer. The PP-50 Driver and SDKs provide a host of functions or APIs that simplify the task of activating the MCR and reading the data. The following is a simple block diagram showing how this is accomplish using the PP-50 Driver, SDKs, and Direct Control methods.
  • Page 8: Connecting External Devices

    (In PP-50 cradle) External Device Notes: • Care must be taken when connecting external device to the PP-50 serial port as damage to port could result in the PP-50 not being able to communicate with the PDA. • The PP-50 serial port does not implement all the signals from the RS232C Standards.
  • Page 9: External Devices Functions

    DPSDK_ExtOpenConnection – Initializes external connection with device attached to PP-50's port. The printer must be initialized successfully before. The function sleeps the printer, ends current connection and initializes a new one with the specified parameters.
  • Page 10: Palm Devices

    The SDK and Shared Library is designed to aid software engineers in the development of PALM OS applications to be used with the PP-50 thermal printer. The PP-50 Shared Library is compatible with Metrowerks Code Warrior, AppForge for VB, and Satellite Forms development tools with use of separate SDKs for the above mention IDE.
  • Page 11: Blackberry Devices

    The Blackberry SDK and Shared Library is designed to aid software engineers in the development of C++ and Java OS applications to be used with the PP-50 thermal printer. The PP-50 Shared Library is compatible with Blackberry Handheld SDK 2.5.0 and Blackberry JDE.
  • Page 12: Pocket Pc Devices

    User can obtain information about the driver via dc function GetDeviceCaps. The driver incorporates functions such as PASSTHROUGH that enables the developers to send printer resident commands to the PP-50 through the driver. Other commands such as the READCARD enable applications to retrieve data from the magnetic card reader.
  • Page 13: Direct Control Method

    Direct Control Method The PP-50 thermal printer has a resident command set that provides Text Formatting, Barcodes, and Graphics printing capability. Using this method gives programmers greater flexibility and control of the PP-50 however, using this method also requires more programming efforts.
  • Page 14: Resident Commands List

    PP-50 Resident Commands List The Direct Control and PASSTHROUGH method uses the “Escape” control sequence that starts with the ASCII code “ESC” or “GS” directly to the PP-50 printer via device serial port. For example: ASCII CODE: DECIMAL: HEXADECIMAL: ASCII CODE:...
  • Page 15 FS ! Set attributes for printing in the JIS and Shift-JIS modes Infinite Peripherals, Inc. Page 14 ......
  • Page 16: Commands Details

    The shift is n1 + 256*n2 dots. After the end of the line no positions are acceptable. Infinite Peripherals, Inc. Page 15 ......
  • Page 17 MS bit. The symbols are stored after the printer is switched OFF. Infinite Peripherals, Inc. Page 16 ......
  • Page 18 Data is sent in vertical columns downward and from left to right, 1 or 3 bytes in a column depending on the selected mode. Infinite Peripherals, Inc. Page 17 ......
  • Page 19 The data for both modes is sent horizontally, from left to right and downward. Each byte contains 8 dots, units are black and the start is marked by the MS bit. Infinite Peripherals, Inc. Page 18 ......
  • Page 20 = 0 to 255 The default value is n=22h (1/6 inches) Infinite Peripherals, Inc. Page 19 ......
  • Page 21 (similar to when switching the printer ON). The data in the serial buffer is not cleared. Infinite Peripherals, Inc. Page 20 ......
  • Page 22 [1Bh] + [47h] + n The command is equivalent to ESC E Infinite Peripherals, Inc. Page 21 ......
  • Page 23 1 Set to 90º rotation of symbols. Rotated symbols are not underlined. Infinite Peripherals, Inc. Page 22 ......
  • Page 24 Two bytes of information are returned – the first is the voltage in tenths of a volt plus 20h while the second is the temperature of the printer head in Celsius plus 20h. Infinite Peripherals, Inc. Page 23 ......
  • Page 25 There is paper Value 1: No paper Infinite Peripherals, Inc. Page 24 ......
  • Page 26 Di designates the bar-code data. The necessary number and acceptable symbols depend on the type of the bar-code selected. Infinite Peripherals, Inc. Page 25 ......
  • Page 27 Font A Font B Infinite Peripherals, Inc. Page 26 ......
  • Page 28 For this reason ESC@ may be included in it. The printer is able to print during the definition of a macros. Infinite Peripherals, Inc. Page 27 ......
  • Page 29 1 or ‘1’: The setting Shift-JIS is enabled Infinite Peripherals, Inc. Page 28 ......
  • Page 30 Underline Underline Canceled Enabled Infinite Peripherals, Inc. Page 29 ......www.ipcprint.com Version 2.00...
  • Page 31: Serial Port Pin Assignments

    PP-50 Serial Port Pin Assignments Connecting to an external device through the PP-50 serial port requires the use of custom cables not supplied by Infinite Peripherals. To aid in the building of these special cables the following is the PP-50’s serial port pin assignment.
  • Page 32: Carrier Pin Assignments

    PP-50 Carrier Pin Assignments Pin Assignments for the PP-50 Palm III carrier: Pin Number Signal VBAT Hot Sync Pin Assignments for the PP-50 Palm V carrier: Pin Number Signal VBAT Hot Sync V Charge Pin Assignments for the PP-50 Visor carrier:...
  • Page 33: Appendix A

    Appendix A Card Reader Example Code: The example code uses the Basic language to read credit card information from the PP-50. Dim strSend as String Dim intCount as Integer Dim received as String ‘---Reveive buffer Dim datastream as String ‘---Data buffer...
  • Page 34: Appendix B

    FrmCustomAlert (InfoAlert,"cannot initialize printer !!!", 0,0); error = DPSDKLib_CloseLibrary(DPSDK_Ref,Context); Infinite Peripherals, Inc. Page 33 ......
  • Page 35: Appendix C

    Appendix C Serial Cable Examples: Infinite Peripherals, Inc. Page 34 ......www.ipcprint.com Version 2.00...

Table of Contents