Release number 2

Release number 2

Vibell
34

Today I’m pushing the new release.

Here are major changes:

  1. Disabled multicasting, now we have to configure the clients list in app.js
  2. Switched audio from SPEEX to raw audio. Added experimental support of OPUS codec.
  3. The audio source and sink change to pulse audio.
  4. Fixed issue with hanging quick config section in Android app.
  5. Improved Android app stability.
  6. Publishing the source code of Android app, see next post for details.

  1. i upgrade app android and i have an error

    undefined – ::ffff:192.168.1.56 disconnected web socket
    undefined – ::ffff:192.168.1.56 disconnected web socket
    undefined – ::ffff:192.168.1.56 disconnected web socket
    undefined – ::ffff:192.168.1.56 disconnected web socket
    debug – connected web socket:::ffff:192.168.1.56:41099/camera
    debug – connected web socket:::ffff:192.168.1.56:41100/outPin
    debug – connected web socket:::ffff:192.168.1.56:41101/speaker
    debug – connected web socket:::ffff:192.168.1.56:41102/mic
    debug – sending lastState for sensor pathcamera
    debug – sending lastState for sensor pathoutPin
    debug – sending lastState for sensor pathspeaker
    debug – sending lastState for sensor pathmic
    ERROR – stderr: notification: More than two wideband layers found. The stream is corrupted.
    any help ?

  2. hi guys
    i have upgrade vibell and no sound on raspberry

    ERROR – stderr: Connection failure: Connection refused
    pa_context_connect() failed: Connection refused

    can you help me
    thanks

  3. Not sure if any change was made server side. Now when i run app.js i get the following
    /vibell/app.js:1
    (function (exports, require, module, __filename, __dirname) { ar util = require(“util”);
    ^^^^

    SyntaxError: Unexpected identifier
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:413:25)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:475:10)
    at startup (node.js:117:18)
    at node.js:951:3

    1. Hi,

      Can you try downloading fresh copy from git? It looks like you didn’t properly get update version from github.

      Cheers,

      Pawel

  4. Hi, It’s a cool project!
    I followed your step before upgrade, it has work!
    Now I try again and video can stream but no sound.

    INFO – Changing the proces info to: -e -vvv pulsesrc do-timestamp=true ! audio/x-raw,format=S16BE,channels=1,depth=16,width=16,rate=%samplingRate% ! rtpL16pay ! multiudpsink clients=%clients%
    DEBUG – State changed to: {“on”:true,”clients”:”192.168.1.7:5001″,”samplingRate”:8000,”audioCodec”:”raw”}
    undefined – Starting process: gst-launch-1.0 -e,-vvv,pulsesrc,do-timestamp=true,!,audio/x-raw,format=S16BE,channels=1,depth=16,width=16,rate=8000,!,rtpL16pay,!,multiudpsink,clients=192.168.1.7:5001
    INFO – stdout: Setting pipeline to PAUSED …

    ERROR – stderr: ERROR: Pipeline doesn’t want to pause.

    ERROR – stderr: ERROR: from element /GstPipeline:pipeline0/GstPulseSrc:pulsesrc0: Failed to connect: Connection refused
    Additional debug info:
    pulsesrc.c(1017): gst_pulsesrc_open (): /GstPipeline:pipeline0/GstPulseSrc:pulsesrc0

    INFO – stdout: Setting pipeline to NULL …
    Freeing pipeline …

    info – Process exited with code:255
    DEBUG – State changed to: {“on”:false,”clients”:”192.168.1.7:5001″,”samplingRate”:8000,”audioCodec”:”raw”}

    How can I solve it?

    Thank you

  5. Hi everyone. I am new to the Raspberry Pi community took on a project to make a video doorbell. right now i am follwing the tutorial and I keep encountering this error that is preceeded by a bunch of non sense charters. Has anyone encountered this issue and can you please assit me? Below is what is happening.

    –2016-04-23 00:10:11– (try:13) http://2.0/ Connecting to 2.0 (2.0)|2.0.0.0|:80…

  6. any one can help me ?
    i can’t resoleve this probleme with plusoaudio and nodejs
    pa_context_connect() failed: Connection refused

  7. Hello

    I research the hardware list for this doorbell …
    Why can’t you use the internal sound card for mic/hp?
    I search a waterproof case for doorbell with camera, if you know this.

    David

  8. what configurations we need to do in apps.js file???
    I am getting this type of error
    pi@raspberrypi:~/vibell $ sudo node app.js
    module.js:339
    throw err;
    ^

    Error: Cannot find module ‘sensors-io-rpi’
    at Function.Module._resolveFilename (module.js:337:15)
    at Function.Module._load (module.js:287:25)
    at Module.require (module.js:366:17)
    at new require (module.js:385:17)
    at Object. (/home/pi/vibell/app.js:3:18)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:467:10)

  9. Hi, video & button they are OK!
    But, I have an audio problem. I have follow https://learn.adafruit.com/usb-audio-cards-with-a-raspberry-pi/instructions for C-Media USB Audio Device install..

    How can I solve it?

    Thank you

    **** List of PLAYBACK Hardware Devices ****
    card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
    Subdevices: 8/8
    Subdevice #0: subdevice #0
    Subdevice #1: subdevice #1
    Subdevice #2: subdevice #2
    Subdevice #3: subdevice #3
    Subdevice #4: subdevice #4
    Subdevice #5: subdevice #5
    Subdevice #6: subdevice #6
    Subdevice #7: subdevice #7
    card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: Device [C-Media USB Audio Device], device 0: USB Audio [USB Audio]
    Subdevices: 1/1
    Subdevice #0: subdevice #0

    …..
    INFO – stdout: Impostazione della pipeline a PAUSED …

    ERROR – stderr: ERRORE: la pipeline non vuole mettersi in pausa.

    ERROR – stderr: ERRORE: dall’elemento /GstPipeline:pipeline0/GstPulseSrc:pulsesrc0: Failed to connect: Connessione rifiutata
    Informazioni di debug aggiuntive:
    pulsesrc.c(1016): gst_pulsesrc_open (): /GstPipeline:pipeline0/GstPulseSrc:pulsesrc0

    INFO – stdout: Impostazione della pipeline a NULL …
    Esecuzione di free sulla pipeline…

    info – Process exited with code:255
    DEBUG – State changed to: {“on”:false,”clients”:”10.0.1.128:5001″,”samplingRate”:8000,”audioCodec”:”raw”}
    INFO – stdout: Impostazione della pipeline a PAUSED …
    Impostazione della pipeline a NULL …
    Esecuzione di free sulla pipeline…

    ERROR – stderr: ERRORE: la pipeline non vuole mettersi in pausa.
    ERRORE: dall’elemento /GstPipeline:pipeline0/GstPulseSink:pulsesink0: Failed to connect: Connessione rifiutata
    Informazioni di debug aggiuntive:
    pulsesink.c(615): gst_pulseringbuffer_open_device (): /GstPipeline:pipeline0/GstPulseSink:pulsesink0

    info – Process exited with code:255
    DEBUG – State changed to: {“on”:false,”sensorAddress”:””,”port”:5002,”samplingRate”:8000,”audioCodec”:”raw”}

  10. Very good project . I want to ask you if vibell work raspberry pi camera v2 NoIR . Because not see picture on tablet.
    Thanks

  11. Hi

    I followed step by step, i can connect to clients and video is working but no sound and when i press the button the bell rings an instant and i have error:

    DEBUG – State changed to: {“on”:true,”soundFile”:”/home/pi/vibell/node_modules/sensors-io-rpi/lib/Sounds/Vibell.wav”}
    undefined – Starting process: paplay /home/pi/vibell/node_modules/sensors-io-rpi/lib/Sounds/Vibell.wav
    events.js:85
    throw er; // Unhandled ‘error’ event
    ^
    Error: spawn paplay ENOENT
    at exports._errnoException (util.js:746:11)
    at Process.ChildProcess._handle.onexit (child_process.js:1053:32)
    at child_process.js:1144:20
    at process._tickCallback (node.js:355:11)

    Any one can help me ?

    Thanks,

  12. Just got it up and running.”somewhat”
    Issues:
    No Sound.
    No response from button
    Camera starts as soon as I run app.js and doesn’t turn off until reboot.

    Question.
    Are there plans to make this usable outside my LAN where the IP of my phone/tablet would be different than if I was on my local WiFi?

  13. Hi,

    It is possible to expand the Ring Time on the App?
    When I release the Button the Ring ends immediately.

    Thank you
    Best regards

  14. This is a very good application. All works: ring, sound, camera. The ring is only as long as the button is pressed. No longer could ring while pressing the phone button?

  15. Dear all,
    Please help me. I got an error when running the command:
    pi@raspberrypi ~/vibell $ sudo node app.js
    module.js:341
    throw err;
    ^
    Error: Cannot find module ‘sensors-io-rpi’
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Module.require (module.js:367:17)
    at new require (internal/module.js:16:19)
    at Object. (/home/pi/vibell/app.js:3:18)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module.runMain (module.js:447:10)

  16. Marcelo, I think you need to give it an audio file to play. I had similar behaviour until I specified and provided an audio file.

    So, I attempted to post a comment here regarding the app not starting. I was attempting to use a Cirrus Logic audio card shield on the pi because it claims to have a built-in audio amplifier to drive a speaker(s). I discovered the Dtoverlay used by the audio card was conflicting with the pins used by the vibell project. When I reassigned the GPIO pins to free ones I was able to get it working just fine.

    Just a note on the cirrus logic card though: Don’t do it. Don’t waste your money. It took me a day to build the kernel to enable the audio card which precludes you from updating raspbian then after all that I still was having problems getting the speaker out channels to work and never managed to get it working completely. I was able to get headphone output working though as well as mic-in. I abandoned the cirrus card and used a simple usb audio card as recommended here. I’ll just use a class D audio amplifier ($10) to drive my speaker.

    I plan on attempting to port this project to the Cayenne IoT (Internet of things) project for remote (off-LAN) accessibility. I’m also using a transistor to gate and drive a 12V automotive relay for the gate latch. 5V switches the transistor which passes the 12 volts to the relay which shorts and opens the gate circuit. Just use a diode to prevent the relay coil from inducing reverse current on your transistor when the relay coil’s magnetic field collapses.

    I’m using this project as the basis for a driveway gate 1/2 mile away with a Ubiquiti wireless bridge and a solar powered system at the gate (gate opener, network bridge, et al).
    I’m also planning on integrating a pin pad to the pi to allow code based access.

    I do have one suggestion regarding the app though: Would you be able to make a setting in the mobile app to specify how long the gate “doorbell” sounds? As the app is currently, the sound is only played while the button is being pressed. It would be nice to specify that the doorbell rings for 30 seconds or a custom configured duration in the app. It would also be handy to have an event log in the app if someone tried to push the button while people were away possibly with a notification icon that someone attempted access.

    This is a really cool project. Thanks for doing all the groundwork for this!!

  17. Hi,

    I’m looking to get this running in my system and would love to see details of how the video/audio stream is done. I’m interested in building out an iOS mobile client too. Is there an android source repo I can look at for reference?

    Thanks,

    Emlyn

  18. Witam.
    Czy projekt jest nadal rozwijany?
    Czy zadziała na Raspberry Pi 2 b+ ?
    Czy można obsługiwać trzy rodziny ? czyli trzech różnych odbiorców.

  19. Hey.
    Whether the project is still being developed?
    It will run on the Raspberry Pi 2 + b?
    You can operate three families? or three different groups of recipients.

  20. i got error when i was run app.js

    Error: spawn gst-launch-1.0 ENOENT
    at exports._errnoException (util.js:870:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
    at onErrorNT (internal/child_process.js:344:16)
    at nextTickCallbackWith2Args (node.js:437:9)
    at process._tickCallback (node.js:351:17)
    at Function.Module.runMain (module.js:443:11)
    at startup (node.js:134:18)
    at node.js:962:3

  21. Hello,

    First let me say what great idea for a project.

    I seem to be having to teething problems. I managed to install, though I do not have a sound card, so skipped that part of the setup. Everything worked as expected (obviously no sound). The tablet screen came to life when the button was pressed, video was streaming and the door led fired when the button was hit on the app.

    I left it running over night and when I came back to it the video stream had stopped. Also, the app no longer opens or chimes when the button is pressed. The door button still works. The terminal window shows ‘INFO – State read 1’ when the button is pressed.

    I have tried restarting the app as well as rebooting, but I have no idea why this has stopped. Camera led is still lit…

    I would appreciate any guidance.

    Thanks,

    Mit

  22. Hello all,

    congratulations, it’s really a great project.

    I would use it in my home but there are three apartments.
    is it possible to define three separate channes?

    I am a software and hardware developer.

    I would like to participate in the development. is it possible?

    Regards

    Mirko Ugolini

Leave a Reply

Your email address will not be published. Required fields are marked *