Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

CPU Temperature

straccio80
2015-06-16
2019-08-21
<< < 1 2 (Page 2 of 2)
  • josepmariarams - 2017-09-16

    Dears.

    I have try to use this method to read the temperature in a patched_rt kernel.

    I had to pass the function to an assync task, if not watchdog rises.

    But passing to assink, the jitter in main task increases to some ms. I sopose that is caused because the external call is made with same priorities as cidesys is running and the main task interrupt is blocked.

    Can I call the system function changing process owner or priority or....

     
  • Andreas-K - 2019-08-19

    Hello everyone

    I am a programming novice. I tried to use the function described in previous
    posts.
    But I am not sure what I am doing wrong. I do not get a temperature back.
    When I type it in the command window of the Pi I get a temperature.

    I only want to read it every 2000th cycle.

    Thanks for any suggestions.

    Andreas

    IMG: 2019

     
  • eschwellinger

    eschwellinger - 2019-08-20

    Hi,

    did you enable the command in /etc/CODESYSControl_User.cfg ?

    [SysProcess]
    Command.0=shutdown
    Command.1=yourshellcommand

    BR
    Edwin

     
  • Andreas-K - 2019-08-20

    Dear Edwin

    I added your suggestions to the CODESYSControl.cfg file but it is still not working.
    I bootet the whole system.

    Any other hints?

    Thanks Andreas

    IMG: Command.png

     
  • eschwellinger

    eschwellinger - 2019-08-20

    sorry remove it from /etc/CODESYSControl.cfg
    my fault it should be in /etc/CODESYSControl_User.cfg
    and
    yourshellcommand = vcgencmd

    or possible is (either allow single commands or all):
    [SysProcess] Command=AllowAll

    to allow every shell command
    BR
    Edwin

     
  • Andreas-K - 2019-08-21

    Thank you Edwin, now it
    works.
    I should read more carefully.

    Best regards
    Andreas

     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.