GSM-Basestation: Difference between revisions

From Irregularpedia
Jump to navigation Jump to search
Initial
 
syntax
Tag: 2017 source edit
Line 1: Line 1:
Previously covered on this [https://www.rtl-sdr.com/setting-up-a-gsm-basestation-in-minutes-with-a-usrp-and-dragonos/ RTL-SDR Post]. Quickly create a GSM network that can support calls and sms.
= Setting Up a GSM Base Station =
 
Quickly create a GSM network that can support calls and SMS. Previously covered on this [https://www.rtl-sdr.com/setting-up-a-gsm-basestation-in-minutes-with-a-usrp-and-dragonos/ RTL-SDR Post].


<span id="requirements"></span>
== Requirements ==
== Requirements ==


<span id="software"></span>
=== Software ===
=== Software ===
* [[dragonos|DragonOS]]
* UHD
* OpenBTS


'' [[dragonos|DragonOS]]
=== Hardware ===
'' UHD
* Computer or Raspberry Pi running [[dragonos#Install%20DragonOS|DragonOS]]
'' OpenBTS ### Hardware
* Software Defined Radio (SDR)
'' Computer or RaspberryPi running [[dragonos#Install%20DragonOS|DragonOS]]
  * [[phone-for-basestation|Compatible Phone]]
'' Software Defined Radio (one required)
  * [[GSM-Basestation.md#compatible-sdrr|Compatible SDR]]
''' [[phone-for-basestation|Compatible Phone]]
''' [[GSM-Basestation.md#compatible-sdrr|compatible SDR]]


== Cemaxecuter Guide <iframe width="560" height="315" src="https://www.youtube.com/embed/6EnASi9MvSI?si=Oh7POmnmVHGAewSs" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe> ==
== Cemaxecuter Guide ==
<iframe width="560" height="315" src="https://www.youtube.com/embed/6EnASi9MvSI?si=Oh7POmnmVHGAewSs" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
Watch on [https://youtu.be/6EnASi9MvSI?si=awiw-LvLI_43ov6I YouTube].


Watch on [https://youtu.be/6EnASi9MvSI?si=awiw-LvLI_43ov6I Youtube]
<span id="set-up-base-station-calling"></span>
== Set Up Base Station Calling ==
== Set Up Base Station Calling ==
# Plug in the SDR.
  * Connect SDR to the computer.
  * Perform [[radio-checks.md|Radio Checks]].
<pre>lsusb
ifconfig</pre>
# Configure the network connection for IPv4.
  * Create a new interface netmask graphically or via CLI:
<pre>Interface#
IPV4
192.168.1.20/24</pre>
# Confirm the setup using:
<pre>uhd_find_devices</pre>
    Ensure the device is listed.
# Update the configuration:
<pre>cd /usr/src/osmo-nitb-scripts
sudo nano config.json
sudo main_uhd.py -u --sip</pre>
    * `-u` enables interactive mode.
    * `--sip` enables Asterisk support.
# Run the following in another terminal:
<pre>/usr/bin/osmo-trx-uhd -C /etc/osmocom/osmo-trx-uhd.cfg</pre>


<ol start="0" style="list-style-type: decimal;">
== Set Up Base Station OpenBTS ==
<li>Plug in SDR
# Plug in the SDR.
<ol style="list-style-type: decimal;">
  * Confirm the interface name:
<li>Connect SDR to Computer</li>
<pre>lsusb
<li>Perform [[radio-checks.md|Radio Checks]]</li></ol>
ifconfig</pre>
</li></ol>
# Configure the network connection for IPv4.
 
  * Create a new interface netmask:
<syntaxhighlight lang="bash">lsusb
<pre>Interface#
ifconfig</syntaxhighlight>
<ol style="list-style-type: decimal;">
<li>Configure Network Connection IPV4
<ol style="list-style-type: decimal;">
<li>Create a new interface netmask for the interface graphically or via CLI example:</li></ol>
 
<syntaxhighlight lang="text">Interface#
IPV4
IPV4
192.168.1.20/24</syntaxhighlight></li>
192.168.1.20/24</pre>
<li>confirm using <code>uhd_find_devices</code>. It should have an additional search for the installed device</li></ol>
# Navigate to the OpenBTS directory:
<pre>cd /usr/src/OpenBTS/</pre>
# Register the SIM:
<pre>sudo /usr/src/OpenBTS/OpenBTS</pre>
    Connection should be quick.


<syntaxhighlight lang="bash">uhd_find_devices</syntaxhighlight>
== Details ==
<ol start="3" style="list-style-type: decimal;">
<li>Update Config. Set Call to <code>True</code></li></ol>
 
<syntaxhighlight lang="bash">cd /usr/src/osmo-nitb-scripts
sudo nano config.json #
sudo main_uhd.py -u --sip
= u for Interact =
= --sip for astric support</syntaxhighlight> =
<ol start="4" style="list-style-type: decimal;">
<li>In another terminal</li></ol>
 
<syntaxhighlight lang="bash">/usr/bin/osmo-trx-uhd -C /etc/osmocom/osmo-trx-uhd.cfg</syntaxhighlight>
<span id="set-up-base-station-openbts"></span>
== Set Up Base Station OpenBTS ==


<ol start="0" style="list-style-type: decimal;">
=== Compatible Phones ===
<li>Plug in SDR
For this to work, the mobile device needs to have a [https://osmocom.org/projects/baseband/wiki/CalypsoBTS Calypso baseband chip].
<ol style="list-style-type: decimal;">
<li>Plugin</li>
<li>Confirm the Interface name</li></ol>


<syntaxhighlight lang="bash">lsusb
**Motorola:**
ifconfig</syntaxhighlight></li>
* [https://www.ebay.com/itm/125794237715 C115 $40] or C117 (E87)
<li>Configure Network Connection IPV4
* C123/C121/C118 (E88)
<ol style="list-style-type: decimal;">
* [https://www.ebay.com/itm/203919668429 C140 $27] or [https://www.ebay.com/itm/185686317627 C139 $15] (E86)
<li>Create a new interface netmask for the interface graphically or via CLI example:</li></ol>
* C155 (E99)
* V171 (E68/E69)


<syntaxhighlight lang="text">Interface#
**SonyEricsson:**
IPV4
* [https://www.ebay.com/itm/125542851653 J100i $8.99]
192.168.1.20/24</syntaxhighlight></li>
<li>Move the Directory to OpenBTS</li></ol>


<syntaxhighlight lang="bash">cd /usr/src/OpenBTS/</syntaxhighlight>
=== Compatible SDR ===
<ol start="3" style="list-style-type: decimal;">
See the [[software-defined-radio#sdr-comparison|software-defined-radio comparison]] table.
<li>Register SIM</li></ol>


<syntaxhighlight lang="bash">sudo /usr/src/OpenBTS/OpenBTS
**Requirements:**
= Connection should be very quick</syntaxhighlight> =
* Full-duplex SDR
<span id="details"></span>
* Covers frequency ranges: **850 MHz and 1900 MHz**
== Details ==
* Compatible with the software


<span id="compatible-phones"></span>
==== YateBTS works with: ====
==== [[phone-for-basestation|Compatible Phones]] ====
* [https://www.nuand.com/bladerf-2-0-micro/#accessories-wapper BladeRF $540+]


For this to work, the mobile device needs to have a [https://osmocom.org/projects/baseband/wiki/CalypsoBTS Calypso baseband chip] Motorola: - [https://www.ebay.com/itm/125794237715 C115 $40]or C117 (E87) - C123/C121/C118 (E88)<br />
==== srsRan supports: ====
- [https://www.ebay.com/itm/203919668429 C140 $27] or [https://www.ebay.com/itm/185686317627 C139 $15] (E86)<br />
* [https://www.nuand.com/bladerf-2-0-micro/#accessories-wapper BladeRF $540+]
- C155 (E99)<br />
* [[limesdr#products|LimeSDR]]
- V171 (E68/E69)<br />
SonyEricsson - [https://www.ebay.com/itm/125542851653 J100i $8.99] #### Compatible SDR See the [[software-defined-radio#sdr-comparison|software-defined-radio comparison]] cross table. For this to work, the SDR must be Full duplex, cover the correct frequency range ('''850 MHz and 1900 MHz'''), and work with the software:


<span id="yatebts-works-with"></span>
==== Osmo-nitb works with: ====
===== YateBTS works with: =====
* [[limesdr#products|LimeSDR]]
* [https://www.crowdsupply.com/microphase-technology/antsdr-e200 AntSDR E200]


'' [https://www.nuand.com/bladerf-2-0-micro/#accessories-wapper BladeRF $540+] ##### srsRan supports:
[[Category:Guides]]
'' [https://www.nuand.com/bladerf-2-0-micro/#accessories-wapper BladeRF $540+]
[[Category:SDR]]
'' [[limesdr#products)|LimeSDR]] ##### Osmo-nitb works with:
[[Category:Software Defined Radio]]
'' [[limesdr#products)|LimeSDR]]
[[Category:DragonOS]]
'' [https://www.crowdsupply.com/microphase-technology/antsdr-e200 AntSDR E200] ##### OpenBTS works with:
'' [https://www.crowdsupply.com/lime-micro/limesdr#products LimeSDR]
'' maybe [https://www.nuand.com/bladerf-2-0-micro/#accessories-wapper BladeRF $540+]

Revision as of 18:14, 3 December 2024

Setting Up a GSM Base Station

Quickly create a GSM network that can support calls and SMS. Previously covered on this RTL-SDR Post.

Requirements

Software

Hardware

  • Computer or Raspberry Pi running DragonOS
  • Software Defined Radio (SDR)
 * Compatible Phone
 * Compatible SDR

Cemaxecuter Guide

<iframe width="560" height="315" src="https://www.youtube.com/embed/6EnASi9MvSI?si=Oh7POmnmVHGAewSs" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe> Watch on YouTube.

Set Up Base Station Calling

  1. Plug in the SDR.
 * Connect SDR to the computer.
 * Perform Radio Checks.
lsusb
ifconfig
  1. Configure the network connection for IPv4.
 * Create a new interface netmask graphically or via CLI:
Interface#
IPV4
192.168.1.20/24
  1. Confirm the setup using:
uhd_find_devices
   Ensure the device is listed.
  1. Update the configuration:
cd /usr/src/osmo-nitb-scripts
sudo nano config.json
sudo main_uhd.py -u --sip
   * `-u` enables interactive mode.
   * `--sip` enables Asterisk support.
  1. Run the following in another terminal:
/usr/bin/osmo-trx-uhd -C /etc/osmocom/osmo-trx-uhd.cfg

Set Up Base Station OpenBTS

  1. Plug in the SDR.
 * Confirm the interface name:
lsusb
ifconfig
  1. Configure the network connection for IPv4.
 * Create a new interface netmask:
Interface#
IPV4
192.168.1.20/24
  1. Navigate to the OpenBTS directory:
cd /usr/src/OpenBTS/
  1. Register the SIM:
sudo /usr/src/OpenBTS/OpenBTS
   Connection should be quick.

Details

Compatible Phones

For this to work, the mobile device needs to have a Calypso baseband chip.

Compatible SDR

See the software-defined-radio comparison table.

    • Requirements:**
  • Full-duplex SDR
  • Covers frequency ranges: **850 MHz and 1900 MHz**
  • Compatible with the software

YateBTS works with:

srsRan supports:

Osmo-nitb works with: