Skip to main content
Associate
January 13, 2025
Solved

How does the st25dv16k receive external image data in arduino

  • January 13, 2025
  • 1 reply
  • 876 views

In the library functions of arduino, I found that there are only existing functions that receive WiFi, uri, and so on. Now I want to receive picture bytes and store them in an array, but I can't find any built-in functions that are used to receive them.

This topic has been closed for replies.
Best answer by Rene Lenerve

Hi sjek,

the ST25DV16K is a memory, so the tag can receive all data independently to the format of these data, and it can be stored as array of bytes in the memory.

In your message you talk about Wifi, URI ..., so I think you refer to NDEF messages stored in the tag. The NDEF standard defines these as Well-Known types and some are natively recognized by Android, other need an application to interact with.

Regarding pictures, I think the TNF type to use is media type (not Well-Known types), as for vCard, with the image/jpeg (for a jpeg) as media type.

I don't think that the arduino library provide a direct API to build a media type, so you will need to build the record and for the payload begin it with image/jpeg followed by the jpeg data.

I hope this can help you.

Kind Regards.

1 reply

Rene Lenerve
Rene LenerveBest answer
ST Employee
January 20, 2025

Hi sjek,

the ST25DV16K is a memory, so the tag can receive all data independently to the format of these data, and it can be stored as array of bytes in the memory.

In your message you talk about Wifi, URI ..., so I think you refer to NDEF messages stored in the tag. The NDEF standard defines these as Well-Known types and some are natively recognized by Android, other need an application to interact with.

Regarding pictures, I think the TNF type to use is media type (not Well-Known types), as for vCard, with the image/jpeg (for a jpeg) as media type.

I don't think that the arduino library provide a direct API to build a media type, so you will need to build the record and for the payload begin it with image/jpeg followed by the jpeg data.

I hope this can help you.

Kind Regards.