android-things-rc522 | Android library to communicate with RFID Module RC522
kandi X-RAY | android-things-rc522 Summary
kandi X-RAY | android-things-rc522 Summary
An Android Things libray to control RFID readers based on the RC522 reader. Based on pi-rc522 by user ondryaso.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Increment the value of a block
- Executes a command
- Calculates the CRC value
- Reads the current value on the device
- Writes a register to the device
- Dumps all data in all data blocks
- Authenticate card
- Reads the data from the tag
- Converts a data block into a hexadecimal string representation
- Test for anti - collision detection
- Reads a 32 bit integer value from the given address
- Transfer a buffer to a block
- Writes a sector s trailer s data
- Decrements the value of a block
- Select a tag
- Initializes the instance
- Writes a 32 - bit integer to a value block
- Transfers a value block to the transfer buffer
- Closes the device
android-things-rc522 Key Features
android-things-rc522 Examples and Code Snippets
import com.galarzaa.androidthings.Rc522;
public class MainActivty extends AppCompatActivity{
private Rc522 mRc522;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Peripher
Community Discussions
Trending Discussions on android-things-rc522
QUESTION
I'm developing software for an Android Things device with RFID reader RC522. I use this library: https://github.com/Galarzaa90/android-things-rc522
My task querying the RC533 RFID reader:
...ANSWER
Answered 2018-May-24 at 15:07The results are essentially the same for the RC522 and Android's built-in NFC reader. The main differences are that the library that you use for the RC522
- includes the checksum (BCC) in the UID field, and
- performs anti-collision only for cascade level 1.
This means that only the first 4 bytes of the value obtained through mRc522.getUid()
are the UID value. The last (5th byte) is the XOR checksum over the previous 4 bytes. This is the BCC byte from the raw anti-collsion frame. If you want to calculate that for the value received through tagFromIntent.getId()
, you could do something like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install android-things-rc522
You can use android-things-rc522 like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the android-things-rc522 component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page