How to use Ry4S.x32
1.Copy Ry4S.x32 to Director\Xtras\.
2.Start Director.
3.Open Message Window of Director for test.
4.Input command,shouxlib and show all loaded xtra. The information must includes rockey,otherwise that means Ry4S.x32 not in the directory,xtras.
Resutl samples:
-- Welcome to Director --
showxlib
-- XLibraries:
-- Xtra: rockey
-- Xtra: filextra
-- Xtra: uihelper
-- Xtra: javaconvert
-- Xtra: quicktimesupport
-- Xtra: netlingo
-- Xtra: multiuser
-- Xtra: xmlparser
-- Xtra: mui
-- Xtra: fileio
-- Xtra: beatnik
-- Xtra: activex
The first Xtra is rockey.
5.Use command,interface, you can see rockey interfaces.Command format: put interface(xtra "rockey")
Sample:
put interface(xtra "rockey")
-- "xtra ROCKEY -- ROCKEY functions for Lingo,Release v1.00
new object me
-- ROCKEY Interface --
* rockey integer function,integer handle,integer lp1,integer lp2,integer p1,integer p2,integer p3,integer p4,string buf -- ROCKEY interface
* get_p1 -- Get return value in P1 parameter
* get_p2 -- Get return value in P2 parameter
* get_p3 -- Get return value in P3 parameter
* get_p4 -- Get return value in P4 parameter
* get_lp1 -- Get return value in lp1 parameter
* get_lp2 -- Get return value in lp2 parameter
* get_handle -- Get return value in handle parameter
* get_buf -- Get return value in buf parameter
-- Misc functions --
* hex2dec string hex --convert hexadecimal number to decimal number.
* dec2hex int dec --convert decimal number to hexadecimal number.
rockey is the main function. It realizes functions as following:
find,open,read/write,calculate,get return code of seed and so on.
rockey function code definition:
define RY_FIND 1 //Find dongle
#define RY_FIND_NEXT 2 //Find next dongle
#define RY_OPEN 3 //Open dongle
#define RY_CLOSE 4 //Close dongle
#define RY_READ 5 //Read dongle
#define RY_WRITE 6 //Write donge
#define RY_RANDOM 7 //Generate random number
#define RY_SEED 8 //Generate return code of seed
#define RY_WRITE_USERID 9 //Write user ID
#define RY_READ_USERID 10 //Read user ID
#define RY_SET_MOUDLE 11 //Set module
#define RY_CHECK_MOUDLE 12 //Check module
#define RY_WRITE_ARITHMETIC 13 //Write arithmetic
#define RY_CALCULATE1 14 //Calculate 1
#define RY_CALCULATE2 15 //Calculate 2
#define RY_CALCULATE3 16 //Calculate 3
#define RY_DECREASE 17 //Decrease module unit
handle:handle of dongle,
lp1,lp2:long parameters,
p1,p2,p3,p4:short parameters,
buf:buffer for data
Detailed explanation,please refer to document.
The return value of rockey function shows operation state:
//return value
0 //Success
5 //Wrong password or hardware ID
6 //Set hardware ID error
7 //Read/write address or length error
8 //No such command
9 //Inside error
10 //Read error
11 //Write error
12 //Random number error
13 //Seed code error
14 //Calculate error
15 //Not open dongle before operation
16 //Too much dongles opened(>16)
17 //No more dongles
18 //Use FindNext befor using Find
19 //Decrease error
20 //Arithmetic instruction error
21 //Arithmetic operator error
22 //Const number can't use on first arithmetic instruction
23 //Const number can't use on last arithmetic instruction
24 //Const value> 63
0x102 //Unknown system
0xffff //Unknown error
0x,Hex
6.Samples
(1) Find DEMO dongle
From the manual document,the input parameters of find dongle are function=p1,p2,p3,p4(password).DEMO password are 0xc44c,0xc8f8,0x0799,0xc43b.
You need change password from hex to dec format by using calculater or hex2dec function.
put hex2dec("c44c")
-- "50252"
0xc44c=50252,
put hex2dec("c8f8")
-- "51448"
put hex2dec("0799")
-- "1945"
put hex2dec("c43b")
-- "50235"
Input theses parameters as following
put rockey(1,0,0,0,50252,51448,1945,50235,"")
-- 0
return value:0=success,else is error code. Hardware ID is returned by Lp1.By callingget_lp1(),lp1 value can be get.
put get_lp1()
-- -1995600092 //hardware ID
-1995600092 is hardware ID. Using dec2hex() function to get its Hex format.
put dec2hex(-1995600092)
-- "890d8f24"//hardware ID(HEX)
(2)Open DEMO dongle
put rockey(3,0,-1995600092,0,50252,51448,1945,50235,"")
-- 0
Return value:0=success,else is error code. Dongle's handle is returned by parameter,handle.By calling get_handle(),handle can be get.
put get_handle()
-- 4
4 is dongle's handle value.
(3)Read user memory
put rockey(5,4,0,0,0,23,0,0,"")
-- 0
Return value:0=success,else is error code. User data is saved in parameter,buf.By calling get_buf(),the data can be get.
put get_buf()
-- "www.ftsafe.com"
Readed data is "www.ftsafe.com"
Other function of rockey(),please refer to document.
没有合适的资源?快使用搜索试试~ 我知道了~
飞天诚信的工具
共411个文件
h:55个
txt:54个
dsp:37个
需积分: 18 16 下载量 54 浏览量
2018-12-18
17:10:13
上传
评论
收藏 10.25MB 7Z 举报
温馨提示
飞天诚信 rockey 4 smart的所有工具 包括32/64位API 文档说明 管理工具 示例等
资源推荐
资源详情
资源评论
收起资源包目录
飞天诚信的工具 (411个子文件)
Module1.bas 8KB
Module1.bas 430B
Module1.bas 31B
Project1.bdsproj 8KB
Project1.bdsproj 8KB
Project1.bpr 4KB
Project1.bpr 4KB
Project1.bpr 4KB
Sample.c 15KB
Sample.c 15KB
Vcsamp.c 15KB
Vcsamp.c 7KB
Sample.c 3KB
Sample.c 3KB
Sample.c 3KB
Sample.c 3KB
Sample.c 3KB
Sample.c 3KB
Sample.c 3KB
Sample.c 3KB
Sample.c 3KB
Sample.c 3KB
Sample.c 3KB
Sample.c 3KB
Sample.c 3KB
Sample.c 3KB
Sample.c 3KB
Sample.c 3KB
Sample.c 2KB
Sample.c 2KB
Sample.c 2KB
Sample.c 2KB
Sample.c 2KB
Sample.c 2KB
Sample.c 2KB
Sample.c 2KB
Sample.c 2KB
Sample.c 2KB
Sample.c 2KB
Sample.c 2KB
Sample.c 1KB
Sample.c 1KB
Sample.c 269B
Com_Count.csproj.GenerateResource.Cache 842B
Com_Timer.csproj.GenerateResource.Cache 842B
Com_Count.csproj.ResolveComReference.cache 538B
Ry4S.class 3KB
Ry4S.class 3KB
Ry4S.class 3KB
Ry4S.class 3KB
app.config 144B
app.config 144B
dlldemoDlg.cpp 21KB
Unit1.cpp 20KB
SampleDlg.cpp 20KB
TestLib.cpp 15KB
Time.cpp 7KB
Unit1.cpp 7KB
Unit1.cpp 4KB
Count.cpp 4KB
DLLDEMO.CPP 2KB
Sample.cpp 2KB
Project1.cpp 1KB
Project1.cpp 1KB
Project1.cpp 1KB
StdAfx.cpp 209B
StdAfx.cpp 208B
Form1.cs 15KB
Form1.cs 15KB
Form1.cs 14KB
Form1.cs 13KB
Form1.Designer.cs 11KB
Form1.Designer.cs 11KB
Form1.cs 10KB
Form1.Designer.cs 3KB
Form1.Designer.cs 3KB
Resources.Designer.cs 3KB
Resources.Designer.cs 3KB
Resources.Designer.cs 3KB
Resources.Designer.cs 3KB
AssemblyInfo.cs 2KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
Settings.Designer.cs 1KB
Settings.Designer.cs 1KB
Settings.Designer.cs 1KB
Settings.Designer.cs 1KB
Program.cs 477B
Program.cs 477B
Program.cs 476B
Program.cs 476B
sample3.csproj 6KB
sample3.csproj 5KB
Sample.csproj 4KB
Com_Timer.csproj 3KB
Com_Count.csproj 3KB
RY4S.dcu 74KB
RY4S.dcu 74KB
共 411 条
- 1
- 2
- 3
- 4
- 5
资源评论
DateForensics
- 粉丝: 0
- 资源: 18
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 三菱PLC例程源码Medocsequencegenerator
- 三菱PLC例程源码M1320磨头进出FX1s控制步进电机,有注释
- STRASSEN矩阵乘法算法(改进分治法·C语言)
- 前端.xmind前端.xmind前端.xmind前端.xmind前端.xmind
- 三菱PLC例程源码LOW-E玻璃镀膜线程序(三菱QPLC的)一万步带注释
- 三菱PLC例程源码LCD设备蚀刻机程序
- 三菱PLC例程源码LCD设备蚀刻机
- 全面前端开发指南:从基础到深入
- pvk2pfx 32位 Pvk2Pfx (Pvk2Pfx.exe) 是一种命令行工具,可将 .spc、.cer 和 .pvk 文
- 三菱PLC例程源码JH21-150程序
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功