RPi-Jukebox-RFID icon indicating copy to clipboard operation
RPi-Jukebox-RFID copied to clipboard

🚀 | Allow Tonies to be used with the phoniebox

Open Erechtheus opened this issue 4 years ago • 13 comments

Feature Description

It would be great if we could use the pretty Tonies figurines. As far as I understood, Tonies use the 13.56MHz frequency band, but custom handshakes. I understand that this feature probably requires some engineering. However, it would be great if we could collect some information. E.g., details about the custom protocoll and so on

What functionality would you like to see in your phoniebox?

I would love to see that Tonies can be used with the phoniebox :-)

How do you envision the feature to work from a users perspective?

Put Tonies on the reader

Further information that might help

NA

Erechtheus avatar Jun 01 '20 12:06 Erechtheus

I don't think this would be possible, because AFAIK Tonies are somehow protected against copying.

So there won't be any documentation available and reverse engineering would be necessary.

Overcoming the copy protection would probably have some legal implications, too.

Maybe @MiczFlor has some more info as he decided to implement his own Phoniebox, so he maybe investigated Toniebox before starting his own implementation.

s-martin avatar Jun 01 '20 12:06 s-martin

I'm also not totally sure about the copyright mechanism implementation. There was a talk at a chaos communication congress (I think last year), which I don't fully recall at this moment. I'll try to watch it later again.

Anyway, I am not trying to copy the content of the figurines, but rather using the ID of theTonies to play my own music. So I just would like to use the pretty figurines :-). AFAIK the biggest problem is that Tonies don't reply to standard RFID-authentication protocol.

Erechtheus avatar Jun 01 '20 15:06 Erechtheus

Ok, I think just using them as a trigger could work, but still somebody would need to reverse engineer that.

s-martin avatar Jun 02 '20 20:06 s-martin

Hi @Erechtheus when you swipe the tonie figure over the RFID reader, does Phoniebox actually get the ID from the figure? It should show up in the web app if you go to 'card ID'

MiczFlor avatar Jun 02 '20 21:06 MiczFlor

Here are more Infos about the tonies. You can not get the id from a tonie without a code changes because of custom handshakes.

http://gt-blog.de/

drocx avatar Jun 03 '20 05:06 drocx

Hi @MiczFlor, indeed the Tonies use some authentication protocol and do not expose the IDs directly. The RFID-handshake sounds actually not so difficult to implement. However, I need a reader compatible with ISO15693 and my RC522 reader is not. At the moment, I am trying to find an RFID reader which is ISO15693 compatible.

Hi @drocx thank you for the information. I'll give it a look :-)

Erechtheus avatar Jun 03 '20 10:06 Erechtheus

Try a PN5180 Reader.

drocx avatar Jun 03 '20 12:06 drocx

it's quite an effort to include closed source hardware into an open source project :)

MiczFlor avatar Jun 03 '20 12:06 MiczFlor

If I understood correctly, the authentication process works as follows:

  • Send 0xB2 0x04 to the figurine
  • Receive 16-bit response (random number)
  • XOR the response with following HEX: 0xB5 0x6E 0xFD 0x7F
  • Send 0xB3 0x04 0x04 + XOR-response to the figurine
  • Receive UID :)

I think this script does all the magic. The script is provided by one of the CCC guys (see below). Requires a CR95HF.

Helpful links:

CCC talk Code snipped https://gist.github.com/ceres-c/cbf437f9af9e946c96550fd7e1e77cef

Erechtheus avatar Jun 03 '20 20:06 Erechtheus

Try a PN5180 Reader.

@drocx Can you recommend any specific hardware using this integrated circuit? The only boards I found cost >30€.

Erechtheus avatar Jun 04 '20 10:06 Erechtheus

@Erechtheus The PN8180 Reader is available at amazon for 7 Euro. I don't have this reader but its recommend here.

drocx avatar Jun 05 '20 06:06 drocx

#644

s-martin avatar Sep 02 '21 20:09 s-martin

Maybe this is helpful:

https://youtu.be/DNufX-tss5M?si=jfyHIeWFi4Cs-DxS

s-martin avatar Dec 29 '23 15:12 s-martin