Der Harald Welte
First of all thank you for your reply.
I tried again today and now I have this problem. Early preparations:
Create a linux (debian11) (this server server)
Install the following dependencies
osmocom-latest_1.0.0_amd64.deb
libosmocore20_1.8.0_amd64.deb
libosmocodec0_1.8.0_amd64.deb
libosmoisdn0_1.8.0_amd64.deb
libosmogsm18_1.8.0_amd64.deb
libosmocoding0_1.8.0_amd64.deb
libosmovty9_1.8.0_amd64.deb
libosmogb14_1.8.0_amd64.deb
libosmoctrl0_1.8.0_amd64.deb
libosmosim2_1.8.0_amd64.deb
libosmousb0_1.8.0_amd64.deb
libosmocore_1.8.0_amd64.deb
Then I cloned two linux (debian11) one for the card reader part (bank) and one 
for the client-st2+simtrace2 part. bankd
install dependencies
libosmoabis10_1.4.1_amd64.deb
libosmo-rspro2_1.0.0_amd64.deb
osmo-remsim-bankd_1.0.0_amd64.deb
Installed pcscd, opened pcsc and set "1", "0", "HID Global OMNIKEY 6121 Smart 
Card Reader \[OMNIKEY 6121 Smart Card Reader\] 00 00" in the csv file
I run the program and wait till this

root@debian:/bin# sudo lsof -i :9999
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
osmo-rems 469 root    4u  IPv4  12597      0t0  TCP *:9999 (LISTEN)
root@debian:/bin# osmo-remsim-bankd -i 192.168.2.122 -I 192.168.2.105 -n 1 -b 1
2329 DMAIN INFO bankd_pcsc.c:105 PC/SC slot name: 1/0 -> regex 'HID Global 
OMNIKEY 6121 Smart Card Reader \[OMNIKEY 6121 Smart Card Reader\] 00 00'
2329 DRSPRO INFO ../rspro_client_fsm.c:307 RSPRO_CLIENT(server){REESTABLISH}: 
Creating TCP connection to server at 192.168.2.122:9998
2329 DLGLOBAL ERROR socket.c:933 unable to bind socket:192.168.2.105:9999: 
Address already in use
2329 DLGLOBAL ERROR socket.c:945 no suitable addr found for: 192.168.2.105:9999

root@debian:/bin# osmo-remsim-bankd -i 192.168.2.122 -I 192.168.2.105 -n 1 -b 1 
-P 1314
2333 DMAIN INFO bankd_pcsc.c:105 PC/SC slot name: 1/0 -> regex 'HID Global 
OMNIKEY 6121 Smart Card Reader \[OMNIKEY 6121 Smart Card Reader\] 00 00'
2333 DRSPRO INFO ../rspro_client_fsm.c:307 RSPRO_CLIENT(server){REESTABLISH}: 
Creating TCP connection to server at 192.168.2.122:9998
2334 DBANKDW INFO bankd_main.c:442 [000 INIT] Changing state to INIT
2334 DBANKDW INFO bankd_main.c:442 [000 INIT] Changing state to ACCEPTING
2333 DLINP NOTICE input/ipa.c:141 192.168.2.122:9998 connection done
2333 DRSPRO NOTICE ../rspro_client_fsm.c:127 RSPRO_CLIENT(server){REESTABLISH}: 
RSPRO link to 192.168.2.122:9998 UP

I first checked port 9999. This is the port on my bankd side, and it shows that 
it is being occupied by osmo-remsim. Because I read your reply that you need to 
bind the local port now, so I set -I, but when I set it like this, I enter the 
first command, it shows that my port is occupied, bankd can’t start, when I try 
it for the second time. The port -p 1314 is specified, and bankd is 
successfully started, which can also be seen in the banks of the server. But 
client-st2 reads port 9999, which is very contradictory.I think port 9999 of 
bankd is the same as port 9998 of server. It should not need to be set, but if 
it is not set, it will prompt an error! Why?

Reply via email to