1. Home
    1. Dashboard
    2. Search
  2. Forum
    1. Unresolved Threads
    2. Members
      1. Recent Activities
      2. Users Online
      3. Team Members
      4. Search Members
      5. Trophys
  3. Articles
  4. Blog
  5. Videos
  6. Jobs
  7. Shop
    1. Orders
  • Login or register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Forum
  3. Cobot Help and Discussion Center
  4. KUKA LBR IIWA
Your browser does not support videos RoboDK Software for simulation and programming
Visit our Mainsponsor
IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Sponsored Ads

FRI quality and Latency

  • hsadeghian
  • August 22, 2018 at 5:46 AM
  • Thread is Resolved
  • hsadeghian
    Trophies
    3
    Posts
    18
    • August 22, 2018 at 5:46 AM
    • #1

    Dear all,
    I am working with FRI c++ SDK on a remote computer with ubuntu (not real time) and windows.
    The latency is 11 ms and the quality of FRI connection is poor, obtained by following commands

    FRIChannelInformation chanInfo=friSession.getFRIChannelInformation();
    chanInfo.getLatency()
    chanInfo.getQuality()

    Nevertheless, the system works fine in position mode with sampling rate set to 5ms under above conditions. However, in torque mode it sounds unstable.
    How can increase the quality and decrease the latency.
    Regards.

  • DrG
    Trophies
    3
    Posts
    39
    • August 24, 2018 at 12:20 PM
    • #2

    Hello hsedaghian,

    well, the answer for the "poor" rating is "(not real time) Ubuntu or Windows".
    "However, in torque mode it sounds unstable"

    This is the consequence.

    Background: On the FRI Channel, the Timing is computed w.r.t of the exchanged telegrams.
    If the Timing of the datastream does not keep the realtime-requirements (e.g. equidistancy), the Connection is derated.

    Note: The Problem with common "all-purpose" OSes (Non realtime OS), like Windows or Linux is, that they provide tremendous bulk Transfer and dataexchange capabilities for Mainstream usage (e.g. Transfer 1Gig of Pictures in low/Zero time).
    But this requirement does not care about a few milliseconds sooner or later...

    Therfore: If you want to do realtime control (e.g. for torque control - faster than 5msec), you must make shure to keep the realtime condition, that means: Keep the effective answerrate below 5msec (each telegram must reach the controllerbox within this timeslot).
    This will become difficult with a Standard Mainstream OS, like Windows or Ubuntu.
    You might try, but the Connection will remain unstable (as already reported).
    You could try to ease the pain, as you could try:


      • Check the Firewall Settings,

      • check the OSses Network-Configuration for the FRI-Ethernet Port (e.g. prioritize the port, if possible),

      • check the network-Driver.

    I personally would strongly advice: Switch to an RTOS -> e.g. if you are already using linux, you could try to use the Linux Realtime patch, AND get the FRI Application into realtime mode AND make shure, that the Linux Ethernet-device-Driver is realtime able (has no further delays) (AND btw make shure, that the PCs Hardware is realtime-able, e.g. by making shure, that no hidden BIOS events kill the realtime...).

    hope that helped,
    DrG

  • hsadeghian
    Trophies
    3
    Posts
    18
    • August 24, 2018 at 12:51 PM
    • #3

    Dear DrG,
    I appreciate for your information.
    I tried to install lowlatency ubuntu package
    https://adamstechblog.com/2017/08/21/dep…rver-16-04-lts/

    the latency is same as before. Now i would like to install a hard realtime patch for ubuntu. can you tell me how to do that?
    btw, what do you mean by "get the FRI Application into realtime mode", is there any setting on fri codes, that must be checked after installing realtime?

    Edited once, last by hsadeghian (August 24, 2018 at 1:29 PM).

  • DrG
    Trophies
    3
    Posts
    39
    • August 29, 2018 at 10:01 AM
    • #4

    Hello hsedaghian,
    "Latency"...
    could you describe your Network-Topoloty in a bit more Detail..

    What is the desired Timing rate (cycle time)?
    Is the Ethernet Connection between the KUKA Controller box and the FRI Client PC Point to Point with a direct cable?
    (Or is there some additional Network Hardware in between - like Switches?)

    Is the Ethernet Connection shared with additional stuff?
    You also could try to use the KONI Option of FRI (-> Refer to the Manual for Details) to reserve a dedicated direct Connection.

    DrG

  • hsadeghian
    Trophies
    3
    Posts
    18
    • August 30, 2018 at 9:45 AM
    • #5

    I am connecting the remote computer Lan port directly to the KONI port by cross cable...
    The sampling rate set in the java program is 5 ms. when I set the sampling rate to 2 ms the latency is 5ms by the above command.
    Thus I feel that the command latency issues the whole send and receive time in between two computers. Thus, if I am right, the delay between two computer in is only 1 ms. isn't it ?

  • DrG
    Trophies
    3
    Posts
    39
    • August 30, 2018 at 11:12 AM
    • #6

    Hello hsedaghian,

    Quote from hsadeghian


    I am connecting the remote computer Lan port directly to the KONI port by cross cable...
    Thus I feel that the command latency issues the whole send and receive time in between two computers.

    Cool - KONI, direct Connection...
    ... in this case, you have to Focus on the Client side Computer and its application.

    Latency: Yes, this is the roundtrip Timing
    ControllerboxFRIServer -> TransmissionToClientComputer -> NetworkstackClientComputer -> FRIClientApplicationProcessTime -> NetworkStackClientcomputer -> TransmissionToControllerbox -> ControllerboxFRIServer


    Quote from hsadeghian


    Thus, if I am right, the delay between two computer in is only 1 ms. isn't it ?


    I don't understand this number "1msec". From the FRI Hostside, the only thing one can measure is the total time, an Information was in the Loop (Time spent between send and receive).

    Quote


    The sampling rate set in the java program is 5 ms. when I set the sampling rate to 2 ms the latency is 5ms by the above command.

    But I am not really surprised about the 5msec total latency, if you run a 2msec cycle rate.

    DrG

  • hsadeghian
    Trophies
    3
    Posts
    18
    • August 31, 2018 at 8:34 PM
    • #7

    Thanks DRG,
    when we set the sampling rate on 2ms, the latency is 5 ms. How much the latency is supposed to be if I install a real time OS on client?

  • DrG
    Trophies
    3
    Posts
    39
    • September 4, 2018 at 3:06 PM
    • #8

    Hello Hseadeghian,

    Quote from hsadeghian


    How much the latency is supposed to be if I install a real time OS on client?


    You should focus on the jitter statistics, (friSession.getFRIChannelInformation().getJitter();)

    since especially the jitter has a huge influence on the grading "poor" "good" "perfect" .
    And especially in the jitter will be the essential difference between an RTOS and an all purpose OS.

    DrG

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics

Job Postings

  • Anyware Robotics is hiring!

    yzhou377 February 23, 2025 at 4:54 AM
  • How to see your Job Posting (search or recruit) here in Robot-Forum.com

    Werner Hampel November 18, 2021 at 3:44 PM
Your browser does not support videos RoboDK Software for simulation and programming

Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Thread Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™
As a registered Member:
* You will see no Google advertising
* You can translate posts into your local language
* You can ask questions or help the community with your knowledge
* You can thank the authors for their help
* You can receive notifications of replies or new topics on request
* We do not sell your data - we promise

JOIN OUR GREAT ROBOTICS COMMUNITY.
Don’t have an account yet? Register yourself now and be a part of our community!
Register Yourself Lost Password
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on Google Play
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on the App Store
Download