Skip to content

Unable to receive data via websockets #1003

Description

@anarayan131

We, at OFFIS e.V., are currently using VILLAS framework for a GDRTS setup for a German distribution grid operator.

Here, we would like to exchange data via VILLAS node configured as a websocket. The setup is as follows:

  1. Remote lab connects as a client to VILLAS node at OFFIS via websocket. Here VILLAS node is configured as a http websocket server.
  2. Remote lab sends data to VILLAS node at OFFIS via this connection (Remote lab ==> OFFIS)
  3. VILLAS node receives the data and forwards that to a server at OFFIS via another websocket (OFFIS ==> OFFIS). Here VILLAS node is a websocket client.
  4. The setpoints are sent back from OFFIS to the remote lab via the same websocket (OFFIS ==> Remote lab).

I am able to achieve step 3, i.e., forward data from VILLAS Node to another server via websocket. I tested this using a modified version of the Lab 12 exercise.
However, I am unable to complete step 2: receive data via the VILLAS WebSocket. I am able to connect to VILLAS node (step 1), but the data sent is not being received at VILLAS.

Could you please help me troubleshoot this?

I have attached the following:

  • Conf file for the VILLAS node, which runs on a Hardware at OFFIS (added as text file)
  • Test sender sending VILLAS Binary data to the VILLAS Node. This is used to mimic the remote lab.
  • Websocket server, which runs on a separate VM at OFFIS. The Villas node should forward the data it receives from the sender to this server.

Thank you for your help.

binary_sender_villas_client_websocket.py
villas_websocket_conf.txt
ws_server.py

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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