I'm just "migrating" an old (sigh) Ubuntu 14.4 to 18.4: I'm using an independent root partition, clone home and data directories and re-use some shared application on external shares.
In particular, i'm switching over a 1:1 clone of the Jameica/Hibiscus HBCI banking application on the same hardware. But with the newer Ubuntu, the HBCI is not accessible while all still work if i boot the old Ubuntu.
Using the towitoko tester application, the HBCI card is detected, if I initialize it on "COM2" (i.e. ttyS1). But on 18.04, there is no "answer" even on a menu refresh ('*'). You'll see in the following: this is no problem with user rights or something like this.
I'm using libtowitoko.so.2.0.0 of package (dev-)libtowitoko2-2.0.7 from the Ubuntu repository. But's it's no difference if I use the version 2.0.7 delivered with Hibiscus.
But if I start the towitoko tester via 'strace -f tester', it will surprisedly work! I conclude this is some sort of timing error and strace will slow down things just enough to work.
To prove, I downloaded the source of release 2.0.7 and change l.37 of driver/ifd_towitoko.c:
- #define IFD_TOWITOKO_DELAY 0
- #define IFD_TOWITOKO_DELAY 1
Currently i havn't figured out how to let build the .so, but the build drops a static-linked Version of the tester application (checked with ldd). And with this "DELAY 1"-version, the card send reply after initialisation on Ubuntu 18.04 with the recent Kernel / glibc .
Is it appropriate to change this delay? If you agree, I'll may send a pull request. And please tell me, how to let build the shared lib -- I'm no hard core developer, i'm not trained in this.
I'll continue to re-investigate this using the 2.0.8 trunk because i found that here IFD_TOWITOKO_ATR_TIMEOUT was rised from 200 to 400.
with greetings
Guido
I'm just "migrating" an old (sigh) Ubuntu 14.4 to 18.4: I'm using an independent root partition, clone home and data directories and re-use some shared application on external shares.
In particular, i'm switching over a 1:1 clone of the Jameica/Hibiscus HBCI banking application on the same hardware. But with the newer Ubuntu, the HBCI is not accessible while all still work if i boot the old Ubuntu.
Using the towitoko tester application, the HBCI card is detected, if I initialize it on "COM2" (i.e. ttyS1). But on 18.04, there is no "answer" even on a menu refresh ('*'). You'll see in the following: this is no problem with user rights or something like this.
I'm using libtowitoko.so.2.0.0 of package (dev-)libtowitoko2-2.0.7 from the Ubuntu repository. But's it's no difference if I use the version 2.0.7 delivered with Hibiscus.
But if I start the towitoko tester via 'strace -f tester', it will surprisedly work! I conclude this is some sort of timing error and strace will slow down things just enough to work.
To prove, I downloaded the source of release 2.0.7 and change l.37 of driver/ifd_towitoko.c:
Currently i havn't figured out how to let build the .so, but the build drops a static-linked Version of the tester application (checked with ldd). And with this "DELAY 1"-version, the card send reply after initialisation on Ubuntu 18.04 with the recent Kernel / glibc .
Is it appropriate to change this delay? If you agree, I'll may send a pull request. And please tell me, how to let build the shared lib -- I'm no hard core developer, i'm not trained in this.
I'll continue to re-investigate this using the 2.0.8 trunk because i found that here IFD_TOWITOKO_ATR_TIMEOUT was rised from 200 to 400.
with greetings
Guido