Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The problem to launch the python file at system startup. #65

Open
PaulLos opened this issue Oct 29, 2018 · 0 comments
Open

The problem to launch the python file at system startup. #65

PaulLos opened this issue Oct 29, 2018 · 0 comments

Comments

@PaulLos
Copy link

PaulLos commented Oct 29, 2018

Hello!

There is a problem with the launch of a similar program.

Platform - Raspberry Pi 3 B+, OS Raspbian with a graphic shell.
The script is written in Python 2.7 -
Read_sim_QQ.py (https://github.com/PaulLos/RPi-QQ.git)

In the read cycle, the program additionally transfers card data to the server.

The problem is as follows:

When a script is started by a command from a terminal window, the program launch is not always correct, namely, the program starts, but the reading does not always start.

It was noticed that if a sufficiently long time more than 5 minutes passes after the system is turned on or restarted, the script works stably, but if I start the program immediately after the system starts, for example, within a minute, the script does not work correctly, but if you interrupt it CTL> C and restart, everything starts working correctly. And then you can repeatedly stop and start this software - everything works.

The problem was discovered when I added the launch to the autostart file at system startup.

Thank.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant