-
Notifications
You must be signed in to change notification settings - Fork 99
Arduino Zero Errors #10
Comments
Hi,
thank you for your feedback. I will try to help. I have no Arduino Zero, so
I can only give you some hints.
1) The message "No card detected!" means what it says. The Reader send out
an NFC-field and no Interrupt was generated to signal, that there is an
ISO15693 card in the field.
I do not know your card reader, but you could check the datasheet, if it
generates the IRQ RX_SOF_DET_IRQ_STAT.
2) The compile error has to do with your 32bit board. It looks as if
headers are different. For an Uno, __FlashStringHelper is declared in
WString.h as follows:
class __FlashStringHelper;
#define F(string_literal) (reinterpret_cast<const __FlashStringHelper
*>(PSTR(string_literal)))
3) Thanks for the feedback with the RST-line. I will add this to my code.
Hope this helps a bit...
--Andreas.
…-----Original-Nachricht-----
Betreff: [ATrappmann/PN5180-Library] Arduino Zero Errors (#10)
Datum: 2019-04-09T11:24:29+0200
Von: "RatGit" <[email protected]>
An: "ATrappmann/PN5180-Library" <[email protected]>
Hi,
I tried to run this library with an Arduino Zero and this PN5180 Board
<https://github.com/ATrappmann/PN5180-Library/files/2502996/PN5180.R1.1-170710_SCH.PDF>
, but it generates the following error message:
Error in getInventory: No card detected!
IRQ-Status 0x6: [ TX IDLE ]
*** No card detected!
I turned on DEBUG in the "PN5180ISO15693.cpp" file as recommended in one of
the other issue threads, but the code would not compile?
_/libraries/PN5180/1.1.0/PN5180ISO15693.h:60:30: error: initializing
argument 1 of 'const __FlashStringHelper*
PN5180ISO15693::strerror(ISO15693ErrorCode)' [-fpermissive]
const _FlashStringHelper *strerror(ISO15693ErrorCode errno);
What does "No Card Detected" actually mean?
ps. I have ensured that the pins are voltage compatible and that all the
other SPI peripherals are deselected. I also set the RST line to HIGH in
"setup()" so that the "nfc.reset()" function works properly:
digitalWrite(PN5180_RST, HIGH); // Not Reset, (should modify "nfc::begin()"
function to do this instead)
Any help would be greatly appreciated...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#10> , or mute the
thread
<https://github.com/notifications/unsubscribe-auth/ASrpHpzPc8cLMaZJNUFrAgAV7p4GL9gTks5vfFxFgaJpZM4ckBpF>
.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/ATrappmann/PN5180-Library","title":"ATrappmann/PN5180-Library","subtitle":"GitHub
repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open
in
GitHub","url":"https://github.com/ATrappmann/PN5180-Library"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Arduino
Zero Errors (#10)"}],"action":{"name":"View
Issue","url":"#10"}}} [
{ "@context": "http://schema.org", "@type": "EmailMessage",
"potentialAction": { "@type": "ViewAction", "target":
"#10", "url":
"#10", "name": "View
Issue" }, "description": "View this Issue on GitHub", "publisher": {
"@type": "Organization", "name": "GitHub", "url": "https://github.com" } }
]
|
Hi Andreas, Thank you for responding to my initial issue submission. I have subsequently decided to proceed with an Arduino Uno instead for my testing. The software still isn't able to communicate properly with the PN5180 board and eventually "hangs"...
I'm not sure what exactly might be happening here and I am still working on it... I would certainly appreciate any insights you may be able to offer, Kind Regards, |
Hi Keith,
did you see, that in Loop #2 the card was found? The snipped you send me
ended with:
Loop #2 Get Inventory...
Issue Command 0x01...
RX-Status=00181D7C, len=380
There should have been an positive answer from Get Inventory...!? The
reader received 380 bytes of data!
Best Regards,
--Andreas.
…-----Original-Nachricht-----
Betreff: Re: [ATrappmann/PN5180-Library] Arduino Zero Errors (#10)
Datum: 2019-04-10T12:00:17+0200
Von: "RatGit" <[email protected]>
An: "ATrappmann/PN5180-Library" <[email protected]>
Hi Andreas,
Thank you for responding to my initial issue submission. I have
subsequently decided to proceed with an Arduino Uno instead for my testing.
I duplicated your original wiring connections, (using the Uno with an
identical PN5180 board and a 3.3V-5V level shifter) and used the Arduino
IDE to compile and upload your library's example sketch.
The software still isn't able to communicate properly with the PN5180 board
and eventually "hangs"...
================================== Uploaded: Apr 10 2019 17:12:31 PN5180 ISO15693 Demo Sketch ---------------------------------- PN5180 Hard-Reset... ---------------------------------- Reading product version... Product version=3.7 ---------------------------------- Reading firmware version... Firmware version=3.7 ---------------------------------- Reading EEPROM version... EEPROM version=51.0 ---------------------------------- Enable RF field... Loading RF-Configuration... done. Turning ON RF field... done. ---------------------------------- Loop #0 Get Inventory... Issue Command 0x01... Error in getInventory: ISO15693ErrorCode=-1 No card detected! IRQ-Status 0x30300: [ TX_RFOFF TX_RFON RX_SC_DET ] *** No card detected! Loading RF-Configuration... done. Turning ON RF field... done. ---------------------------------- Loop #1 Get Inventory... Issue Command 0x01... Error in getInventory: ISO15693ErrorCode=-1 No card detected! IRQ-Status 0x30100: [ TX_RFOFF RX_SC_DET ] *** No card detected! Loading RF-Configuration... done. Turning ON RF field... done. ---------------------------------- Loop #2 Get Inventory... Issue Command 0x01... RX-Status=00181D7C, len=380
I'm not sure what exactly might be happening here and I am still working on
it... I would certainly appreciate any insights you may be able to offer,
Kind Regards,
Keith.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#10 (comment)>
, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ASrpHojSpRqju0NklJMJMydHc7UoLu1xks5vfbYkgaJpZM4ckBpF>
.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/ATrappmann/PN5180-Library","title":"ATrappmann/PN5180-Library","subtitle":"GitHub
repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open
in
GitHub","url":"https://github.com/ATrappmann/PN5180-Library"}},"updates":{"snippets":[{"icon":"PERSON","message":"@RatGit
in #10: Hi Andreas,\r\n\r\nThank you for responding to my initial issue
submission. I have subsequently decided to proceed with an Arduino Uno
instead for my testing.\r\nI duplicated your original wiring connections,
(using the Uno with an identical PN5180 board and a 3.3V-5V level shifter)
and used the Arduino IDE to compile and upload your library's example
sketch.\r\n\r\nThe software still isn't able to communicate properly with
the PN5180 board and eventually
\"hangs\"...\r\n\r\n```\r\n==================================\r\nUploaded:
Apr 10 2019 17:12:31\r\nPN5180 ISO15693 Demo
Sketch\r\n----------------------------------\r\nPN5180
Hard-Reset...\r\n----------------------------------\r\nReading product
version...\r\nProduct
version=3.7\r\n----------------------------------\r\nReading firmware
version...\r\nFirmware
version=3.7\r\n----------------------------------\r\nReading EEPROM
version...\r\nEEPROM
version=51.0\r\n----------------------------------\r\nEnable RF
field...\r\nLoading RF-Configuration...\r\ndone.\r\nTurning ON RF
field...\r\ndone.\r\n----------------------------------\r\nLoop #0\r\nGet
Inventory...\r\nIssue Command 0x01...\r\nError in getInventory:
ISO15693ErrorCode=-1\r\nNo card detected!\r\nIRQ-Status 0x30300: [ TX_RFOFF
TX_RFON RX_SC_DET ]\r\n*** No card detected!\r\nLoading
RF-Configuration...\r\ndone.\r\nTurning ON RF
field...\r\ndone.\r\n----------------------------------\r\nLoop #1\r\nGet
Inventory...\r\nIssue Command 0x01...\r\nError in getInventory:
ISO15693ErrorCode=-1\r\nNo card detected!\r\nIRQ-Status 0x30100: [ TX_RFOFF
RX_SC_DET ]\r\n*** No card detected!\r\nLoading
RF-Configuration...\r\ndone.\r\nTurning ON RF
field...\r\ndone.\r\n----------------------------------\r\nLoop #2\r\nGet
Inventory...\r\nIssue Command 0x01...\r\nRX-Status=00181D7C,
len=380\r\n```\r\n\r\nI'm not sure what exactly might be happening here and
I am still working on it... I would certainly appreciate any insights you
may be able to offer,\r\n\r\nKind
Regards,\r\nKeith.\r\n"}],"action":{"name":"View
Issue","url":"#10 (comment)"}}}
[ { "@context": "http://schema.org", "@type": "EmailMessage",
"potentialAction": { "@type": "ViewAction", "target":
"#10 (comment)",
"url":
"#10 (comment)",
"name": "View Issue" }, "description": "View this Issue on GitHub",
"publisher": { "@type": "Organization", "name": "GitHub", "url":
"https://github.com" } } ]
|
Hi Andreas, Thank you for responding to my initial issue submission. I have subsequently decided to proceed with an Arduino Uno instead for my testing. The software still isn't able to communicate properly with the PN5180 board and eventually "hangs"...
I'm not sure what exactly might be happening here and I am still working on it... I would certainly appreciate any insights you may be able to offer, ps. I did notice that card was detected, however there was no card actually near the device? Kind Regards, |
Hi Andreas, I now have it all working on both the Uno and Zero devices... The level shifter boards I was using were broken. I am using the Sloeber Arduino Eclipse plugin as my development environment with an Atmel ICE, so I have hardware debugging working under Linux. (Note: You can also do this under Windows with Sloeber and Atmel Studio). FYI: I am currently modifying the test code to support multiple devices hosted by the same Arduino. Kind Regards, |
Hi Keith,
I am glad you found the problem and have a running solution now.
Enjoy.
…--Andreas.
-----Original-Nachricht-----
Betreff: Re: [ATrappmann/PN5180-Library] Arduino Zero Errors (#10)
Datum: 2019-04-11T07:23:58+0200
Von: "RatGit" <[email protected]>
An: "ATrappmann/PN5180-Library" <[email protected]>
Hi Andreas,
I now have it all working on both the Uno and Zero devices... The level
shifter boards I was using were broken. I am using the Sloeber Arduino
Eclipse plugin as my development environment with an Atmel ICE, so I have
hardware debugging working under Linux. (Note: You can also do this under
Windows with Sloeber and Atmel Studio).
FYI: I am currently modifying the test code to support multiple devices
hosted by the same Arduino.
Kind Regards,
Keith.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#10 (comment)>
, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ASrpHuDHhsaP4NlisMgMVJ4AZUJbc_B_ks5vfsbogaJpZM4ckBpF>
.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/ATrappmann/PN5180-Library","title":"ATrappmann/PN5180-Library","subtitle":"GitHub
repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open
in
GitHub","url":"https://github.com/ATrappmann/PN5180-Library"}},"updates":{"snippets":[{"icon":"PERSON","message":"@RatGit
in #10: Hi Andreas,\r\n\r\nI now have it all working on both the Uno and
Zero devices... The level shifter boards I was using were broken. I am
using the Sloeber Arduino Eclipse plugin as my development environment with
an Atmel ICE, so I have hardware debugging working under Linux. (Note: You
can also do this under Windows with Sloeber and Atmel Studio).\r\n\r\nFYI:
I am currently modifying the test code to support multiple devices hosted
by the same Arduino.\r\n\r\nKind
Regards,\r\nKeith."}],"action":{"name":"View
Issue","url":"#10 (comment)"}}}
[ { "@context": "http://schema.org", "@type": "EmailMessage",
"potentialAction": { "@type": "ViewAction", "target":
"#10 (comment)",
"url":
"#10 (comment)",
"name": "View Issue" }, "description": "View this Issue on GitHub",
"publisher": { "@type": "Organization", "name": "GitHub", "url":
"https://github.com" } } ]
|
Hi Andreas, FYI: I've managed to modify the library to work with multiple PN5180 Reader/Writers. During this process I've modified your Library and Example sketch to support this, (see the attached Zip archive: PN5180.zip). The library changes include the following:
I've also found and fixed a number of minor coding errors... (see the list of changes at the end of this message): Finally I have two outstanding issues.
List of Coding Fixes:Line 249: PN5180.cpp Line 432: PN5180ISO15693.cpp Line 115: PN5180ISO15693.cpp Line 278: PN5180ISO15693.cpp Line 486: PN5180ISO15693.cpp |
ps. There were also some unused variable warnings... /root/Documents/sloeber-workspace/libraries/PN5180/1.1.0/PN5180ISO15693.cpp:308:13: warning: unused variable 'dsfid' [-Wunused-variable] /root/Documents/sloeber-workspace/libraries/PN5180/1.1.0/PN5180ISO15693.cpp:351:14: warning: unused variable 'viccMemSize' [-Wunused-variable] /root/Documents/sloeber-workspace/libraries/PN5180/1.1.0/PN5180ISO15693.cpp:366:13: warning: unused variable 'icRef' [-Wunused-variable] |
Hi. Take a look at R13 and R15 on schematics. |
Hi,
I tried to run this library with an Arduino Zero and this PN5180 Board, but it generates the following error message:
I turned on DEBUG in the "PN5180ISO15693.cpp" file as recommended in one of the other issue threads, but the code would not compile?
What does "No Card Detected" actually mean?
ps. I have ensured that the pins are voltage compatible and that all the other SPI peripherals are deselected. I also set the RST line to HIGH in "setup()" so that the "nfc.reset()" function works properly:
digitalWrite(PN5180_RST, HIGH); // Not Reset, (should modify "nfc::begin()" function to do this instead)
Any help would be greatly appreciated...
The text was updated successfully, but these errors were encountered: