Hi Holger,
I still get the same problem. I'm not familiar with git, I just did
"git pull" and saw it downloading the latest version. When running the
command like Eric suggested #./bsc_hack -tnanobts1800 -f 567 it
respond with bad arguments for both:
#./bsc_hack -t nanobts1800 -f 567
./bsc_hack: invalid option -- t
./bsc_hack: invalid option -- f
DB: Database initialized.
DB: Database prepared.
GSM900 channel must be between 1-124.
e1_reconfig_bts(0)
e1_reconfig_ts(0,0,0)
e1_reconfig_ts(0,0,1)
e1_reconfig_ts(0,0,2)
e1_reconfig_ts(0,0,3)
e1_reconfig_ts(0,0,4)
e1_reconfig_ts(0,0,5)
e1_reconfig_ts(0,0,6)
e1_reconfig_ts(0,0,7)
mi_e1_line_update could not open socket Address family not supported
by protocol
So I've checked bsc_hack.c and realized these options are not inculded
in getopt_long():
1146 c = getopt_long(argc, argv, "hd:sl:ar:p:C:RTPc:",
1147 long_options, &option_index);
As you see, no bts type and arfcn options.
I attached the modified config file, but it's not really special about
it.
I think Harald hasn't finished that part, as we know he is a very busy
man :)
Holger, I've never done a patch and as a beginner I want to learn by
looking over the shoulder. I tried to get the "Network Listen" for
nanobts done, but I couldn't manage that. So for now I more want to
learn from you, sorry about that.
Holger Freyther schreef:
On Friday 14 August 2009 09:44:37 Nordin wrote:
Sorry guys,
My mistake, I thought the type argument isn't used anymore.
If you look at print_help() and handle_options() in bsc_hack.c you
won't
see the -t argument untill you check the switch statement in
handle_options().
any patch to create two new config files?
z.
!
! OpenBSC configuration saved from vty
! !
password foo
!
line vty
no login
!
network
network country code 204
mobile network code 16
short name _
long name _
bts 0
type nanoBTS
band GSM1800
location_area_code 11
training_sequence_code 7
base_station_id_code 63
oml e1 line 0 timeslot 1 sub-slot full
oml e1 tei 25
trx 0
arfcn 698
max_power_red 0
rsl e1 line 0 timeslot 1 sub-slot full
rsl e1 tei 1
timeslot 0
phys_chan_config CCCH+SDCCH4
e1 line 0 timeslot 1 sub-slot full
timeslot 1
phys_chan_config SDCCH8
e1 line 0 timeslot 2 sub-slot 1
timeslot 2
phys_chan_config TCH/F
e1 line 0 timeslot 2 sub-slot 2
timeslot 3
phys_chan_config TCH/F
e1 line 0 timeslot 2 sub-slot 3
timeslot 4
phys_chan_config TCH/F
e1 line 0 timeslot 3 sub-slot 0
timeslot 5
phys_chan_config TCH/F
e1 line 0 timeslot 3 sub-slot 1
timeslot 6
phys_chan_config TCH/F
e1 line 0 timeslot 3 sub-slot 2
timeslot 7
phys_chan_config TCH/F
e1 line 0 timeslot 3 sub-slot 3