Skip to content

NFC error #8

Closed
Closed
@number12

Description

@number12

I followed all the instructions and python is installed correctly. The button code does work and the process is running. Anyways I skipped the NFC a couple times because of this error and got a new NFC reader incase, and still same error. Wondering if there is a fix Everything goes smoothly but when I type the command "nfc-poll" it gives the following error

pi@retropie:~ $ nfc-poll
nfc-poll uses libnfc 1.7.1
error libnfc.bus.i2c Error: wrote only -1 bytes (10 expected).
error libnfc.driver.pn532_i2c Unable to transmit data. (TX)
pn53x_check_communication: Input / Output Error
error libnfc.bus.i2c Error: wrote only -1 bytes (10 expected).
error libnfc.driver.pn532_i2c Unable to transmit data. (TX)
nfc-poll: ERROR: Unable to open NFC device.

Wondering if I did something wrong? I wired it correctly im sure. Thanks for help.
img_20170823_171103 1

Activity

Xerxes3rd

Xerxes3rd commented on Oct 10, 2017

@Xerxes3rd

@number12 It looks like you might have the DIP switches on the NFC board set to SPI instead of I2C.

thepiwizard

thepiwizard commented on Sep 17, 2021

@thepiwizard

very last step fails
also the tail nfc-poll thing fails

pi@retropie:~ $ sudo systemctl restart nfc_poll

Job for nfc_poll.service failed because the control process exited with error code.
See "systemctl status nfc_poll.service" and "journalctl -xe" for details.
pi@retropie:~ $ systemctl status nfc_poll.service
â— nfc_poll.service - LSB: start and stop nfc_poll server
Loaded: loaded (/etc/init.d/nfc_poll; generated)
Active: failed (Result: exit-code) since Fri 2021-09-17 19:33:41 BST; 11s ago
Docs: man:systemd-sysv-generator(8)
Process: 2371 ExecStart=/etc/init.d/nfc_poll start (code=exited, status=1/FAILURE)

Sep 17 19:33:41 retropie nfc_poll[2371]: Traceback (most recent call last):
Sep 17 19:33:41 retropie nfc_poll[2371]: File "/var/lib/nfc_poll/nfc_poll_daemon.py", line 64, in
Sep 17 19:33:41 retropie nfc_poll[2371]: start_daemon( args.pid_file, args.log_file )
Sep 17 19:33:41 retropie nfc_poll[2371]: File "/var/lib/nfc_poll/nfc_poll_daemon.py", line 54, in start_daemon
Sep 17 19:33:41 retropie nfc_poll[2371]: sys.exit(1)
Sep 17 19:33:41 retropie nfc_poll[2371]: NameError: global name 'sys' is not defined
Sep 17 19:33:41 retropie nfc_poll[2371]: failed!
Sep 17 19:33:41 retropie systemd[1]: nfc_poll.service: Control process exited, code=exited, status=1/FAILURE
Sep 17 19:33:41 retropie systemd[1]: nfc_poll.service: Failed with result 'exit-code'.
Sep 17 19:33:41 retropie systemd[1]: Failed to start LSB: start and stop nfc_poll server.
pi@retropie:~ $

coderkevin

coderkevin commented on Sep 18, 2021

@coderkevin
Owner

Fixed in 3b26b25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      NFC error · Issue #8 · coderkevin/mini-nes