Errno 32 Broken Pipe

Applications, development tools, FPGA, C, WEB
Post Reply
benbaltes
Posts: 5
Joined: Mon Sep 12, 2016 9:38 pm

Errno 32 Broken Pipe

Post by benbaltes » Tue Sep 13, 2016 12:18 am

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?

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: Errno 32 Broken Pipe

Post by Nils Roos » Tue Sep 13, 2016 1:13 am

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.

benbaltes
Posts: 5
Joined: Mon Sep 12, 2016 9:38 pm

Re: Errno 32 Broken Pipe

Post by benbaltes » Mon Sep 19, 2016 11:51 pm

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?

olmecguru
Posts: 1
Joined: Tue Apr 25, 2017 11:52 pm

Re: Errno 32 Broken Pipe

Post by olmecguru » Tue Apr 25, 2017 11:56 pm

I am having the same problem, and I cannot find a solution. Has this problem been solved?

Matija
Posts: 3
Joined: Mon Apr 10, 2017 1:36 pm

Re: Errno 32 Broken Pipe

Post by Matija » Thu Nov 09, 2017 4:05 pm

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

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 11 guests