Git Product home page Git Product logo

Comments (6)

SalvoVirga avatar SalvoVirga commented on September 24, 2024

Indeed, we had the same problem some time ago. We couldn't find a way to configure the time on the SmartPad, changing the time from the Windows7 Embedded system doesn't do the job. We report bugs/errors to KUKA on a regular basis, I believe we already pointed that out to them.

Since we had the problem, we provide the solution!
What you need is to synchronize the two systems' clock using a Network Time Protocol (NTP) server, simply install an NTP server on the Linux machine and configure it to work on the KONI subnet. In the config.txt file on the Sunrise/Java side there is a flag to use a NTP server, set it to true. Run the ROSMonitor or ROSSmartServo and the times will be synchronized, they take few seconds (maybe less) to converge. If you set it to true and you don't have a NTP server on Linux, the Java application will hang doing nothing. On the SmartPad you should get a notification of which TimeProvider is the application using.
Ask more if you need, @marcoesposito1988 knows better but he is away this week.

Be aware that with the current implementation, using the NTP functionality reduces a bit the performances of the Java application. But you won't probably see the difference, we discovered that recently looking for something else, we will soon release a new refactoring of iiwa_stack that takes care, also, of this.

from iiwa_stack.

Haas11 avatar Haas11 commented on September 24, 2024

Thank you so much!
Indeed an NTP server solves this issue.

from iiwa_stack.

ahundt avatar ahundt commented on September 24, 2024

Hey this sounds like it will be relevant to me, could @Haas11 could you maybe add what you did to the wiki? Did you connect to windows7 with a keyboard/mouse to set up the NTP server or can it be done from Java?

Thanks!

from iiwa_stack.

SalvoVirga avatar SalvoVirga commented on September 24, 2024

Within iiwa_stack is all done on the Java side, you just need an NTP server on the Linux machine (configured to work on the right subnet) and to set the flag to true in that config.txt file. Then our Java code takes care of everything.

from iiwa_stack.

Haas11 avatar Haas11 commented on September 24, 2024

Yes. There's a standard ntp application in the Ubuntu repository. Just install through terminal, Modify the configuration file of that app to broadcast it's time to the appropriate ethernet port.
Then set the flag true in config.text, deploy through workbench and it should indicate it on the SmartPad.

from iiwa_stack.

ahundt avatar ahundt commented on September 24, 2024

cool, thanks!

from iiwa_stack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.