Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subscriberRegistry #1

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Globals/Globals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const char *gOpenWelcome =
"Copyright 2008, 2009, 2010 Free Software Foundation, Inc.\n"
"Copyright 2010 Kestrel Signal Processing, Inc.\n"
"Copyright 2011, 2012, 2013, 2014 Range Networks, Inc.\n"
"Reloaded for 2023 by FlUxIuS @ Penthertz SAS.\n"
"Release " VERSION " " PROD_CAT " formal build date " TIMESTAMP_ISO " " REPO_REV "\n"
"\"OpenBTS\" is a trademark of Range Networks, Inc.\n"
"\"OpenBTS-UMTS\" is a trademark of Range Networks, Inc.\n"
Expand Down
29 changes: 22 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
OpenBTS-UMTS reloaded 2023
==========================
# OpenBTS-UMTS reloaded 2024

OpenBTS-UMTS reloaded. Compatibility with latest UHD drivers, several fixes and updated install documentation for ubuntu 22.04
OpenBTS-UMTS reloaded for 2024. This fork extends changes from @EurecatSecurity make it compatiblee with latest UHD drivers, several fixes to work on Ubuntu 22.04.

Original notes from Range Networks:
For information on supported hardware, and build, install, setup and run instructions see [the wiki page](http://openbts.org/w/index.php/OpenBTS-UMTS).
## Compatible devices

* USRP
* B200/B210/B205-mini*
* X300/X310
* N200/N210
* USRP2
* LimeSDR (experimental)

## Documentation

Refer to this wiki page for the new documentation: https://github.com/PentHertz/OpenBTS-UMTS/wiki

Notes for this fork:
You can run ./install_dependences.sh to get dependencies satisfied before installation.
## Docker images

We are also providing a Docker images, so you will not to follow the installation instructions and run it straightfoward even if system dependencies are broken in the future (in theory!).

Checkout the images there: https://hub.docker.com/r/penthertz/openbts-umts


## Original notes from Range Networks (obsolete):
For information on supported hardware, and build, install, setup and run instructions see [the wiki page](http://openbts.org/w/index.php/OpenBTS-UMTS).
10 changes: 7 additions & 3 deletions TransceiverUHD/UHDDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,12 @@ static struct uhd_dev_offset uhd_offsets[NUM_USRP_TYPES] = {
{ B2XX, 99 },
{ X300, 73 },
{ UMTRX, 0 },
{ LimeSDRUSB, 50 }, // picked from http://swigerco.com/UHDDevice.cpp.diff
};

static int get_dev_offset(enum uhd_dev_type type)
{
if ((type != B2XX) && (type != USRP2) && (type != X300)) {
if ((type != B2XX) && (type != USRP2) && (type != X300) && (type != LimeSDRUSB)) {
LOG(ALERT) << "Unsupported device type";
return 0;
}
Expand Down Expand Up @@ -237,7 +238,7 @@ bool UHDDevice::parse_dev_type()
{
std::string mboard_str, dev_str;
uhd::property_tree::sptr prop_tree;
size_t usrp2_str, b200_str, b210_str, x300_str, x310_str, b205mini_str;
size_t usrp2_str, b200_str, b210_str, x300_str, x310_str, b205mini_str, LimeSDRUSB_str;

prop_tree = usrp_dev->get_device()->get_tree();
dev_str = prop_tree->access<std::string>("/name").get();
Expand All @@ -249,6 +250,7 @@ bool UHDDevice::parse_dev_type()
b210_str = mboard_str.find("B210");
x300_str = mboard_str.find("X300");
x310_str = mboard_str.find("X310");
LimeSDRUSB_str = mboard_str.find("LimeSDR");

if (b200_str != std::string::npos) {
dev_type = B2XX;
Expand All @@ -262,7 +264,9 @@ bool UHDDevice::parse_dev_type()
dev_type = X300;
} else if (x310_str != std::string::npos) {
dev_type = X300;
} else {
} else if (LimeSDRUSB_str != std::string::npos) {
dev_type = LimeSDRUSB;
} else {
goto nosupport;
}

Expand Down
1 change: 1 addition & 0 deletions TransceiverUHD/UHDDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ enum uhd_dev_type {
B2XX,
X300,
UMTRX,
LimeSDRUSB, // picked from http://swigerco.com/UHDDevice.h.diff
NUM_USRP_TYPES,
};

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dnl See the LEGAL file in the main directory for details.
dnl FIXME -- Need to add dependency check for asn1c.

AC_PREREQ(2.57)
AC_INIT(openbts-umts,1.0-master)
AC_INIT(openbts-umts,1.1-master)

AC_CANONICAL_BUILD
AC_CANONICAL_HOST
Expand Down
2 changes: 1 addition & 1 deletion install_dependences.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This script has been tested in Ubuntu 16.04 and 18.04. Please report any problem you find.

# Install all package dependencies
sudo apt install autoconf libtool build-essential libuhd-dev uhd-host libzmq3-dev libosip2-dev libortp-dev libusb-1.0-0-dev asn1c libtool-bin libsqlite3-dev libreadline-dev
sudo apt-get install -y autoconf libtool build-essential libuhd-dev uhd-host libzmq3-dev libosip2-dev libortp-dev libusb-1.0-0-dev asn1c libtool-bin libsqlite3-dev libreadline-dev

# Clone submodules from base repo
git submodule init
Expand Down