Comments (5)
hi,paweljasinski:
Speed value must be one of these constants: 9600 (default), 19200, 38400, 57600, 115200, 230400 or 460800.", uiPortSpeed); It's in the file βuart.cβ.
But 115200 is the PN532's default value. If you want to use other baud, you must use "SetSerialBaudRate" command first.
from libnfc.
To be sure I am not misunderstanding anything.
- establish communication with the default 115200,
- issue the SetSerialBaudRate
- re-establish communication with a new speed
from libnfc.
Please refer to the diagram:
To be sure that the baud rate-"Real HSU Freq" error is not greater than 4%:
PN532 User Manual V0.2.pdf
PN532_C1.pdf
from libnfc.
already have a basic communication with 230.4.
To be sure that the baud rate-"Real HSU Freq" error is not greater than 4%:
Do I have to adjust registers value (HSU_CNT and HSU_PRE) myself, or it happens as part of SetSerialBaudRate?
I have another question:
Once the comm speed is changed from default, it is persistent until reset or power cycle.
For now I am coding with assumption that libnfc works with the board after reset and starts with 115200 and changes to requested speed. The code is not trying to reestablished communication after program terminated but board did not get reset and is still using the altered speed.
Is this something you would considered to be acceptable in PR?
from libnfc.
Poll the command "SAMConfiguration" at different baud rates before communication, such as: 55 55 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF 03 FD D4 14 01 17 00, and receive the right ACK.
from libnfc.
Related Issues (20)
- Error libnfc.driver.pn532_uart Application level error detected HOT 2
- Where can I get a compiled Windows copy? HOT 1
- nfc-tool.org inaccessible HOT 1
- When is the new release?π₯²
- Option for increment/decrement value block
- Requesting LPCUSBSIO support for PN7150 dongle
- EIO when send HLTA command
- pn7160 support
- Website not working HOT 2
- Libnfc doesn't work on MacOS with ACR1581U-C1 HOT 1
- acr122 conf HOT 1
- Conflicting macro definations in contrib/windows.h and errno.h
- Lee
- Various ACS devices not detected
- CMake expects lusb0_usb.h to be accessible for libnfc/buses/usbbus.h HOT 2
- Error: Can't write on Mifare 1K key HOT 1
- Any chance to include an app that reads ISO 14443-4B?
- Not finding device CIR315A on Raspberry Pi
- Support for ACR1283L/U
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 libnfc.