KCC's Quizzes AQQ304 - A pure logic
1. Quote of the month: "I am not lazy, I'm just in energy-saving mode" - unknown
2. Quiz AQQ304 about finding a pure logic puzzle
Mike is looking at Anne, but Anne is looking at Paul.
Mike is married, but Paul is not.
Question:
Is a married
View All
August Monthly Blog Quiz! Read the blog, take the quiz, and you could win a gift card
Important: Read the blog first . The quiz questions are all based on the content of the blog:
Stay in the loop and win! Read the blog Current Output Driving Industrial Loops , then take our quick five-question quiz for a chance to win a gift card
View All
Hi
I have to plutos on my deck, the first one is rev B and latest firmware .35, i plug it on a raspberry Pi 4 I have this ( Same error with firmware version 0.30)
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import adi
>>> ip='192.168.2.1'
>>> sdr = adi.Pluto('ip:'+ip)
>>> sdr.rx_rf_bandwidth = 100000
ERROR: READ LINE: -32
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.9/dist-packages/pyadi_iio-0.0.14-py3.9.egg/adi/ad936x.py", line 112, in rx_rf_bandwidth
File "/usr/local/lib/python3.9/dist-packages/pyadi_iio-0.0.14-py3.9.egg/adi/attribute.py", line 123, in _set_iio_attr_int
File "/usr/local/lib/python3.9/dist-packages/pyadi_iio-0.0.14-py3.9.egg/adi/attribute.py", line 100, in _set_iio_attr
File "/usr/local/lib/python3.9/dist-packages/pyadi_iio-0.0.14-py3.9.egg/adi/attribute.py", line 98, in _set_iio_attr
File "/home/pi/.local/lib/python3.9/site-packages/iio.py", line 712, in <lambda>
lambda self, x: self._write(x),
File "/home/pi/.local/lib/python3.9/site-packages/iio.py", line 744, in _write
_c_write_attr(self._channel, self._name_ascii, value.encode("ascii"))
File "/home/pi/.local/lib/python3.9/site-packages/iio.py", line 62, in _check_negative
raise OSError(-result, _strerror(-result))
BrokenPipeError: [Errno 32] Broken pipe
If I plug the second pluto, rev C and firmware 0.32 I have this:
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import adi
>>> ip='192.168.2.1'
>>> sdr = adi.Pluto('ip:'+ip)
>>> sdr.rx_rf_bandwidth = 100000
>>>
So with the rev C pluto everything works fine.
BUT! if I plug the rev B pluto to windows laptop and do the same on visual studio everything is fine!
libiio and pyadi are the latest available.
I don't know exactly what to look at, any suggestion will be really appreciated
ciao
Giampiero
Update:
If I use a ethernet2USB adapter the first pluto works, the issue is only if I plug it directly on the USB port, for testing both pluti I am using same usb cable