我已经下载了nfcpy并成功运行了beam examples。
我使用beam.py
将数据从带有PN532 NFC芯片的RPi发送到Nexus Android手机,数据被正确发送,但在RPi上,python脚本不存在,只要我把手机放在读卡器旁边。
该问题适用于nfcpy的发送和接收。
我要做什么才能使beam.py
存在
安全吗?在
示例:
发送:
./beam.py --device tty:AMA0:pn53x send ndef start.ndef
[nfc.clf] searching for reader with path 'tty:AMA0:pn53x'
[nfc.clf] using NXP PN532 at /dev/ttyAMA0
[nfc.snep.server] snep server bound to port 4 (MIU=1984, RW=15), will accept up to 1048576 byte NDEF messages
[nfc.dev.pn53x] activated as target in 424 kbps active mode
[nfc.dev.pn53x] [Errno 110] Connection timed out
[nfc.dev.pn53x] activated a p2p target in 424 kbps active mode
[nfc.llcp.llc] LLCP Link established as NFC-DEP Initiator
Local LLCP Settings
LLCP Version: 1.1
Link Timeout: 500 ms
Max Inf Unit: 2175 octet
Service List: 0000000000010011
Remote LLCP Settings
LLCP Version: 1.1
Link Timeout: 1500 ms
Max Inf Unit: 128 octet
Service List: 0000000000010011
[nfc.dev.pn53x] [PN53x Error 0x13] Format error during RF communication
接收:
^{pr2}$
NFC P2P链路终止的最自然的方式是由于链路中断而导致的一些错误。只要两个设备都在附近,通信将继续进行对称分组的交换。这样一来,任何一个设备都可以按照自己的意愿启动其他对话——SNEP(或beam)并不是唯一的东西。在
特别是对于nfcpy的beam示例,提前终止的方法是通过Ctrl-C。或者修改示例以在任务完成时终止。在
相关问题 更多 >
编程相关推荐