Since the virtual box is difficult to use, I moved the simulator to a Ubuntu 24.04 system, and it runs ok, and the ‘client_discovery’ example can find the simulator and make a connection to it.
Then I downloaded the openDAQ source code from GitHub, successfully compiled it, and replaced the application_simulator
program and all dynamic library files in the original program path. The program runs successfully, and the logs printed are consistent with the version on VirtualBox.
However, The ‘client_discovery’ program can detect the simulator, but the program crashes when attempting to connect (using instance.addDevice
). I compiled a debug version of the dynamic library and obtained the error message shown in the screenshot below. Unfortunately, I still cannot determine the root cause or figure out how to fix this issue.
and the following is the log of the simulator:
Thank you in advance for your help.