[MERGED] osmocom-bb[master]: mobile: clean up and share example configs

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Mon Oct 23 17:48:03 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: mobile: clean up and share example configs
......................................................................


mobile: clean up and share example configs

It is better to have a shared example config files directory,
like other Osmocom projects do.

Change-Id: I903f31a8afc518ac258cdaeaf76430de07f7edea
---
R doc/examples/mobile/default.cfg
R doc/examples/mobile/multi_ms.cfg
M src/host/layer23/src/mobile/app_mobile.c
3 files changed, 73 insertions(+), 84 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/host/virt_phy/example_configs/osmocom-bb-mobile.cfg b/doc/examples/mobile/default.cfg
similarity index 71%
rename from src/host/virt_phy/example_configs/osmocom-bb-mobile.cfg
rename to doc/examples/mobile/default.cfg
index 1aeb3f5..cc81630 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 @@
 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 @@
   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 @@
   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
similarity index 63%
rename from src/host/virt_phy/example_configs/osmocom-bb-mobilex2.cfg
rename to doc/examples/mobile/multi_ms.cfg
index 0c9ada4..bef2406 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 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 @@
   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,67 +54,59 @@
   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
- network-selection-mode auto
- imei 123456789012346 0
- imei-fixed
- no emergency-imsi
- sms-service-center 123123123
- no call-waiting
- no auto-answer
- no force-rekey
- no clip
- no clir
- tx-power auto
- no simulated-delay
- no stick
- location-updating
- neighbour-measurement
- codec full-speed prefer
- codec half-speed
- no abbrev
- support
-  sms
-  a5/1
-  a5/2
-  p-gsm
-  e-gsm
-  r-gsm
-  gsm-850
-  dcs
-  pcs
-  class-900 4
-  class-850 4
-  class-dcs 1
-  class-pcs 1
-  channel-capability sdcch+tchf+tchh
-  full-speech-v1
-  full-speech-v2
-  half-speech-v1
-  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
- no shutdown
-exit
 !
+ms two
+ layer2-socket /tmp/osmocom_l2.two
+ sap-socket /tmp/osmocom_sap.two
+ sim reader
+ network-selection-mode auto
+ imei 000000000000000 0
+ imei-fixed
+ no emergency-imsi
+ no sms-service-center
+ no call-waiting
+ no auto-answer
+ no force-rekey
+ no clip
+ no clir
+ tx-power auto
+ no simulated-delay
+ no stick
+ location-updating
+ neighbour-measurement
+ codec full-speed prefer
+ codec half-speed
+ no abbrev
+ support
+  sms
+  a5/1
+  a5/2
+  p-gsm
+  e-gsm
+  r-gsm
+  no gsm-850
+  dcs
+  no pcs
+  class-900 4
+  class-850 4
+  class-dcs 1
+  class-pcs 1
+  channel-capability sdcch+tchf+tchh
+  full-speech-v1
+  full-speech-v2
+  half-speech-v1
+  min-rxlev -106
+  dsc-max 90
+  no skip-max-per-band
+ test-sim
+  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
diff --git a/src/host/layer23/src/mobile/app_mobile.c b/src/host/layer23/src/mobile/app_mobile.c
index fd2c94f..ecf9820 100644
--- a/src/host/layer23/src/mobile/app_mobile.c
+++ b/src/host/layer23/src/mobile/app_mobile.c
@@ -407,6 +407,8 @@
 					" '%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);

-- 
To view, visit https://gerrit.osmocom.org/4378
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I903f31a8afc518ac258cdaeaf76430de07f7edea
Gerrit-PatchSet: 2
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>



More information about the gerrit-log mailing list