2024-01-03 03:17 AM
I want to copy STEVAL-SMARTAG and have made the same circuit board to connect max6675(PB1 connect CS, PA5 connect SCK, PA7 connect SO), where the temperature is 12-bit data, so write the SMARTAG_ADDR_MINMAX_P_ACCV address, the following is the relevant code, Can the temperature data be read correctly through NFC?
float K_Temperature ;
char temperaturebuffer[30] = { 0xD1, 0x01, 0x1B, 0x54, 0x02, 0x65, 0x6E };
/* beginning of Active log */
if(ReadSensorAndLog & SYNC_EVENT) {
/* Init SmarTag sensor */
if(NFC_EEPROM_Data.LogMode != SMARTAG_LOGMODE_ACTIVE_THS) {
InitSmarTagSensor();
}
/*SensorDataToCompactData();*/
K_Temperature=MAX6675_ReadTemperature();
sprintf(&temperaturebuffer[7], "Temperature: %.2f C", K_Temperature);
SMARTAG1_NFCTAG_WriteData(Instance, (uint8_t *)temperaturebuffer, SMARTAG_ADDR_MINMAX_P_ACCV, strlen(temperaturebuffer) + 1);
}
/* end of activelog */
Solved! Go to Solution.
2024-01-19 09:44 AM - edited 2024-01-19 09:44 AM
Hello,
as replied in following post :
it is not recommended to modify the smartag hardware board
Best Regards,
BB
2024-01-19 09:44 AM - edited 2024-01-19 09:44 AM
Hello,
as replied in following post :
it is not recommended to modify the smartag hardware board
Best Regards,
BB