Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

Couldn't parse amplitude control #335

Description

@AzeezEbrahim

Issue Description

So, i am training to maximize the transmit power level, so i found paramets in the GNB config file.
So when i try to parse the amplitude control, such as power_ceiling_dBFs, and tx_gain_backoff.
i am facing an error INI was not able to parse ru_sdr.cells.++

idk, how else to increase the power level, and idk if i am doing it right or wrong. is there another place to increase the transmit power? a

Setup Details

I am using b210 usrp and open5gs core network.

Expected Behavior

it should parse it, unless if it is not implemented

Actual Behaviour

image

Steps to reproduce the problem

this is my GNB yaml file.

# associated tutorial, this config has been tested with a OnePlus 8T. A B210 USRP is used as the RF-frontend.   
# This config creates a TDD cell with 20 MHz bandwidth in band 78. 
# To run the srsRAN Project gNB with this config, use the following command: 
#   sudo ./gnb -c gnb_b210_20MHz_oneplus_8t.yaml

amf:
  addr: 127.0.1.100                                             # The address or hostname of the AMF.
  bind_addr: 127.0.0.1                                          # A local IP that the gNB binds to for traffic from the AMF.

ru_sdr:
  device_driver: uhd                                            # The RF driver name.
  device_args: type=b200,num_recv_frames=64,num_send_frames=64  # Optionally pass arguments to the selected RF driver.
  clock: internal                                               # Specify the clock source used by the RF.
  sync:                                                         # Specify the sync source used by the RF.
  srate: 30.72                                                  # RF sample rate might need to be adjusted according to selected bandwidth.
  # srate: 61.44
  otw_format: sc12
  tx_gain: 89.75                                                   # Transmit gain of the RF might need to adjusted to the given situation.
  rx_gain: 70                                                   # Receive gain of the RF might need to adjusted to the given situation.
  
  cells:                                # Optional TEXT. Sets the hardware specific cell configuration on a per cell basis. 
    amplitude control: 
      tx_gain_backoff: 12.0                     # Optional FLOAT (12.0). Sets baseband gain back-off in dB. This accounts for the signal PAPR and is applied regardless of clipping settings. Format: positive float.
      enable_clipping: false                    # Optional BOOL (false). Sets clipping of the baseband samples on or off. If enabled, samples that exceed the power ceiling are clipped.
      power_ceiling_dBFs: -0.1                  # Optional FLOAT (-0.1). Sets the power ceiling in dB, relative to the full scale amplitude of the radio. Format: negative float or 0.

cell_cfg:
  dl_arfcn: 627340                                              # ARFCN of the downlink carrier (center frequency).
  band: 78                                                      # The NR band.
  channel_bandwidth_MHz: 20                                     # Bandwith in MHz. Number of PRBs will be automatically derived.
  # channel_bandwidth_MHz: 50
  common_scs: 30                                                # Subcarrier spacing in kHz used for data.
  plmn: "99970"                                                 # PLMN broadcasted by the gNB.
  tac: 7                                                        # Tracking area code (needs to match the core configuration).
  pci: 1                                                        # Physical cell ID.

  pcg_p_nr_fr1: 23                      # Optional INT (10). Sets the maximum total TX power to be used by the UE in this NR cell group across in FR1. Supported: [-30 - +23].
  nof_antennas_dl: 2  # MIMO: 2 - SISO: 1
  nof_antennas_ul: 2  # MIMO: 2 - SISO: 1
  ssb:
    ssb_period: 20
    ssb_block_power_dbm: 50                # Optional INT (-16). Sets the SS PBCH block power in dBm. Supported: [-60 - +50].
  pdsch:
    mcs_table: qam256
  ul_common: 
    p_max: 23                                  # Optional TEXT. Sets maximum transmit power allowed in this serving cell. Supported: [-30 - +23].

# All gNB layers and components can be configur
![image](https://github.com/srsran/srsRAN_Project/assets/87777192/14b38d77-98cd-4ec5-9c31-9a7ddc372c5d)
ed independently to output at various levels of detail. Logs can be configured to the following levels (from lowest to highest levels of detail):
# none, error, warning, info, debug
 #filename:                             # Optional TEXT (/tmp/gnb.log). File path for logs
log: 
  all_level: debug                    # Optional TEXT (warning). Sets a common log level across PHY, MAC, RLC, PDCP, RRC, SDAP, NGAP and GTPU layers

pcap:
  mac_enable: true                                             # Set to true to enable MAC-layer PCAPs.
  mac_filename: /tmp/gnb_mac.pcap                               # Path where the MAC PCAP is stored.
  ngap_enable: false                                            # Set to true to enable NGAP PCAPs.
  ngap_filename: /tmp/gnb_ngap.pcap                             # Path where the NGAP PCAP is stored.
  
#   e2ap_enable: true                 # Set to true to enable E2AP PCAPs.
#   e2ap_filename: /tmp/gnb_e2ap.pcap # Path where the E2AP PCAP is stored.

# e2:
#   enable_du_e2: true                # Enable DU E2 agent (one for each DU instance)
#   e2sm_kpm_enabled: true            # Enable KPM service module```


## Additional Information ##
[Any additional information, configuration or data that might be necessary to reproduce the issue]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions