Client Development Application Note

Similar documents
Chapter 2

Symantec™ Sygate Enterprise Protection 防护代理安装使用指南

STC-U10

1.Product Description

PTS7_Manual.PDF

Cadence SPB 15.2 VOICE Cadence SPB 15.2 PC Cadence 3 (1) CD1 1of 2 (2) CD2 2of 2 (3) CD3 Concept HDL 1of 1

Table of Contents Design Concept 03 Copyrights & TradeMark 04 Special Notice 05 Notice to concerned 05 Installation and Registration Introduction 07 s

NT 4

目 錄 版 次 變 更 記 錄... 2 原 始 程 式 碼 類 型 之 使 用 手 冊... 3 一 安 裝 軟 體 套 件 事 前 準 備... 3 二 編 譯 流 程 說 明

穨UPSentry_SC_.PDF

InstallShield InstallShield InstallShield Windows Installer ISWI ISWI InstallShield InstallShield InstallShield Windows Installer WI In

概述

ebook140-9

P X-M PowerChute Business Edition v8.0 Basic 85

GoFlex Home UG Book.book

ebook140-8

1.JasperReport ireport JasperReport ireport JDK JDK JDK JDK ant ant...6

AL-MX200 Series

(HMI) IO A

1 SQL Server 2005 SQL Server Microsoft Windows Server 2003NTFS NTFS SQL Server 2000 Randy Dyess DBA SQL Server SQL Server DBA SQL Server SQL Se

Ch03_嵌入式作業系統建置_01

User Group SMTP

RunPC2_.doc

/ / (FC 3)...

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM

Microsoft Word zw

Java 1 Java String Date

untitled

DOS下常用的网络命令.PDF

(Load Project) (Save Project) (OffLine Mode) (Help) Intel Hex Motor

Microsoft Word - UserManualForEaton_SC.doc

WP_ARIS_PPM_CN.PDF

一只特立独行的猪.doc

HOL-CHG-1695

2 2 3 DLight CPU I/O DLight Oracle Solaris (DTrace) C/C++ Solaris DLight DTrace DLight DLight DLight C C++ Fortran CPU I/O DLight AM

untitled

Microsoft Word - PS2_linux_guide_cn.doc

软件概述

untitled

VB程序设计教程

Junos Pulse Mobile Security R1 2012, Juniper Networks, Inc.

SP5 user guide.PDF

epub 61-2

Microsoft Word - OPIGIMAC 譯本.doc

Xeltek USB USB Windows INF USB USB INF , 2.1.2, CD-ROM CD-ROM CD-ROM CD-ROM Setup.exe 2

WinMDI 28

untitled

Oracle 4

1 o o o CPU o o o o o SQL Server 2005 o CPU o o o o o SQL Server o Microsoft SQL Server 2005

公 司 概 况 业 务 挑 战 达 美 乐 比 萨 达 美 乐 比 萨 是 全 球 最 大 的 比 萨 外 卖 品 牌, 成 立 于 1960 年, 目 前 在 全 球 67 个 国 家 拥 有 超 过 9000 家 门 店, 年 销 售 比 萨 4 亿 张 以 上 1990 年, 韩 国 第 一

Microsoft Word - Functional_Notes_3.90_CN.doc

1.ai

ebook 132-2

目次 

P4i45GL_GV-R50-CN.p65

ArcIMS ArcIMS Shape ArcIMS Monitor ArcIMS Tasker ArcIMS Windows NT UNIX ArcIMS ArcIMS MapService ArcIMS ArcIMS ArcIMS ArcIMS JAVA Windows NT UNIX ArcI

ebook

adm53mst.ps

RSBook_CN.indb

Quick Start Guide

Windows 2000 Server for T100

INTRODUCTION TO COM.DOC

Microsoft Word - template.doc

Basic System Administration

Microsoft Word - Web Dynpro For ABAP跟踪测试工具简介 _2_.doc

Microsoft Word - 01.DOC

Windows RTEMS 1 Danilliu MMI TCP/IP QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos eco

epub83-1

2005 Sun Microsystems, Inc Network Circle, Santa Clara, CA U.S.A. Sun Sun Berkeley BSD UNIX X/Open Company, Ltd. / Sun Sun Microsystems Su

目 录

