Accessing to Smart Card Readers PC/SC with Labview

Accessing to Smart Card Readers using Labview 
This program is an example that how access to Smart Card Readers (PC/SC) to get some information about a SIM Card, this program is not debuged yet and have some issues.
The point is wear the  winscard.dll where  all the function to access to this PC/SC readers are defined, I don´t have enought skills as programmer, but I think that it could be help somebody to develope
applications with Labview and SIM cards (GSM, USIM, etc..)
Regards
Attachments:
GETTING_ATR_FROM_SIM_CARD_GSM.vi ‏118 KB

Hello!
Let me first understand your question,  Do you want to know wich of 22 DLL´s, that you have, can you use to sent an AT command to retrive the MSISDN on SIM Card?
If you answer is yes, you should be identify all the functions in your dll and found wich of them ara used to sent AT commands like SMS send, SMS retrive, etc.., the same structure of this commands you can use to send another AT Command.
The number should be record on the SIM Card.
AT+CNUM Subscriber Number
Description:
This command returns the MSISDNs related to the subscriber (this information can be
stored in the SIM or in the ME). If subscriber has different MSISDN for different services,
each MSISDN is returned in a separate line.
Test if the command
is supported
AT+CNUM=?
Best Regards.
Enrique Ramos
Telcel Mexico

Similar Messages

  • How access to Smart Card Readers using Labview?

    I´am trying access to Smart Card Readers by Labview, but I have problems.
    I want to read SIM card GSM using Labview.!
    The file winscard.dll has the functions to access, but I dont have skill with "Using External codes in LabView".
    In MSDN library there is the specification about the functions for winscard.dll
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthn/security/smart_card_authentication.asp
    When you install a driver for some smart card reader you access to it by winscard.dll.
    Att. Enrique

    Finally I can acces to the smart card readers (PC/SC) with Labview,   this is the first part where I can establish the context and realease it, and  I can get the first  name of my list of PC/SC readers that I have connected to my computer.
    I was wearing the "Call Library Function"  for  winscard.dll
    For  Establish the context you need :
        function name :  SCardEstablishContext
    Calling conventions :  stdcall (WINAPI)
    function prototype :    long SCardEstablishContext(long SCARD_SCOPE_USER, long NULL1, long NULL2, unsigned long *hContextHandle);
    function name : SCardReleaseContext
    Calling conventions :  stdcall (WINAPI)
    function prototype :  void SCardReleaseContext(unsigned long hContextHandle);

  • Programming multiple smart cards with multiple smart card readers in a PC causes a PCSCException in a smart card that is in progress

    Hi,
    I develop a Java code using smartcardio API to program a smart card. My GUI allows to add at most 5 smart card readers that will wait for card present, then do authentication and program the smart card with an application, then wait for card removal. This is a separate thread running in a loop for each smart card reader added as programmer.
    The problem occurs when a certain smart card is in progress and I inserted another smart card to another smart card reader.  Both smart card reader halts and throw sun.security.smartcardio.PCSCException: Unknown error 0x8010002f.
    I also observed that every time there is an attempt to insert/remove a smart card in the smart card reader that is connected to the USB port would cause the programming in progress to be interrupted and throw the PCSCException.
    These are some exceptions I got during my testing:
    sun.security.smartcardio.PCSCException: Unknown error 0x8010002f
      at sun.security.smartcardio.PCSC.SCardTransmit(Native Method)
      at sun.security.smartcardio.ChannelImpl.doTransmit(ChannelImpl.java:171)
    java.lang.Exception: Loader Record Failed: 6E | 0 //Sometimes I got this return code SW1 0x6E SW2 0x00 which means an APDU with an invalid 'CLA' bytes was received. I had check the command before it was sent and it was correct.
    Help me understand this issue. I think the CardTerminal.isCardPresent(), CardTerminal.waitForCardPresent(0), and CardTerminal.waitForCardAbsent(0) cause this issue that CardChannel.transmit(apduCommand) is interrupted or the smart card insertion/removal causes the CardChannel.transmit(apduCommand) is interrupted.
    Regards,
    Knivez

    Hi,
    when you work with one smartcard reader only usually you address the slot -1 that means "the first found".
    But to deal with multiple readers you have to use slots of course since one reader will be slot 0, next reader will be slot 1 and so on...
    So a credential object will be identified on a system by a couple
    <slot,alias>
    After that, the way to address slots (I mean the syntax) depends on the classes you are using...
    Bye

  • Access to smart card reader on Win 8.1 RDP Host

    Hi,
    I have a customer that has a couple of Windows 8.1 Pro computers, that has a smart card reader in the local keyboard.
    Until a few months ago, they could RDP to the desktop computer from a RDP client such as another Windows PC, a Mac or a mobile device.
    The problem is now that when accessing the desktop computer (with the smart card reader keyboard) from a RDP client, the smart card reader is not available in the RDP session anymore. This prevents them from logging on to an application in the network that
    requires their smart card.
    Can someone perhaps point me in a direction where this can be solved, either with the MS RDP host or with some 3rd party RDP host applications?
    (Teamviewer or similar remote support applications works, but that is not what the customer want...)
    Since it worked like a charm up until 2-3 months ago, there must have been some update to Win 8.1 that prevents this by default?
    Thanks in advance,
    /Mikael Forslund

    Hi Mikael Forslund,
    I am supposing you attempted to use smart card reader connected directly to Remote Desktop terminal. Basically your RDP session should redirected smart card reader to the client side and will not see readers connected to the host side
    because enable Safety equipment such like smart card reader will cause highly insecure and that is not by design.
    We suggest using smart card reader on local RDP client for your issue.
    “The reverse is also true; if you RDP into a session from the start you will never see any local smartcard readers as Winscard will detect it’s running in an RDP session and no calls to Winscard will ever reach the local PC/SC layer –
    everything will be redirected to the connecting client.”
    Quote from this TechNet article
    http://blogs.technet.com/b/instan/archive/2011/03/27/why-can-t-i-see-my-local-smartcard-readers-when-i-connect-via-rdp.aspx
    Similar case has been posted and for your reference
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/47972083-b9bd-49fd-8708-b296af81bda3/usb-smart-card-reader-and-smart-card-connected-directly-to-remote-desktop-server?forum=winserverTS
    Regards
    D. Wu

  • Multiple Smart Card Readers

    Hello! This is the same topic I posted on the cryptography forum, but nobody there seems to reply, so here it is again!
    I'm developing an application to sign pdf documents with smart cards. I'm using the PKCS#11 Sun Provider to manage the smart card and IText to sign the document. I don't need to support other OS's than Windows.
    Everything works fine with one smart card, but I need to support two readers: they should be connected and active at the same time, on the same machine, they are exactly the same (apart from the smart card they hold) and the smart cards are from the same providers, thus use the same DLL.
    I know my problem has a solution (I saw applications managing these cases), but my question is: If it can be done with the Sun PKCS11 provider, what should I do? (I saw that you can configure 'slots', but I don't know if it has to do with my problem!) Otherwise, should I recur to C++ to work at a lower level?
    Any help is appreciated, even just a link to some documentation!
    Thank you very much!

    Hi,
    when you work with one smartcard reader only usually you address the slot -1 that means "the first found".
    But to deal with multiple readers you have to use slots of course since one reader will be slot 0, next reader will be slot 1 and so on...
    So a credential object will be identified on a system by a couple
    <slot,alias>
    After that, the way to address slots (I mean the syntax) depends on the classes you are using...
    Bye

  • Do SD card readers not work with 10.3?

    I have an old G4 Power mac, and my kids have iMac G5s. We all run 10.3.9, and have SD card readers, and none of them work at all. Does Apple acknowledge that SD cards do not work with Macs, and/or was this fixed in 10.4? We are looking to replace our computers, and this is a deal breaker.

    Okay, I did a little more research, and here's what I have found.
    (Yes, I'm talking about a USB card reader.)
    On my ancient G4 Mac, the 2GB card never mounts. I can see it with Disk Utility, but Disk Utility usually offers to format it. When I do this, it attempts to format it as a 1GB card, and fails.
    However, I found an old 16MB card, and it mounts every time.
    My kids both have a reader and a 2GB card for their iMacs. They usually mount okay, but not always. Sometimes it takes a restart.
    The 2GB cards are all a funky off-brand, "Adata." The 16MB card is a Canon.
    Now I am wondering if it's the cheap cards, or the capacity of the cards. I remember reading at one time that some Macs don't want to see removable drives over 1GB. This may be the problem with my computer. I just ordered a 1GB PQI card, we'll see how that does when it arrives.
    My mac has both USB 1.1 and 2.0 slots. Same results on either bus.

  • Acrobat 9 does not recognize the smart card reader that work with other app. Can someone help me?

    Hi to All,
    Acrobat 9 (included in CS4 design premium) does not recognize the smart card reader. I have a smart card reader ACR38 smart card that works with all applications except Acrobat 9 pro. I tried to uninstall and reinstall it again, but when I try to insert the digital signature message is always the same, that does not find the Acrobat reader. Can someone help me?

    Hi MartinR
    Thank you for your reply, i have tried what you suggest, and it did not work, the i DVD opening title changed but not the embedded movie.
    Perhaps it is a setting in Final Cut Express?
    After capturing my footage, i open a new project then i convert all clips to anamorphic, to give me the letterbox effect, i have tried now with and without anamorphic.
    In my canvas screen, the footage does not fill the square, even if i have not selected anamorphic, and fall well within the TV safe areas, but the only way to ill the canvas up is to crop it bigger, but still when i export it does not give me the full screen view.
    Any ideas?

  • Internal USB card readers wont worth with my 694T Pro

    I first bought an ECS internal card reader, and when it didnt work i figured it was because it was a cheap little $10 piece.
    Then i bought a $24 Apacer and figured for sure it would work.
    For some reason, my motherboard wont even work with these card readers, does anyone know why?

    SON OF A.........
    I just got to thinking, "hey maybe theres something in the BIOS that isnt configured properly"
    so i shut down, and sure enough its set to only use USB ports 0 and 1.   So it turns out that the cheap card reader that i got for $10 would have worked perfectly fine.  So now i spent $14 more on a different card reader, and actually lost money on the other one that i sold on ebay!
     :O  :O  :O  :O

  • Smart Card Problem in Java with server

    Hi everybody.I use smart card authentication to sign my web application which was deployed in apache tomcat and I use servlet & jsp fro developing this web application.When deploy application on local machine there is no problem.
        public String getInfo(String password) {
            String certInfo = "";
            try {
                String configName = "C:/smartcards/config/pkcs11.cfg";
                String PIN = password;
                Provider p = new sun.security.pkcs11.SunPKCS11(configName);
                Security.addProvider(p);
                ((SunPKCS11) p).logout();
                KeyStore keyStore = KeyStore.getInstance("PKCS11");
                char[] pin = PIN.toCharArray();
                keyStore.load(null, pin);
                Enumeration aliasesEnum = keyStore.aliases();
                String alias = (String) aliasesEnum.nextElement();
                X509Certificate cert = (X509Certificate) keyStore.getCertificate(alias);
                certInfo += cert.toString();
            } catch (Exception e) {
                System.out.println(e.getMessage());
            return certInfo;
    The preceding method return String which was stored in smart card when I pass password of smart card.If password wrong load failed.
    Then I deployed this web app in the server.When I run this app everything is ok when I also remote desktop connected to server.When I close RDP I get Token has been removed exception on web server.How can I solve this problem.I want to also sign to app without remote desktop connection.

    Use PreparedStatement and SimpleDateFormat classes
    http://onesearch.sun.com/search/onesearch/index.jsp?qt=%2BPreparedStatement+%2BSimpleDateFormat+&qp=siteforumid%3Ajava48&chooseCat=allJava&col=developer-forums&site=dev

  • How can I access 6534 onboard timers for software triggering with LabView?

    I want to access the internal timers (with a VI?), so I can delay data output of the board (high precision timing, no system clock)?
    Thanks in advance!

    Sanchez,
    I am not sure that I totally understand your question. Do you want to replace the timing that the operating system provides LabVIEW with the timebase available on the NI 6534? If so, this is not going to be possible. If I have misunderstood your question, let me know.
    Spencer S.

  • Unable to pair BB Smart Card Reader with Pc/Laptop

    Hi, I have 2 new BB smart card readers (SCR) and Im trying to pair with the PC and I can not. The SCR software can not detect the SCR. I put the ID of the device on the software and is trying to looking for it but can not. It says "Unable to connect to the specified Blackberry smart card reader". I have another SCR and I don't have problems to pair with the computer only with the new ones. The SCR have the last OS. Do you know what could be the problem? I think is a bug of the new SCR.

    mzamora wrote:
    Andy, may be nothing so where can I post it? Is there a general discussion?
    Hello,
    if I were you, I'd post in the "General Blackberry Smartphone Functions and Features" forum.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Signed Applet to Access Smart Card Reader

    I am trying to develop an applet that will access a smart card on the client's side. The applet will need to load the PKCS#11 library(.dll) from the client side.
    What is the most secure way to implement this design?
    1 solution I am think of is to use Java Web Start which will download the applet onto the client desktop. Is this the right way?
    Is there a solution where the applet can run in the browser and access the smart card without downloading the applet?
    Thanks.

    This is a duplicate of this and is probably better dealt with in the WebStart forum. I'm locking this thread.

  • Connect smart card reader over usb and access digital signature certificate

    Hi,
    I got digital signature certificate stored in a smart card.I places smart card into card reader and plugged usb port of server.
    I can see card reader in windows environment.My problem is to connect card reader and access digital signature certificate using java code.
    I thinh it needs javax.smartcardio but i did not find necessary jar file for jdk 1.5.xx.
    1- Where can i download jar fiel for javax.smartcardio for jdk 1.5.xx
    2- Is there a blog or forum thread to help me to use smart card over usb?
    Thanks.

    One of the beauty of Java is that when the Java VM does not let you do something (here: accessing a Smart Card), there is no way that a purely Java solution will add this functionality.
    Hence, what you ask simply can not be done in pure Java (1.)5. Some machine-specific non-java code is required. And you did not specify your target.
    Unless a jar file could contain machine-specific code (I don't know if this is the case, and I never made one such jar file), there seems to be no way a jar file could help.

  • Accessing smart card through internet

    I want to make an application that will do the following : I want to have a webpage(for example an order form at an e-shop site) to access the smart card at a remote computer over the internet (the customer's pc) and get some information from an array in the card (e.g the shipping address and his name)....Is it possible to do that or the security restrictions (java applet restrictions) will not allow me to ? If so has anybody any ideas of how it could be done? The same opencard commands (e.g sendCommandApdu() ) work for accessing a card through the internet or do I have to use anything different???Thank you ...

    Sir,
    Even I am looking for a similar application Online Banking application
    But in that case the bank has to authenticate the user using some info that the card stores
    How does the bank achieve the same?
    What is the cards role in this regard
    Where does cryptology come into this
    I would be happy top know these details
    Regards
    Kumar

  • Remote desktop and smart cards

    I frequently work from home using my mac to access my windows based desktop at the office. I use the microsoft remote desktop v. 1.0.3. for MAC. Now that my agency is moving to smart card identification requirements for access I need to be able to use the smart card at home to sign onto the office desktop.
    The RDC for MAC does not have an option for smart card readers (as opposed to the RDC for windows version). Is there alternative software that would be simple to install on my MAC (I am not an IT sophisticate) that will give me smart card access?

    Microsoft Remote Desktop Connection (RDC) for Mac and Apple Remote Desktop (ARD) are two completely different tools with marginally similar capabilities. Unfortunately, as you've already discovered, neither offers Smart Card capabilities to allow you to authenticate to your Windows computer at work.
    If your Mac is an Intel Mac then you could probably run Windows using Parallels or Boot Camp on your home computer and use the Windows RDC client to make your connection. I don't suggest trying to use VirtualPC if you have a PowerPC Mac simply because your Smart Card reader will most likely be USB and VirtualPC has a bad track record with USB devices.
    Hope this helps!
    bill
      Mac OS X (10.4.10)   1 GHz Powerbook G4

Maybe you are looking for