RFID Reader - Nordic ID Stix - c#

I have a device called 'Nordic ID Stix'.
But i dont really know how can i read from it!
Of course first i try using
System.IO.Ports.SerialPort
but it dont work.
(I cant start reading when antenna is turn off... )
Device is working and read rfid (i using AnyReader to read codes and it was work)
But now i need to write some software to reading from RFID.
I tried to use:
Phidget
System.IO.Ports.SerialPort
and now i want to try a :
Microsoft.SensorServices.Rfid.Utilities
but i cant find it anywhere in VisualStudio 2013 or anything else.
Please help me.
P.S. I find very much 'tutorials' which redirects to a blank page... :(

You will need the SDK (NurDistribution) that you can download from their extranet page (login required), or you will send the email to Nordic ID support (support#nordicid.com).

Related

Get the data from barcode scanner

I'm building web application for fitness center, they have a barcode scanner to which you are scanning your gym card into. What i'm trying to accomplish is to somehow get the data that the scanner is providing to them (name,surname and time of monthly subscription). My web application is built in ASP.NET C#, this is my first time dealing with this kind of problem.
I would appreciate your help or any other word of advice, feel free to ask more detailed questions.
If gym has barcode scanner like this
, it is seen in the system as a keyboard.
Such a scanner should also be able to set the ending character Tab or Enter. You do not need to confirm the scanned code then.
A card with a barcode as above returns the card number associated with a given person in the database.
You probably don't have access to the barcode scanner from MVC (Core or Framework). To do that you would probably have to run some software on the computer or phone that is scanning the member cards. There might be a solution though since the barcode scanner might be able to copy the id. This way you could input it to an input field in your MVC application and post it to the backend from there.
If i understand your Question correctly you probably need a SerialPort.
its actually pretty easy..
SerialPort serPort = new SerialPort("COM7"); // thats the USB port on which the scanner is connected
serial.DataReceived += new SerialDataReceivedEventHandler(serial_DataReceived);
serPort.Open();
and now you will receive everythig the Scanner has on:
private void serial_DataReceived(object sender, SerialDataReceivedEventArgs e){
string response = serPort.ReadExisting();
//do work
}
also if u dont know which port it is connected on use :
foreach (string sp in SerialPort.GetPortNames())
{
port = new SerialPort(sp)
{
Encoding = Encoding.GetEncoding("Windows-1252")
};
port.DataReceived += new
SerialDataReceivedEventHandler(Port_DataReceived);
port.Open();
}
this will watch over every Port you have see if something is connected and opens a connection to it, obviously if u have something like a mobile phone connected it will open a port with it too. but you can just make a check that if u scan u will only take that port and so on..
IF i did understand your question correctly that u want to know how to communicate with the Scanner thats how you do it.
if that was not your question, please comment and Clarify im working all day with Mobile Scanners Reading Barcodes so i think i will be able to help you.
Almost all handheld barcode scanners have a barcode in it's manual to change the scanner to function as a keyboard wedge. This way the scanner functions exactly like a keyboard device. You'd scan a barcode and keycodes are sent to the cursor location.
So just look up the make/model of your scanner and download its manual and look for a barcode that you can scan to change its emulation mode.

Connecting to the device via zkemkeeper.dll WITH PASSWORD in C# .net

I have to implement a biometric system. Im using ZKTeco LP600 time attendance device and ZKTeco SDK (ZKemKeeper.dll) here its the situation:
When I try to connect to device with no security password(the one who configure in the device > menu > communication > security > 6 digit Password ) I achieve it without any trouble.
But when I put some password things go wrong...I recive the error -6
Im using: bool isConn= axCZKEM1.Connect_Net(devIP,4370);
This is the answer to my own question if someone need the info in the future. After checking the class dictionary (Which I found in a remote place in the zk page) there's a method call SetCommPassword(int password) which you must set before use the Connect_Net method. Theres many strange things in this dll and im still trying to understand some....

Voice call with gsm-modem by C#

im new in c# and i wanna right a code for have a voice call through the GSM modem , actually don't know about how to receive and send voice or stream that ,if any one knows about how to do it please help me with this problem.
i just found this but didn't understand enough to develop my application.
every thing i know is just to send command ,unfortunately i do not even know the AT-Commands.
Port gsmPort=new Port();
gsmPort.Name="COM3";
gsmPort.open();
gsmPort.writeLine("AT\r");
I can suggest to you read these links:
http://www.zeeman.de/wp-content/uploads/2007/09/ubinetics-at-command-set.pdf
2.https://www.sparkfun.com/datasheets/Cellular%20Modules/AT_Commands_Reference_Guide_r0.pdf
https://www.youtube.com/watch?v=_3Vn_YEh3jM

Grab micro-controller info

I have a client that is supposed to grab data from a micro-controller ( Arduino if you are familiar with it ), that transmits once a second a line of values, and send that data to a server to which the client is connected .
How should i do that ? The micro-controller when connected to the PC , 'shoots' data on one of the COMs.. should i approach the problem as a client-server ? I mean should i connect with my client to the micro-controller passing the mcontroller's port ? And if so, can anyone give me a link to such a solution ?
From what you're writing You could just download a port-analyzer to check what's coming in.
http://www.serial-port-monitor.com/
You can also write a simple macro in excel that grab data and output to sheet,
just open the com-port with the right settings.
If it's an 24/7-application, I'd recommend a simple complied program running as a service, .NET or maby compiled script, autoit3 or similar (if you're on win32).
http://www.autoitscript.com/forum/topic/19769-phone-dialer-using-com-to-modem-on-serial-port/
(3:rd post, Martin)
Regards,
//t

Opening a Specific Email in GMail Using C# and WatiN

I've been working with sending and receiving email through various web-mail clients using WatiN, I've got logging in, writing and sending emails working perfectly, however I am having issues opening specific emails.
Each email I send has a specific id codein the subject, but I can't work out how to tell WatiN to actually click the specific email. I would of thought it would be something like:
ie.Link(Find.ByText("UN1QU3_1D")).Click();
But due to how Gmail and Live set up their display this doesn't seem to work...
Also, a slightly simpler question, is there a way of preventing WatiN closing the browser once it has finished with it?
Does anyone have any bright ideas?
Many thanks.
Since all gmail message titles are actually in spans not links, I think this will work:
ie.Span(Find.ByText("UN1QU3_1D")).Click();
Also, as far as I remember, WatiN won't close a browser unless you specifically closed them, like:
ie.Close();
UPDATE:
Finally it worked for me :D Span ieFramesSpan = ie.Frames[3].Span( delegate(Span s) { return s.InnerHtml==null? false: s.InnerHtml.Contains("UN1QU3_1D"); }); ieFramesSpan.MouseDown();

Categories

Resources