AgeCommit message (Collapse)AuthorFilesLines
2018-03-05Bump version: 0.2.0 → Espin Pedrol1-0/+68
Change-Id: I4dad76ed95dc585acfbd52d7eed4f2e6f9f5fd1f
2018-03-05jenkins.sh: fix the download url if the qemu image wasn't setupAlexander Couzens1-1/+2
Download the image from yesterday because linuxcontainers only contains the images of the last 3 days. Change-Id: I75e270b7255c1cd7fca1674111b0f19fc7bba74f (cherry picked from commit 28b8cc6283487bceace86fc9d7ee77bc9ba6123f)
2018-03-05Fix USRP1 build with support for setting Rx/TxAntennaAlexander Huemer1-0/+1
The USRP1 build was broken by commit 77ce99ac6720896f504a0581a5c57b2929a13cef. Commit 77ce99ac6720896f504a0581a5c57b2929a13cef broke the USRP1 build Change-Id: I28585947d5662cdd580a814cce54a5d9aa30eeb8 (cherry picked from commit 3f52f0e6c5d384f25ff8583648e5e4a4dc957530)
2018-02-20configure.ac: Check for pkg-configPau Espin Pedrol1-0/+7
Change-Id: I1a851181a99f2f35ea4ff1b38c7afe27a04e5f18
2018-02-20Logger: Remove gLogToConsole flagPau Espin Pedrol2-15/+8
No code is using it and we always lock to console anyways. Change-Id: I5fde99c6af5a845e635b5d27abab855682071f14
2018-02-20Logger: Remove unused includesPau Espin Pedrol1-4/+0
Change-Id: I4d26c0b4f36ee3c66ed1a9e2e9fa2fa8272da16d
2018-02-20Logger: Drop support to log into filePau Espin Pedrol1-19/+1
This feature is currently not being used, so let's simplify current code to move to libosmocore logging system in the future. Change-Id: If2c77c776823f595130edac963be953026049423
2018-02-20Logger: Drop syslog supportPau Espin Pedrol5-47/+14
This feature is currently not being used, so let's drop it to make it easier to integrate into libosmocore logging system in the future. Change-Id: I8282745ef0282d41599eaf94fe460a1d29b18e2a
2018-02-20Logger: get rid of alarm APIsPau Espin Pedrol4-97/+0
It's only used internally inside the Logger module, and in case there's an "alarm" (level more than critical) we still print on cerr, so we can just rely on our system catching stderr instead of stdout to handle it. Change-Id: I6d6df1578c3a4c1a37bd0d69952d443f62eed2ab
2018-02-20Logger: Remove unused logging macrosPau Espin Pedrol1-17/+0
Change-Id: I1133e181183bec8dabe2fa77d0385f783458503f
2018-02-20Logger: Drop unused gLogEarlyPau Espin Pedrol2-35/+0
Change-Id: I2c8f24fbf453e0a94d7a95c3df7cc75f0e4bd456
2018-02-09UHDDevice: Initialize async_event_thrd in constructorPau Espin Pedrol1-1/+1
Fixes coverity CID 182757. It's actually a false warning because "async_event_thrd" member is protected by other member "started", so in practice it's never going to be used before being initialized in start(). Change-Id: I5d5739bc9d08fe533e4d44c3992005a14e568a4f
2018-02-07Add support to set Rx/TxAntennaPau Espin Pedrol5-10/+253
Some devices have different Rx or Tx ports with different RF characteristics. For instance LimeSDR has H (High), L (Low) and W (Wide) band Rx ports, each of one being more suitable to a specific range of frequencies. In case one wants to support several GSM bands, the best option is to use the WideBand port and connect the antenna physically to that port in the board. Then the firmware must be instructed ro read from that port. Support for Rx/Tx port configuration is already in there for all the layers (Limesuite, SoapySDR, SoapyUHD, UHD), but we are missing the required bits in osmo-trx to make use of the available UHD API. This commit addresses it. Before this patch, the Rx/Tx paths configured could be changed by means of the LimeSuiteGUI app, but after running osmo-trx, the values were changed to the default ones. One can now start using osmo-trx with 1 channel and specific Rx/Tx ports by using for instance: osmo-trx -c 1 -y BAND1 -z LNAW Default behaviour if no specific path or an empry path is passed ("") is to do the same as preiously, ie. nothing by not calling the set{T,R}xAntenna APIs. One can also configure only specific channels, for instance to configure only the first Tx channel and the second Rx channel: osmo-trx -c 2 -y BAND1, -z ,LNAW Change-Id: I1735e6ab05a05b0312d6d679b16ebd4a2260fa23
2018-02-05Fix whitespacePau Espin Pedrol3-48/+47
Change-Id: Icda84caa998614ce6c15d5118f8c5c1568ba9a79
2018-01-31tests: null-terminate bufferMax1-1/+1
Initialize temporary buffer with 0 to make sure that it's null-terminated. Change-Id: Icdde701839e35d3131605ea5a11882af21c8939a Fixes: CID149362
2018-01-23Remove unneeded libdl dependencyPau Espin Pedrol3-5/+5
Closes: OS#1929 Change-Id: I0caea2a2a8e6bd07432fd73bae72b42b1ce022cd
2018-01-20Unbreak `./configure --with-usrp1` buildAlexander Huemer3-4/+6
Change-Id: I49b385594271ae64a48d4d39ee9fe26d7c95bd30
2018-01-16tests: convolve: Disable due to difference in output in different archsPau Espin Pedrol1-2/+2
Let's disable this test in order to have passing jenkins jobs until we find a better way to properly test this for different architectures. Change-Id: I2320309bc8c1c20e2de6ef2e0f17472c68de80cb
2018-01-15contrib/jenkins.sh: Use qemu+proot+debootstrap to run tests with ARM ↵Pau Espin Pedrol2-3/+55
instruction set The following logic doesn't require root access to run the tests, which means we can easily run it inside jenkins. Change-Id: Iba3f4de008662805d8ffc46e1f473e407b088fb8
2018-01-15tests: TimevalTest: refactor and avoid double comparisonPau Espin Pedrol1-9/+15
Before this patch, the experession assert(then_secondws==then.seconds()) was failing in x86 architecture (and passing when adding a fprintf to debug it). Avoid comparing the double values with == as that's usually a bad idea, since the processor can output slightly different results for the same operation depending on how it is optimized. Use timespec() instead to check the invariant. Take the chance to refactor some variables around to make the test easier to read. Change-Id: Id4324be8ece86d371b1acb46bbd97856dfed241d
2018-01-15tests: SocketsTest: Fail test on write failPau Espin Pedrol1-1/+7
Change-Id: Ib6b778a2225339ebd2eaa80b3fca6ee8d8646b23
2018-01-15tests: SocketsTest: Avoid hang forever if test failsPau Espin Pedrol1-1/+15
Change-Id: Ia95e216a2ab6d397ab02c828b70f2b95d1671257
2018-01-15tests: SocketTests: Pick OS-assigned instead of setting one manuallyPau Espin Pedrol1-8/+9
This fixes failures if the port is already being taken by other apps or if this test is run several times concurrently in the same system. Change-Id: Iea213375e489a56cf8ed3e47fe814e17c288803e
2018-01-11Remove UDDSocket classPau Espin Pedrol3-95/+1
This class is not used anymore in osmo-trx, so we can safely remove it. Change-Id: I67f90aa3d6a2a5e92292436d10928e0705c8f8ff
2018-01-11.gitignore: Add missing test related filesPau Espin Pedrol1-0/+3
Change-Id: I7a82a2c0c97bbfa4877f148c89d121b4c3476176
2018-01-11arm/convert.c: Add missing convert_init implementationPau Espin Pedrol1-0/+3
osmo-trx.cpp calls convert_init, which in case of building using --with-neon is not implemented and the compiler stops with an error. Error was introduced in 7e07cf23464532ca156fe4ea4430928da2cbbff1. Related: OS#2720 Change-Id: I9840d374d13b525b97f978ea0c5ed9e8421072a0
2018-01-11arm/convert.c: Fix compilation errorPau Espin Pedrol1-1/+0
Commit fe9769833fa74ea841f78c0e931130a70fc3aca9 aiming at cleaning stuff introduced a compilation error. Related: OS#2720 Change-Id: I6ce6e5ec3fdb1e3e8818e2cb674470ad54e38afb
2018-01-11tests: Migrate convtest util to autotest infrastructurePau Espin Pedrol8-18/+26
Change-Id: Ie682abf7e83de436d0f37f9f6e0664cb2f4d0c9e
2018-01-10Move ARCH_LA to Makefile.commonPau Espin Pedrol2-6/+6
It will later be used by other directories too (tests/Transceiver52M). Change-Id: I0ca9b7fc5e1377db971cb7da0b3496ba8d61c716
2018-01-10utils/convolvtest: Remove uneeded libosmocore dependencyPau Espin Pedrol2-2/+2
Change-Id: I1742146c31cadec8ce8afbbdae5777f076b212d4
2018-01-10tests: Sockets: adapt to have reproducible output and enable autotestPau Espin Pedrol3-10/+13
Change-Id: I5414076c6846b849973bcdeb3f2358b28dcb004c
2018-01-10Sockets.cpp: Fix initialization of UDD socketPau Espin Pedrol1-0/+1
Without this line, destination address for a UDD socket is left with incorrect value AF_UNSPEC. Later on when calling DatagramSocket:write(), sendto() fails with EINVAL. This commit fixes test SocketsTest.cpp. Change-Id: I6e1b7e743a781abdcf69aa9842b30be893633433
2018-01-10tests: Log: adapt to have reproducible output and enable autotestPau Espin Pedrol4-89/+91
Change-Id: I77c40230503acadef5f64ab2624cd872f9782b98
2018-01-10tests: Timeval: adapt to have reproducible output and enable autotestPau Espin Pedrol3-31/+23
Change-Id: I1a79892ba3c934879a171789e0edb357277acae4
2018-01-10tests: InterThread: adapt to have reproducible output and enable autotestPau Espin Pedrol3-91/+33
Change-Id: I05d4067890b526bd72d2eb31cf76de43ee11e80f
2018-01-10Set up GNU Autotest infrastructurePau Espin Pedrol22-113/+359
Test files are moved from CommonLibs/ to tests/CommonLibs/. Some tests are disabled in autotest because they generate timedate related output which cannot exactly match against expected output. Change-Id: I3d6ba625968be09297642d18090c496490e9b8fc
2018-01-10cosmetic: AUTHORS: fix trailing whitespacePau Espin Pedrol1-4/+4
Change-Id: I92d9ad9a0fd69e88928a8f57920d39dcda67d59d
2018-01-09Remove Configuration module and libsqlite dependencyPau Espin Pedrol12-1951/+8
Change-Id: I823aea91367d586507bbf352f1b6f25bdd635baa
2018-01-09Drop use of ConfigurationTable gConfigPau Espin Pedrol3-12/+0
After latest changes, it is not being used anymore. Change-Id: I43a49aee94e3239194ad9742fb6374324acac0de
2018-01-09Logger: Stop using Log.File and Log.Level from configPau Espin Pedrol2-93/+17
This is a required step towards getting rid of ConfigurationTable class and libsqlite dependency. As a side effect, support for different log levels for different files is dropped, but it's not something really being used and we will end up dropping current logging system in favour of osmocom's one in the future anyway. Change-Id: I51cb12d1ab7e103e78190ac71a70fb5bb1d9ff51
2018-01-09Logger: Stop using Log.Alarms.Max from configPau Espin Pedrol2-13/+2
This is a first step towards removing ConfigurationTable class and sqlite3 dependency. Change-Id: Idcd789afe668a5c0271352f1d20d2efda826213a
2018-01-09cosmetic: Remove trailing whitespacePau Espin Pedrol5-10/+4
Change-Id: I64c8dbad3fc42bcb8dd4ac9b16bbd9c59a0cf5d5
2018-01-05Update license notesMax1-22/+6
* replace references to OpenBTS with OsmoTRX * drop trademark notice * drop outdated example Change-Id: I144f96c507bfe48df350fb0350edbeba87126462 Related: OS#2600
2018-01-04Update legal disclaimerMax1-13/+7
* drop trademark passage * add link to OpenBTS website and corresponding attribution * replace OpenBTS references with OsmoTRX Change-Id: Ia40df831649cdb68898db9ca77868c422a8d631d Related: OS#2600
2018-01-04Update installation instructionsMax1-13/+5
* remove references to OpenBTS * update URLs * remove unnecessary requirements Change-Id: I6ec26beaaa74dd3d98f27d110055a8f0cdd3c991 Related: OS#2600
2018-01-04Remove unused headersMax4-8/+1
Change-Id: Idadb17aeb85b011d114ffc1d81c920544bac1989
2018-01-04Remove outdated references to OpenBTSMax1-3/+0
Change-Id: I2df613bf59af28e2f44a520d0ee953932bcf4d7e
2018-01-04Mark release target as virtualMax1-0/+2
Change-Id: Iee747faa3171663f1874a5eacddd56607de55297
2017-12-04UHDDevice.cpp: add USRP B205mini supportPiotr Krysik1-0/+1
The B205mini is similar to the B200mini and runs OsmoTRX just fine, so let's make OsmoTRX recogonize and support it too. Change-Id: Iee575121248ea541f7abc49055e49ec2d30904c0
2017-11-07SocketsTest: Fix printing of non-nul-terminated stringHarald Welte1-1/+2
Change-Id: I33d0ddf851d84b81ab5252e3755422170cee54ee Fixes: Coverity CID#149363