This repository has been archived by the owner on Jun 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 98
Sending RFID commands - issueISO15693Command is private #39
Comments
Hello Yaneev,
I think both ways - as you tried - are wrong. The configuration you have to
do upfront is not part of the ISO15693 standard.
Therefor the command issueISO15693Command does not work. Using sendData
instead was a good guess, but as shown
in the screenshot, I think you have to write to the EEPROM at certain
addresses instead of sending data.
Personaly I have never had any use case to do so. That is why the class
PN5180 is missing the method writeEEprom and
only has an implementation to read from the EEPROM.
If you want to configure your tags, I think you have to implemented this
missing function.
From the PN5180 datasheet the command must be:
The call has to be implemented as follows:
Feel free to add such a function to the library and let me know, so I can
integrated it into the code.
Best Regards,
--Andreas.
…-----Original-Nachricht-----
Betreff: [ATrappmann/PN5180-Library] Sending RFID commands -
issueISO15693Command is private (#39)
Datum: 2021-03-09T00:19:30+0100
Von: "Yaneev" <[email protected]>
An: "ATrappmann/PN5180-Library" <[email protected]>
Hello,
I am trying to use this code and the PN5180 to configure and then read
commands from the MLX90129 Sensor Tag.
As per page 14 of this pdf
<https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/667/90129_5F00_AN_5F00_Sensor_5F00_tag_5F00_001.pdf>
I need to send specific commands to configure the sensors before reading
first. Below is a screenshot of the first couple commands:
[image]
<https://user-images.githubusercontent.com/6404325/110394361-4f30f880-803a-11eb-8a7a-a4c6ddc28281.png>
I am attempting at issuing just the first line right now as follows:
void mlxConfig(){ uint8_t cmd[] = {0x43, 0x21, 0x09, 0x71, 0x70}; uint8_t *readBuffer_0; nfc.issueISO15693Command(cmd, sizeof(cmd), &readBuffer_0); nfc.sendData(cmd,sizeof(cmd)); }
But am getting the following errors:
error: 'ISO15693ErrorCode PN5180ISO15693::issueISO15693Command(uint8_t*, uint8_t, uint8_t**)' is private ISO15693ErrorCode issueISO15693Command(uint8_t *cmd, uint8_t cmdLen, uint8_t **resultPtr); ^ MLX_Comm:326: error: within this context nfc.issueISO15693Command(cmd, sizeof(cmd), &readBuffer_0);
Is this not the way that that commands should be sent? If I put the data
into the sendData function it compiles fine.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#39> , or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEVOSHVYQHZE7II7IKMG2VTTCVLPRANCNFSM4Y2KKZOQ>
.
[ { "@context": "http://schema.org", "@type": "EmailMessage",
"potentialAction": { "@type": "ViewAction", "target":
"#39", "url":
"#39", "name": "View
Issue" }, "description": "View this Issue on GitHub", "publisher": {
"@type": "Organization", "name": "GitHub", "url": "https://github.com" } }
]
|
I think maybe an image you meant to post didn't upload? There is no content after the two lines with colons you have,
I can for sure try writing the writeEEprom method. But since I am still not completely understanding the code (and my C++ abilities are limited), would you be able to give a quick outline of how this method might look like and what aspects would go into creating it? Thank you! |
Hallo Yaneev,
sendingData is a different command and does not write to the EEPROM!
Try something like this:
#define PN5180_WRITE_EEPROM 0x06
bool writeEEPROM(uint8_t addr, uint8_t *buffer, int len) {
uint8_t cmd[2] = { PN5180_WRITE_EEPROM, addr };
SPI.beginTransaction(PN5180_SPI_SETTINGS);
bool rc = transceiveCommand(cmd, 2, buffer, len);
SPI.endTransaction();
return rc;
}
Regards,
--Andreas.
…-----Original-Nachricht-----
Betreff: AW: [ATrappmann/PN5180-Library] Sending RFID commands -
issueISO15693Command is private (#39)
Datum: 2021-03-09T08:24:55+0100
Von: ***@***.***" ***@***.***>
An: "ATrappmann/PN5180-Library"
***@***.***>
Hello Yaneev,
I think both ways - as you tried - are wrong. The configuration you have to
do upfront is not part of the ISO15693 standard.
Therefor the command issueISO15693Command does not work. Using sendData
instead was a good guess, but as shown
in the screenshot, I think you have to write to the EEPROM at certain
addresses instead of sending data.
Personaly I have never had any use case to do so. That is why the class
PN5180 is missing the method writeEEprom and
only has an implementation to read from the EEPROM.
If you want to configure your tags, I think you have to implemented this
missing function.
From the PN5180 datasheet the command must be:
The call has to be implemented as follows:
Feel free to add such a function to the library and let me know, so I can
integrated it into the code.
Best Regards,
--Andreas.
-----Original-Nachricht-----
Betreff: [ATrappmann/PN5180-Library] Sending RFID commands -
issueISO15693Command is private (#39)
Datum: 2021-03-09T00:19:30+0100
Von: "Yaneev" ***@***.***>
An: "ATrappmann/PN5180-Library" ***@***.***>
Hello,
I am trying to use this code and the PN5180 to configure and then read
commands from the MLX90129 Sensor Tag.
As per page 14 of this pdf
<https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/667/90129_5F00_AN_5F00_Sensor_5F00_tag_5F00_001.pdf>
I need to send specific commands to configure the sensors before reading
first. Below is a screenshot of the first couple commands:
[image]
<https://user-images.githubusercontent.com/6404325/110394361-4f30f880-803a-11eb-8a7a-a4c6ddc28281.png>
I am attempting at issuing just the first line right now as follows:
void mlxConfig(){ uint8_t cmd[] = {0x43, 0x21, 0x09, 0x71, 0x70}; uint8_t *readBuffer_0; nfc.issueISO15693Command(cmd, sizeof(cmd), &readBuffer_0); nfc.sendData(cmd,sizeof(cmd)); }
But am getting the following errors:
error: 'ISO15693ErrorCode PN5180ISO15693::issueISO15693Command(uint8_t*, uint8_t, uint8_t**)' is private ISO15693ErrorCode issueISO15693Command(uint8_t *cmd, uint8_t cmdLen, uint8_t **resultPtr); ^ MLX_Comm:326: error: within this context nfc.issueISO15693Command(cmd, sizeof(cmd), &readBuffer_0);
Is this not the way that that commands should be sent? If I put the data
into the sendData function it compiles fine.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#39> , or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEVOSHVYQHZE7II7IKMG2VTTCVLPRANCNFSM4Y2KKZOQ>
.
[ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage",
"potentialAction": { ***@***.***": "ViewAction", "target":
"#39", "url":
"#39", "name": "View
Issue" }, "description": "View this Issue on GitHub", "publisher": {
***@***.***": "Organization", "name": "GitHub", "url": "https://github.com" } }
]
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I am trying to use this code and the PN5180 to configure and then read commands from the MLX90129 Sensor Tag.
As per page 14 of this pdf I need to send specific commands to configure the sensors before reading first. Below is a screenshot of the first couple commands:
I am attempting at issuing just the first line right now as follows:
But am getting the following errors:
Is this not the way that that commands should be sent? If I put the data into the sendData function it compiles fine.
How would I go up about issuing the necessary commands for configuration and then reading from it as the pdf instructs using this code?
The text was updated successfully, but these errors were encountered: