Code Monkey home page Code Monkey logo

Comments (4)

morrolinux avatar morrolinux commented on August 28, 2024

Hi,
Can you elaborate on 1.) describing what happens when you try to connect via Bluetooth for audio playback?
Right now during mpradio-py installation a line is written in /etc/fstab for automatically mounting a device called /dev/sda1 (which would be your USB stick if you plug it in). You could partition your SD CARD making a new FAT32 partition and storing everything there, but to make it work in this configuration, you should change /dev/sda1 with the partition name you just created. you can find it using sudo fdisk -l looking for the last partition.

as for 2.) can you test by simply short-circuiting with GND? I'm gonna guess it's an hardware problem unless an exception is raised in the logs of journalctl -f mpradio

from mpradio-py.

vvervolv avatar vvervolv commented on August 28, 2024

Hello!
Thank you for answer!
When i try to connect my phone to Pi (without usb stick), it connects succesful (bluetoothctl says that). But when i try to play music, only silence (not noise) is heard from the radio (and MPRadio remote app does not start, like PI is disconnect).
sudo systemctl status mpradio says :

pi@raspberrypi:~ $ sudo systemctl status mpradio
● mpradio.service - Morrolinux Pirate Radio
Loaded: loaded (/etc/systemd/system/mpradio.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2019-09-24 09:33:13 MSK; 5min ago
Main PID: 459 (python3)
Tasks: 11 (limit: 2200)
Memory: 57.7M
CGroup: /system.slice/mpradio.service
├─459 python3 /home/pi/mpradio.py
├─540 sox -t raw -G -b 16 -e signed -c 2 -r 44100 - -t wav - compand 0.3,1 6:-70,-60,-20 -5 -90 0.2 treble -6
├─544 sudo pi_fm_adv --freq 88.0 --ctl /tmp/rds_ctl --audio -
└─551 pi_fm_adv --freq 88.0 --ctl /tmp/rds_ctl --audio -
Sep 24 09:33:13 raspberrypi systemd[1]: Started Morrolinux Pirate Radio.
Sep 24 09:33:18 raspberrypi bash[459]: /etc/profile: line 4: id: command not found
Sep 24 09:33:18 raspberrypi bash[459]: /etc/profile: line 4: [: : integer expression expected
Sep 24 09:33:21 raspberrypi sudo[544]: pi : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/local/bin/pi_fm_adv --freq 88.0 --ctl /tmp/rds_ctl --audio -
Sep 24 09:33:21 raspberrypi sudo[544]: pam_unix(sudo:session): session opened for user root by (uid=0)

But when i plug in usb stick, integer expression expected dissapeared, and it starts play music from usb and from bluetooth (App starts, but buttons (like halt or reboot) not working).

I will try to make FAT32 partition tommorow, i forgot my cardreader at home :)

For 2.)
I try to short-circuiting with GND, but nothing happens. When i try to journalctl -f mpradio it says

Failed to add match 'mpradio': Invalid argument

But it works on previous version of MPRadio (the old implementation)
Is it possible that the problem is caused by the NOOBS->raspbian lite distributive?

Thank you!

from mpradio-py.

morrolinux avatar morrolinux commented on August 28, 2024

But when i plug in usb stick, integer expression expected dissapeared

That error is not relevant to mpradio

and it starts play music from usb and from bluetooth

By that you mean you're then able to play bluetooth audio from your phone as well?

(App starts, but buttons (like halt or reboot) not working).

The App is being adapted from the legacy mpradio version server backend. There are some minor differences and I haven't completed it yet. What should work:

  1. Tracks listing and on demand track playback
  2. Skip button
  3. Maybe some others but I'm not sure

I try to short-circuiting with GND, but nothing happens. When i try to journalctl -f mpradio it says

Oh yeah sorry about that it's journalctl -fu mpradio. If you don't specify u you're not telling journalctl which unit to look at.

Is it possible that the problem is caused by the NOOBS->raspbian lite distributive?

Speaking of Debian... which version are you running on? 9 or 10?

from mpradio-py.

morrolinux avatar morrolinux commented on August 28, 2024

closing for inactivity

from mpradio-py.

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.