|
@@ -1,4 +1,5 @@ |
|
|
using HKHelper; |
|
|
using HKHelper; |
|
|
|
|
|
using Snowflake.Core; |
|
|
using System.Diagnostics; |
|
|
using System.Diagnostics; |
|
|
using System.Text; |
|
|
using System.Text; |
|
|
using UHFHelper; |
|
|
using UHFHelper; |
|
@@ -47,7 +48,8 @@ namespace test |
|
|
|
|
|
|
|
|
private void button4_Click(object sender, EventArgs e) |
|
|
private void button4_Click(object sender, EventArgs e) |
|
|
{ |
|
|
{ |
|
|
var res = UHFCardHelper.GetInstance().WriteCard(textBox1.Text); |
|
|
|
|
|
|
|
|
string worker = new IdWorker(1, 1).NextId().ToString();// IDÉú³É |
|
|
|
|
|
var res = UHFCardHelper.GetInstance().WriteCard(worker); |
|
|
MessageBox.Show(res.ResMes); |
|
|
MessageBox.Show(res.ResMes); |
|
|
} |
|
|
} |
|
|
List<int> add = new List<int>(); |
|
|
List<int> add = new List<int>(); |
|
@@ -68,7 +70,7 @@ namespace test |
|
|
// ³õʼ»¯ |
|
|
// ³õʼ»¯ |
|
|
UHF_RS485_Helper.GetInstance().Open(new SerialParam |
|
|
UHF_RS485_Helper.GetInstance().Open(new SerialParam |
|
|
{ |
|
|
{ |
|
|
PortName = "COM8", |
|
|
|
|
|
|
|
|
PortName = "COM3", |
|
|
BaudRate = 57600, |
|
|
BaudRate = 57600, |
|
|
DataBits = 8 |
|
|
DataBits = 8 |
|
|
}); |
|
|
}); |
|
|