Code is online… i requested a pull request but don’t know exactly how it’s supposed to work… seems not everything is in GIT… i’ve hit a bug in pigpio, it’s mentioned somewhere but hard to debug… can’t get any stacktrace so for now i have modified their code to remove a segfault catch debug output… will commit the latest binary… you’ll be amazed how good it works… reception is a lot better (i’m using a cheapass RXB6 receiver).
-
Help, homeduino not working anymore [Solved]
-
I’m working on RTL-SDR support now… So we will be able to use a cheap USB dvb-t receiver…
-
@mwittig said in Help, homeduino not working anymore [Solved]:
@DaanNL Sounds great! I am happy to review. Do you have the code on github already?
Ok… I’ve got rtl-sdr working now also! please tell me how we can proceed…
I’ve rebuild the code… there’s a seperate thread for receiving commands… when choosing receiver pin “rtl-sdr” the rtl-sdr library is used to use a dvb-t dongle to receive 433 mhz signals! Works like a charm! -
wow!! that sounds like a really interesting development.
somewhere i am having a dvb-t stick. need to search itpimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
If it is supported by the rtl sdr library (https://osmocom.org/projects/sdr/wiki/rtl-sdr) then it should be able to work!
-
@DaanNL said in Help, homeduino not working anymore [Solved]:
If it is supported by the rtl sdr library (https://osmocom.org/projects/sdr/wiki/rtl-sdr) then it should be able to work!
That sounds good, I have also an old DVB-T Stick can you please explain what I have to install and change that it works?
-
I made some adjustments to the code today and currently testing in a real life situation… The nice thing is frequencies can be changed… Because the transmitters and receiver get inaccurate after a while… I have a dvb-t receiver for 8$ with standard antenna downstairs… Can receive signals 25 meters away in the garden and on the second floor… I’ll keep it running for the night…
-
@mwittig … So I’m thinking about leaving the plug-in like it is now (ported to pigpio and buildable for the a new kernel… So it can be added to pimatic…) and make a separate plug-in for the dvb-t receiver… Can you tell me how I should proceed to get the plug-in into the pimatic plug-in repository?
-
@DaanNL said
Can you tell me how I should proceed to get the plug-in into the pimatic plug-in repository?
if you release your plugin on npmjs.com our plugin sniffer will grab it up and publish it.
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
@DaanNL said in Help, homeduino not working anymore [Solved]:
Can you tell me how I should proceed to get the plug-in into the pimatic plug-in repository
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@DaanNL said in Help, homeduino not working anymore [Solved]:
So I’m thinking about leaving the plug-in like it is now (ported to pigpio and buildable for the a new kernel… So it can be added to pimatic…)
Sounds great! How about this bug in pigpio - did you raise an issue for that as part of pigpio?
I’ll do review and testing next weekend"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
The issue doesn’t occur anymore… I think it had something to do with having an alert on a gpio while sending… When I used setalertfunc to disable the gpio listener when sending the issue got resolved…
Would you like to have the sdr support built-in? Or should I make a separate plug-in for it…
-
@DaanNL said in Help, homeduino not working anymore [Solved]:
Would you like to have the sdr support built-in
Well, it depedents on how many dependencies / preperatory steps this implies to use vhduino. It should not be a big burden or source of error for users who do not require RTL-SDR support. Possibly it can be done by dynamic link loading (e.g., check if shared library exist at runtime and proceed without RTL-SDR otherwise). This way, the setup for RTL-SDR support (install development packages for libusb1.0, build & install rtl-sdr) should be pretty much isolated from the rest.
What do you think?"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
I totally agree… Then we need some proper code and a build script to decide when to build with and without sdr… So I’ll have to digg in…
-
Any news on this one? I haven’t seen any progress in the git repository. @DaanNL Are you planning to push your changes to the repo anytime soon? Would be a pity if all your work was lost.
-
Hey guys,
I was able to take @DaanNL’s code and compile it. Moreover I forked his fork and improved the build process. You can now cross compile vhduino on a linux box or directly compile it on a Raspberry Pi using make.
To cross compile on a linux box just do:
$ make
To compile on a Raspberry Pi do:
$ make -f Makefile.rpi
The detailed build process and prerequisites are documented in my fork: https://github.com/layereight/virtualhomeduino
Would be great if some of you guys give it a try and tell me if it works. Take the compiled vhduino binary and replace the existing binary in the plugin on your Pi, e.g.:
$ sudo cp vhduino /home/pi/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/bin/vhduino
I tested the build and the binary on a Raspberry Pi 2 (Raspbian Stretch 2017-09-07, kernel 4.9.41-v7+) and a Raspberry Pi Zero (Raspbian Jessie 2017-02-16, kernel 4.4.48+).
I tested the cross compile build on my linux box (Ubuntu 17.10). I also tested the cross compiled binary on the two Pis.Btw, I didn’t take a deeper look into @DaanNL’s code, but I had to adapt it slightly.
-
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
This post is deleted!
-
Hey @TH1485 ,
many thanks for the feedback! Glad to hear it worked for you. Did you compile on a normal computer running linux or directly on a Raspberry Pi? If you did on a Raspberry Pi which kernel version was it running?
Also thanks for the hint. I will update the project’s readme.
Btw, I’m planning to improve the build process even a bit further:
- use autoconf/automake to generate configure file and Makefile
- integrate Travis for continuous integration
-
@layereight said in Help, homeduino not working anymore [Solved]:
many thanks for the feedback! Glad to hear it worked for you. Did you compile on a normal computer running linux or directly on a Raspberry Pi? If you did on a Raspberry Pi which kernel version was it running?
It works on Raspberry PI Zero W , kernel 4.9.59+. I also compiled on this Raspberry
(changed account due to privacy reasons)