I work on a project that uses the RFID Technology. I have bought an RFID Reader (http://www.idtronic-rfid.com/pdfs/01_BLUEBOX_2.0/UHF/BLUEBOX%20UHF%20Industrial%20Reader%20-%20CX%202CH.pdf) and an antenna.
All worked very correctly with the bluebox program. I manage to read RFID Tags.
But I want to read tags by a Node.js application.
The RFID reader is connect to my PC Windows 8.1 with an Ethernet cable.
This is my script for connect and to try to read RFID tags:
var net = require('net');
var HOST = '192.168.4.200';
var PORT = 3000;
var client = new net.Socket();
client.connect(PORT, HOST, function() {
console.log('CONNECTED TO: ' + HOST + ':' + PORT);
});
//Read data
client.on('data', function(data) {
console.log('DATA: ' + data);
});
// close event
client.on('close', function() {
console.log('Connection closed');
});
The connection work correctly because, when i connect to this port and IP via the BlueBox Software, the connection on the node.js server fails.
Now, I want to read RFID tags... But my function "data" is not perform... Do you have an idea please ?
Best Regards,