mrext icon indicating copy to clipboard operation
mrext copied to clipboard

Error chime recieved when using a card

Open AnimMaDeR opened this issue 10 months ago • 19 comments

Thanks for you help on Twitter! I have gotten much further thanks to you. Now I get an error chime when trying to tap my 1944 card. On that card I have written:

_Arcade/_Favorites/1944.mra

AnimMaDeR avatar Aug 25 '23 03:08 AnimMaDeR

nfc.log

AnimMaDeR avatar Aug 25 '23 03:08 AnimMaDeR

Thank you for sticking it out to get this going! I appreciate it. So far this looks positive, the reader appears to be working correctly and you don't have a clone reader.

I have seen this error before when using Mifare cards. They seem to often get shipped with the reader itself. Is this the case? Right now the script only support NTAG cards. You can check the card type by scanning it with NFC Tools phone app, it says tag type at the top.

Assuming that's what it is, I will take another look at it today. It's just a software support issue, the reader can obviously use those cards. Hopefully I can put out a new release soon to support them

wizzomafizzo avatar Aug 25 '23 03:08 wizzomafizzo

Thank YOU for sticking it out! Again, I appreciate the support. I am super excited to get my DIY arcade working with this tech. it will make it so much easier for family and guests to enjoy this machine.

Wanted to mention that when I restart the mister or replug in the reader, I have to run your script and then stop it and start it for me to even get that error chime. I made a new card for Rastan (_Arcade/_Favorites/Rastan.mra) and also get that error.

I am using these cards from amazon https://www.amazon.com/dp/B0895Y7S3M?psc=1&ref=ppx_yo2ov_dt_b_product_details

AnimMaDeR avatar Aug 25 '23 03:08 AnimMaDeR

This is the mifare cards for sure. Let me see what I can do today! I've been meaning to add support for them since the first release

wizzomafizzo avatar Aug 25 '23 05:08 wizzomafizzo

Gaz has written a patch to support these Mifare cards now. We'll do some testing today and I'll pop a build of it here when I know it's working. Hopefully will have you up and running soon :)

wizzomafizzo avatar Aug 26 '23 00:08 wizzomafizzo

Thank you for the update! I saw your post about chines clone readers. Do I have one? I think you said I didn’t.

I appreciate you trying to make my crappy NFC cards work but is there a brand/make that you know works with your script?

AnimMaDeR avatar Aug 26 '23 03:08 AnimMaDeR

I'm pretty sure you don't have one!

Right now the script works officially with NTAG tags. NTAG213, NTAG215, NTAG216. Only difference is how much data can be stored on the cards. I have a stack of NTAG215 cards

https://www.amazon.com.au/NTAG215-Printable-13-56MHz-NFC-Enabled-Smartphones/dp/B08LDB9FHH

This is also internally what amiibos are

The Mifares will still work fine after we've patched in support, they're not junk or anything. They're just weird in that they are encrypted, but the encryption has been broken since forever, so most readers just treat them as a standard card with a useless password you have to give at the beginning

wizzomafizzo avatar Aug 26 '23 04:08 wizzomafizzo

Nice! Glad to know I didnt get Amazon junk. Thanks for the link. I’ll be patient and wait for your fix.

Can I wipe an amibo and use it to launch games on mister. I have several that are collecting dust.

AnimMaDeR avatar Aug 26 '23 04:08 AnimMaDeR

You can definitely give it a shot. If the reader is functioning ok you will get a different error about a "missing NDEF" but that means it worked. Because you can't write to amiibos, it's a little more involved, but you can map their unique id to a command

https://github.com/wizzomafizzo/mrext/blob/main/docs/nfc.md#mappings-database

In any case this is a good way to make sure your reader works

wizzomafizzo avatar Aug 26 '23 04:08 wizzomafizzo

To be honest, I would say using the "mappings database" is the objectively better way to set these cards up. But it's less fun than writing the command on the tag itself haha

wizzomafizzo avatar Aug 26 '23 04:08 wizzomafizzo

Hey there, I got impatient and just ordered compatible NFC cards and it works like a champ!! So no rush to support the cheap cards but I am happy to test those for you if you like.

Check out this video of me showing what I got here: https://photos.app.goo.gl/oTiDKAFBwjWj61E16 I am eager to figure out how to control my pixelcade LCD marquee as well as my LED control panel buttons which are run via LED Spicer. Unfortunately LED Spicer isn't working at the moment but if you know any way I can trigger the marquee with a command, I'm all ears!

Thanks again for this awesome capability!

AnimMaDeR avatar Sep 05 '23 02:09 AnimMaDeR

