Connection error WinError 10061

Applications, development tools, FPGA, C, WEB
Post Reply
IAHMAD
Posts: 2
Joined: Mon Feb 19, 2024 7:30 am

Connection error WinError 10061

Post by IAHMAD » Mon Feb 19, 2024 7:38 am

Hi everyone,

I am getting following error while trying to run the led blink program (to access the RedPitaya board using Python)

SCPI >> connect(rp-f019d3.local:5000) failed: [WinError 10061] No connection could be made because the target machine actively refused it
Blinking LED[0]
Traceback (most recent call last):
File "C:\Users\Iahmad\Desktop\IshtiaqData\RedPitaya\PythonRedPitaya\blink.py", line 21, in <module>
rp_s.tx_txt('DIG:PIN LED' + str(led) + ',' + str(1))
File "C:\Users\Iahmad\Desktop\IshtiaqData\RedPitaya\PythonRedPitaya\redpitaya_scpi.py", line 88, in tx_txt
return self._socket.sendall((msg + self.delimiter).encode('utf-8')) # was send(().encode('utf-8'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [WinError 10057] A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.


Could someone please guide what the issue could be? Thanks.

IAHMAD
Posts: 2
Joined: Mon Feb 19, 2024 7:30 am

Re: Connection error WinError 10061

Post by IAHMAD » Mon Feb 26, 2024 12:38 am

Issue solved. There was some issue with scpi server application initialization.

User avatar
redpitaya
Site Admin
Posts: 912
Joined: Wed Mar 26, 2014 7:04 pm

Re: Connection error WinError 10061

Post by redpitaya » Mon Feb 26, 2024 2:39 pm

Hello IAHMAD,

Thank you for writing on the forum.
Sorry for the delay. I am glad you were able to resolve the issue.

If it happens again, you can try to reflash the OS:
https://redpitaya.readthedocs.io/en/lat ... re-sd-card

The other suggestions:
- Make sure the SCPI server is turned ON
- Check if Red Pitaya's ethernet cable is connected to the router (sometimes it happens that the ethernet cable is plugged into the Red Pitaya, but the other end is not in the socket)
- Check if the rp-xxxxxx.local address is correct.

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 101 guests