Hello all,
I would like to add two (fake) mobiles by using the osmocomBB platform. Can you help by indicating how or web pages where I can find useful information. Actually I follow these instructions found here : https://osmocom.org/projects/baseband/wiki/FakeTRX
Thanks, BR
MaGo
Hello,
I would like to add two (fake) mobiles by using the osmocomBB platform.
a single process of mobile app can serve several MS instances, see an example:
https://git.osmocom.org/osmocom-bb/tree/doc/examples/mobile/multi_ms.cfg
but you will still need to run two instances of trxcon:
$ ./trxcon -s /tmp/osmocom_l2.one
and
$ ./trxcon -s /tmp/osmocom_l2.two --trx-port 6703
and finally, fake_trx.py needs to know about the second transceiver:
$ ./fake_trx.py --trx MS@127.0.0.1:6000
After that you can manage both virtual mobile phones using the VTY interface:
$ telnet localhost 4247 OsmocomBB> en OsmocomBB# sim testcard one OsmocomBB# sim testcard two
NOTE: in the mentioned config file, change 'sim reader' to 'sim none' in order to use the virtual SIM cards.
Good luck!
With best regards, Vadim Yanitskiy.
Vadim, I really appreciated your work on osmocom and thanks for your answer. I did some tests after your suggestions but the second terminal seems not connected to a cell. What is wrong, do you have an idea?
Then, the faketrx is open on ports 6700 and 6000 (it seems correct) [INFO] transceiver.py:104 Init transceiver 'BTS@127.0.0.1:5700' [DEBUG] data_if.py:36 Init TRXD interface (L:0.0.0.0:5702 <-> R:127.0.0.1:5802) [DEBUG] ctrl_if.py:32 Init TRXC interface (L:0.0.0.0:5701 <-> R:127.0.0.1:5801) [INFO] transceiver.py:104 Init transceiver 'MS@127.0.0.1:6700' [DEBUG] data_if.py:36 Init TRXD interface (L:0.0.0.0:6702 <-> R:127.0.0.1:6802) [DEBUG] ctrl_if.py:32 Init TRXC interface (L:0.0.0.0:6701 <-> R:127.0.0.1:6801) [INFO] transceiver.py:104 Init transceiver 'MS@127.0.0.1:6000' [DEBUG] data_if.py:36 Init TRXD interface (L:0.0.0.0:6002 <-> R:127.0.0.1:6102) [DEBUG] ctrl_if.py:32 Init TRXC interface (L:0.0.0.0:6001 <-> R:127.0.0.1:6101) [INFO] fake_trx.py:392 Init complete
The second Trxcon (trx) is offline and the output is : [...] <0000> trxcon.c:324 Init complete <0001> l1ctl_link.c:182 L1CTL has a new connection <0001> l1ctl.c:427 Received reset request (1) <0005> sched_trx.c:179 Reset scheduler and clock counter <0003> trx_if.c:454 read() failed with rc=-1 <0001> l1ctl.c:427 Received reset request (1) <0005> sched_trx.c:179 Reset scheduler and clock counter <0001> l1ctl.c:403 Received power measurement request (GSM900: 0 -> 0) [...] <0003> trx_if.c:170 No response from transceiver... <0003> trx_if.c:454 read() failed with rc=-1 <0003> trx_if.c:170 No response from transceiver... <0003> trx_if.c:174 Transceiver offline
Finally, I modified the config file (multims) I wrote "sim none" (but also and "sim test" as in the guide). The telnet output shows the 2nd terminal's service is limited:
MS 'one' is up, service is normal [...] automatic network selection state: A2 on PLMN MCC=001 MNC=01 (Test, Test) cell selection state: C3 camped normally ARFCN=51 MCC=001 MNC=01 LAC=0x03e8 CELLID=0x000a (Test, Test) radio resource layer state: idle mobility management layer state: MM idle, normal service
MS 'two' is up, service is limited automatic network selection state: A1 trying RPLMN MCC=001 MNC=01 (Test, Test) cell selection state: C1 normal cell selection radio resource layer state: idle mobility management layer state: MM idle, PLMN search
Regards, Matteo Gorgo
Hello Matteo,
$ ./fake_trx.py --trx MS@127.0.0.1:6000 $ ./trxcon -s /tmp/osmocom_l2.two --trx-port 6703
What is wrong, do you have an idea?
sorry, my instructions were a bit misleading (port mismatch). Just start the second process of trxcon with the same port number as was given to fake_trx:
$ ./trxcon -s /tmp/osmocom_l2.two --trx-port 6000
Hope this helps, good luck!
With best regards, Vadim Yanitskiy.
Vadim, thank you very much. It works just after sending you the mail. (Indeed, I changed something more). Best Regards, Matteo
-----Message d'origine----- De : Vadim Yanitskiy axilirator@gmail.com Envoyé : mardi 3 décembre 2019 21:32 À : MG - SMS ARSIA mg@sms-arsia.fr Cc : baseband-devel@lists.osmocom.org Objet : Re: add 2 mobiles in osmocomBB
Hello Matteo,
$ ./fake_trx.py --trx MS@127.0.0.1:6000 $ ./trxcon -s /tmp/osmocom_l2.two --trx-port 6703
What is wrong, do you have an idea?
sorry, my instructions were a bit misleading (port mismatch). Just start the second process of trxcon with the same port number as was given to fake_trx:
$ ./trxcon -s /tmp/osmocom_l2.two --trx-port 6000
Hope this helps, good luck!
With best regards, Vadim Yanitskiy.
baseband-devel@lists.osmocom.org