×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    20

    Detecting the Secure Element of the 6131 with another 6131

    I'm trying to access the SE of a 6131 from a midlet of another 6131. Both firmware 3.12. For testing purposes I have this simple midlet:
    Code:
    import javax.microedition.contactless.ContactlessException;
    import javax.microedition.contactless.DiscoveryManager;
    import javax.microedition.contactless.TargetListener;
    import javax.microedition.contactless.TargetProperties;
    import javax.microedition.contactless.TargetType;
    import javax.microedition.lcdui.Command;
    import javax.microedition.lcdui.CommandListener;
    import javax.microedition.lcdui.Display;
    import javax.microedition.lcdui.Displayable;
    import javax.microedition.lcdui.Form;
    import javax.microedition.lcdui.StringItem;
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.midlet.MIDletStateChangeException;
    
    
    public class TestSmartCardDetection extends MIDlet {
    
    	public TestSmartCardDetection() {
    		// TODO Auto-generated constructor stub
    	}
    
    	protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
    		// TODO Auto-generated method stub
    
    	}
    
    	protected void pauseApp() {
    		// TODO Auto-generated method stub
    
    	}
    
    	protected void startApp() throws MIDletStateChangeException {
    		Display disp = Display.getDisplay(this);
    		final Form f = new Form("Test Smart Card detection");
    		f.addCommand(new Command("Quit",Command.EXIT,0));
    		f.setCommandListener(new CommandListener(){
    
    			public void commandAction(Command arg0, Displayable arg1) {
    				TestSmartCardDetection.this.notifyDestroyed();
    				
    			}});
    		disp.setCurrent(f);
    		try {
    			DiscoveryManager.getInstance().addTargetListener(new TargetListener(){
    
    				public void targetDetected(TargetProperties[] arg0) {
    					f.append(new StringItem("","Detected!"));
    					
    				}}, TargetType.ISO14443_CARD);
    			f.append(new StringItem("","Registered Listener"));
    		} catch (IllegalStateException e) {
    			// TODO Auto-generated catch block
    			e.printStackTrace();
    		} catch (ContactlessException e) {
    			// TODO Auto-generated catch block
    			e.printStackTrace();
    		}
    
    	}
    
    }
    Phone A is running this midlet and phone B is simply in the main menu, SE element is always active.

    I've noticed that phone A almost never manages to detect the SE of phone B when tag detection on phone B is on. Turning off tag detection makes it much better.

    In both cases (tag detection on and off) it happens quite often (and is annoying for users) that the user keeps both phones touching for a very very long time and the connection just doesn't get detected.

    Firmware 3.12. Any workarounds? Is this any better in the 5.11 firmware? I'd appreciate if someone can test.

  2. #2
    Registered User
    Join Date
    Jul 2007
    Posts
    20

    Re: Detecting the Secure Element of the 6131 with another 6131

    if anyone would be so kind to check this on 5.11 firmware, you can use following files:

    TestSmartCardDetection.jad
    TestSmartCardDetection.jar

  3. #3
    Regular Contributor
    Join Date
    Dec 2004
    Posts
    53

    Re: Detecting the Secure Element of the 6131 with another 6131

    I've checked this on v5.11, phone A running the midlet, phone B just on the standby screen - in about 60% of cases "Detected" was printed within the midlet. Occasionally phone B said "Tag Unusable".

    When I turned off tag detection on phone B, phone A didn't detect it quite as often, maybe about 40% (appears to be the opposite of what you found).

    Either way, it wasn't the best user experience.

    HTH,
    -Jeff

  4. #4
    Regular Contributor
    Join Date
    Feb 2007
    Location
    France
    Posts
    56

    Thumbs down Re: Detecting the Secure Element of the 6131 with another 6131

    NFC is magnetic field induction... maybe we found a real problem here. Phones (with tag detection ON) are on constant polling. Frequency band 13,56 Mhz could be altered ?

    We experience the same problem here... it's not a "simple touch".
    Finalist, First European NFC Competition 2007
    2nd Prize Research Track, NFC Forum Global Competition 2008
    NFC Project Manager at the University of Nice Sophia-Antipolis, France
    http://tdelazzari.blogspot.com

Similar Threads

  1. Nokia 6131 NFC and Secure Element of a MiFare SmartCard
    By j.delinselle in forum Near Field Communication
    Replies: 2
    Last Post: 2009-11-05, 08:56
  2. Info on Authenticating with the Secure Element
    By phoenix__ in forum Near Field Communication
    Replies: 20
    Last Post: 2009-07-29, 11:04
  3. Using the secure element of 6131
    By lore1505 in forum Near Field Communication
    Replies: 1
    Last Post: 2007-09-27, 15:21
  4. Reading/Writing data in the secure element
    By freediver29 in forum Near Field Communication
    Replies: 0
    Last Post: 2007-05-30, 15:11
  5. where to get the key set for secure element in 6131
    By caogates22 in forum Near Field Communication
    Replies: 2
    Last Post: 2007-05-15, 14:32

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×