基本信息
源码名称:RFID自动写卡
源码大小:41.84M
文件格式:.zip
开发语言:C#
更新时间:2021-06-24
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559

本次赞助数额为: 2 元 
   源码介绍

RFID 读写设备 PC
开发指南

namespace GDotnet.Reader.Api
{
static class Example
{
static void Main()
{
GClient clientConn = new GClient();
eConnectionAttemptEventStatusType status;
// clientConn.OpenTcp("192.168.1.168:6180", 3000, out status)
if (clientConn.OpenSerial("COM16:115200", 3000, out status))
{
// 订阅标签上报事件
clientConn.OnEncapedTagEpcLog = new delegateEncapedTagEpcLog(OnEncapedTagEpcLog);
clientConn.OnEncapedTagEpcOver = new
delegateEncapedTagEpcOver(OnEncapedTagEpcOver);
// 停止指令, 空闲态
MsgBaseStop msgBaseStop = new MsgBaseStop();
clientConn.SendSynMsg(msgBaseStop);
if (0 == msgBaseStop.RtCode)
{
Console.WriteLine("Stop successful.");
} e
lse
{ Console.WriteLine("Stop error."); }
// 功率配置, 将 4 个天线功率都设置为 30dBm.
MsgBaseSetPower msgBaseSetPower = new MsgBaseSetPower();
msgBaseSetPower.DicPower = new Dictionary<byte, byte>()
{
{1, 30},
{2, 30},
{3, 30},
{4, 30}
};
clientConn.SendSynMsg(msgBaseSetPower);
if (0 == msgBaseSetPower.RtCode)
{
Console.WriteLine("Power configuration successful.");
} e
lse
{ Console.WriteLine("Power configuration error."); }