• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Shutdown process / status display.

    Scheduled Pinned Locked Moved Axon series
    2 Posts 2 Posters 1.3k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      BeerGeek
      last edited by

      I want to display the "Off" status on Axon. When we switch OS to shutdown mode (shutdown -h now), I want to turn on the green LED when the user can switch power off. So I will avoid violating the flash card and the os file system.

      Can't find a solution, maybe there are some standard solutions?

      Martin KudláčekM 1 Reply Last reply
      Reply Quote 0
      • Martin KudláčekM
        Martin Kudláček @BeerGeek
        last edited by

        Hi @beergeek,
        there is probably a number of ways how to do it. This could be one of them:

        • create /usr/local/sbin/shutdown and add the exec bit to it
        • in the script, specify the logic - get the IOs into safe state and/or light up the user LEDs
        • at the end of the script, call shutdown -h now

        The logic can use the SysFS approach such as this:

        echo 1 > /run/unipi/io_group1/do_1_01/do_value # sets DO1.1 to true

        Although you don't have the user LEDs available in the SysFS right now. For that, you can use mbpoll and set it via ModbusTCP.

        Best regards,
        Martin

        1 Reply Last reply
        Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post