I just got a pull request to add support for those card, so you should have even more to mess around with now :) they will be interchangeable

This is an extremely impressive setup. You also have to connected to your home automation?

I can't say I've ever heard of LEDSpicer or Pixelcade, or seen them on MiSTer, but it's probably possible to interface with them with the Remote script. Did you have any examples of how you were making it work before?

wizzomafizzo avatar Sep 05 '23 23:09 wizzomafizzo

That setup looks awesome and it's really cool to see this in use 😎

The Pixelcade has source up on GitHub: https://github.com/alinke/pixelcade-mister-led/tree/master so it should be possible to dig in and see how it works to do the marquee update and tap into that.

symm avatar Sep 06 '23 16:09 symm

Thanks Symm! I just reached out to Al at Pixelcade to see if he could help. Looking at those files on github I get lost. Not much of a scripter. Hopefully I can find the command to change the pixelcade.

Wizzo, that remote script. Do you have a video demonstrating its capabilities? Can I possibly use the NFC send a command to the remote to update the pixelcade?

AnimMaDeR avatar Sep 07 '23 02:09 AnimMaDeR

Well good news, there is a URL command that I can send to the pixelcade to change the marquee image. I tried to write that to my NFC card and tap the reader attached to the mister but I get an error chime. Is it possible for your script to send a URL command out? Or does that require a browser?

Maybe I should restart an issue and make this an official Request (let me know) but if its at all possible to get the NFC reader to speak with the pixelcade, it would be huge for folks who want to use it with mister. Here is the Pixelcade API: http://pixelcade.org/api

Again, if its possible to simply send out a URL command like http://192.168.1.146:8080/arcade/stream/mame/mame-rastan.jpg that may be all I need.

Here is video of me demonstrating: https://photos.app.goo.gl/o29sqMV9yj2fQ8PM9

AnimMaDeR avatar Sep 08 '23 02:09 AnimMaDeR

Here is a video of the remote script: https://www.youtube.com/watch?v=2hpF3laclaM

But for your purpose, we'd just be using the background service to trigger stuff, you can ignore the whole web UI bundled with it if you don't need it.

I'd still suggest this route rather than focusing on the nfc script, that way your marquee will update the display even when you launch from the standard mister menu rather than only through the tag launching

Here is some example data it could give you to work with every time a game is launched:

"platform":"MiSTer",
"hostname":"MiSTer",
"core":"PSX",
"system":"PSX",
"systemName":"Playstation",
"gamePath":"/media/fat/games/PSX/bin/Ape Escape (USA)/Ape Escape (USA)/Ape Escape (USA).cue",
"gameFilename":"Ape Escape (USA).cue",
"gameName":"Ape Escape (USA)"

There will have to be some way to map the core name to the filename in pixelcade

This doesn't exist yet but I'm imagining an option with remote where you can set a script to be launched whenever a game is launched, and in that script you can map the filename correct and send the request to pixelcade to update. It's very doable

I'm pretty busy today but I'll try get a test build of remote together soon that could enable it

wizzomafizzo avatar Sep 08 '23 03:09 wizzomafizzo

Hey Wizzo, I got the remote script installed and played with it a little. Very cool script! I can now pick a game and change the marquee from my phone but its a two step process and I'd still prefer to have the NFC card launch the game so I don't have to mount an ipad to the wall or something.

Do you think the script work for the remote would also make the NFC card AND standard mister menu launching?

Also, any tips on how to launch a Neo Geo game via NFC tag or remote? It seems the index feature didn't pick up on my neo geo folder and I'm not even sure which file is the rom.

Thanks for any time and help you can provide. I am now a Patreon member thanks to all your help and awesome work!

AnimMaDeR avatar Sep 09 '23 21:09 AnimMaDeR

Thank you very much!

For Neo Geo games yes they are partially supported, but you need to use the .neo file format. If you have that, it'll work as expected. Can google "htgdb game packs"

I'm surprised to hear it already changes the marquee for you launching with remote. What did you install to get pixelcade working initially? There is a script somewhere? Maybe it won't be so hard to add support after all

wizzomafizzo avatar Sep 10 '23 01:09 wizzomafizzo

I miscommunicated. Its not the remote that changed the marquee. I was saying I can use my phone to both change the game (thanks to remote) and the marquee (via safari browser using a command like http://192.168.1.146:8080/arcade/stream/mame/mame-rastan.jpg).

Thats what I meant by two step process. Remote doesnt change the marquee for me. And ideally NFC would read the URL command and send it to the pixelcade for me. That would be slick if possible.

AnimMaDeR avatar Sep 10 '23 01:09 AnimMaDeR