MFRC522-python icon indicating copy to clipboard operation
MFRC522-python copied to clipboard

The problem to launch the python file at system startup.

Open PaulLos opened this issue 6 years ago • 0 comments

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.

PaulLos avatar Oct 29 '18 13:10 PaulLos