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

r82xx_write: i2c wr failed=-9 reg=1a len=1 #668

Open
f6bvp opened this issue Mar 19, 2024 · 6 comments
Open

r82xx_write: i2c wr failed=-9 reg=1a len=1 #668

f6bvp opened this issue Mar 19, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@f6bvp
Copy link

f6bvp commented Mar 19, 2024

Description of the issue
Changing satdump frequency while running is ok except if it is connected to remote
satdump_sdr_server through fast Internet link as shown with 16ms average ping statistics.

Hardware (SDR/PC/OS)
Remote SDR is Nooelec sawbird Generic RTL2832OEM#0

Version (Eg, 1.0.0, CI Build 171)
Satdump_sdr_server v1.2.0 and local satdump v1.2.0-395e1ab3

**Logs ** (satdump.log from ~/.config/satdump or %appdata%\satdump)
When changing local frequency while satdump is running remote sdr_server displays error messages :

r82xx_set_freq: failed=-9
r82xx_write: i2c wr failed=-9 reg=1a len=1
r82xx_set_freq: failed=-9
r82xx_write: i2c wr failed=-9 reg=08 len=1
r82xx_set_freq: failed=-9
[09:29:22 - 19/03/2024] (D) Set RTL-SDR frequency to 1545500000
[09:29:22 - 19/03/2024] (D) Frequency sent 1546500000.000000
r82xx_write: i2c wr failed=-9 reg=1b len=1
r82xx_set_freq: failed=-9
r82xx_write: i2c wr failed=-9 reg=17 len=1
r82xx_set_freq: failed=-9
r82xx_write: i2c wr failed=-9 reg=1a len=1
r82xx_set_freq: failed=-9
r82xx_write: i2c wr failed=-9 reg=17 len=1
r82xx_set_freq: failed=-9
r82xx_write: i2c wr failed=-9 reg=17 len=1
r82xx_set_freq: failed=-9

Capture d’écran du 2024-03-19 10-35-22

Other info (Eg, Screenshots) / Files useful for debugging (CADU, etc)

@f6bvp f6bvp added the bug Something isn't working label Mar 19, 2024
@f6bvp
Copy link
Author

f6bvp commented Mar 21, 2024

Same effect just clicking to activate AGC

Disabled direct sampling mode
[13:20:49 - 21/03/2024] (D) Set RTL-SDR frequency to 1544000000
[13:20:49 - 21/03/2024] (D) Set RTL-SDR Bias to 1
[13:20:49 - 21/03/2024] (D) Set RTL-SDR AGC to 0
[13:20:49 - 21/03/2024] (D) Set RTL-SDR Gain to 0
[13:20:49 - 21/03/2024] (D) Set RTL-SDR PPM Correction to 0
[13:20:49 - 21/03/2024] (I) Source started!
[13:20:49 - 21/03/2024] (T) RTL-SDR Buffer size 32256
r82xx_write: i2c wr failed=-9 reg=05 len=1
r82xx_read: i2c wr failed=-9 reg=00 len=1
r82xx_read: i2c wr failed=-9 reg=00 len=1
r82xx_write: i2c wr failed=-9 reg=07 len=1
r82xx_write: i2c wr failed=-9 reg=05 len=1
r82xx_write: i2c wr failed=-9 reg=07 len=1
r82xx_write: i2c wr failed=-9 reg=07 len=1
r82xx_write: i2c wr failed=-9 reg=0c len=1
[13:21:33 - 21/03/2024] (D) Set RTL-SDR AGC to 1
[13:21:33 - 21/03/2024] (D) Set RTL-SDR Gain to 0
[13:21:34 - 21/03/2024] (I) Waiting for the thread...
[13:21:34 - 21/03/2024] (I) Thread stopped
Reattached kernel driver
[13:21:34 - 21/03/2024] (I) Source stopped!
[13:21:34 - 21/03/2024] (D) Sending source settings

@f6bvp
Copy link
Author

f6bvp commented Mar 21, 2024

For info :
Streaming displays is aroud 1.2 MB/s for a Samplefrate of 650 ksps on average.

@JVital2013
Copy link
Collaborator

Hello! It sounds like the underlying kernel driver is not detaching properly. Try blacklisting the kernel modules by adding the following lines to /etc/modprobe.d/blacklist.conf, then reboot the system running SDR Server and try again:

blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830

If this does not work, can you try another program on the same machine to see if the dongle works in that program?

@AlexandreRouma
Copy link
Collaborator

If the server is running on a Raspberry Pi this is likely a classic case of an inadequate power supply.

@f6bvp
Copy link
Author

f6bvp commented Mar 31, 2024

If the server is running on a Raspberry Pi this is likely a classic case of an inadequate power supply.

Thanks but Satdump server is running on a Tower PC with Intel core i7 CPU à 2.67GHz and 10 pings toward local satdump client is 4.768 ms on average and 5.265 max.

@f6bvp
Copy link
Author

f6bvp commented Mar 31, 2024

Hello! It sounds like the underlying kernel driver is not detaching properly. Try blacklisting the kernel modules by adding the following lines to /etc/modprobe.d/blacklist.conf, then reboot the system running SDR Server and try again:

blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830

If this does not work, can you try another program on the same machine to see if the dongle works in that program?

Alll those sdr are blacklisted including rtl2838.
Locally satdump do not have i2c errors it is only with remote client.
Other application such as CubicSDR also runs fine when on same PC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants