summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/examples/mobile/default.cfg (renamed from src/host/virt_phy/example_configs/osmocom-bb-mobile.cfg)23
-rw-r--r--doc/examples/mobile/multi_ms.cfg (renamed from src/host/virt_phy/example_configs/osmocom-bb-mobilex2.cfg)60
-rw-r--r--src/host/layer23/src/mobile/app_mobile.c2
3 files changed, 37 insertions, 48 deletions
diff --git a/src/host/virt_phy/example_configs/osmocom-bb-mobile.cfg b/doc/examples/mobile/default.cfg
index 1aeb3f58..cc816305 100644
--- a/src/host/virt_phy/example_configs/osmocom-bb-mobile.cfg
+++ b/doc/examples/mobile/default.cfg
@@ -1,5 +1,5 @@
!
-! OsmocomBB (0.0.0) configuration saved from vty
+! OsmocomBB example configuration for mobile application
!!
!
line vty
@@ -14,12 +14,12 @@ no hide-default
ms 1
layer2-socket /tmp/osmocom_l2
sap-socket /tmp/osmocom_sap
- sim test
+ sim reader
network-selection-mode auto
- imei 123456789012345 0
+ imei 000000000000000 0
imei-fixed
no emergency-imsi
- sms-service-center 123123123
+ no sms-service-center
no call-waiting
no auto-answer
no force-rekey
@@ -40,9 +40,9 @@ ms 1
p-gsm
e-gsm
r-gsm
- gsm-850
+ no gsm-850
dcs
- pcs
+ no pcs
class-900 4
class-850 4
class-dcs 1
@@ -54,14 +54,9 @@ ms 1
min-rxlev -106
dsc-max 90
no skip-max-per-band
- exit
test-sim
- imsi 901700000000403
- ki comp128 12 34 56 78 90 1b cd ef 12 34 56 78 90 ab cd ef
+ imsi 001010000000000
+ ki comp128 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
no barred-access
- rplmn 262 42 0x0001
- hplmn-search everywhere
- exit
+ rplmn 001 01
no shutdown
-exit
-!
diff --git a/src/host/virt_phy/example_configs/osmocom-bb-mobilex2.cfg b/doc/examples/mobile/multi_ms.cfg
index 0c9ada4d..bef2406e 100644
--- a/src/host/virt_phy/example_configs/osmocom-bb-mobilex2.cfg
+++ b/doc/examples/mobile/multi_ms.cfg
@@ -1,5 +1,5 @@
!
-! OsmocomBB (0.0.0) configuration saved from vty
+! OsmocomBB example configuration for mobile application
!!
!
line vty
@@ -11,15 +11,15 @@ no gps enable
!
no hide-default
!
-ms 1
- layer2-socket /tmp/osmocom_l2
- sap-socket /tmp/osmocom_sap
- sim test
+ms one
+ layer2-socket /tmp/osmocom_l2.one
+ sap-socket /tmp/osmocom_sap.one
+ sim reader
network-selection-mode auto
- imei 123456789012345 0
+ imei 000000000000000 0
imei-fixed
no emergency-imsi
- sms-service-center 123123123
+ no sms-service-center
no call-waiting
no auto-answer
no force-rekey
@@ -40,9 +40,9 @@ ms 1
p-gsm
e-gsm
r-gsm
- gsm-850
+ no gsm-850
dcs
- pcs
+ no pcs
class-900 4
class-850 4
class-dcs 1
@@ -54,25 +54,22 @@ ms 1
min-rxlev -106
dsc-max 90
no skip-max-per-band
- exit
test-sim
- imsi 901700000000403
- ki comp128 12 34 56 78 90 1b cd ef 12 34 56 78 90 ab cd ef
- barred-access
- rplmn 262 42 0x0001
- hplmn-search everywhere
- exit
+ imsi 001010000000001
+ ki comp128 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+ no barred-access
+ rplmn 001 01
no shutdown
-exit
-ms 2
- layer2-socket /tmp/osmocom_l2_NR2
- sap-socket /tmp/osmocom_sap_NR2
- sim test
+!
+ms two
+ layer2-socket /tmp/osmocom_l2.two
+ sap-socket /tmp/osmocom_sap.two
+ sim reader
network-selection-mode auto
- imei 123456789012346 0
+ imei 000000000000000 0
imei-fixed
no emergency-imsi
- sms-service-center 123123123
+ no sms-service-center
no call-waiting
no auto-answer
no force-rekey
@@ -93,9 +90,9 @@ ms 2
p-gsm
e-gsm
r-gsm
- gsm-850
+ no gsm-850
dcs
- pcs
+ no pcs
class-900 4
class-850 4
class-dcs 1
@@ -107,14 +104,9 @@ ms 2
min-rxlev -106
dsc-max 90
no skip-max-per-band
- exit
test-sim
- imsi 901700000000404
- ki comp128 11 34 56 78 90 1b cd ef 12 34 56 78 90 ab cd ef
- barred-access
- rplmn 262 42 0x0001
- hplmn-search everywhere
- exit
+ imsi 001010000000002
+ ki comp128 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
+ no barred-access
+ rplmn 001 01
no shutdown
-exit
-!
diff --git a/src/host/layer23/src/mobile/app_mobile.c b/src/host/layer23/src/mobile/app_mobile.c
index fd2c94fb..ecf98205 100644
--- a/src/host/layer23/src/mobile/app_mobile.c
+++ b/src/host/layer23/src/mobile/app_mobile.c
@@ -407,6 +407,8 @@ int l23_app_init(int (*mncc_recv)(struct osmocom_ms *ms, int, void *),
" '%s'\n", config_file);
fprintf(stderr, "Please check or create config file"
" using: 'touch %s'\n", config_file);
+ fprintf(stderr, "or use one from "
+ "'doc/examples/mobile/'\n");
return rc;
}
printf("Using configuration from %s\n", config_file);