[Tutor] Regarding NDEF URL transfer to arduino using python
Shreyas Mangalgi
mangalgishreyas at gmail.com
Mon Jun 23 07:56:33 CEST 2014
I want to be able to send URI in NDEF format to my Arduino UNO which is
connected to Sony's RC-S801 dynamic NFC tag.I used Hercules setup utility
to send
"100101000300000000000000001b0030d102165370d1011255017374757474676172742e736f6e792e64650000000000"
for http://www.stuttgart.sony.de and I was able to read it from my NFC
enabled phone.But when I used the following python code, it didn't work :
import serialimport time
arduino = serial.Serial('COM6', 115200)
arduino.parity = 'M'print arduino
print("writing")
input = ("100101000300000000000000001b0030d102165370d1011255017374757474676172742e736f6e792e64650000000000")
arduino.write(input)
time.sleep(5)print("stopped writing")
arduino.close()
It shows as an empty record.Can you suggest changes to my python code that
I should make in order to detect the NDEF message ?Here is the screenshot
of the message that I get when I read the tag from my phone:
http://i.imgur.com/xn78Sw1.png
Thanks
Shreyas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140623/94b1a712/attachment.html>
More information about the Tutor
mailing list