Results 1 to 5 of 5

Thread: Reset Command - how ?

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Posts
    155
    Thanks
    2
    Thanked 8 Times in 7 Posts
    Rep Power
    204
    Reputation
    60

    Default Reset Command - how ?

    Hi guys,

    Very noob question but here it goes :

    In every program out there, theres a button to get a cards ATR.

    Question is , what is this command in HEX ? Or does something else need to be done to trigger a card reset.

    Thanks.



Look Here ->
  • #2
    Junior Member
    Join Date
    Jan 2008
    Posts
    190
    Thanks
    1
    Thanked 25 Times in 15 Posts
    Rep Power
    205
    Reputation
    81

    Default

    Its not a hex command, but an RS232 line state change

    Set the line states to a know point
    - Clr RTS
    - Clr DTR

    If its a pheonix reader
    - Set RTS
    - Clr RTS

    if smart mouse
    - Clr RTS
    - Set RTS

  • #3
    Junior Member
    Join Date
    Jan 2008
    Posts
    155
    Thanks
    2
    Thanked 8 Times in 7 Posts
    Rep Power
    204
    Reputation
    60

    Default

    thanks crypto...

    would you know how to create a function to do this in a language such as java or c#

    thanks.

  • #4
    Senior Member gw1's Avatar
    Join Date
    Jan 2008
    Location
    Hobart
    Posts
    957
    Thanks
    49
    Thanked 608 Times in 213 Posts
    Rep Power
    267
    Reputation
    1901

    Default

    You need to refer to the documentation for the serial port library or API you're using.

    Most card tools are written in Delphi, VB6 or C++Builder. To communicate with the serial port they use either for serial port or a wrapper component (VCL or ActiveX). The serial components just make Win32 API calls under the hood. There's a bit to learn but as APIs go it's old and stable with plenty of documentation available. The Win32 API functions in turn call the serial port driver which manipulates the UART register bits that control the handshaking lines.

    Here are a few brief pointers.
    • Hosting your card in a phoenix, you reset the card using RTS (as crypto7 indicated above). In SmartMouse mode you still use RTS but the polarity is other way around. Card presence is found by reading RS232 CD aka 'carrier detect' line (Microsoft sometimes call it RLSD for 'receive line signal detect').
    • Talking to a receiver via season, you request notification of CAM's reset signal via the RS232 CD (aka RLSD) line. You won't necessarily receive notification of this event automatically; depending on what library you're using you'll probably need to ask for the notification.
    • You don't want to be notified of all events on the serial port, just the one or two of relevance. Enabling too many events can cause instability on slower systems because of overhead of servicing spurious interrupts.
    • In all cases the communication is asynchronous, so it's your responsibility to ensure bit rate matches the CAM or Phoenix clock. If incorrect you'll get framing errors.
    • Be prepared to play with stop and parity bits; some receivers have different requirements.
    • As described in the ISO7816 specification, responses are time sensitive. If your messages are too late timeout may occur.
    • Serial port modes exist which switch RTS and DTR automatically for flow control. You should programmatically disable those modes otherwise you may not be able to control them manually.

  • #5
    Junior Member
    Join Date
    Jan 2008
    Posts
    155
    Thanks
    2
    Thanked 8 Times in 7 Posts
    Rep Power
    204
    Reputation
    60

    Default

    thanks alot gw1
    will take it from there - cheers

  • Similar Threads

    1. Command & Conquer 3 on Mac
      By mate in forum General and PC Gaming
      Replies: 4
      Last Post: 03-07-09, 08:57 PM
    2. TomTom XL, Voive Command Problem
      By jaybepr in forum TomTom
      Replies: 0
      Last Post: 22-02-09, 05:50 PM
    3. raid 1 clear command
      By omega99 in forum PC Hardware and Printers (including 3D Printers)
      Replies: 0
      Last Post: 29-09-08, 02:40 PM
    4. UEC DSD 660 Diseqc CMD (command)
      By LeroyPatrol in forum Decoders
      Replies: 5
      Last Post: 30-07-08, 12:30 AM
    5. This might be a longshot... DOS FOR command..
      By elusiver in forum Operating Systems
      Replies: 3
      Last Post: 18-07-08, 11:00 PM

    Bookmarks

    Posting Permissions

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