farebot icon indicating copy to clipboard operation
farebot copied to clipboard

Support for IstanbulKart

Open jnuahs opened this issue 10 years ago • 6 comments

I'm new to this NFC programming, but I'm interested in helping get support for IstanbulKart (aka "Akbil") for the Istanbul, Turkey transit system.

I've scanned one of my cards and have lots of information, but some that I think is relevant:

IC Type: MIFARE DESFire EV1 (MF3ICD41)

Vendor ID: NXP Protocol: ISO/IEC 14443-2 and -3

Taginfo provides a lot more information, but I'm not sure what's useful. I'm able to collect more info, but I need some guidance on what is useful and what to ignore. Also, I understand we need some info before/after a swipe, so I can do that as well.

jnuahs avatar May 14 '15 19:05 jnuahs

I'm not sure if this if helpful, but I scanned the card with an Android App Mifare Desfire Tool and it lists 4 applications, and each has a number of access keys and a memory address associated with it. It may be that read access is encrypted as well, which might put us SOL on this one.

jnuahs avatar May 14 '15 20:05 jnuahs

Hello,

I am also interested in NFC Programming and I need to be able using an NFC Reader (like the one utilized in Transportation Buses) to read an IstanbulKart and to charge it also (write data to the card).

Do you have any information regarding the specific communication protocol? Or do you have any idea who could give such an information?

Thanks in advance.

karakigr avatar May 10 '18 13:05 karakigr

Hello,

As far as i know, Mifare desfire protocol is used for IstanbulKart. But you need to know that it is impossible to write without keys. In additional you can examine what SAM(Secure access module) is.

2018-05-10 15:48 GMT+02:00 karakigr [email protected]:

Hello,

I am also interested in NFC Programming and I need to be able using an NFC Reader (like the one utilized in Transportation Buses) to read an IstanbulKart and to charge it also (write data to the card).

Do you have any information regarding the specific communication protocol? Or do you have any idea who could give such an information?

Thanks in advance.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/codebutler/farebot/issues/103#issuecomment-388058436, or mute the thread https://github.com/notifications/unsubscribe-auth/AL9uh6OqeifIqPMGTCZPhucyxRyeDJq3ks5txEUugaJpZM4Ea2nJ .

cihanbegburs avatar May 10 '18 17:05 cihanbegburs

Ok, thanks for the reply. I know that Mifare desire protocol is used. I have already used it in another application have implemented. My question is not for the protocol itself but for the data format stored in the card, which application is used for charging, what data need to read to check the balance, etc.

Of Course, I know the AES is used for the encryption of the data and I need to know the key for reading/writing. So my questions are: Who is responsible for these keys? For example, the existed retail machines in the buses that are charging the Istanbulkart they are aware of these keys. If I have a new retail machine, how do I know these keys? Moreover, how to know the data format for charging and displaying the balance of the card?

Thanks in advance for your replies!

karakigr avatar May 11 '18 05:05 karakigr

IstanbulKart is locked for everything except serial number. I added reading of serial number to Metrodroid. To be able to read more you need responses to authntication challenge. Official app IstanbulKart queries server for this. Trouble is that server requires a valid Turkish ID with matching name and birthdate. So I couldn't play with this at all as I'm not Turkish.

phcoder avatar Oct 02 '18 21:10 phcoder

Thank you for your response.

Am Mi., 3. Okt. 2018 um 05:30 Uhr schrieb Vladimir Serbinenko < [email protected]>:

IstanbulKart is locked for everything except serial number. I added reading of serial number to Metrodroid. To be able to read more you need responses to authntication challenge. Official app IstanbulKart queries server for this. Trouble is that server requires a valid Turkish ID with matching name and birthdate. So I couldn't play with this at all as I'm not Turkish.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/codebutler/farebot/issues/103#issuecomment-426437406, or mute the thread https://github.com/notifications/unsubscribe-auth/AYI17gkQEgr-JBWqgfTd0kFHMMfXPqwTks5ug9r9gaJpZM4Ea2nJ .

0xZekiMuren avatar Oct 03 '18 06:10 0xZekiMuren