selfighter / cardpeek

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

Detection of country/network code fail reading Italian venice transport operator #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. hard code row data I wrote below
2. try to read country code and network code..
3.

What is the expected output? What do you see instead?
expected output should be 330 but I get "nil"

What version of the product are you using? On what operating system?
latest svn

Please provide any additional information below.

Error:
0125 ERROR   (DEBUG) [string "calypso.lua"]:180: attempt to concatenate local 
'country' (a nil value)
0126 ERROR   Called from calypso_process
0127 ERROR   Runtime error in calypso.lua

Record 1 raw data:
00000000000000000000011111010000000100000000001000110110001111100000010000110101
11111110000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000

Original issue reported on code.google.com by dpe...@gmail.com on 18 Apr 2011 at 6:49

GoogleCodeExporter commented 9 years ago
The script uses an heuristic method to find the country code. Apparently it 
doesn't work with the Italian Venice transport operator data. I'm not sure I 
can fix this. 

Original comment by L...@gmx.com on 22 Jan 2012 at 11:22

GoogleCodeExporter commented 9 years ago
I also have a problem reading the country code on the Israeli calypso transport 
card (RavKav).
calypso.lua does this:
    country_bin = bytes.sub(data,13,24)
    network_bin = bytes.sub(data,25,36)
but the Israeli Calypso Spec says:
    version     = bytes.sub(data,0,2)
    country_bin = bytes.sub(data,3,14)
    issuer_id   = bytes.sub(data,15,22)
    app_number  = bytes.sub(data,23,48)
    ...etc.
So the country code is at a different offset!

Original comment by Anthony....@gmail.com on 7 May 2013 at 9:35

GoogleCodeExporter commented 9 years ago
This is unfortunate. I was hoping that the country code would be always at the 
same place, as was verified on French and Belgian cards. I guess that detecting 
the card country is going to be more complicated than I was hoping. Perhaps I 
will have to rely on the ATR or something.

Would you have the specs of the RavKav card to share with me <L1L1 _at_ 
gmx.com>? Perhaps I can figure out something form them.

Original comment by L...@gmx.com on 7 May 2013 at 10:51

GoogleCodeExporter commented 9 years ago
I will close this issue since the network detection algorithm has changed a lot 
in Cardpeek.
If I get access one day to the specs of the venice transport card, we might be 
able to add it to cardpeek.

Original comment by L...@gmx.com on 27 Apr 2014 at 2:18