copyright © 2001-2013 anviz global inc. usa anviz online training lesson 5 : sdk training anviz...

18
Copyright © 2001-2013 Anviz Global Inc. USA Anviz Online Training Lesson 5 SDK Training Anviz International Technical Support Team

Upload: myah-clough

Post on 16-Dec-2015

229 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Copyright © 2001-2013 Anviz Global Inc. USA Anviz Online Training Lesson 5 : SDK Training Anviz International Technical Support Team

Copyright © 2001-2013 Anviz Global Inc. USA

Anviz Online Training Lesson 5:SDK Training

Anviz International Technical Support Team

Page 2: Copyright © 2001-2013 Anviz Global Inc. USA Anviz Online Training Lesson 5 : SDK Training Anviz International Technical Support Team

Embedded System

What is Embedded System?

An embedded system is a computer system with a dedicated function within a larger mechanical or electrical system. It is embedded in hardware and mechanical parts.

Embedded system contains processing cores that are either microcontrollers or digital signal processors (DSP).

Page 3: Copyright © 2001-2013 Anviz Global Inc. USA Anviz Online Training Lesson 5 : SDK Training Anviz International Technical Support Team

ADSL modem router

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

1. Telephone Decoupling Electronics

2. Multi Color LED

3. Single Color LED

4. Main Processor

5. JTAG Test and Programming Port

6. RAM

7. Flash Memory

8. Power Supply Regulator

Page 4: Copyright © 2001-2013 Anviz Global Inc. USA Anviz Online Training Lesson 5 : SDK Training Anviz International Technical Support Team

9. Telephone Connector Fuses

10. Telephone Port

11. USB Port

12. Ethernet PHY Transmitter/Receiver

13. Ethernet Transformer

14. Ethernet Port

15. Quartz Crystal

16. Reset Button

17. Power Connector

18. Fuse for Main Power Supply

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

Page 5: Copyright © 2001-2013 Anviz Global Inc. USA Anviz Online Training Lesson 5 : SDK Training Anviz International Technical Support Team

Mainboard VF30

Page 6: Copyright © 2001-2013 Anviz Global Inc. USA Anviz Online Training Lesson 5 : SDK Training Anviz International Technical Support Team

Various kinds of Embedded System are commonly found in cooking, automotive, medical, commercial and military applications.

Page 7: Copyright © 2001-2013 Anviz Global Inc. USA Anviz Online Training Lesson 5 : SDK Training Anviz International Technical Support Team

Communication

Structure

Interface Type:

Serial USB Ethernet

Page 8: Copyright © 2001-2013 Anviz Global Inc. USA Anviz Online Training Lesson 5 : SDK Training Anviz International Technical Support Team

Device:

PC:

Device Display

User Data Firmware Protocol

PacketDevice

Interface

Hardware Interface

Protocol Packet SDK User

Data

Page 9: Copyright © 2001-2013 Anviz Global Inc. USA Anviz Online Training Lesson 5 : SDK Training Anviz International Technical Support Team

SDK

SDK is an abbreviation of Software Development Kit,which is also typical a set of software development tool for:

What is SDK?

Creating Applications for Software Package

Software Framework

Operating System/Video Game Console

Page 10: Copyright © 2001-2013 Anviz Global Inc. USA Anviz Online Training Lesson 5 : SDK Training Anviz International Technical Support Team

General Files

• API for Compilation

Common Tool

• Debugging Aids IDE

Support Document

• Sample Code Technical Notes

Page 11: Copyright © 2001-2013 Anviz Global Inc. USA Anviz Online Training Lesson 5 : SDK Training Anviz International Technical Support Team

API specifies a set of functions or routines that accomplish a specific task or allow to interact with a specific software component. For example:

#include <math.h>

double sqrt(double X) / float sqrtf(float X); SYNOPSIS

sqrt computes the positive square root of the argument. ... DESCRIPTION

on success, the square root is returned. If X is real and positive...RETURNS

Page 12: Copyright © 2001-2013 Anviz Global Inc. USA Anviz Online Training Lesson 5 : SDK Training Anviz International Technical Support Team

DLL (Dynamic-link library) containing any combination of code, data and resources is the concept of a shared library in the Win OS. These libraries have file extensions such as DLL,OCX, or DRV.

DLL provides a mechanism for shared code and data, allowing a developer to share code or upgrade data without re-compiling the interlinkage of applications.

Page 13: Copyright © 2001-2013 Anviz Global Inc. USA Anviz Online Training Lesson 5 : SDK Training Anviz International Technical Support Team

SDK

DLL

API

Page 14: Copyright © 2001-2013 Anviz Global Inc. USA Anviz Online Training Lesson 5 : SDK Training Anviz International Technical Support Team

System Platform

AvailableWin32

Win64

Others

Linux

Unix

Mac OS

Page 15: Copyright © 2001-2013 Anviz Global Inc. USA Anviz Online Training Lesson 5 : SDK Training Anviz International Technical Support Team

CKT_GetDeviceInfo

[Funciton] retrieve device’s system information

[Prototype] CKT_RESULT WINAPI CKT_GetDeviceInfo (int sno,LPDEVICEINFO devinfo)

[Parameter] sno :Device ID,scope:1 —— 99999999

devinfo:Structure pointing receiving system information

[Return] success return1(TRUE)

fail return 0(FALSE)

API Example

Page 16: Copyright © 2001-2013 Anviz Global Inc. USA Anviz Online Training Lesson 5 : SDK Training Anviz International Technical Support Team

• typedef struct CKT_DeviceInfo• {• int ID; // Device serial number• int MajorVersion; // Device firmware version• int MinorVersion; // Device firmware version• int DoorLockDelay; // Lock control delay• int SpeakerVolume; // Speaker volume• int Parameter; //• int DefaultAuth; //• int Capacity; // Capacity for the staffer information• int RealTimeAllow;//Allow to transfer data real-time.• int RingAllow;//Allow to make ringing• int LockDelayTime;//Lock delay time• int FixWGHead;//Fixed wiegand area code

Page 17: Copyright © 2001-2013 Anviz Global Inc. USA Anviz Online Training Lesson 5 : SDK Training Anviz International Technical Support Team

• int WGOption;//wiegand option• int AutoUpdateAllow;//Allow to update the fingerprint template intelligently• int KQRepeatTime;//Options for the repeated clocking• char[8] AdminPassword; // Commuinication password• } DEVICEINFO, *LPDEVICEINFO;

[Sample]• DEVICEINFO devinfo;• if (CKT_GetDeviceInfo(12345678, &devinfo))• {• printf("(CKT_GetDeviceInfo success.\n");• }

[Note]

The returned structure members Parameter, DefaultAuth is no sense, just keeping compatible with OA200.

Page 18: Copyright © 2001-2013 Anviz Global Inc. USA Anviz Online Training Lesson 5 : SDK Training Anviz International Technical Support Team

Anviz Technical Support Team

Thank You