Hello,
I’m trying to automate HMI tests against an ARsim simulation by connecting to the VNC Server object configured in my Automation Studio project.
I can connect with UltraVNC Viewer without problems, but every Python VNC client hangs or times out.
My setup:
Automation Studio version: 4.12.6.106
ETH interface in Simulation: 127.0.0.1 / 255.255.255.0
VNC Server object: VNC Server 3 → Authentication ON, Port: 5930 (also tried others in 5900–5931), UltraVNC Viewer: connects without issues
Python VNC libraries tested: asyncvnc2, regulad/pyvnc, vncdotool
All Python clients behave the same:
They succeed on TCP connect, but then hang waiting for the RFB banner or time out.
No matter which port I configure in the AS VNC Server object, the listener always ends up being the internal ARsim display-forwarding VNC endpoint, not the AS VNC server I configured.
Example (netstat):
netstat -ano | findstr :5930
TCP 0.0.0.0:5930 0.0.0.0:0 LISTENING 28912
TCP 127.0.0.1:5930 127.0.0.1:54547 ESTABLISHED 28912
TCP 127.0.0.1:5930 127.0.0.1:54599 ESTABLISHED 28912
TCP 127.0.0.1:54547 127.0.0.1:5930 ESTABLISHED 36160
TCP 127.0.0.1:54599 127.0.0.1:5930 ESTABLISHED 38812
C:\~>tasklist /fi "PID eq 28912"
Image Name PID Session Name Session# Mem Usage
========================= ======== ================ =========== ============
AR000.exe 28912 Console 1 227 560 K
C:\~>tasklist /fi "PID eq 36160"
Image Name PID Session Name Session# Mem Usage
========================= ======== ================ =========== ============
python.exe 36160 Console 1 47 960 K
C:\~>tasklist /fi "PID eq 38812"
Image Name PID Session Name Session# Mem Usage
========================= ======== ================ =========== ============
vncviewer.exe 38812 Console 1 23 940 K
-
How can I expose the actual VNC Server object from my Automation Studio project when running in Simulation mode?
-
How do I make ARsim bind the VNC Server object to the configured ETH simulation IP, rather than routing everything to AR000.exe’s internal VNC server?
-
Does ARsim fully support the Automation Studio VNC Server object during simulation, or is it only intended to work on real hardware?
-
Is there a recommended or documented way to make the VNC Server object reachable as a standard RFB VNC server (with the normal “RFB 003.x” handshake) when using ARsim?
I’m happy to provide project files or more logs if needed.
Thanks in advance,
Johan.