Tinkerforge / esp32-firmware

Firmwares for ESP32 Brick and ESP32 Ethernet Brick (including firmwares for WARP/WARP2 Charger, WARP Energy Manager)
https://www.tinkerforge.com/en/doc/Hardware/Bricks/ESP32_Ethernet_Brick.html
26 stars 20 forks source link

modbus_tcp: Add NFC tag injection. #359

Open rtrbt opened 1 month ago

rtrbt commented 1 month ago

This is difficult(TM) at the moment, because we don't know which registers were written. If the user sends a tag ID byte for byte, we would have to use some timing magic to know when to inject the current register content. (i.e. "inject if no tag ID register was written for a second" or something similar). This is made even more difficult by the fact that we don't know which registers were written, because ESP-Modbus just writes the memory block in an interrupt and does not notify us of anything.

borg42 commented 1 month ago

Wouldn't it be possible to have a tag id buffer that can be written at any time and does nothing and then have a "inject now" coil that injects the tag id currently in the buffer?