Code Monkey home page Code Monkey logo

Comments (6)

Andrii067 avatar Andrii067 commented on September 27, 2024 2

I have the same problem, the buffer constantly drops after 10 seconds and it doesn't matter what the width is

from bladerf.

ur3vke avatar ur3vke commented on September 27, 2024

I have the same issue

from bladerf.

ccgauche avatar ccgauche commented on September 27, 2024
[ERROR @ host/libraries/libbladeRF/src/backend/usb/nios_access.c:77] Failed to receive NIOS II response: File or device I/O failure
[ERROR @ host/libraries/libbladeRF/src/board/bladerf2/bladerf2.c:1969] bladerf2_set_correction: ad9361_spi_write(phy->spi, reg, data) failed: An unexpected error occurred
[ERROR] [1724744970] [crates/sensor/src/lib.rs:172] BladeRF error: BladeRFError(Unexpected) at crates/sensor/src/lib.rs:172

This error also happens

from bladerf.

rghilduta avatar rghilduta commented on September 27, 2024

This is a bug with many causes. On the RPi5 I would suggest trying to power the bladeRF separately via the DC barrel connector.

@ccgauche If you are in VM, please ensure xHCI accleration/passthrough is enabled.

@Andrii067 With regards to buffers dropping, it is imperative that the thread calling bladerf_sync_rx() receives samples then saves them and immediately comes back to calling bladerf_sync_rx(). DSP should be left for another thread.

from bladerf.

ccgauche avatar ccgauche commented on September 27, 2024

@rghilduta I also tried with the blade powered from the barrel jack and the error still happens... I'm running flat raspbian on my RPi5...

bladeRF> print

  RX1 Bandwidth:  18000000 Hz (Range: [200000, 56000000])
  RX2 Bandwidth:  18000000 Hz (Range: [200000, 56000000])
  TX1 Bandwidth:  18000000 Hz (Range: [200000, 56000000])
  TX2 Bandwidth:  18000000 Hz (Range: [200000, 56000000])

  RX1 Frequency: 2400000000 Hz (Range: [70000000, 6000000000])
  RX2 Frequency: 2400000000 Hz (Range: [70000000, 6000000000])
  TX1 Frequency: 2400000000 Hz (Range: [47000000, 6000000000])
  TX2 Frequency: 2400000000 Hz (Range: [47000000, 6000000000])

  Tuning Mode: Host

  Bit Mode: 16 bit samples

  Feature:  Default enabled

  RX1 AGC: Enabled   
  RX2 AGC: Enabled   

  Clock reference: none
  Clock input:     Onboard VCTCXO
  Clock output:    Disabled

  RX1 RSSI: preamble = 0 dB, symbol = -52 dB
  RX2 RSSI: preamble = 0 dB, symbol = -52 dB

  Loopback mode: none

  RX mux: BASEBAND - Baseband samples

  RX FIR Filter: normal (default)
  TX FIR Filter: bypass (default)

  Gain RX1 overall:   60 dB (Range: [-15, 60])
              full:   71 dB (Range: [-4, 71])
  Gain RX2 overall:   60 dB (Range: [-15, 60])
              full:   71 dB (Range: [-4, 71])
  Gain TX1 overall:   56 dB (Range: [-23.75, 66])
               dsa:  -90 dB (Range: [-89.75, 0])
  Gain TX2 overall:   56 dB (Range: [-23.75, 66])
               dsa:  -90 dB (Range: [-89.75, 0])

  RX1 sample rate: 30720000 0/1 (Range: [520834, 61440000])
  RX2 sample rate: 30720000 0/1 (Range: [520834, 61440000])
  TX1 sample rate: 30720000 0/1 (Range: [520834, 61440000])
  TX2 sample rate: 30720000 0/1 (Range: [520834, 61440000])

  Bias Tee (RX1): off
  Bias Tee (RX2): off
  Bias Tee (TX1): off
  Bias Tee (TX2): off

  Current VCTCXO trim: 0x1d23
  Stored VCTCXO trim:  0x1d23

  Hardware status:
    RFIC status:
      Tuning Mode:  Host
      Temperature:  37.7 degrees C
      CTRL_OUT:     0xf8 (0x035=0x00, 0x036=0xff)
    Power source:   DC Barrel
    Power monitor:  4.844 V, 0.55 A, 2.66 W
    RF routing:
      RX1: RFIC 0x0 (A_BAL  ) <= SW 0x0 (OPEN   )
      RX2: RFIC 0x0 (A_BAL  ) <= SW 0x0 (OPEN   )
      TX1: RFIC 0x0 (TXA    ) => SW 0x0 (OPEN   )
      TX2: RFIC 0x0 (TXA    ) => SW 0x0 (OPEN   )

On the jack barrel. My DC barrel is rated for 5V - 2A. I can try to find another one if it's not enough but from the bladeRF docs I've seen it should be enough. Also I'm only using the bladeRF RX so I should need less power ?

from bladerf.

ccgauche avatar ccgauche commented on September 27, 2024

Edit:
The issue doesn't arises on x86 computers nor the khadas VIM3 ARM board running the same exact software stack as the RPi5. Thus either pointing toward an issue with the USB Controller on the RPi or the Power delivery on the RPi USB ports. Through the issue also happens while plugged with the DC Barrel (maybe an issue with my power cord?)

from bladerf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.