Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Sending RFID commands - issueISO15693Command is private #39

Open
yaneevH opened this issue Mar 8, 2021 · 3 comments
Open

Sending RFID commands - issueISO15693Command is private #39

yaneevH opened this issue Mar 8, 2021 · 3 comments

Comments

@yaneevH
Copy link

yaneevH commented Mar 8, 2021

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:

image

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);
}

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.
How would I go up about issuing the necessary commands for configuration and then reading from it as the pdf instructs using this code?

@ATrappmann
Copy link
Owner

ATrappmann commented Mar 9, 2021 via email

@yaneevH
Copy link
Author

yaneevH commented Mar 9, 2021

I think maybe an image you meant to post didn't upload? There is no content after the two lines with colons you have,

From the PN5180 datasheet the command must be:

The call has to be implemented as follows:

image

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!

@ATrappmann
Copy link
Owner

ATrappmann commented Mar 12, 2021 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants