Jump to content
Mumble forums

stephensworld

Members
  • Posts

    9
  • Joined

  • Last visited

1 Follower

stephensworld's Achievements

Newbie

Newbie (1/14)

  1. If you have any problems. Please contact me. Skype dl4ste
  2. Hi, I think it also works with the latest source from github. I had to install: apt-get install build-essential pkg-config qt5-default libqt5svg5-dev \ libboost-dev libasound2-dev libssl-dev \ libspeechd-dev libzeroc-ice-dev libpulse-dev \ libcap-dev libprotobuf-dev protobuf-compiler \ libogg-dev libavahi-compat-libdnssd-dev libsndfile1-dev \ libg15daemon-client-dev libxi-dev qttools5-dev-tools Compiling with qt5 instead if qt4 qmake -recursive main.pro CONFIG+="no-g15 no-server" LIBS+="-lwiringPi" make Here you can find the edited source code with ptt including a binary in mumble/releases http://ul.to/mk59svl0 Here you can find only a binary with ptt mod http://ul.to/11ybvumz If you use the binary you should install mumble with apt-get install mumble. So you should have all dependencies. Stephan
  3. With the input pin you can set the mumble PTT in direction repeater receiver to mumble. You do not have to use the mumble vox. So you can reduce the delay.
  4. I did the following steps you need to install some development packages: apt-get install build-essential pkg-config qt4-dev-tools libqt4-dev libspeex1 \ libspeex-dev libboost-dev libasound2-dev libssl-dev g++ \ libspeechd-dev libzeroc-ice-dev ice-slice libpulse-dev slice2cpp \ libcap-dev libspeexdsp-dev libprotobuf-dev protobuf-compiler \ libogg-dev libavahi-compat-libdnssd-dev libsndfile1-dev \ libg15daemon-client-dev libxi-dev for more information please see http://wiki.mumble.info/wiki/BuildingLinux git clone https://github.com/mumble-voip/mumble.git you have to edit the source files as shown above. on the raspberry 2 I compiled with the following commands qmake -recursive main.pro CONFIG+="qt4-legacy-compat no-g15 no-server" LIBS+="-lwiringPi" make If you have any further questions don't hesitate to contact me. The solution is great. We have many users on the repeater with mumble. Our next step is to connect two or more repeater.
  5. Yes it is working. We use it on the 2m repeater DB0FFL I have a compiled version for Raspberry 2. Stephan, DL4STE
  6. Hi, thank you to hacst who helped me to find a solution. Stephan apt-get install build-essential pkg-config qt5-default libqt5svg5-dev \ libboost-dev libasound2-dev libssl-dev \ libspeechd-dev libzeroc-ice-dev libpulse-dev \ libcap-dev libprotobuf-dev protobuf-compiler \ libogg-dev libavahi-compat-libdnssd-dev libsndfile1-dev \ libg15daemon-client-dev libxi-dev qttools5-dev-tools mesa-common-dev on raspberry pi2 i had to extend the swap file sudo su -c 'echo "CONF_SWAPSIZE=2048" > /etc/dphys-swapfile' sudo dphys-swapfile setup sudo dphys-swapfile swapon get mumble source git clone https://github.com/mumble-voip/mumble.git git submodule init git submodule update add this line in main.pro LIBS = -lwiringPi -lwiringPiDev new public slot in MainWindow.h add it in public slots: void onGpioPoll(); MainWindow.cpp #include <wiringPi.h> MainWindow.cpp void MainWindow::onGpioPoll() { static bool pttGpioPrevState = false; static bool pttGpioState = false; if (digitalRead(25)==1) { pttGpioState=true; } if (digitalRead(25)==0) { pttGpioState=false; } if (pttGpioState != pttGpioPrevState) { on_PushToTalk_triggered(pttGpioState, QVariant()); pttGpioPrevState = pttGpioState; } QList<ClientUser *> talkingUsers = ClientUser::getTalking(); // For someone else to be talking we have to be connected to the //server and there must be at least one person talking that isn't ourselves static bool pttPrev = false; const bool someoneElseTalking = g.sh && !(talkingUsers.empty() || (talkingUsers.size() == 1 && g.uiSession == talkingUsers.first()->uiSession)); if (someoneElseTalking) { if(!pttPrev){ digitalWrite(10, 1); pttPrev=true; } } if(!someoneElseTalking){ if (pttPrev){ digitalWrite(10, 0); pttPrev=false; } } } add the following in MainWindow.cpp in MainWindow::MainWindow(QWidget *p) QTimer *gpioPollingTimer = new QTimer(this); connect(gpioPollingTimer, SIGNAL(timeout()), this, SLOT(onGpioPoll())); gpioPollingTimer->start(100); // 100ms polling Intervall main.cpp #include <wiringPi.h> main.cpp in the int main(int argc, char **argv) function wiringPiSetupSys(); pinMode(10,OUTPUT); pinMode(25,INPUT); Compiling from mumble directory qmake -recursive main.pro CONFIG+="no-g15 no-server" LIBS+="-lwiringPi" make you also need a small shell scrip to set gpio pins. this worked for me: create file gpio.sh #!/bin/sh echo "10" > /sys/class/gpio/export echo "25" > /sys/class/gpio/export echo "in" > /sys/class/gpio/gpio25/direction echo "out" > /sys/class/gpio/gpio10/direction chmod 666 /sys/class/gpio/gpio10/value chown pi /sys/class/gpio/gpio25/value chmod 666 /sys/class/gpio/gpio10/direction chown pi /sys/class/gpio/gpio25/direction I start the script in /etc/rc.local automatically. Otherwise you have to start it manually as root after every reboot sudo ./gpio.sh Please see to find the correct gpio pin. http://raspberrypiguide.de/howtos/raspberry-pi-gpio-how-to/ It is GPIO10 and GPIO25 or Wiring 12 and Wiring 6. 73 Stephan, DL4STE
  7. Hi, is it possible to set the PTT and get the status if someone is talking for example on terminal or with script? Background: We would like to connect two or more amateur radio repeaters. We don't want to use VOX because there is too much delay and we have the possibility to get the information if someone is talking on the repeater. If someone ist talking on repeater 1 I get a high level on gpio or rs232 and the mumble client should set the PTT and send the audio. On the other side repeater 2 see that someone is talking on mumble. So mumble should set a gpio to high and repeater 2 goes on air. Thank you very much. Stephan
×
×
  • Create New...