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
This commit is contained in:
Vadim Yanitskiy 2017-10-23 08:29:04 +03:30
parent da9e830af0
commit 363d4d22da
3 changed files with 73 additions and 84 deletions

View File

@ -1,5 +1,5 @@
! !
! OsmocomBB (0.0.0) configuration saved from vty ! OsmocomBB example configuration for mobile application
!! !!
! !
line vty line vty
@ -14,12 +14,12 @@ no hide-default
ms 1 ms 1
layer2-socket /tmp/osmocom_l2 layer2-socket /tmp/osmocom_l2
sap-socket /tmp/osmocom_sap sap-socket /tmp/osmocom_sap
sim test sim reader
network-selection-mode auto network-selection-mode auto
imei 123456789012345 0 imei 000000000000000 0
imei-fixed imei-fixed
no emergency-imsi no emergency-imsi
sms-service-center 123123123 no sms-service-center
no call-waiting no call-waiting
no auto-answer no auto-answer
no force-rekey no force-rekey
@ -40,9 +40,9 @@ ms 1
p-gsm p-gsm
e-gsm e-gsm
r-gsm r-gsm
gsm-850 no gsm-850
dcs dcs
pcs no pcs
class-900 4 class-900 4
class-850 4 class-850 4
class-dcs 1 class-dcs 1
@ -54,14 +54,9 @@ ms 1
min-rxlev -106 min-rxlev -106
dsc-max 90 dsc-max 90
no skip-max-per-band no skip-max-per-band
exit
test-sim test-sim
imsi 901700000000403 imsi 001010000000000
ki comp128 12 34 56 78 90 1b cd ef 12 34 56 78 90 ab cd ef ki comp128 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
no barred-access no barred-access
rplmn 262 42 0x0001 rplmn 001 01
hplmn-search everywhere
exit
no shutdown no shutdown
exit
!

View File

@ -1,5 +1,5 @@
! !
! OsmocomBB (0.0.0) configuration saved from vty ! OsmocomBB example configuration for mobile application
!! !!
! !
line vty line vty
@ -11,15 +11,15 @@ no gps enable
! !
no hide-default no hide-default
! !
ms 1 ms one
layer2-socket /tmp/osmocom_l2 layer2-socket /tmp/osmocom_l2.one
sap-socket /tmp/osmocom_sap sap-socket /tmp/osmocom_sap.one
sim test sim reader
network-selection-mode auto network-selection-mode auto
imei 123456789012345 0 imei 000000000000000 0
imei-fixed imei-fixed
no emergency-imsi no emergency-imsi
sms-service-center 123123123 no sms-service-center
no call-waiting no call-waiting
no auto-answer no auto-answer
no force-rekey no force-rekey
@ -40,9 +40,9 @@ ms 1
p-gsm p-gsm
e-gsm e-gsm
r-gsm r-gsm
gsm-850 no gsm-850
dcs dcs
pcs no pcs
class-900 4 class-900 4
class-850 4 class-850 4
class-dcs 1 class-dcs 1
@ -54,67 +54,59 @@ ms 1
min-rxlev -106 min-rxlev -106
dsc-max 90 dsc-max 90
no skip-max-per-band no skip-max-per-band
exit
test-sim test-sim
imsi 901700000000403 imsi 001010000000001
ki comp128 12 34 56 78 90 1b cd ef 12 34 56 78 90 ab cd ef ki comp128 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
barred-access no barred-access
rplmn 262 42 0x0001 rplmn 001 01
hplmn-search everywhere
exit
no shutdown 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

View File

@ -407,6 +407,8 @@ int l23_app_init(int (*mncc_recv)(struct osmocom_ms *ms, int, void *),
" '%s'\n", config_file); " '%s'\n", config_file);
fprintf(stderr, "Please check or create config file" fprintf(stderr, "Please check or create config file"
" using: 'touch %s'\n", config_file); " using: 'touch %s'\n", config_file);
fprintf(stderr, "or use one from "
"'doc/examples/mobile/'\n");
return rc; return rc;
} }
printf("Using configuration from %s\n", config_file); printf("Using configuration from %s\n", config_file);