Automate mfser interface RS-232 mode
- This topic has 4 replies, 2 voices, and was last updated 9 years, 9 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You cannot reply to this topic.
Home › Forums › Conduit: AEP Model › Automate mfser interface RS-232 mode
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.
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
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 ?
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
Julien,
Glad to hear you’ve got things working.
Cheers,
Jeff