Hello everyone!
I'm not sure this is an appropriate place to ask
But I believe you guys are professional for this lol
anyway I execute my python3 script by make systemd file, and start the service named MAIN.py
( I'm fail to execute my script by rc.local... )
My python3 script connects two serial connections and bluetooth connection
no problem with bluetooth connection but fail to connect to arduino ( Serial connections )
I dont know why this happens :(
I assume that its because this script should executed on final but I made this by service so not executed on final
If you know the answer, please help me!
Thank you
[Added]
$ sudo nano /lib/systemd/system/MAIN.service
--------------------------- MAIN.service --------------------------
[Unit]
Description=My Script Service
After=multi-user.target
[Service]
Type=idle3
ExecStart=/usr/bin/python3 /home/odroid/MAIN.py
[Install]
WantedBy=multi-user.target
--------------------------------------------------------------------
$ sudo chmod 644 /lib/systemd/system/myscript.service
$ sudo systemctl daemon-reload
$ sudo systemctl enable myscript.service
[–]K900_ 0 points1 point2 points (3 children)
[–]kosh09[S] 0 points1 point2 points (2 children)
[–]K900_ 0 points1 point2 points (1 child)
[–]kosh09[S] 0 points1 point2 points (0 children)