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

[rtlsdr] fixes for inet/inet6 and serial number parsing; bias tee fixes! #64

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

Conversation

erikarn
Copy link

@erikarn erikarn commented Jun 25, 2020

  • Correctly use the getaddrinfo populated response array; this stopped working on freebsd-13 this week for some odd reason which led me to correct how it's used;
  • Do the serial number look-up /first/ in case the serial numbers are low (eg 00000001 , 00000002, etc) - the full and partial lookups will do the right thing if done early;
  • add new method to leave the bias tee on after rtlsdr_close();
  • close the bias tee gpio on rtlsdr_close() except if the above method is called;
  • rtl_biast leaves the bias tee on!

@erikarn erikarn changed the title [rtlsdr] fixes for inet/inet6 and serial number parsing [rtlsdr] fixes for inet/inet6 and serial number parsing; bias tee fixes! Jun 25, 2020
@erikarn
Copy link
Author

erikarn commented Jun 25, 2020

This also addresses your concerns in #47

src/rtl_tcp.c Show resolved Hide resolved
Adrian Chadd added 4 commits November 30, 2020 12:09
This fixes issues seen on FreeBSD-13 as of today (23-Jun-2020.)
It was returning errors during bind and not binding the right
address or port.

* clear hints before use
* get rid of local - it's not used now, and it was only using the
  first entry
* don't use local and hard-coded size; instead use the current
  ai pointer address and addrlen
* Add missing \n

Tested:

* FreeBSD-13, 23-Jun-2020
If it's done first then numeric serial numbers that also match
device ids will, well, match.

This way it'll correctly find an exact match serial number and
a partial serial number match before it tries a straight numeric
device index lookup.
…ring close

* Close the biast by default
* Track the last used GPIO pin for the biast so we know which pin
  to close!
* Add a new method which tells librtlsdr to leave it on
@erikarn
Copy link
Author

erikarn commented Nov 30, 2020

hI! ping! I've just updated the pull request against the august 2020 top of tree. Would you mind taking another look at it?

thanks!

-adrian

@erikarn
Copy link
Author

erikarn commented Dec 11, 2020

hi! I'm just poking about this again! I'd love to see this land to fix compiling/running on freebsd and windows as well!

Thanks! happy holidays!

@erikarn
Copy link
Author

erikarn commented Jan 4, 2021

ping! :-)

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