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.
没有合适的资源?快使用搜索试试~ 我知道了~
飞天诚信Rockey4Smart开发包
共603个文件
h:64个
lib:56个
dsp:41个
3星 · 超过75%的资源 需积分: 45 55 下载量 165 浏览量
2018-12-05
14:54:02
上传
评论
收藏 17.33MB RAR 举报
温馨提示
飞天诚信Rockey4Smart最新的开发包,可以支持win10系统,linux,mac等,智能卡芯片加密锁,兼容老版本Rockey4ND,包括各种语言的示例程序和说明手册。
资源推荐
资源详情
资源评论
收起资源包目录
飞天诚信Rockey4Smart开发包 (603个子文件)
libJRockey4Smart.so.0.3 93KB
libRockey4Smart.so.0.3 93KB
libJRockey4Smart.so.0.3 76KB
libRockey4Smart.so.0.3 75KB
._Contents 4KB
._MacOS 4KB
._r4s 4KB
._Resources 4KB
libRockey4Smart.a 213KB
libRockey4Smart.a 128KB
libRockey4Smart.a 88KB
all-wcprops 2KB
NrClient.bas 10KB
Module1.bas 6KB
Module1.bas 430B
Module1.bas 31B
Project1.bdsproj 8KB
Project1.bdsproj 8KB
Project2.bpf 98B
Project1.bpr 4KB
Project1.bpr 4KB
Project1.bpr 4KB
Project2.bpr 4KB
test.c 22KB
Vcsamp.c 15KB
test.c 14KB
Sample.c 14KB
test.c 14KB
test.c 14KB
Sample.c 5KB
Sample.c 3KB
Sample.c 3KB
Sample.c 3KB
interface.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 2KB
Sample.c 2KB
Sample.c 2KB
Sample.c 1KB
Sample.c 1KB
Sample.c 1KB
Sample.c 1KB
Sample.c 1KB
Sample.c 1KB
Sample.c 1KB
Sample.c 1KB
Sample.c 1KB
Sample.c 852B
Sample.c 120B
Sample.csproj.GenerateResource.Cache 842B
Ry4S.class 3KB
Ry4S.class 3KB
Ry4S.class 3KB
Ry4S.class 3KB
SampleDlg.cpp 20KB
dlldemoDlg.cpp 20KB
Unit1.cpp 18KB
testlib.cpp 15KB
Unit1.cpp 7KB
Time.cpp 6KB
NRTest.cpp 6KB
Time.cpp 5KB
main.cpp 5KB
Unit1.cpp 4KB
Count.cpp 3KB
Count.cpp 3KB
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 13KB
Form1.cs 12KB
Form1.cs 12KB
Form1.cs 10KB
Form1.cs 10KB
Form1.cs 8KB
Form1.Designer.cs 3KB
Form1.Designer.cs 3KB
Form1.Designer.cs 3KB
Form1.Designer.cs 3KB
Form1.Designer.cs 3KB
Resources.Designer.cs 3KB
Resources.Designer.cs 3KB
共 603 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源评论
- sking0072020-08-26很老的版本,不支持64位
- christ2022021-06-04试用了一下,还可以
炭烤冰激凌
- 粉丝: 3
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Android的学生信息管理2.rar
- 3e9ef566-ba13-47b0-a252-77aa9e4b040f8412130.apk
- 毕业设计基于SSM的房屋租赁系统源【源码+lw+部署+讲解】
- 基于Android男装出口管理系统的app.rar
- 工资表生成工资条Excel模版
- 位运算、状态压缩、枚举子集汇总.html
- C++毕业设计快递分拣机器人系统源码+论文文件+资料.zip
- 锐龙处理器 体质分析工具,体质越好越稳定,越容易超频 tool1007/Win V/F
- IOS Swift3 四种单例模式详解及实例《PPT文档》
- Swin-Unet网络预训练模型,swin-tiny-patch-window7-224.pth
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功