Comments (4)
push
from sparkfun_simultaneous_rfid_tag_reader_library.
I have a very dirty workaround for you. For me the compilation works with that, but I don't need this method so I don't care if it still works as expected or not.
In the SparkFun_UHF_RFID_Reader.cpp
file add a line to the writeTagEPC
method, to convert the newID
from char
to uint8
and then hand over the new variable to the writeData
method.
writeTagEPC
looks like this for me now:
uint8_t RFID::writeTagEPC(char *newID, uint8_t newIDLength, uint16_t timeOut)
{
uint8_t bank = 0x01; //EPC memory
uint8_t address = 0x02; //EPC starts at spot 4
uint8_t * nnewID = (uint8_t*)atoi(newID); // New Line doing the conversion
return (writeData(bank, address, nnewID, newIDLength, timeOut)); // Changed newID to the above created variable nnewID
}
For me this looks like a bug in the library, maybe @nseidle can have a look and fix it properly?
from sparkfun_simultaneous_rfid_tag_reader_library.
@D3w3y - Thanks! Your code fixed the error. The Uno compiler settings are more forgiving than the MKR and Teensy settings.
Hi @trineon89 - I just committed D3w3y's fix, as well as two additional examples showing how to use hardware serial (instead of softwareSerial). I don't have a MKR1000 to test with but checkout the Examples->Advanced->Example3_HardwareSerial_Write_EPC. It now compiles and correctly writes an EPC to a tag using a Teensy.
I'll lib ver roll the library here shortly. Please test and let us know how it goes.
from sparkfun_simultaneous_rfid_tag_reader_library.
To document for myself: the atoi recommendation caused a bug in EPC write as reported by ombi and fixed by paulvha. The latest v1.0.7 should fix both the bug and the MKR1000 compilation issue.
from sparkfun_simultaneous_rfid_tag_reader_library.
Related Issues (20)
- Using other options for startReading() HOT 3
- Examples on ESP8266 HOT 3
- Send a standard Class−1 Generation−2 UHF Select command HOT 9
- Does it have collision while reading the tags simultaneously. HOT 1
- Reading tag EPC in ASCII code is possible? HOT 2
- Setting a session HOT 1
- Problem using EPCwrite HOT 3
- FATAL error HOT 1
- Duty cycle parameters HOT 1
- Intermittent communications with M6E nano
- Module failed to respond. Please check wiring. ESP32 Serialsoftware HOT 2
- Compile Errors - Error compiling for board SparkFun ESP32 Thing Plus. HOT 3
- ESP32 seems RX is ok but not TX HOT 1
- Trying to do a constant read with the SparkFun M6E Nano and a Raspberry Pico HOT 1
- Adding support for GS1 Gen2 untraceable command
- Cant compile expamles HOT 7
- Doesn't build: line 676 HOT 3
- TID length inconsistency HOT 8
- Reading Tag EPC in ASCII? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sparkfun_simultaneous_rfid_tag_reader_library.