Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] chinese board #1

Open
ildar opened this issue May 2, 2018 · 10 comments
Open

[WIP] chinese board #1

ildar opened this issue May 2, 2018 · 10 comments
Assignees

Comments

@ildar
Copy link
Owner

ildar commented May 2, 2018

having lettering:

RC522
12 02
TXD6080
NXP

Looks so: https://mysku.ru/blog/aliexpress/23114.html
Not successful yet.

@ildar
Copy link
Owner Author

ildar commented May 2, 2018

ok then.
The board is soldered to work through SPI. I cut the EA ←→VDD track and connected EA ←→ GND. Now the board works through UART... mostly :)

@ildar
Copy link
Owner Author

ildar commented May 2, 2018

The chip appeared to be crippled:

debug	libnfc.driver.rc522_uart	Upgrading baud rate to user-specified 115200 bps.
debug	libnfc.bus.uart	Serial port speed requested to be set to 115200 baud.
debug	libnfc.bus.uart	TX: 1f
debug	libnfc.bus.uart	RX: 00
debug	libnfc.driver.rc522_uart	rc522_uart_write ack does not match (sent 1F, received 00)
error	libnfc.chip.rc522	Unable to write register 1F!

@ildar
Copy link
Owner Author

ildar commented May 2, 2018

ok, you don't wanna 115200 bod ? then let's talk 9600:

connstring = "rc522_uart:/dev/ttyUSB0:9600"

@ildar
Copy link
Owner Author

ildar commented May 2, 2018

hah! stumbled again:

$ LIBNFC_LOG_LEVEL=3 ./nfc-anticol
info	libnfc.config	Unable to open file: /etc/nfc/libnfc.conf
debug	libnfc.config	key: [device.allow_autoscan], value: [false]
info	libnfc.config	Unknown key in config line: device.allow_autoscan = false
debug	libnfc.config	key: [device.log_level], value: [3]
info	libnfc.config	Unknown key in config line: device.log_level = 3
debug	libnfc.config	key: [device.name], value: [MFRC522]
debug	libnfc.config	key: [device.connstring], value: [rc522_uart:/dev/ttyUSB0:9600]
debug	libnfc.general	log_level is set to 3
debug	libnfc.general	allow_autoscan is set to true
debug	libnfc.general	allow_intrusive_scan is set to false
debug	libnfc.general	1 device(s) defined by user
debug	libnfc.general	  #0 name: "MFRC522", connstring: "rc522_uart:/dev/ttyUSB0:9600"
debug	libnfc.driver.rc522_uart	Attempt to open: /dev/ttyUSB0.
debug	libnfc.driver.rc522_uart	Attempting to establish a connection at 9600 bps.
debug	libnfc.bus.uart	Serial port speed requested to be set to 9600 baud.
debug	libnfc.bus.uart	TX: b7
debug	libnfc.bus.uart	RX: 12
debug	libnfc.chip.rc522	RD 37: 12
debug	libnfc.chip.rc522	Aborting self test for unknown version 12.
debug	libnfc.bus.uart	TX: 01
debug	libnfc.bus.uart	RX: 01
debug	libnfc.bus.uart	TX: 2f
debug	libnfc.chip.rc522	WR 01: 2f
debug	libnfc.driver.rc522_uart	Restoring baud rate to default of 9600 bps.
debug	libnfc.bus.uart	Serial port speed requested to be set to 9600 baud.
debug	libnfc.bus.uart	TX: 81
debug	libnfc.bus.uart	RX: 20
debug	libnfc.chip.rc522	RD 01: 20
debug	libnfc.driver.rc522_uart	Connection with a RC522 at 9600 bps established successfully.
debug	libnfc.general	"�|a" (rc522_uart:/dev/ttyUSB0:9600) has been claimed.
debug	libnfc.bus.uart	TX: 94
debug	libnfc.bus.uart	RX: 80
debug	libnfc.chip.rc522	RD 14: 80
debug	libnfc.bus.uart	TX: 14
debug	libnfc.bus.uart	RX: 14
debug	libnfc.bus.uart	TX: 80
debug	libnfc.chip.rc522	WR 14: 80
debug	libnfc.bus.uart	TX: 94
debug	libnfc.bus.uart	RX: 80
debug	libnfc.chip.rc522	RD 14: 80
debug	libnfc.bus.uart	TX: 14
debug	libnfc.bus.uart	RX: 14
debug	libnfc.bus.uart	TX: 83
debug	libnfc.chip.rc522	WR 14: 83
debug	libnfc.chip.rc522	Updating RF baud rate to 106kbps.
debug	libnfc.bus.uart	TX: 92
debug	libnfc.bus.uart	RX: 00
debug	libnfc.chip.rc522	RD 12: 00
debug	libnfc.bus.uart	TX: 12
debug	libnfc.bus.uart	Timeout!
error	libnfc.chip.rc522	Unable to write register 12!
nfc_initiator_init: Timeout
debug	libnfc.bus.uart	TX: 01
debug	libnfc.bus.uart	RX: 00
debug	libnfc.driver.rc522_uart	rc522_uart_write ack does not match (sent 01, received 00)
error	libnfc.chip.rc522	Unable to write register 01!

@ildar
Copy link
Owner Author

ildar commented May 2, 2018

@ildar ildar self-assigned this May 2, 2018
@socram8888
Copy link

I'll try to recompile and test it again this evening. But I am 99% sure the code did work for me with the FM17522.

@ildar
Copy link
Owner Author

ildar commented May 2, 2018 via email

@ildar
Copy link
Owner Author

ildar commented May 14, 2018 via email

@ildar
Copy link
Owner Author

ildar commented May 16, 2018 via email

@socram8888
Copy link

Could you try reading any crypto-heavy card, such as Ultralight C or DESFire? The shitty Chinese board I have seems not to send enough power to them to work, and I'm not sure if it's just my board or something that affects all Chinese fake readers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants