12019 / monosim

Automatically exported from code.google.com/p/monosim
GNU General Public License v2.0
0 stars 0 forks source link

Support USB-Device: Reiner SCT cyber Jack #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Bus 005 Device 002: ID 0c4b:0300 Reiner SCT Kartensysteme GmbH cyberJack 
pinpad(a)
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        32
  idVendor           0x0c4b Reiner SCT Kartensysteme GmbH
  idProduct          0x0300 cyberJack pinpad(a)
  bcdDevice            1.00
  iManufacturer           1 Reiner-SCT
  iProduct                2 cyberJack pinpad(a)
  iSerial                 3 5545547865
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           93
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower               96mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               5
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x85  EP 5 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
        ** UNRECOGNIZED:  36 21 00 10 00 07 03 00 00 00 a0 0f 00 00 40 1f 00 00 00 58 27 00 00 90 d0 03 00 00 fe 00 00 00 07 00 00 00 00 00 00 00 30 00 01 00 0e 01 00 00 ff ff 00 00 03 01
Device Status:     0x0002
  (Bus Powered)
  Remote Wakeup Enabled

Original issue reported on code.google.com by kaef...@gmail.com on 12 Apr 2012 at 8:40

GoogleCodeExporter commented 9 years ago
oh, sorry, the text I wrote got lost, and only the output of "lsusb -v" got 
posted. But well that was the main thing anyway ;) I wanted to know if I can 
use this USB-device with monosim, and what I can do to achieve this.

Thanks for your support!

Original comment by kaef...@gmail.com on 12 Apr 2012 at 8:45

GoogleCodeExporter commented 9 years ago
For the moment I have a huge list of /dev/ttyS** as "readers" to select from. 
See:
http://kaefert.is-a-geek.org/monosim_gtk_reader_list.png

Original comment by kaef...@gmail.com on 12 Apr 2012 at 9:13

GoogleCodeExporter commented 9 years ago
Hi kaefert,
this hardware should be supported so you need only to install pcsc driver. 
You have 2 possibilities to install pcsc driver for this hardware:

- use ccid library (install with apt-get), restart pcsc service and try to 
relaunch monosim to see if reader has been recognized

- use pcsc vendor driver 
http://www.reiner-sct.com/index.php?option=content&task=view&id=234 , restart 
pcsc service and try to relaunch monosim to see if reader has been recognized

Original comment by hmandevt...@gmail.com on 12 Apr 2012 at 2:12

GoogleCodeExporter commented 9 years ago
Okey. I'm on a different Ubuntu machine now.
I installed and restarted the pcscd:
sudo apt-get install pcsdcd
sudo service pcscd stop
sudo service pcscd start

Now the console output changed:

DEBUG 16:29:45 PcscReader::CreateContext: SCardEstablishContext 00
ERROR 16:29:45 PcscReader::UpdateListReaders: SCardListReaders 8010002E - 
SCARD_E_NO_READERS_AVAILABLE

but still somethings wrong..

Original comment by kaef...@gmail.com on 12 Apr 2012 at 2:38

GoogleCodeExporter commented 9 years ago
I also installed the package pcsc-tools, which contains pcsc_scan, but this 
just keeps on hanging on the line "Waiting for the first reader..."

kaefert@blechblubs:/media/userdata/Home/monosim/monosim-2.0.0.0-r108-bin$ 
pcsc_scan
PC/SC device scanner
V 1.4.16 (c) 2001-2009, Ludovic Rousseau <ludovic.rousseau@free.fr>
Compiled with PC/SC lite version: 1.5.3
Scanning present readers...
Waiting for the first reader...

Original comment by kaef...@gmail.com on 12 Apr 2012 at 2:41

GoogleCodeExporter commented 9 years ago
ahh, okey, so now if tried the second thing you suggested, installing the 
drivers from reiner sct, that worked! Now it finds the card reader.

I found another minor bug. If you open the "Reader" menue and select the 
already selected card reader again, and then click on the connect button, he 
states that no reader is selected, but the reader-menue shows that it is still 
selected.

Log of this:

kaefert@blechblubs:/media/userdata/Home/monosim/monosim-2.0.0.0-r108-bin$ 
./monosim-gtk.exe --log-console
INFO  16:49:47 Application Started
INFO  16:49:47 System      Language Tag: de-AT
INFO  16:49:47 Application Language Tag: en-US
DEBUG 16:49:47 PcscReader::CreateContext: SCardEstablishContext 00
DEBUG 16:49:47 GlobalObjUI::SetLanguage: 
LanguagePath=/media/userdata/Home/monosim/monosim-2.0.0.0-r108-bin/Languages/mon
osim-en-US.xml
INFO  16:49:51 Changing reader to REINER SCT cyberJack ppa (5545547865) 00 00
ERROR 16:49:54 MainWindowClass::SimConnect: No reader selected
INFO  16:50:01 Changing reader to REINER SCT cyberJack ppa (5545547865) 00 00
Marshaling button_release_event signal
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.Reflection.TargetInvocationException: Exception has been thrown by the 
target of an invocation. ---> System.Collections.Generic.KeyNotFoundException: 
The given key was not present in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.String,comexbase.IReader].get_Item (System.String key) [0x00000] in <filename unknown>:0 
  at comexbase.GlobalObj.set_SelectedReader (System.String value) [0x00000] in <filename unknown>:0 
  at monosimgtk.MainWindowClass.UpdateSelectedReader (System.String newSelReader) [0x00000] in <filename unknown>:0 
  at monosimgtk.MainWindowClass.ActionChangeReader (System.Object sender, Gtk.ButtonReleaseEventArgs args) [0x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <filename unknown>:0 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0 
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at monosimgtk.MainClass.Main(System.String[] args)
kaefert@blechblubs:/media/userdata/Home/monosim/monosim-2.0.0.0-r108-bin$ 

Original comment by kaef...@gmail.com on 12 Apr 2012 at 2:56

GoogleCodeExporter commented 9 years ago
Another bug, I don't know If I should open another ticket for this, or write 
this here:
I only have the 4 default contacts that where programmed from the network on 
the SIM-Card I used for testing, and it showed me this 4 contacts in a loop 
till the 200 where reached.

Original comment by kaef...@gmail.com on 12 Apr 2012 at 2:59

GoogleCodeExporter commented 9 years ago
I'm now using Linux Mint Debian Edition, which even has the reiner SCT drivers 
in its repository. package name: libifd-cyberjack6
And theres also a testing utility for the card reader: fxcyberjack

And I don't know if you changed anything since I last used monosim (2 weeks) 
but now I don't get the few contacts in a loop, but each one only once.

The other thing with selecting the already selected reader still gives the 
exception i posted two comments above.

Original comment by kaef...@gmail.com on 28 Apr 2012 at 3:31

GoogleCodeExporter commented 9 years ago
> I only have the 4 default contacts that where programmed from the network 
> on the SIM-Card I used for testing, and it showed me this 4 contacts in a 
> loop till the 200 where reached.
it's normal, you could have a contact in each ADN position, it's possible also 
have empty record, so if you stop search on first empty record could lose other 
contacts

> The other thing with selecting the already selected reader 
> still gives the exception i posted two comments above
can you try to launch monosim using:
$ mono --runtime=v4.0 ./monosim-gtk.exe --log-console

Original comment by i...@integrazioneweb.com on 10 May 2013 at 10:19