Sunlit SLC-10100 User manual

-1
RFID CF Type Reader User’s Guide
Model Name: SLC-10100
Version: 1.0
Date: 2007.04.09

-2
Content
No. Item Page
1 Hardware 3
2 Demo software 6
3 API user’s guide 15
4 Source code of demo program 36
5 Disk information 42
6 Package list 42
7 How to contact us 42
Notice:
In order to avoid misuse or any unexpected damage, please read this
guide first.
This device complies with Part 15 of FCC Rules. Operation is subject to
the following two conditions:
(1)This device may not cause harmful interference, and
(2)This device must accept any interference received, including
interference that may cause undesired operation

-3
1. Hardware environment
(1)Product introduction
Sunlit’s RFID CF type reader is based on Hitachi µ-solution to develop.
It was operated at microwave 2.45GHz frequency band.
This is small and light, can be easily install to PDA, tablet PC.
(2)Specification
Power Supply DC 3V from PDA or PC
Operating Environment 0°C ~40°C
Storage Environment 0°C ~60°C
Power Consumption Max. 0.6 W
Dimensions 56 x 43 x 6.1 (mm x mm x mm)
RF Output Power 36.307 mW
Frequency Range 2.402GHZ~2.477GHZ
Baud Rate 4800 b/s
Reading Distance About 5 cm

-4
(3)Hardware structure
CF interface
PDA or other
compatible device
RFID CF reader
Tag
WindowCE
Platform
(4)Hardware appearance introduction
(5)System requirement
Item Condition Quantity
Hardware requirement PDA support CF interface 1
Platform requirement Windows Pocket PC 2003 1
Antenna inside
CF interface connecter

-5
(6)How to install reader
Face the side with LED up, and insert it into PDA CF slot as shown in picture.
Normally always insert CF reader by put LED side up, but some PDA put CF slot at
reverse side, it means user needs to insert CF reader at back side. (LED down)

-6
2. Demo software environment
(1)Demo software introduction
This demo program can build a database include TAG ID、TAG information and
picture. It can be use to demo ex. material manager、In/out control for people… etc.
(2)Block diagram
Main Program Tag ID
Data base
Picture Information
(3)Demo program operation
System requirement
Item Condition Quantity
PDA Support CF interface
64MB Flash ROM
64 MB RAM
1
System platform Windows Pocket PC 2003 1
RFID CF reader 1
Tag Include Hitachi µ-chip inlet 1

-7
Demo software contents
Item Description
Development
tool Microsoft Visual Studio 2005 Traditional Edition
WinceDEMO.exe Main program
sunlitrfidppc.dll Dynamic Link Library file
Database.txt ID database file after ID saved
File contents
PIC [Folder] A picture file includes different pictures
which correlated with each individual ID
Main Program Window
Function Description Function Description
ID Display Tag ID when Tag be
read. Delete Delete registered database
Information Edit information about Tag ID Mode Select scan mode
Open Open/Close comport of reader Picture Select picture correct with ID
Mute ON/Off reading sound Clear Clear text of ID & Message
window
Read Trigger reader to scan Tag
DataBase Display registered database
Updata Save registered database Message Display status of reader

-8
Demo program operation
(a) Copy demo program files “WinceDEMO.exe” & “sunlitrfidppc.dll”to PDA and
store at same directory.
About the file※transmissions please refer to PDA user’s manual.
(b) Plug reader in CF slot of PDA

-9
(c) Click file “WinceDEMO.exe” and click “Open” to open device(Reader)
(d) Create a ID data base
Be sure the Mode is “Passive”
Put the tag on front side of reader, click “Read” to scan Tag ID and checking ID number
is showing on ID window. Mark the ID number in Tag DataBase field .
Click “Picture”→“Folder” to open location of picture that you want to correct with Tag
ID.Click ”Type” to select file type that you want than click picture file
※ Operation mode:
Passive: Click Read once and reader will scan once.
Active: Click Read once and reader will scan continuously.
It mean open device
successful
1
2
Cancel
Folder
File type
3
4
5
Mark this field
3

-10
(e) Editing information about the ID number on “Information” window.
Click “Updata” and check “Tag DataBase” window to complete the data base
created procedure.
(f) You can follow the step (d) (e) to create some data base that you want.
(g) When you created the data base, the system was created 1 folder and 1 text file:
Item Description
SDB [text file] ID database file after ID saved
SDB [Folder] A picture file storage folder about correlate
with ID database after picture saved.
Caution: Every PDA are different resolution so the picture is showed different size. If
you want it to be matched, you should modify the source code of the project. And
showing picture is Windows API,but it is not stable. Showing picture seveval times
may cause the Demo AP crashes.
1
2
It mean
database
created
successful

-11
(h) Set Mute function
Follow the figure click the” Mute” function check box, the mute function will enable.
When you created the data base, the
system was created 1 folder and 1
text file

-12
(i) Set Operation mode
Mode: Active
Click the “Mode” combo box and select “Active” item to enable active function
Click “Read”, if tag scanned by reader and the scan procedures will continuously.
Mode: Passive
Click “Mode” combo box select “Passive” item to enable passive function
Click “Read” and the reader scanning just only once.
Continue
Scanning
1
2

-13
(j) Delete data base
Click data you want to delete on Tag DataBase window
Click “Delete” and select “Yes” to delete data.
(k) Clear function
If click “Clear” than the text message on the Message window will be clear.
1
2 3

-14
(l) Disable device(Reader)
To confirm device is open.
Click “Close” to disable device.

-15
3. API user’s guide
ONE:Structure of Sunlit RFID DLL for PPC
TWO:Program Declaration
THREE:FUNCTION Introduction
FOUR:EVENTS Introduction
APPENDIX:Development Environment

-16
ONE、Structure of Sunlit RFID DLL for PPC
The Sunlit RFID DLL has 18 functions. They can separate into 3 groups:Comport operation、Device operation and Device
information:
Comport operation functions includes following 5 functions:
SUNLITRFID_CFExist
SUNLITRFID_Open
SUNLITRFID_OpenII
SUNLITRFID_IsOpen
SUNLITRFID_Close.
Most functions of SUNLITRFID_Open and SUNLITRFID_OpenII are the same, except using different parameters.
Device operation functions includes following 9 functions:
SUNLITRFID_Echo
SUNLITRFID_SoftwareReset
SUNLITRFID_HardwareReset
〈
Depend on device
〉
SUNLITRFID_Pause
SUNLITRFID_OpModeSet
SUNLITRFID_OpModeGet
SUNLITRFID_ActiveScanIntervalSet
SUNLITRFID_ActiveScanIntervalGet
SUNLITRFID_ScanTag
Device information functions includes following 4 functions:
SUNLITRFID_ProductNameGet
SUNLITRFID_ModelNameGet
SUNLITRFID_HardwareVersionGet
SUNLITRFID_FirmwareVersionGet

-17
The following table lists all DLL FUNCTION and FUNCTION parameter. For more information, Please see FUNCTION Introduction.
Comport operation functions
SUNLITRFID_CFExist(TCHAR *CFName)
SUNLITRFID_Open(HWND hWnd,LPCWSTR PortName,
DWORD BaudRate,SUNLITRFID_ENVIRONMENT *Environment)
SUNLITRFID_OpenII(HWND hWnd,LPCWSTR PortName,
DWORD BaudRate,HANDLE *haEvent,SUNLITRFID_TAGID *ActiveTagID)
SUNLITRFID_IsOpen(void)
SUNLITRFID_Close(void)
Device operation functions
SUNLITRFID_Echo(void)
SUNLITRFID_SoftwareReset(void)
SUNLITRFID_HardwareReset(void)
〈
Depend on device
〉
SUNLITRFID_Pause(void)
SUNLITRFID_OpModeSet(BYTE Data)
SUNLITRFID_OpModeGet(BYTE *Data)
SUNLITRFID_ActiveScanIntervalSet(BYTE Data)
SUNLITRFID_ActiveScanIntervalGet(BYTE *Data)
SUNLITRFID_ScanTag(SUNLITRFID_TAGID *TagID)
Device information functions
SUNLITRFID_ProductNameGet(SUNLITRFID_PRODUCT_NAME *ProductName)
SUNLITRFID_ModelNameGet(SUNLITRFID_MODEL_NAME *ModelName)
SUNLITRFID_HardwareVersionGet(SUNLITRFID_HARDWARE_VER *HardwareVer)
SUNLITRFID_FirmwareVersionGet(SUNLITRFID_FIRMWARE_VER *FirmwareVer)
Currently, there are only 3 different EVENTS in Sunlit RFID DLL:
Environment.haEvent[ENVIRONMENT_EVENT_ACTIVE_READ_TAG]
Environment.haEvent[ENVIRONMENT_EVENT_COMPORT_ERROR]
Environment.haEvent[ENVIRONMENT_EVENT_PORT_CLOSE]
For more information, Please see EVENTS Introduction.

-18
The following picture represents how the DLL works with your program.

-19
TWO、Program Declaration
(1) Constant Definition
The following table lists all constant definition that TYPE definition used.
Definition Introduction
#define PRODUCT_NAME_LENGTH 32 Define the length of product name information.
(Unit:byte)
#define MODEL_NAME_LENGTH 16 Define the length of model name information.
(Unit:byte)
#define HARDWARE_LENGTH 8 Define the length of hardware version
information. (Unit:byte)
#define FIRMWARE_LENGTH 8 Define the length of firmware version
information. (Unit:byte)
#define TAG_LENGTH 16 Define the length of Tag ID data. (Unit : byte)
#define ENVIRONMENT_EVENT_NUMBER 3 Define the number of events happened.
#define ENVIRONMENT_EVENT_COMPORT_ERROR 0 For more information, Please see EVENTS
Introduction.
#define ENVIRONMENT_EVENT_PORT_CLOSE 1 For more information, Please see EVENTS
Introduction.
#define ENVIRONMENT_EVENT_ACTIVE_READ_TAG 2 For more information, Please see EVENTS
Introduction.

-20
(2) TYPE Definition
The following table lists all TYPE definition that function used.
Definition Introduction
typedef struct {
unsigned char data[TAG_LENGTH];
} SUNLITRFID_TAGID;
Type definition of tag ID
Since Mu-ID data is represented by 128 bits
format, so we condense this 128 bit information
by byte format. And every 8 bits data is
respectively each byte, for example, data[0]
represents bit120~bit127; data[1] represents
bit112~bit119; data[TAG_LENGTH-1]
represents bit0~bit7.
typedef struct {
HANDLE haEvent[ENVIRONMENT_EVENT_NUMBER];
SUNLITRFID_TAGID ActiveTagID;
} SUNLITRFID_ENVIRONMENT;
Type definition of enviroment status.
The type has two elements: haEvent and
ActiveTagID.
haEvent is HANDLE array that use for wait
events. For more information, Please see
EVENTS Introduction.
ActiveTagID was introduced at above definition.
typedef struct {
char data[PRODUCT_NAME _LENGTH+1];
} SUNLITRFID_PRODUCT_NAME;
Type definition of product name information.
After function executed successfully. The char
array will be added the end of string character
‘0x00’
typedef struct {
char data[MODEL_NAME_LENGTH+1];
} SUNLITRFID_MODEL_NAME;
Type definition of Model Name
After function executed successfully. The char
array will be added the end of string character
‘0x00’
typedef struct {
char data[HARDWARE_LENGTH+1];
} SUNLITRFID_HARDWARE_VER;
Type definition of hardware version
After function executed successfully. The char
array will be added the end of string character
‘0x00’
typedef struct {
char data[FIRMWARE_LENGTH+1];
} SUNLITRFID_FIRMWARE_VER;
Type definition of firmware version
After function executed successfully. The char
array will be added the end of string character
‘0x00’
Table of contents