Become a leader in the IoT community!

New DevHeads get a 320-point leaderboard boost when joining the DevHeads IoT Integration Community. In addition to learning and advising, active community leaders are rewarded with community recognition and free tech stuff. Start your Legendary Collaboration now!

Step 1 of 5

CREATE YOUR PROFILE *Required

Change Email
OR
Step 2 of 5

WHAT BRINGS YOU TO DEVHEADS? *Choose 1 or more

Collaboration & Work 🤝
Learn & Grow 📚
Contribute Experience & Expertise 🔧
Step 3 of 5

WHAT'S YOUR INTEREST OR EXPERTISE? *Choose 1 or more

Hardware & Design 💡
Embedded Software 💻
Edge Networking
Step 4 of 5

Personalize your profile

Step 5 of 5

Read & agree to our COMMUNITY RULES

  1. We want this server to be a welcoming space! Treat everyone with respect. Absolutely no harassment, witch hunting, sexism, racism, or hate speech will be tolerated.
  2. If you see something against the rules or something that makes you feel unsafe, let staff know by messaging @admin in the "support-tickets" tab in the Live DevChat menu.
  3. No age-restricted, obscene or NSFW content. This includes text, images, or links featuring nudity, sex, hard violence, or other graphically disturbing content.
  4. No spam. This includes DMing fellow members.
  5. You must be over the age of 18 years old to participate in our community.
  6. Our community uses Answer Overflow to index content on the web. By posting in this channel your messages will be indexed on the worldwide web to help others find answers.
  7. You agree to our Terms of Service (https://www.devheads.io/terms-of-service/) and Privacy Policy (https://www.devheads.io/privacy-policy)
By clicking "Finish", you have read and agreed to the our Terms of Service and Privacy Policy.

Troubleshooting GStreamer Audio Pipeline for HFP/HSP Bluetooth Connection on Raspberry Pi

Hello Guys
I have another HFP/HSP question

I have to connect a phone to a computer to Tx/Rx the phone’s audio. Using bluetooth, there are 2 option-> HSP and HFP. I thought of connecting my phone to my RPi using bluetooth, making my RPi mimic a HFP HF while the phone as usual be a HFP AG.
On my RPi(with a external BT dongle) i was able to successfully connect with the Phone and was able to detected as a Headset on my phone.
But now comes my blocker.
There are no source or sink to where i could attach my gstreamer pipeline.

  1. melta101#0000

    this is the output of my pacmd list-cards

    index: 1
    name:
    driver:
    owner module: 22
    properties:
    device.description = “melphone”
    device.string = “2C:BE:EB:8B:F2:D7”
    device.api = “bluez”
    device.class = “sound”
    device.bus = “bluetooth”
    device.form_factor = “phone”
    bluez.path = “/org/bluez/hci0/dev_2C_BE_EB_8B_F2_D7”
    bluez.class = “0x5a420c”
    bluez.alias = “melphone”
    device.icon_name = “audio-card-bluetooth”
    bluetooth.codec = “CVSD”
    profiles:
    a2dp_source: High Fidelity Capture (A2DP Source) (priority 20, available: no)
    handsfree_audio_gateway: Handsfree Audio Gateway (HFP) (priority 10, available: unknown)
    off: Off (priority 0, available: yes)
    active profile:
    sinks:
    bluez_sink.2C_BE_EB_8B_F2_D7.handsfree_audio_gateway/#1: melphone
    sources:
    bluez_sink.2C_BE_EB_8B_F2_D7.handsfree_audio_gateway.monitor/#1: Monitor of melphone
    bluez_source.2C_BE_EB_8B_F2_D7.handsfree_audio_gateway/#2: melphone
    ports:
    phone-output: Phone (priority 0, latency offset 0 usec, available: unknown)
    properties:

    phone-input: Phone (priority 0, latency offset 0 usec, available: unknown)
    properties:

  2. ke7c2mi#0000

    Btw @melta101 I cant remember what the problem was but I set a pi up in my house with the stereo as an audio sink and it was an absolute pain in the ass to get it working right, I definitely needed to mess about with things to get the audio part working at all.. then there was a bunch more faf making it work after a reconnection.. if I get a chance I’ll see what the config on that pi is but currently very far from computer 🤓

  3. melta101#0000

    what seems to be the way
    is bluez + pulseaudio for now

    But the above only works with Headset(only A2DP profile) quite good ngl (include aptx HD)

    My mobile is able to detect my rpi, but upon connection[I am able to telephony control], there seems to be no sink/source to interact with it

  4. melta101#0000

    I feel you at the ending
    Now a days
    i just connect all my SBC/ FPGA boards with a ethernet Hub and leave it be
    maybe once of while clean it.

  5. melta101#0000

    did a reboot
    and
    now the virtual sinks/sources are missing

    Card #105
    Name: bluez_card.2C_BE_EB_8B_F2_D7
    Driver: module-bluez5-device.c
    Owner Module: n/a
    Properties:
    api.bluez5.address = “2C:BE:EB:8B:F2:D7”
    api.bluez5.class = “0x5a420c”
    api.bluez5.connection = “disconnected”
    api.bluez5.device = “”
    api.bluez5.icon = “phone”
    api.bluez5.path = “/org/bluez/hci0/dev_2C_BE_EB_8B_F2_D7”
    bluez5.auto-connect = “[ hfp_hf hsp_hs a2dp_sink ]”
    bluez5.profile = “off”
    device.alias = “melphone”
    device.api = “bluez5”
    device.bus = “bluetooth”
    device.description = “melphone”
    device.form_factor = “phone”
    device.icon_name = “audio-card-bluetooth”
    device.name = “bluez_card.2C_BE_EB_8B_F2_D7”
    device.product.id = “0x1200”
    device.string = “2C:BE:EB:8B:F2:D7”
    device.vendor.id = “bluetooth:0046”
    media.class = “Audio/Device”
    factory.id = “14”
    client.id = “34”
    object.id = “72”
    object.serial = “105”
    Profiles:
    off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
    audio-gateway: Audio Gateway (A2DP Source & HSP/HFP AG) (sinks: 0, sources: 0, priority: 256, available: yes)
    Active Profile: audio-gateway

CONTRIBUTE TO THIS THREAD

Browse other questions tagged