Code Monkey home page Code Monkey logo

ismb-npp-java's People

ismb-npp-java's Issues

compile / run java in OS X 10.6.x


1. Can you please give a note on steps how to run the Java client files on Mac.

Mac OS X 10.6.7 Java 1.6 

When I have tried to run or compile as class,
e.g 'javac IsmbNppConnection.java'
I have received error:
ava:68: cannot find symbol
symbol  : class IsmbNppException


2. Do we need to compile classes first, in a specific order, with a specific 
order?

regards,

Jim


Original issue reported on code.google.com by [email protected] on 22 Sep 2011 at 11:30

Phone2Reader

I get:

Exception in thread "main" java.lang.Error: Unresolved compilation problem: 

    at it.ismb.npp.PhoneToReceiver.main(PhoneToReceiver.java:38)

Can you please check? Maybe I'm doing something wrong but I'm doing it the same 
way as Reader2Phone and this works fine...

Thanks!

Jonas

Original issue reported on code.google.com by [email protected] on 22 Sep 2011 at 10:19

ACR122U not supported

I am using Ubuntu 10.04, the ACS ACR122U and the Nexus S.

It doesn't matter if I try PhoneToReader or ReaderToPhone I always get the 
error: "Device not supported, only ACS ACR122 is supported now", but on the 
pictures in the wiki it looks like you use the ACR122U too.


Original issue reported on code.google.com by [email protected] on 22 Sep 2011 at 1:57

Exception on start up in NppFromReaderToPhone

Hey,

I just managed to configure the NFC device properly and run the Java code 
example provided in NppFromReaderToPhone.zip. After running the code as an Java 
application I receive each time the same error on different platforms/operating 
systems. Furthermore the error code is not understandable for me, i.e., 0x63 
0x00 - Generic Error.

Error-Log (w/o an nfc device):

Get factory
Get terminals
Terminal name: ACS ACR122 0
T=0
Called rightProcedureTarget..
[DEBUG] {sending   [50 bytes]} 0xFF 0x00 0x00 0x00 0x2D 0xD4 0x8C 0x01 0x00 
0x00 0x00 0x00 0x00 0x40 0x01 0xFE 0x0F 0xBB 0xBA 0xA6 0xC9 0x89 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0xFF 0xFF 0x01 0xFE 0x0F 0xBB 0xBA 0xA6 0xC9 0x89 0x00 
0x00 0x06 0x46 0x66 0x6D 0x01 0x01 0x10 0x00 
[DEBUG] {receiving [2 bytes]} 0x63 0x00 
Exception in thread "Timer-0" java.lang.ArrayIndexOutOfBoundsException
    at it.ismb.npp.Util.appendToByteArray(Util.java:100)
    at it.ismb.npp.Util.subByteArray(Util.java:121)
    at it.ismb.npp.IsmbNppConnection.transceive(IsmbNppConnection.java:279)
    at it.ismb.npp.IsmbNppConnection.rightProcedureTarget(IsmbNppConnection.java:301)
    at it.ismb.npp.SenderToPhone$ThreadSender.run(SenderToPhone.java:90)
    at it.ismb.npp.SenderToPhone$InitiatorTask.run(SenderToPhone.java:75)
    at java.util.TimerThread.mainLoop(Unknown Source)
    at java.util.TimerThread.run(Unknown Source)

Runtime Environments:

(1) Windows XP SP3 in a VM
(2) Ubuntu 11.04 in a VM
(3) NFC Reader (touchatag/ACR122U added w/ USB passthrough option)

Output of nfc-list w/ ACR122U and a mifare card:

~/nfc/libnfc-1.5.0/examples$ ./nfc-list
/home/romank/nfc/libnfc-1.5.0/examples/.libs/lt-nfc-list use libnfc 1.5.0 
(r1019)
lt-nfc-list: ERROR: Unable to read ACK
pn53x_check_communication: Operation timed-out
lt-nfc-list: ERROR: Unable to read ACK
pn53x_check_communication: Operation timed-out
Connected to NFC device: ACS ACR122U 00 00 / ACR122U103 - PN532 v1.6 (0x07)
1 ISO14443A passive target(s) found:
    ATQA (SENS_RES): 00  04  
       UID (NFCID1): ae  e0  4b  9a  
      SAK (SEL_RES): 08

Output of pcsc_scan:

pcsc_scan
PC/SC device scanner
V 1.4.17 (c) 2001-2009, Ludovic Rousseau <[email protected]>
Compiled with PC/SC lite version: 1.5.5
Scanning present readers...
0: ACS ACR122U 00 00

Fri Oct  7 16:28:10 2011
 Reader 0: ACS ACR122U 00 00
  Card state: Card inserted, 
  ATR: 3B BE 95 00 00 41 03 00 00 00 00 00 00 00 00 00 02 90 00

ATR: 3B BE 95 00 00 41 03 00 00 00 00 00 00 00 00 00 02 90 00
+ TS = 3B --> Direct Convention
+ T0 = BE, Y(1): 1011, K: 14 (historical bytes)
  TA(1) = 95 --> Fi=512, Di=16, 32 cycles/ETU
    125000 bits/s at 4 MHz, fMax for Fi = 5 MHz => 156250 bits/s
  TB(1) = 00 --> VPP is not electrically connected
  TD(1) = 00 --> Y(i+1) = 0000, Protocol T = 0 
-----
+ Historical bytes: 41 03 00 00 00 00 00 00 00 00 00 02 90 00
  Category indicator byte: 41 (proprietary format)

Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
3B BE 95 00 00 41 03 00 00 00 00 00 00 00 00 00 02 90 00
    touchatag SAM card

Original issue reported on code.google.com by [email protected] on 7 Oct 2011 at 2:31

Why can't I send data larger than 41 bytes?

It seems the project works perfect and I really appreciate it 

but when I tried to send data larger than 41 bytes, 

the reader java source failed to receive the payload.

Does anyone know what's going on?

The situation is about sending data from phone to acr122 over npp.

I can send 41 bytes data. But never 42 bytes and what's larger.



* Below is the output when it fails to receive : 

[DEBUG] {sending   [50 bytes]} 0xFF 0x00 0x00 0x00 0x2D 0xD4 0x8C 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x01 0xFE 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0xFE 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x06 0x46 0x66 0x6D 0x01 0x01 0x10 0x00 
[DEBUG] {receiving [35 bytes]} 0xD5 0x8D 0x25 0x1E 0xD4 0x00 0x43 0xC2 0x44 
0x63 0x35 0xDA 0xC8 0x38 0xE5 0x08 0x00 0x00 0x00 0x32 0x46 0x66 0x6D 0x01 0x01 
0x10 0x03 0x02 0x00 0x01 0x04 0x01 0x96 0x90 0x00 
[DEBUG] {sending   [7 bytes]} 0xFF 0x00 0x00 0x00 0x02 0xD4 0x86 
[DEBUG] {receiving [24 bytes]} 0xD5 0x87 0x00 0x05 0x21 0x06 0x0F 0x63 0x6F 
0x6D 0x2E 0x61 0x6E 0x64 0x72 0x6F 0x69 0x64 0x2E 0x6E 0x70 0x70 0x90 0x00 
[DEBUG] {sending   [9 bytes]} 0xFF 0x00 0x00 0x00 0x04 0xD4 0x8E 0x85 0x81 
[DEBUG] {receiving [5 bytes]} 0xD5 0x8F 0x00 0x90 0x00 
[DEBUG] {sending   [7 bytes]} 0xFF 0x00 0x00 0x00 0x02 0xD4 0x8A 
[DEBUG] {receiving [6 bytes]} 0xD5 0x8B 0x01 0x22 0x90 0x00 
[DEBUG] {sending   [7 bytes]} 0xFF 0x00 0x00 0x00 0x02 0xD4 0x86 
[DEBUG] {receiving [5 bytes]} 0xD5 0x87 0x29 0x90 0x00 
Finished

Original issue reported on code.google.com by [email protected] on 14 May 2012 at 7:06

What are those Bytes meaning?

Hi,

does somebody know what is the precise description of those following bytes?

0xD4 0x8C 0x01 0x00 0x00 0x00 0x00 0x00 0x40 0x01 0xFE 0x0F 0xBB 0xBA 0xA6 0xC9 
0x89 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xFF 0xFF 0x01 0xFE 0x0F 0xBB 0xBA 
0xA6 0xC9 0x89 0x00 0x00 0x06 0x46 0x66 0x6D 0x01 0x01 0x10 0x00 

I know that "0xD4 0x8C" is to configure as target and wait for initiators but 
what about the rest?

Thanks,
Mitch


Original issue reported on code.google.com by [email protected] on 16 Jan 2012 at 6:46

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.