Skip to content

Error Connecting to the Red Pitaya #32

@JohnGinger

Description

@JohnGinger

I'm having trouble connecting to the red pitaya.

I've been following the guide on https://github.com/mri4all/console/wiki/Setting-up-the-Red-Pitaya-board

When running python -m unittest test_server.ServerTest

I get the following error

(console-py3.10) (base) johnginger@Johns-MacBook-Pro marcos_client % python -m unittest test_server.ServerTest
Fetching IP address from MRI4ALL configuration file.
IP address: 192.168.0.18
s.sFs..FF.FsssE
======================================================================
ERROR: test_version (test_server.ServerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/johnginger/code/console/external/marcos_client/test_server.py", line 24, in setUp
    self.s.connect((ip_address, port))
ConnectionRefusedError: [Errno 61] Connection refused

======================================================================
FAIL: test_bus (test_server.ServerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/johnginger/code/console/external/marcos_client/test_server.py", line 163, in test_bus
    self.assertAlmostEqual(read_t / 1e3, times[1] * loops_norm,
AssertionError: 106.436 != 131.0 within 2.0 delta (24.563999999999993 difference)

======================================================================
FAIL: test_grad_adc (test_server.ServerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/johnginger/code/console/external/marcos_client/test_server.py", line 307, in test_grad_adc
    self.assertEqual(expected, readback[1:])  # ignore 1st word, since it depends on the history of ADC transfers
AssertionError: Lists differ: [65535, 1536, 1536, 1536, 1536, 1536, 1536, 1536, 1536, 1536] != [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

First differing element 0:
65535
0

- [65535, 1536, 1536, 1536, 1536, 1536, 1536, 1536, 1536, 1536]
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

======================================================================
FAIL: test_idle (test_server.ServerTest)
Make sure the server state is (or becomes) idle, all the RX and TX buffers are empty, etc.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/johnginger/code/console/external/marcos_client/test_server.py", line 125, in test_idle
    self.assertEqual(reply,
AssertionError: Lists differ: [128, 1, 0, 65541, {'regstatus': [0, 0, 0, 0, 0, 0, 0]}, {}] != [128, 1, 0, 65541, {'regstatus': [0, 0, 0, 0, 0, 16777215, 0]}, {}]

First differing element 4:
{'regstatus': [0, 0, 0, 0, 0, 0, 0]}
{'regstatus': [0, 0, 0, 0, 0, 16777215, 0]}

- [128, 1, 0, 65541, {'regstatus': [0, 0, 0, 0, 0, 0, 0]}, {}]
?                                                  ^

+ [128, 1, 0, 65541, {'regstatus': [0, 0, 0, 0, 0, 16777215, 0]}, {}]
?                                                  ^^^^^^^^


======================================================================
FAIL: test_mar_mem (test_server.ServerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/johnginger/code/console/external/marcos_client/test_server.py", line 345, in test_mar_mem
    self.assertEqual(reply,
AssertionError: None != [128, 1, 0, 65541, {'mar_mem': 0}, {'info[38 chars]4']}]

----------------------------------------------------------------------
Ran 15 tests in 1.359s

FAILED (failures=4, errors=1, skipped=6)

on the red pitaya I get the following error

root@192.168.0.18 "~/marcos_server"
MaRCoS server, Mar  7 2025 00:00:12
Server version 1.0.5
Parsing the MPack tree failed: mpack_error_type

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions