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

    Shutdown process / status display.

    Axon series
    2
    2
    307
    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áček 1 Reply Last reply Reply Quote 0
      • Martin Kudláček
        Martin Kudláček administrators @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
        • First post
          Last post