Page 1 of 1

Connection error WinError 10061

Posted: Mon Feb 19, 2024 7:38 am
by IAHMAD
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.

Re: Connection error WinError 10061

Posted: Mon Feb 26, 2024 12:38 am
by IAHMAD
Issue solved. There was some issue with scpi server application initialization.

Re: Connection error WinError 10061

Posted: Mon Feb 26, 2024 2:39 pm
by redpitaya
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.