nagyistoce / cardpeek

Automatically exported from code.google.com/p/cardpeek
Other
1 stars 0 forks source link

Israeli Rav-Kav card not being parsed #60

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have my Rav-Kav inserted into an Athena ASEDrive V3C (given for free 
alongside the new Israeli biometric ID card), and am trying to read the data 
with cardpeek, using the Analyzer > Calypso option. It shows a whole bunch of 
raw data, but it doesn't seem to be parsing any of it into a human-readable 
form.

These two log lines seem like they may be relevant, appearing at the end just 
before "Disconnected reader":
1247 DEBUG   Could not find calypso/c376.lua
1248 DEBUG   Could not find calypso/c376n3.lua

Using version 0.8.3, on Windows 7 Home Premium 64-bit.

Original issue reported on code.google.com by michabai...@gmail.com on 20 Jan 2015 at 10:48

GoogleCodeExporter commented 9 years ago
Thanks for this bug report.
The ravkav script is chosen based on a country code (376) and a network code. 
From the error message you reported it seems that the identified network code 
is 3 (from the n3 in the filename c376n3.lua). The cardpeek scripts expects 
network number 2 not 3.

Please try the following:
1) Go to the ".cardpeek" folder: it should be in "C:\Users\XXX\" where XXX 
should be replaced with your username. 
2) Inside that folder search for the sub-directory "script" and then "calypso".
3) rename the file c376n2.lua as c376n3.lua
4) Re-run cardpeek

Tell me if this works.

Original comment by L...@gmx.com on 21 Jan 2015 at 2:41

GoogleCodeExporter commented 9 years ago
No, doesn't look like it works. The output is the same, except that a new 
"Summary" section appears after ICC, ID, Display / Free, and Ticketing. That 
section has these items: General Information, Latest Travel, Valid Contracts, 
and Invalid Contracts. The latter 3 are empty, and the first only has one 
entry: "Identity number", which is zero-length, which is interpreted as 
"Anonymous Rav-Kav", which is incorrect -- my Rav-Kav is personalized. What is 
the "network code", BTW? Might the difference have to do with the fact that I'm 
using the contact interface, which isn't normally used at all? (all Rav-Kav 
transportation usage is contactless, and some Rav-Kav cards don't have contacts 
at all)

Original comment by michabai...@gmail.com on 21 Jan 2015 at 4:06

GoogleCodeExporter commented 9 years ago
Oh, and this line still appears:
0239 DEBUG   Could not find calypso/c376.lua

Followed by these lines, which look like they should mean it's working, 
although it's not:
0240 DEBUG   Parsing general info (environment)...
0241 DEBUG   Parsing counters...
0242 DEBUG   Parsing events...
0243 DEBUG   Parsing contracts...
0244 DEBUG   Summarising general info...
0245 DEBUG   Summarising latest travel...
0246 DEBUG   Summarising contracts...

Original comment by michabai...@gmail.com on 21 Jan 2015 at 4:08

GoogleCodeExporter commented 9 years ago
The network code references the transport network within a country. It's 
unrelated to the technology used to read the card.

Hum. I'm unsure about your case. Perhaps you have a new type of RavKav card. 
I'm not the developper of the RavKav script: it was developed by someone who 
also uses that card on a daily basis.

One thing that might help me is if you send me the details of the data exchange 
with the card. To do this, run the script and after that click on the "reader" 
tab, next click on "save replay". If you send me the resulting file 
(L1L1@gmx.com), I can simulate your card and see what happens. 

Original comment by L...@gmx.com on 21 Jan 2015 at 6:13

GoogleCodeExporter commented 9 years ago
I don't know if there is a "new type" -- I have seen two types of cards issued, 
one with a magstripe and a contact interface, one that's contactless-only, but 
I think they're used interchangeably. For a while I was only seeing the 
dual-interface ones, then when I got my card I got a contactless-only one, and 
then in the middle of last year I had to get the card replaced and I got a 
dual-interface card, from the same operator. So I don't know what the 
difference is, if there is one... I've seen Nadav Mos's Android app read both 
types. My card says "ASK Tango" in small print in the upper right corner on the 
back, if that helps. Would the network code necessarily be the same for all 
cards that are interoperable within the system? The cards are issued by the 
various different operators, and are branded by each operator. Could that 
account for the difference perhaps? I'll get that capture and send it to you. 
Do you have a GPG key, by any chance? It's not extremely private information 
AFAIK, but I'd prefer not to have it travelling in cleartext anyway. Would it 
also be helpful if I include an explanation of what should be on there?

Original comment by michabai...@gmail.com on 21 Jan 2015 at 7:36

GoogleCodeExporter commented 9 years ago
Hum. At this stage I have no idea what is the problem. 
My GPG key is available here: http://pannetrat.com/About/PGP/

Original comment by L...@gmx.com on 22 Jan 2015 at 9:42