Hi, I'm creating a UWP test app for NHS3100. The tag is running the default firmware TLogger.
I'm working on Visual Studio 2017, with C# and using proximity APIs for NFC NdefLibrary and NdefLibraryExtension.
I'm already able to read the NHS3100 tag.
Now I want to send a command to read current temperature. How or what is the command to do that?
Any help will be appreciated.
Thanks,
Hi,
All communication is done using NDEF messages containing 1 MIME record. The payload in a MIME record sent from host to target is called a 'command'; the data prepared by the NHS3100 ARM and stored in the NFC shared memory for the host to read out - overwriting the 'command' - is called 'response'.
The payload is to be formatted according to the documentation found in the SDK under docs/FirmwareDevelopmentDocumentation/index.html, Modules » msg: Message Handler and Applications » tlogger: Temperature Logger Demo Application » Message Handler Module » Protocol Extension.
In short:
Currently, all demo applications use this simple communication scheme to exchange data between host and target. There are a number of pre-defined message IDs; and each application can easily add its own application specific messages. e.g. the tlogger firmware added a MEASURETEMPERATURE (50h) message, which the tadherence firmware lacks.
Examples:
Have a thorough read in the doxygen generated documentation referred to above. When this and the documentation still leave you with questions, just ask.
Best,