Thanks, I had missed that! Perhaps it would be helpful for bankd to
explicitly log that no reader was found according to the regex - in my case
the problem wasn't obvious, and the client would keep retrying in a loop.

On Wed, Jul 19, 2023, 13:29 Harald Welte <lafo...@osmocom.org> wrote:

> Dear Adrian,
>
> On Wed, Jul 12, 2023 at 04:44:50PM +0300, Adrian Popa wrote:
> > Now - if it's using a regex to search for the reader string, the fact
> > that my reader has [] and () in it will break the regex search, right?
>
> yes.
>
> > I've changed /etc/osmocom/bankd_pcsc_slots.csv, and set just:
> > "1","1","SCM Microsystems Inc. SCR 3310"
> > as the reader name/mapping, leaving out the special characters, and it
> > started ok.
> >
> > I suggest making a note of this in the documentation, that special
> > characters in the reader name are checked via regular expressions.
>
> This is already documented rather explicitly, please see
>
> https://gitea.osmocom.org/sim-card/osmo-remsim/src/commit/958ae50de114def58e3213a06d469de0bb19fa7d/doc/manuals/chapters/remsim-bankd.adoc#L150
>
> | NOTE:: If the reader name contains any special characters, they might
> need to be escaped according
> | to the extended POSIX regular expression syntax. See `man 7 regex` for a
> reference.
>
> The example config file snippet just below it also contains \[ style
> escaping
>
> --
> - Harald Welte <lafo...@osmocom.org>
> https://laforge.gnumonks.org/
>
> ============================================================================
> "Privacy in residential applications is a desirable marketing option."
>                                                   (ETSI EN 300 175-7 Ch.
> A6)
>

Reply via email to