Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readTX23 dies when it receives SIGPIPE. #32

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

CazYokoyama
Copy link
Contributor

The default action of SIGPIPE is termination. However, readTX23 does not
terminate. I don't know why.
It takes some time such as 10 sec because init takes care readTX23 die.
This is required when readTX23 is invoked by rtl_433_to_wu because rtl_433_to_wu sends SIGPIPE to readTX23 when it stops.

CazYokoyama and others added 14 commits November 28, 2020 10:14
readTX23.c:62:8: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
   if ((strcmp(argv[i],"--debug") == 0) || (strcmp(argv[i],"-d") == 0))
        ^~~~~~

Signed-off-by: Caz Yokoyama <[email protected]>
Eliminate a warning on "Raspbian GNU/Linux 10 (buster)" and others.
# download http://www.airspayce.com/mikem/bcm2835/bcm2835-1.68.tar.gz
tar xzf bcm2835-1.68.tar.gz
cd bcm2835-1.68/
./configure
make
sudo make check
sudo make install

The one in this repo. does not work.

Signed-off-by: Caz Yokoyama <[email protected]>
…+ and

Zero with the latest bcm2835-1.68. This is required on my 2 TX23U.
I don't know its root cause.

Signed-off-by: Caz Yokoyama <[email protected]>
https://github.com/nordoff/rtl_433_to_wu). Here is an example of json
format output.

{"time" : "2020-12-03 14:15:07", "model" : "TX23U", "wind_avg_mi_h" : 0.000000, "wind_dir_deg" : 337.5, "mic" : "CRC"}

rtl_433_to_wu reads json format line and upload the data to wunderground.com.

Signed-off-by: Caz Yokoyama <[email protected]>
Fix the bug where no data is read on json format.
The default action of SIGPIPE is termination. However, readTX23 does not
terminate. I don't know why.
It takes some time such as 10 sec because init takes care readTX23 die.

Signed-off-by: Caz Yokoyama <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants