Comments (3)
Hopefully this is fixed by #12 (included in v0.2.1), going to close this issue for now, feel free to re-open if it occurs again.
from hackrfone.
I have onky used Linux to test this out. Unfortunately I do not have any Mac platforms available so I cannot test it out with that :/
If the original libhackrf works then this should in theory also work because rusb
is just a wrapper for libusb which is what libhackrf is using.
If I recall correctly the device version is reported in a header during USB negotiation, which may explain why the version works, but the RX endpoint does not.
As for the SendError
that is probably just my crappy code 😅. It works for me in the positive path, but I have done zero testing with what happens when the sample thread stops before the main thread tells it to, which is probably the issue there.
Some TODOs for me:
- Add tested platforms in README.
- Fix example for negative path.
from hackrfone.
Took a look at the example failure, that's my crummy code, sorry about that!
A send operation can only fail if the receiving end of a channel is disconnected, implying that the data could never be received. The error contains the data being sent as a payload so it can be recovered.
If the sample thread ran up to here:
Lines 36 to 42 in 4c7edbc
Then failed at the rx()?
it would disconnect and later result in the SendError
being unwrapped.
from hackrfone.
Related Issues (3)
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 hackrfone.