CHAPTER VC#

Windows XP

IC-900W Wireless Pan & Tilt Wireless Pan & Tilt Remote Control / Night Vision FCC ID:RUJ-LR802UWG

3.1 num = 3 ch = 'C' 2

Data Management Software CL-S10w

untitled


1. Revo Uninstaller Pro Revo Uninstaller Pro Revo Uninstaller Pro Revo Uninstaller Pro Revo Uninsta ller Pro Revo Uninstaller Pro Revo Uninstaller Pro

Microsoft Word - 第1章 Android基本概念.docx

FileMaker 16 ODBC 和 JDBC 指南

軟體的安裝

solutions guide

59 1 CSpace 2 CSpace CSpace URL CSpace 1 CSpace URL 2 Lucene 3 ID 4 ID Web 1. 2 CSpace LireSolr 3 LireSolr 3 Web LireSolr ID

D C 93 2

Microsoft Word - SupplyIT manual 3_cn_david.doc

TwinCAT 1. TwinCAT TwinCAT PLC PLC IEC TwinCAT TwinCAT Masc

+01-10_M5A_C1955.p65

Sun Update Connection System Sun Microsystems, Inc Network Circle Santa Clara, CA U.S.A

新建 Microsoft Word 文档.doc

audiogram3 Owners Manual

untitled

Enrolment

User Guide

untitled

CHN_p000A_Cover.ai

ebook 86-15

<4D F736F F F696E74202D20332D322E432B2BC3E6CFF2B6D4CFF3B3CCD0F2C9E8BCC6A1AAD6D8D4D8A1A2BCCCB3D0A1A2B6E0CCACBACDBEDBBACF2E707074>

BYOD IP+Optical (IP NGN) API 4. End-to-End (Service Aware) 5. IP NGN (IP Next Generation Network) ( ) Prime Carrier Management Access Edge Co

Transcription:

WebChip WebChipServer

... 1... 1 1.1... 1 1.2... 1 1.3 WebChipServer TM... 1 1.3.1 JRE... 1 1.3.2 WebChipServer TM... 2 1.3.3... 6... 7... 7 2.1... 7 2.2 WebChip TM... 8 2.3... 9 2.3.1... 10 2.3.2... 10 2.3.3... 10 2.4... 10 2.4.1 WebChipAccess... 10 2.4.2 WebChipAPI... 14 2.4.3 WebChipManager... 16... 18... 18 3.1 WebChipManager... 18 3.2... 20 3.2.1... 20 3.2.2... 20 3.2.3... 20 3.2.4... 20 3.3... 21 3.3.1... 21 3.3.2... 23 3.3.3... 26 3.3.4... 27

Win98\WinNt\Win2000 1.1, WebChipServer TM WebChip TM WebChipServer TM 1.2 CPU 400MHz 128M 100M CDROM Windows 98 WindowsNT4.0 Windows2000 PSEA00A Evaluation kit 1.3 WebChipServer TM PSEA00A Evaluation kit DataCom 1.3.1 JRE WebChipServer TM java java JRE, 1.3 JRE DataCom Corp Page www.pnsdatacom.com 1/27

1. http://java.sun.com/j2se/1.3/jre/download-windows.html JRE1.3 International version 2. JRE1.3 JRE1.3 3. Windows HKEY_LOCAL_MACHINE\Software\JavaSoft\Java HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Plug-in HKEY_LOCAL_MACHINE\Software\JavaSoft\Java HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment Windows regedit HKEY_LOCAL_MACHINE Software JavaSoft Java Java Plug-in Java Java Runtime Environment JRE WebChipServer TM 1.3.2 WebChipServer TM WebChipServer TM setup.exe setup.exe 1 2 DataCom Corp Page www.pnsdatacom.com 2/27

2 Next Cancel Next 3 3 DataCom Corp Page www.pnsdatacom.com 3/27

Yes No Yes 4 4 Next Cancel Next 5 5 DataCom Corp Page www.pnsdatacom.com 4/27

Browse Next Next 6 6 Typical Compact Custom Typical Next 7 7 DataCom Corp Page www.pnsdatacom.com 5/27

Program Folders WebChipServer TM 8 Next 8 1.3.3 DataCom Corp Page www.pnsdatacom.com 6/27

2.1 Internet Internet MCU 1999 OSGi 9 9 OSGi DataCom Corp Page www.pnsdatacom.com 7/27

OSGi PDA OSGi OSGi 2000 5 OSGi 1.0 OSGi Prosyst mbserver mbserver 4.1 mbserver4.1 OSGi WebChip TM WebChipServer TM OSGi OSGi OSGi 2.2 WebChip TM OSGi WebChip TM 10 10 WebChip TM OSGi mbserver4.1 DataCom Corp Page www.pnsdatacom.com 8/27

WebChipAccess WebChipAPI WebChipManage, Bundle Bundle WebChipAccess.jar WebChipAPI.jar WebChipManager.jar Bundle WebChipAccess, WebChip TM Webchip TM WebChipAccess MCUap TM 1.0 MCUap TM 1.0 McuApAccessServiceImpl McuApAccessService WebChipAPI WebChipAccess WebChipAPI ChipAPIImpl ChipAPI API WebChipAPI WebChipAccess McuApAccessServiceImpl WebChipAccess Bundle WebChipManage Bundle mbserver, Bundle Prosyst mbserver Administrator WebChipAPI 2.3 WebChipServer TM OSGi Framework mbserver mbserver 4.1 mbserver 4.1 CPU OS Java mbserevr4.1 DataCom Corp Page www.pnsdatacom.com 9/27

2.3.1 mbserver 4.1 CPU 200MHz, 128M 50M CPU 400MHz RAM 128MB 100M 2.3.2 mbserver 4.1 Java Java Java Windows 98 /Windows NT 4.0 / Windows2000 / Unix Java JRE 1.2 / 1.3 OSGi mbserver4.1 2.3.3 mbserver4.1 OSGi Service Gateway Specification Release 1.0 OSGi mbserver4.1 Prosyst mbserver4.1 Bundle Bundle init.jar lib.jar putil.jar console.jar registry.jar log.jar http.jar devicem.jar usermgr.jar pmp.jar telnet.jar license.jar pbloader WebChipServer TM Bundle WebChipAccess.jar WebChipAPI.jar WebChipManager.jar mbserver4.1 init.jar boot.ini Bundle boot.ini Java package 2.4 2.4.1 WebChipAccess WebChipAccess MCUap PointBase WebChipAPI polling WebChipAccess 11 DataCom Corp Page www.pnsdatacom.com 10/27

WebChipAPI Table Thread WebChipAccess Thread Polling RS232 RS485 Device Device Device Device 11 WebChipAccess PointBase WebChip.dbn WebChipAccess 1 DevicesConstants WebChipAPI 2 DevicesVariables WebChipAPI 3 (DevicesEvents) WebChipAPI DataCom Corp Page www.pnsdatacom.com 11/27

4 DevicesFunctions WebChipAPI WebChipAccess 5 (DevicesFiles) WebChipAPI WebChipAccess 6 DevicesRegsister WebChipAccess WebChipAPI com.pns.webchip.mcuapaccessservice mbserver4.1 Register package com.pns.webchip; public interface McuApAccessService { public void AccessHelloWorld( ); public boolean AccessDiscovery( String strcomport, String StrTelePhone ); public boolean AccessConnectDevice( long LngDeviceID, String StrPWD, String StrTelePhone, String StrCommPort, int IntBaud ); public boolean AccessDisConnectDevice( long LngDeviceID ); public String AccessGetConnectState( String StrCommPort ); public boolean AccessDeviceIsConnected( long LngDeviceID ); public byte AccessGetDeviceCharacteristic( long LngDeviceID ); public int AccessGetMaxRec( long LngDeviceID ); public int AccessGetMaxSend( long LngDeviceID ); public int AccessGetObjCount( long LngDeviceID ); public short AccessGetProtocolVersion( long LngDeviceID ); public byte[] AccessCallFunction( long LngDeviceID, String StrFunctionName, byte[] ABytParament, int IntReturn, byte BytParaType, byte BytReturnType ); DataCom Corp Page www.pnsdatacom.com 12/27

} public byte[] AccessReadProperty( long LngDeviceID, String StrPropertyName, int IntOffset, int IntLen, byte BytDataType ); public byte[] AccessReadMemoryProperty( long LngDeviceID, String StrPropertyName, int IntOffset, int IntLen ); public boolean AccessWriteProperty( long LngDeviceID, String StrPropertyName, int IntOffset, byte[] ABytValue, byte BytDataType ); public boolean AccessEnableEvent( long LngDeviceID, String StrEventName ); public boolean AccessDisableEvent( long LngDeviceID, String StrEventName ); public boolean AccessWritePropertyTable( long LngDeviceID, String StrSuperPWD, byte[] ABytData ); public void AccessSetFrameInterval( int IntFrameInterval ); public void AccessSetRecTimeOut( int IntTimeOut ); public void AccessSetBackgroundTimeOut( int IntTimeOut ); public void AccessGetReSendTimes( int IntReSendTimes ); public int AccessGetFrameInterval( ); public int AccessGetRecTimeOut( ); public int AccessGetBackgroundTimeOut( ); public int AccessGetReSendTimes( ); public void AccessClose(); WebChipAccess WebChipAccess Offline com.pns.webchip.mcuapaccessservice com.prosyst.mbs.services.pbloader.pointbaseservice com.prosyst.mbs.services.pmp.pmpserver com.pns.webchip com.prosyst.mbs.services.pbloader.jdbcdriver com.prosyst.mbs.services.pbloader com.prosyst.mbs.services.pmp com.pointbase.jdbc com.prosyst.util.event javax.comm DataCom Corp Page www.pnsdatacom.com 13/27

2.4.2 WebChipAPI (API), WebChipAccess WebChipManager WebChipAPI.ChipAPI, package WebChipAPI; import java.util.vector; public interface ChipAPI { /////////////////////////////Constant Access Interface//////////////////////// public Vector getallconstants(long DeviceId); public AnDeviceConstant getanconstant(long DeviceId,String ConName); /////////////////////////////Variable Access Interface//////////////////////// public Vector getallreadablevars(long DeviceId); public AnDeviceVariable getanreadablevar (long DeviceId,String VarName); public String setanwritablevar(long DeviceId,String VarName,int Offset, byte[] VarValue,byte DataType); /////////////////////////////Event Access Interface//////////////////////////// public AnDeviceEvent getanevent(long DeviceId,String EventName); public Vector getallevents(long DeviceId); public String WriteEvent(long DeviceId,String EventName,int Offset, byte[] EventValue,byte DataType); /////////////////////////////Device Connect Interface//////////////////// public String DeviceConnect(String DeviceName,String UserName,String UserPassword); public Boolean DeviceDisconnect(String DeviceName,String UserName,String UserPassword); public Vector gettotalconnection(); public Vector getuserconnection(); ////////////////////////////Event Subscribe Interface//////////////////// public Boolean SubscribeEvent(long DeviceId,String EventName); public Boolean UnsubscribeEvent(long DeviceId,String EventName); ////////////////////////////Function Access Interface//////////////////// public Vector getallfundescriptor(long DeviceId); DataCom Corp Page www.pnsdatacom.com 14/27

public FunctionDescriptor getanfundescriptor (long DeviceId,String FunName); public FunctionParm ExeAnFunction(long DeviceId,String FunName,byte[] FunParm,int IntReturnLen, byte BytParaType, byte BytReturnType ); /////////////////////////////File Access Interface//////////////////////// public Vector getallfiledescriptor(long DeviceId); public FileDescriptor getanfiledescriptor (long DeviceId,String FileName); public FileContent getfilecontent(long DeviceId, String FileName, int Offset, int Len); public String WriteFile(long DeviceId,String FileName,int offset,byte[] FileContent); //////////////////////////// User Manager Interface ///////////////////////// public Vector getallusers(string arg); public Boolean deleteanuser(string UserName); public Boolean addanuser(string UserName,String Password,boolean Valid); public Boolean UpdateAnUser(String OldUserName,String NewUserName,String NewPassword,boolean NewValid); //////////////////////////// Device Register Manager Interface ///////////////////////// public Vector getalldevices(); public Boolean deleteandevice(long deviceid); public Boolean addandevice(long DeviceId, int ServerId,String DeviceName,String DevicePassword,String AccessPath,int TUpdate); public Boolean UpdateAnDevice(long OldDeviceId,long NewDeviceId,int ServerId,String DeviceName,String DevicePassword,String AccessPath,int TUpdate); //////////////////////////// user/device privilege Manager Interface ///////////////////////// public Vector getanuserprivileges(string UserName); public Boolean deleteanprivilege(string UserName,long DeviceId); public Boolean addanprivilege(string UserName,long DeviceId,String DeviceName); /////////////////////////// Real Time Read & Memory Read Property Interface ////////////////////// public ByteArray RealTimeReadProperty(long DeviceID, String PropertyName, int Offset, int Len, byte DataType ); public ByteArray MemoryReadProperty(long DeviceID, String PropertyName, int Offset, int Len ); } DataCom Corp Page www.pnsdatacom.com 15/27

UserConnectEvent UserDisConnectEvent WebChipAccess WebChipAPI. ChipAPI com.prosyst.mbs.services.pbloader.pointbaseservice com.prosyst.mbs.services.pmp.pmpserver com.pns.webchip.mcuapaccessservice WebChipAPI com.prosyst.mbs.services.pbloader.jdbcdriver, com.pns.webchip, com.prosyst.mbs.services.pmp, com.prosyst.mbs.services.pbloader, com.pointbase.jdbc, com.prosyst.util.io, com.prosyst.util.event 2.4.3 WebChipManager Bundle mbserver Web jar pguieditor.jar, Bundle WebChipManager.jar Prosyst mbserver 4.1 Administrator Administrator pguieditor.jar / DataCom Corp Page www.pnsdatacom.com 16/27

MCUap TM DataCom Corp Page www.pnsdatacom.com 17/27

3.1 WebChipManager WebChip Manager Tab 12 There are four tabpages, every one is a function module 12 WebChipManager WebChip Manager Bundle pguieditor.jar WebChipManager.jar WebChip Manager WebChipManager.jar Bundle WebChipManager DataCom Corp Page www.pnsdatacom.com 18/27

WebChipAPI WebChipManager.jar WebChipAPI.jar Bundle Prosyst administrator administrator pguieditor.jar mbserver 4.1 administrator WebChip Manage PointBase webchip AllUsers DevicesRegister UserPrivilege WebChip Manager Prosyst Administraor Bundle WebChip / WebChipManager / ManagerEditor WebChipManager 13 Click here to show WebChipManager TM user interface 13 WebChipManager DataCom Corp Page www.pnsdatacom.com 19/27

3.2 3.2.1 Disable Enable, AllUsers Enabled NoUser 3.2.2 DevicesRegister devicesregister AllUsers DevicesRegister NoDevice 3.2.3 UserPrivilege UserPrivilege "NoPrivilege" 3.2.4 19 DataCom Corp Page www.pnsdatacom.com 20/27

1 "UserConnectEvent" 1 "UserDisConnectEvent" 3.3 3.3.1 14 User manager interface Enabled/ Disabled user Add User button Delete User button Update User button 14 Tab / 1 DataCom Corp Page www.pnsdatacom.com 21/27

1 Add, 15 Add user dialog box 15 2 / 3 OK 2 1 2 Remove User, 3 Yes 3 DataCom Corp Page www.pnsdatacom.com 22/27

1 2 / 3 Update User 4 / 1 2 true false 3 Update User Available false 3.3.2 Tab 16 Device manager interface Add device Delete device Update device Discovery device 16 DataCom Corp Page www.pnsdatacom.com 23/27

1 1 Add 17 Add device dialogbox 17 2 AccessPath Modem 3 OK TimeOut DataCom Corp Page www.pnsdatacom.com 24/27

2 1 2 Remove 3 Yes 3 1 2 3 Update 4 Discovery 1, 18 Device Discovery Dialog 18 DataCom Corp Page www.pnsdatacom.com 25/27

2 3 OK 3.3.3. Cance 4 3.3.3 18 Privilege manager interface Accessible devices Grant button Revoke button Selected user Inaccessible devices 19 1 1 All Users 2 Unaccessible Devices 3 Grant DataCom Corp Page www.pnsdatacom.com 26/27

2 1 All Users 2 Accessible Devices 3 Revoke 3.3.4 19 Connection event monitor Connection monitor interface Total Connection Connection count by user 20 100 DataCom Corp Page www.pnsdatacom.com 27/27