GXTX / YACardEmu

Software emulator for Sanwa CRP-1231BR-10 / CRP-1231LR-10NAB / CR-S31R-10HS3 card readers.
GNU General Public License v2.0
32 stars 10 forks source link

insertedCard behavior (WMMT3DX+) #12

Closed hjri closed 2 years ago

hjri commented 2 years ago

Doing some test runs on actual hardware I think I noticed that if you use game to create new card emulator will still report (GET /api/v1/insertedCard) as if no card was inserted. Technically it's true as card was dispensed, not inserted, but for purposes of creating NFC replacement I'd like to know if card is present in reader or not.

I.e. my idea of NFC replacement is as it follows:


*) i checked, changing dispenser status while game is running is a bad idea - if you set dispenser to empty while it was full before game will error out and require reset, if you set it to full while it was empty before it will still act as if it's empty.