嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559
本次赞助数额为: 2 元微信扫码支付:2 元
请留下您的邮箱,我们将在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."); }