Page 1 of 1

Errno 32 Broken Pipe

Posted: Tue Sep 13, 2016 12:18 am
by benbaltes
Hi All,

I've been toying with this redpitaya for hours now trying to get the simple blink LED to work and cant figure this out, I've checked multiple forum posts and its not getting me anywhere. This should be the simplest thing...

I've downloaded the examples and am trying to get blinkLED to work in python.
http://redpitaya.com/examples-new/blink/

I've ssh'd into my redpitaya, go to the python examples folder with the 'digital_led_blink.py' and run the command:

Code: Select all

systemctl start redpitaya_scpi &
then run

Code: Select all

./digital_led_blink.py 127.0.0.1
and I keep getting the following error

Code: Select all

SCPI >> connect(127.0.0.1:5000) failed: [Errno 111] Connection refused
Blinking LED[0]
Traceback (most recent call last):
  File "./digital_led_blink.py", line 20, in <module>
    rp_s.tx_txt('DIG:PIN LED' + str(led) + ',' + str(1))
  File "/root/dev/RedPitaya/Examples/python/redpitaya_scpi.py", line 66, in tx_txt
    return self._socket.send(msg + self.delimiter)
socket.error: [Errno 32] Broken pipe
Does anyone have any clue whats going on here?

Re: Errno 32 Broken Pipe

Posted: Tue Sep 13, 2016 1:13 am
by Nils Roos
Hi,

well, to state the obvious, the scpi-server could not be contacted. Since you were trying locally, the only plausible reason for that is that it did not start correctly.
If you are using some older version of OS release 0.96, I might have an idea why. It used to be that when you start the scpi-server over the console, you had to load the appropriate fpga bitstream first, otherwise the scpi-server can't operate properly. Try "cat /opt/redpitaya/fpga/fpga_0.94.bit >/dev/xdefcfg" before starting the scpi-server.
With current versions this happens automatically.

Re: Errno 32 Broken Pipe

Posted: Mon Sep 19, 2016 11:51 pm
by benbaltes
Nope, still getting the same error :(

Should i be using the most recent Stable OS release?
http://redpitaya.com/quick-start/

What command do i type to find my red pitaya os version number?

Re: Errno 32 Broken Pipe

Posted: Tue Apr 25, 2017 11:56 pm
by olmecguru
I am having the same problem, and I cannot find a solution. Has this problem been solved?

Re: Errno 32 Broken Pipe

Posted: Thu Nov 09, 2017 4:05 pm
by Matija
If anyone still has this problem...

What I did was:
- updated the OS as instructed on http://redpitaya.readthedocs.io/en/late ... Dcard.html
- cloned the Red Pitaya folder using "git clone" command
- used the command "cat /opt/redpitaya/fpga/fpga_0.94.bit > /dev/xdevcfg" and "export LD_LIBRARY_PATH=/opt/redpitaya/lib"
- ran "systemctl stop redpitaya_nginx" and "systemctl start redpitaya_scpi &"
- then used "python3 digital_led_blink.py <INSERT_YOUR_IP>"

You can use "ip addr" to see all the IP's, one of them should work. Also if python3 command isn't recognized, use:
"sudo apt-get install python3 python3-pip"

Hope it works.
Matija