Sorry if my questions are little random but i’m a beginner with Arduino
I have the project to create a box, with the system inside that allow us to know what products are in the box.
I’m planning to buy the UHF RFID Antenna (TNC) to detect all products in the same time, but i’m afraid to don’t know exactly how to connect it to an Arduino.
Currently i have a Arduino Mega 2560.
Is it necessary to use a Simultaneous RFID Reader - M6E Nano ? is it compatible with my arduino ?
And how to connect the Antenna, with TNC jack, to the reader ? Is a breadboard necessary (maybe with SMA adapter or something like that ?) ?
The UHF RFID Antenna (TNC) is just an antenna and won’t work without being attached to a RFID reader like our [M6E Nano board. Unfortunately the M6E Nano doesn’t work on a Mega though and you’d need an Uno.
Following your advices, i bought everything to build the system.
Now, i have a new problem : I want to put information in a different form, but i’m afraid to damage the code (i’m not really a specialist).
I don’t want to have information in list form in the serial monitor.
The ACTUAL CODE :
{
//If we have a full record we can pull out the fun bits
int rssi = nano.getTagRSSI(); //Get the RSSI for this tag read
long freq = nano.getTagFreq(); //Get the frequency this tag was detected at
long timeStamp = nano.getTagTimestamp(); //Get the time this was read, (ms) since last keep-alive message
byte tagEPCBytes = nano.getTagEPCBytes(); //Get the number of bytes of EPC from response
Serial.print(F(" rssi["));
Serial.print(rssi);
Serial.print(F("]"));
Serial.print(F(" freq["));
Serial.print(freq);
Serial.print(F("]"));
Serial.print(F(" time["));
Serial.print(timeStamp);
Serial.print(F("]"));
//Print EPC bytes, this is a subsection of bytes from the response/msg array
Serial.print(F(" epc["));
for (byte x = 0 ; x < tagEPCBytes ; x++)
{
if (nano.msg[31 + x] < 0x10) Serial.print(F("0")); //Pretty print
Serial.print(nano.msg[31 + x], HEX);
Serial.print(F(" "));
}
Serial.print(F("]"));
I tought to change the code by removing all parts that are not interesting for me, like that :
{
byte tagEPCBytes = nano.getTagEPCBytes(); //Get the number of bytes of EPC from response
//Print EPC bytes, this is a subsection of bytes from the response/msg array
Serial.print(F(" epc["));
for (byte x = 0 ; x < tagEPCBytes ; x++)
{
if (nano.msg[31 + x] < 0x10) Serial.print(F("0")); //Pretty print
Serial.print(nano.msg[31 + x], HEX);
Serial.print(F(" "));
}
Serial.print(F("]"));
Is it a good solution, or there is a risk of malfunction ?