GithubHelp home page GithubHelp logo

Comments (4)

trineon89 avatar trineon89 commented on May 30, 2024

push

from sparkfun_simultaneous_rfid_tag_reader_library.

D3w3y avatar D3w3y commented on May 30, 2024

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.

nseidle avatar nseidle commented on May 30, 2024

@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.

nseidle avatar nseidle commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.