imx8m-plus isp systemd service synchronization

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx8m-plus isp systemd service synchronization

246 Views
malik_cisse
Senior Contributor I

English translation:

Hello,

We are using a systemd service that starts an ISP-based video pipeline. The script looks like this:

[Unit]
Description=My user application
Requires=imx8-isp.service
After=imx8-isp.service
StartLimitIntervalSec=300
StartLimitBurst=3
[Service]
ExecStartPre=/bin/sleep 10
ExecStart=/usr/bin/run-my-qt-app.sh
Restart=always
[Install]
WantedBy=multi-user.target

We would now like to get rid of the "sleep 10" command, which was added because the isp.service does not communicate its "readiness" to systemd.

This is because the isp daemon (isp_media_server) is blocking.

One idea would be to replace the "sleep 10" command with a "isp_media_server" process check script that regularly checks for the existence of the process. However, in my opinion this is not the best way to do it.

Do you have any feedback on this?

Thank you very much,

0 Kudos
Reply
1 Reply

237 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

The issue is because the ISP requieres at least 10msec to enable, i guess if you want faster you can avoid other peripherals.

Regards

 

0 Kudos
Reply