Automate mfser interface RS-232 mode

Home Forums Conduit: AEP Model Automate mfser interface RS-232 mode

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #16548
    Julien DEV
    Participant

    Hi,

    I use Conduit AEP Model with MTAC-MFSER and I have to Set RS-232 mode with this line at each restart of Conduit :
    $ mts-io-sysfs store mfser/serial-mode rs232

    Is it possible to automate this ?

    Thanks for your help.

    #16554
    Jeff Hatch
    Keymaster

    Julien,

    If you are using Node-RED you should be able to execute a system call to run the mts-io-sysfs command once in your flow. If you are not, you can either add this command to one of the later init scripts during boot or add your own init script to simply execute this command at start. If you add an init script remember that it will be overwritten when a firmware upgrade is done.

    A third alternative would be to use a simple custom application that only executes this command every time it starts, though that might be a little bit of overkill.

    Jeff

    #16745
    Julien DEV
    Participant

    Hi,

    Thank you very much for your reply and sorry for my reaction time.
    (I did not receive notification of response)

    Could you explain me where are the later init scripts plz ?

    • This reply was modified 7 years, 3 months ago by Julien DEV.
    #16747
    Julien DEV
    Participant

    For information I do this and it’s ok.
    Thanks

    nano /etc/init.d/mystart.sh
    —————-
    #!/bin/sh
    mts-io-sysfs store mfser/serial-mode rs232
    exit 0
    —————-
    chmod a+x /etc/init.d/mystart.sh
    ln -s /etc/init.d/mystart.sh /etc/rc3.d/S99mystart.sh
    ln -s /etc/init.d/mystart.sh /etc/rc5.d/S99mystart.sh

    #16748
    Jeff Hatch
    Keymaster

    Julien,

    Glad to hear you’ve got things working.

    Cheers,

    Jeff

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.