aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/ipaccess/ipaccess-config.c
AgeCommit message (Collapse)AuthorFilesLines
2010-10-06misc: Once again go from "On Waves" to "On-Waves"..Holger Hans Peter Freyther1-1/+1
Try to get the company name of our sponsor right...
2010-07-30ipaccess-config: Don't dump the Rxlevel statisticsHarald Welte1-2/+2
2010-07-30ipaccess-config: Terminate program after running BCCH INFO testHarald Welte1-1/+5
2010-07-30ipaccess-config: Add option to disable color in log outputHarald Welte1-1/+5
2010-07-22[ipaccess-config] fix bugs in generating the PHYSICAL CONFIG attributeHarald Welte1-3/+3
... while asking the BTS to perform tests for us. The length of the ARFCN whitelist is the actual length in bytes, not the number of 16bit ARFCN numbers. Also, implement a limit, either by rxlevel or by number of ARFCN that should end up in the whitelist.
2010-07-22[ipaccess-config] make sure the ARFCN Whitelist EIE is built correctlyHarald Welte1-2/+2
2010-07-22ipaccess-config/network-listen updateHarald Welte1-7/+49
* transition through cycles of NWL tests
2010-07-22ipaccess-config / network listen: ordered list of RxLevelsHarald Welte1-2/+9
Use libosmocore 'rxlev_stat' module to generate an ordered list of ARFCN's, sorted by RxLev while performing test nr. 64
2010-07-22move ip.access netowrk listen (NWL) to network_listen.cHarald Welte1-80/+16
Also, we now re-start the network listen test after it has finished, so if you run a test from ipaccess-find, the test will get re-started and re-started all the time.
2010-06-28[ipaccess-config] Better way to set/unset NVRAM attributesHarald Welte1-3/+57
there are now human-readable names so you can do something like ipaccess-config -U dhcp-enabled -S static-ip -S static-gw 192.168.100.120 to unset DHCP and to set static IP and gateway attributes.
2010-06-28[ipaccess-config] Enable setting of static IP address / netmask / gatewayHarald Welte1-43/+126
However, the 'static IP address' NVRAM flags are not yet set correctly
2010-06-28[ipaccess-config] use msgb to make use of various tlv put functionsHarald Welte1-29/+30
This looks so much better than the *cur++ type code. Also, we now terminate ipaccess-config once the NV flags or Unit ID have been set, not just for the OML IP address.
2010-05-31ipaccess-config: More verbose help messageHarald Welte1-9/+9
2010-05-14ipaccess-config: Silence compiler warning.Holger Hans Peter Freyther1-0/+2
2010-05-13ipaccess: Make sure flashing of the secondary BTS is workingHolger Hans Peter Freyther1-5/+5
Use the TRX throughout the flash process.
2010-05-13sw_load: Specify the trx_nr for the software loadHolger Hans Peter Freyther1-1/+1
For the multi TRX setup we will need to specify the right trx->nr to be able to flash the BTS. For the BS11 case we are ignoring the additional argument.
2010-05-13ipaccess: Send the reset to the BASEBAND_TRANSC and supply TRXHolger Hans Peter Freyther1-8/+7
Send the IPA Restart to a given BTS/TRX, change the signal callbacks to carry the trx instead of the BTS so we have an easy access to the right TRX and change the ipaccess-config to use that TRX. This is fixing the restart with a multi TRX setup. Even if we have the msg->trx, use the gsm_bts_trx_by_nr and get the TRX from the fom header. This is because the OpenBSC and the BTS numbering might not match for the multi TRX case.
2010-05-13ipaccess: Refactor... unite some codeHolger Hans Peter Freyther1-11/+11
2010-05-13ipaccess: Use the right trx when performing the testHolger Hans Peter Freyther1-1/+1
2010-05-13ipaccess: Use the current TRX to set the OML address.Holger Hans Peter Freyther1-1/+1
2010-05-13ipaccess: Wait for the BASEBAND_TRANSCEIVER and then bootstrap OMLHolger Hans Peter Freyther1-17/+16
Currently we are connecting to the BTS and once the OML is established we are bootstrapping the OML. This does not work for a multi TRX setup as we will need to use a trx_nr != 0 for it. Change the code to wait for a message (in this case NM OC_BASEBAND_TRANSC) to detect the trx_nr used by the BTS and then use that TRX to bootstrap the network. I have tested setting the unit id on a single and multi trx system for the first and second trx.
2010-05-13abis: Pass the abis_om_obj_inst in the nm_state_event..Holger Hans Peter Freyther1-1/+2
2010-05-12[ipaccess] Attempt to fix setting unit ids with a multi trx setupHolger Hans Peter Freyther1-3/+12
Add a --trx/-t NR option to set the TRX nr to be used when calling set unit id and NVRAM. This was not tested and might or might not work.
2010-03-26move log/debug codebase to libosmocoreHarald Welte1-8/+8
The logging/debugging code is generic enough to move it into libosmocore while keeping OpenBSC specific definitions in openbsc itself. This commit uses the logging support present in libosmocore-0.1.2, you will have to update your library to this version.
2010-03-24ipa: Make it possible to specify -w and -f in any orderHolger Hans Peter Freyther1-3/+9
Currently one has to put -w in front of -f to really write the firmware file to disk. Change the config handling to first take all parameters and then execute on them. This means -f can now be used with any other parameter.
2010-03-22ipa-firmware: Fix the write out of the firmware partsHolger Hans Peter Freyther1-1/+1
Use the start address inside the header entry, the start is relative to the surrounding SDP record which is located in our base offset, when writing it out also ignore four bytes of something (crc?).
2010-03-22ipa-firmware: Write the firmware parts to a fileHolger Hans Peter Freyther1-5/+59
The first non working version to dump the content of the sdp to the terminal..
2010-03-22ipa-firmware: Warn/Exit when the required ids can not be found.Holger Hans Peter Freyther1-5/+13
2010-02-20split 'libosmocore' from openbsc codebaseHarald Welte1-3/+4
This library is intended to collect all generic/common funcitionality of all Osmocom.org projects, including OpenBSC but also OsmocomBB The library currently includes the following modules: bitvec, comp128, gsm_utils, msgb, select, signal, statistics, talloc, timer, tlv_parse, linuxlist msgb allocation error debugging had to be temporarily disabled as it depends on 'debug.c' functionality which at the moment remains in OpenBSC
2010-01-10fix ipaccess-config, call missing nanobts initializationHarald Welte1-0/+1
FIXME: We really need to have some libbsc and libmsc initialization functions that clean up this mess.
2010-01-07bis_nm_ipaccess_set_nvattr() executes on a TRX, not a BTSHarald Welte1-4/+4
2009-12-30[ipaccess] Remove some code duplication in the recently added firmware flashing.Holger Hans Peter Freyther1-14/+17
Share the creation of the sw_load.
2009-12-30[abis] Dispatch a IPAC restart ACK/NACK signalHolger Hans Peter Freyther1-0/+8
* Add the NACK version to the list * Dispatch the signal when we receive the message * Handle it in ipaccess-config by exiting the application
2009-12-30[ipaccess] Restart only after setting the OML IP, software loadHolger Hans Peter Freyther1-8/+22
* Do not issue the restart right aways if we have OML IP or software load in the queue (hint, we need a real queue of operations to carry out... with one big state machine) * Change the signal_data of ipacc ACK/NACK to contain the msg type and the bts pointer. * Issue a restart for software load and OML and use the BTS pointer we got out of the new signal data.
2009-12-30[ipaccess] Make SW activation work by filling out sw_load1 and sw_load2Holger Hans Peter Freyther1-0/+55
We are filling sw_load1 with the information found with type 0x1000 and sw_load2 with type 0x2001. It appears from the protocol traces that these information is not extracted from them. We also need to include the \0 from the string. With this firmware flashing seems to work.
2009-12-30[ipaccess] Close the firmware file as wellHolger Hans Peter Freyther1-0/+4
2009-12-30[ipaccess] Move firmware analysis into the ipaccess-config utilityHolger Hans Peter Freyther1-1/+68
* This turns ipaccess-firmware.c into a plain helper, fix the ipaccess name...
2009-12-30[ipaccess] Document the software argument for firmware loadingHolger Hans Peter Freyther1-0/+1
2009-12-30[abis] Add ACK signal and send it on SET NVATTR ACKHolger Hans Peter Freyther1-0/+13
* Add the signal definition to signal.h * Dispatch the signal from abis_nm.c * Handle it in ipaccess-config.c and say we are done with work
2009-12-30[ipaccess] Use the right variable... *sigh*Holger Hans Peter Freyther1-1/+1
* I will refactor all this in the future..
2009-12-29ipaccess-config: re-enable DNM logging, add support for multi-TRXHarald Welte (local)1-0/+6
2009-12-28[ipaccess] Send a NVATTR to activate the new software after load endHolger Hans Peter Freyther1-8/+42
* The struct is similiar to the one in abis_nm.. * The generation of the data is similiar to sw_end_load and sw_init_load and we should unite this..
2009-12-28[ipaccess] Handle LoadAbort coming from the BTS.Holger Hans Peter Freyther1-0/+4
* Be bale to abort the load when the BTS is rejecting the file..
2009-12-28[ipaccess] Start flashing once the BTS has started enough...Holger Hans Peter Freyther1-15/+16
Strictly speaking we would only need to start the Site Manager and could probably start flashing afterwards but it is more easy to have one config path...
2009-12-28[ipaccess] Add firmware download option to ipaccess-configHolger Hans Peter Freyther1-1/+70
This will mostly work like the downloading in bs11_config and is based on the bs11_config state machine as well. Once it is working we can see how to unite both implementations.
2009-12-24[ipaccess] Move ipaccess utilities into a dedicated subdirectoryHolger Hans Peter Freyther1-0/+386