Click here to Skip to main content
15,897,718 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all
I have an rfid device summit dnr-s918m and try to connect with tcp/ip using its provided API and connect it network card.

my code:
VB
Dim Reader As New DataNetRFID.SR918X
------------
Dim Stat = Reader.TcpConnectReader("192.168.1.200", 100)
If Stat = DataNetRFID.ReturnValue.SUCCESS_RETURN Then
    Dim V1 As Integer, V2 As Integer, SN As String = ""
    Stat = Reader.GetFirmwareVersion(255, V1, V2)
    StStat.Text = "Reader Connect Successfully"
    StVersion.Text = String.Format("Firmware Version : {0}.{1}", V1, V2)
    Stat = Reader.GetSerialNo(255, SN)
    StSN.Text = String.Format("Reader Serial NO : {0}", SN)
    SetEnable(True)
    GroupBox1.Enabled = False
    GetANt()
    GetTCP()

Else
    StStat.Text = "Reader Connection Failed!"
End If


default device IP :192.168.1.200 and port 100

but stat variable assign value to ERR_PORT_OPEN_FAIL{2018}
Posted
Updated 17-Dec-14 19:59pm
v2
Comments
George Jonsson 18-Dec-14 2:06am    
You better contact the vendor of the device.
Have you tried to ping the device from a command prompt with the default IP address?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900