Comments (7)
The decision to not depend on librtlsdr was easy since the error handling in the library is pretty poor and using cgo to wrap it prevents cross-compilation, not to mention the necessity of the user to have a c-compiler setup (which rules out windows users without a painful setup). Using rtl_tcp is a win-win since we get almost the same control and remote access for free with the only expense of making the user handle two processes instead of only one.
Which side is producing that error? rtl_tcp or rtlamr? I haven't been able to do much testing on OS X but in the little testing i did do, i suspect the primary problem is rtl_tcp's interaction with the network stack since I reproduced a few of the same flavor of errors using other applications to connect to rtl_tcp. If you can provide logs that would be helpful.
from rtlamr.
I will do some more testing & better document the issue. I believe there were probably some situations where each produced an error. What logs would be most useful?
from rtlamr.
Any logs you can provide will be useful. Preferably both applications.
from rtlamr.
Okay, I did a clean install of rtl-sdr & rtlamr on my home-automation MacBook Pro, which is configured to never sleep, and left it running when I left the house this morning. Will check to see what log info I have later today.
Also, it appears that cgo blocking cross-compiles has been resolved? golang/go#4714
from rtlamr.
The fix only allows cross-compilation with cgo in use, it doesn't mean that it will succeed for all platforms. Adding an external build dependency is just not something I'm prepared to deal with or support.
from rtlamr.
On the MacBook that is configured to never sleep, the 2 processes have run without error now for about 3 days. I did find this error message on the MacBook where I originally had this set up. I don't know for a fact, but I think this error probably occurred when the system went to sleep or when it woke back up.
18:53:10.433463 recv.go:133: Error reading samples: read tcp 127.0.0.1:1234: connection reset by peer
Would it be reasonable to add a retry loop in this particular error situation? Perhaps with a retry count command line parameter.
from rtlamr.
Unfortunately, I believe this particular error is unrecoverable without rtlamr controlling instantiation of rtl_tcp which I would like to avoid.
I don't know what the OS X equivalent to this would be but using systemd to instantiate the services and to automatically restart them upon failure would work nicely. I believe OS X's closest solution is launchd, so you might look into that.
from rtlamr.
Related Issues (20)
- ITRON 40G - Unable to find meter or no messages? HOT 1
- Poor R900 message reception except with msgtype=all HOT 1
- SCM+ Endpoint ID HOT 1
- r900Parser.filter / quantize takes over 80% of CPU HOT 3
- Is it possible to support G5R1s? HOT 1
- Leak fields HOT 1
- panic on startup HOT 5
- All fcc.io device links return "Internal Server Error - Read" HOT 2
- Notice: Support for X meter?
- R900 meters may need additional decoding? HOT 2
- Filter based on tamper flags or type HOT 1
- Would this work for water meters with UI-1203 protocol?
- Itron 500G stopped working HOT 2
- R900 with "Leak": 15 and "LeakNow": 3 flags HOT 1
- Old R900 reader addon hooked up to 5/8" Neptune Aquity t-10 - readings HOT 3
- can't read itron cl200 c1sr (fcc sk9c1a-3b) HOT 1
- Sorry for being dense, but is consumption coded or something? HOT 1
- Itron 100WD HOT 2
- Documentation clarification request: Handling spread spectrum HOT 2
- Interference from 900MHz (?) Neptune R900 water meter cellular transponder HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtlamr.