Академический Документы
Профессиональный Документы
Культура Документы
Signature
Date
16-SEP-08
Verified by:
Approved by:
DOCUMENT REVISION HISTORY
Rev
Status
Amendment/Reason
Date
Author
ISSUED
01-AUG-05
Ian Darbyshire
ISSUED
16-AUG-05
Ian Darbyshire
28-NOV-05
Ian Darbyshire
ISSUED
26-MAY-06
Ian Darbyshire
IN WORK
16-SEP-08
Will Johnston
DISTRIBUTION LIST
Name
Ian Darbyshire
Cloudis Ltd
Function
Author
This document has been prepared specifically for Confidential Use. It remains the property of Cloudis Ltd and
its contents may not be disclosed to any third party without prior consent.
1 Introduction
CMPIC Barcode Scanning software is written in a language called MCL, and delivered as a project comprising
MCL source code, required lookup files and ODBC connection details for communication with CMPIC.
MCL code is downloaded to the scanner, and scanned data uploaded from the scanner via ODBC to CMPIC,
using communications software called MCL-Link.
This document describes
configuration of ODBC,
Memory
Maximum Records
4Mb
54093
8Mb
120669
In practice, the limiting factor will be battery life rather than memory capacity.
3 MCL-Link Installation
MCL-Link Version 2.60 is available for download at http://symbol.mcl-collection.com/, or Cloudis can supply it
on CD-ROM. Note that Version 3 MCL software is NOT suitable for the Symbol Phaser P360 scanner used by
CMPIC.
The installation file is called SBL_LNK_W32_0260_Phaser.exe
Run this file to install MCL-Link software to a convenient location on the machine nominated as the scanner
server. For the descriptions which follow, this is assumed to be the default installation location
C:\MCL\Phaser\link_2.60.
A directory for MCL project source code is required. The default location for this is
C:\MCL\Phaser\Designer. In the descriptions below, the directory C:\MCL\Designer has been used
instead.
MCL-Link must be licensed by Symbol Inc. Two types of license are available. A software license is tied to a
specific PC, and once installed, cannot (easily) be moved. A hardware license is tied to a parallel or USB dongle,
and so can be moved from one PC to another1.
The MCL-Link license supplied by Symbol comprises a license key for the software product, and a password.
When the product is activated, a machine-specific serial number is generated if a software license is requested,
or the serial number of the dongle is read. The license key, password and serial number are submitted to the
Symbol web-site, and an activation key is returned2.
The MCL-Link license must be activated before the product can be used, other than in a very simple demo
mode.
Codes suitable for activating MCL-Link using the Cloudis dongle are as follows:
There appears to be no UK supplier of MCL hardware dongles, but they can be sourced from Raco
Industries in Cincinnati http://www.racoindustries.com/.
For the same license key and dongle, the activation key will always be the same, so online activation
for a hardware license is required only once provided a note is made of the activation key.
4 MCL-Link Configuration
Connect the scanner cradle to the serial port of the scanner server. This is usually called COM1, but may be
COM2 or higher if other applications have reserved ports.
In the example below, COM2 is being used.
Set the correct paths for projects and data files by pressing the Path button.
6 ODBC Configuration
Oracle client must already be installed, and SQL*Net configured in the normal way to allow connection to
CMPIC.
Use the ODBC Data Source Administrator utility to define a new ODBC connection to the target CMPIC
database. Select Run from the Windows Start menu, and enter odbcad32 to launch the ODBC Data Source
Administrator.
Select the System DSN tab, then press Add to define a new connection.
A new DSN is required for each distinct CMPIC database which is required to receive scanned barcode data. It
is not necessary to have a separate DSN for each CMPIC schema within a database.
Fill in the connection details. The data source name should be sufficient to distinguish the connection from the
others. The TNS service name is as defined in the SQL*Net tnsnames.ora file. The User ID is any user who has
insert and update access to the appropriate CMPIC EDP_API_SCANDATA table: the table owner itself is fine.
Use the Test Connection button to ensure the ODBC Data Source is configured correctly.
Next edit PROJECT.MQD. Each CMPIC ODBC connection requires a section called [SQL_name] which defines
the ODBC DSN (Source), the Oracle username (User) and password (PassWord), and the SQL required to
insert records into the EDP_API_SCANDATA table (SQLCommand_1). Add a new section, or update an existing
one.
[SQL_T45EAD]
Source=T45EAD
User=T45CMPIC
PassWord=aztec99
SQLCommand_1=INSERT INTO EDP_API_SCANDATA
(SCT_RECNO,SCT_RECTYPE,SCT_CHAR1,SCT_CHAR2,SCT_CHAR3,SCT_NUM1,SCT_NUM2,SCT_TIMESTAMP,SCT_SCANID) VALUES
(%01,'%02','%03','%04','%05',%06,%07,'%08','%09')
SendReturnCode=ON
ExecuteOnFile=ON
ExecuteOnFileName=DEFAULT
FieldSeparator=|
Note that the SQLCommand_1 entry should all be on one line, not three as shown in the listing above.
Finally edit CMPRPGFE.DAT, which is a lookup file used by the scanning program as validation for scanned
project codes, and to determine which ODBC connection to use for which project. This is a file of fixed-length
records, so use an editor which can show visible spaces to ensure that the two fields are 6 and 20 characters
respectively.
Symbol
Technologies
Phaser Memory Scnr.
Before initialisation is complete, i.e. within one or two seconds, go to Setup mode by pressing [Func] then
[BK].
Phaser Setup
0. System Setup
Press the down-arrow key, or press 1.
Phaser Setup
1. App. Control
Press [Enter] for the Application Control menu
App. Control
0.Load App/File
Press [Enter] again to load the new application.
Status:
Connect unit to host
Place the scanner in the cradle.
This and other screen shots representative only: file paths, names and numbers may vary with
subsequent versions of the scanning application
Sending to CMPIC
<Enter> to continue
Press [Enter] on the scanner to send the data.
Provided MCL-Link is running, the transfer will be initiated automatically, and data will be sent via ODBC to the
EDP_API_SCANDATA table in CMPIC. The stored scanned data is deleted from the scanner when the transfer
completes successfully.
If MCL-Link is not running, or the ODBC transfer fails for some reason, then the scanner displays the following.
Communications error
<Enter> to continue
Press [Enter] to return to the scanning applications main menu. The scanned data is not lost, and the transfer
can be retried at any time.