how to create a multi record jpeg ndef for LPC8n04. I am using ndeft2t library by nxp

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to create a multi record jpeg ndef for LPC8n04. I am using ndeft2t library by nxp

878 Views
saudshafiq
Contributor I

i am trying to send image through nfc from LPC8N04 processor. I am able to run the example code given in LPC8N04 SDK. How can I divide my image array which can be more tha 4kB. i am receiving NFC data from LPC8N04 to iphone nxpTagInfo app.

How can i divide my payload into multiple records.

I have also uploaded the library files for reference.

0 Kudos
Reply
3 Replies

810 Views
saudshafiq
Contributor I

Thank you @EduardoZamora 

I tried using the NXP Taginfo Iphone App for this. but  it according to it, only two records are received. one is 255 bytes containing first 255 bytes and second last 22 bytes. All the remaining data is lost(seemingly , according to the records i am receiving on NXP tagInfo app).

main C file is attached. 
I tried different variation of creating multiple payloads. But only function that is working is send_large_jpeg_via_nfc and it only sends first and last bytes.

0 Kudos
Reply

779 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

Unfortunately, there is no guide or documentation for this specific requirement. Reading, assembling and reconstructing the fragmented data would be the task of a custom application on the mobile device side, and it is up to the customer to implement this functionality.

Regards,
Eduardo.

0 Kudos
Reply

836 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello @saudshafiq

Hope you are doing well. 

Due to limited size you may be able to store small portions of data. In general, perhaps you could try splitting your whole data and write each chunk every time the NDEF is written; however, retrieving and rebuilding the information would require a mobile application implementing this functionality.

Would you consider encoding an URL to the image and write it to the NDEF?

Regards,
Eduardo.

0 Kudos
Reply