Read the statement by Michael Teeuw here.
MMM-GroveGestures / Python script is terminated
-
@Egnos
Try 10000 or 32000. -
@Egnos
However the “terminated” message itself is nothing wrong.
“Too often without any gesture triggered” cases only be the issue. -
@MMRIZE said in MMM-GroveGestures / Python script is terminated:
Try 10000 or 32000.
I think I tried 10000 and nothing changed, I’ll try 32000
@MMRIZE said in MMM-GroveGestures / Python script is terminated:
“Too often without any gesture triggered” cases only be the issue.
Like in my case:
[04.09.2023 08:52.13.012] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 08:52.13.514] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 08:52.13.706] [LOG] Keyboard Interrupted [04.09.2023 08:52.13.707] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 08:52.14.208] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 08:52.14.414] [LOG] [GESTURE] ORIGIN:wake-up finish. [04.09.2023 08:52.14.547] [LOG] [GESTURE] ORIGIN:Paj7620 initialize register finished. [04.09.2023 09:00.23.783] [INFO] Calendar-Fetcher: Broadcasting 12 events. [04.09.2023 09:02.38.447] [LOG] Keyboard Interrupted [04.09.2023 09:02.38.448] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 09:02.38.951] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 09:02.39.143] [LOG] Keyboard Interrupted [04.09.2023 09:02.39.147] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 09:02.39.650] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 09:02.39.811] [LOG] [GESTURE] ORIGIN:wake-up finish. [04.09.2023 09:02.39.932] [LOG] [GESTURE] ORIGIN:Paj7620 initialize register finished. [04.09.2023 09:08.15.627] [LOG] Keyboard Interrupted [04.09.2023 09:08.15.629] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 09:08.16.131] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 09:08.16.345] [LOG] Keyboard Interrupted [04.09.2023 09:08.16.348] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 09:08.16.852] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 09:08.17.038] [LOG] [GESTURE] ORIGIN:wake-up finish. [04.09.2023 09:08.17.158] [LOG] [GESTURE] ORIGIN:Paj7620 initialize register finished. [04.09.2023 09:31.42.854] [LOG] Keyboard Interrupted [04.09.2023 09:31.42.859] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 09:31.43.364] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 09:31.43.517] [LOG] [GESTURE] ORIGIN:wake-up finish. [04.09.2023 09:31.43.638] [LOG] [GESTURE] ORIGIN:Paj7620 initialize register finished. [04.09.2023 10:00.24.425] [INFO] Calendar-Fetcher: Broadcasting 12 events. [04.09.2023 10:17.30.788] [LOG] Keyboard Interrupted [04.09.2023 10:17.30.792] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 10:17.31.298] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 10:17.31.451] [LOG] Keyboard Interrupted [04.09.2023 10:17.31.452] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 10:17.31.953] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 10:17.32.137] [LOG] [GESTURE] ORIGIN:wake-up finish. [04.09.2023 10:17.32.252] [LOG] [GESTURE] ORIGIN:Paj7620 initialize register finished. [04.09.2023 10:17.38.740] [LOG] Keyboard Interrupted [04.09.2023 10:17.38.741] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 10:17.39.243] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 10:17.39.462] [LOG] Keyboard Interrupted [04.09.2023 10:17.39.464] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 10:17.39.973] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 10:17.40.117] [LOG] [GESTURE] ORIGIN:wake-up finish. [04.09.2023 10:17.40.242] [LOG] [GESTURE] ORIGIN:Paj7620 initialize register finished. [04.09.2023 11:00.24.921] [INFO] Calendar-Fetcher: Broadcasting 12 events. [04.09.2023 11:09.56.054] [LOG] Keyboard Interrupted [04.09.2023 11:09.56.059] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 11:09.56.573] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 11:09.56.793] [LOG] Keyboard Interrupted [04.09.2023 11:09.56.802] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 11:09.57.364] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 11:09.57.631] [LOG] [GESTURE] ORIGIN:wake-up finish. [04.09.2023 11:09.57.754] [LOG] [GESTURE] ORIGIN:Paj7620 initialize register finished. [04.09.2023 12:00.25.300] [INFO] Calendar-Fetcher: Broadcasting 12 events. [04.09.2023 12:50.17.726] [LOG] Keyboard Interrupted [04.09.2023 12:50.17.736] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 12:50.18.243] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 12:50.18.496] [LOG] Keyboard Interrupted [04.09.2023 12:50.18.499] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 12:50.19.072] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 12:50.19.270] [LOG] [GESTURE] ORIGIN:wake-up finish. [04.09.2023 12:50.19.393] [LOG] [GESTURE] ORIGIN:Paj7620 initialize register finished. [04.09.2023 12:59.32.764] [LOG] Keyboard Interrupted [04.09.2023 12:59.32.765] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 12:59.33.269] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 12:59.33.470] [LOG] Keyboard Interrupted [04.09.2023 12:59.33.479] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 12:59.33.987] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 12:59.34.190] [LOG] [GESTURE] ORIGIN:wake-up finish. [04.09.2023 12:59.34.340] [LOG] [GESTURE] ORIGIN:Paj7620 initialize register finished. [04.09.2023 13:00.25.675] [INFO] Calendar-Fetcher: Broadcasting 12 events. [04.09.2023 13:11.28.559] [LOG] [SPOTIFY - Daniele] Will retry in 5 seconds ... [04.09.2023 13:41.29.947] [LOG] Keyboard Interrupted [04.09.2023 13:41.29.948] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 13:41.30.452] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 13:41.30.681] [LOG] Keyboard Interrupted [04.09.2023 13:41.30.686] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 13:41.31.188] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 13:41.31.384] [LOG] [GESTURE] ORIGIN:wake-up finish. [04.09.2023 13:41.31.487] [LOG] [GESTURE] ORIGIN:Paj7620 initialize register finished. [04.09.2023 14:00.26.016] [INFO] Calendar-Fetcher: Broadcasting 12 events. [04.09.2023 14:06.09.575] [LOG] Keyboard Interrupted [04.09.2023 14:06.09.576] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 14:06.10.364] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 14:06.10.574] [LOG] Keyboard Interrupted [04.09.2023 14:06.10.575] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 14:06.11.078] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 14:06.11.259] [LOG] [GESTURE] ORIGIN:wake-up finish. [04.09.2023 14:06.11.398] [LOG] [GESTURE] ORIGIN:Paj7620 initialize register finished. [04.09.2023 14:39.19.948] [LOG] Keyboard Interrupted [04.09.2023 14:39.19.957] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 14:39.20.460] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 14:39.20.983] [LOG] Keyboard Interrupted [04.09.2023 14:39.20.985] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 14:39.21.488] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 14:39.21.704] [LOG] [GESTURE] ORIGIN:wake-up finish. [04.09.2023 14:39.21.806] [LOG] [GESTURE] ORIGIN:Paj7620 initialize register finished. [04.09.2023 14:46.27.234] [LOG] [SPOTIFY - Daniele] Will retry in 5 seconds ... [04.09.2023 15:00.26.370] [INFO] Calendar-Fetcher: Broadcasting 12 events. [04.09.2023 15:42.11.128] [LOG] Keyboard Interrupted [04.09.2023 15:42.11.130] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 15:42.11.634] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 15:42.12.259] [LOG] [GESTURE] ORIGIN:wake-up finish. [04.09.2023 15:42.12.268] [LOG] [GESTURE] ORIGIN:Paj7620 initialize register finished. [04.09.2023 15:51.34.615] [LOG] Keyboard Interrupted [04.09.2023 15:51.34.616] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 15:51.35.118] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 15:51.35.314] [LOG] Keyboard Interrupted [04.09.2023 15:51.35.315] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 15:51.35.820] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 15:51.35.999] [LOG] [GESTURE] ORIGIN:wake-up finish. [04.09.2023 15:51.36.125] [LOG] [GESTURE] ORIGIN:Paj7620 initialize register finished. [04.09.2023 15:53.18.947] [LOG] Keyboard Interrupted [04.09.2023 15:53.18.950] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 15:53.19.465] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 15:53.19.733] [LOG] Keyboard Interrupted [04.09.2023 15:53.19.736] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 15:53.20.241] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 15:53.20.474] [LOG] Keyboard Interrupted [04.09.2023 15:53.20.475] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 15:53.20.980] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 15:53.21.250] [LOG] Keyboard Interrupted [04.09.2023 15:53.21.253] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 15:53.21.760] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 15:53.22.249] [LOG] [GESTURE] ORIGIN:wake-up finish. [04.09.2023 15:53.22.250] [LOG] [GESTURE] ORIGIN:Paj7620 initialize register finished. [04.09.2023 16:00.26.809] [INFO] Calendar-Fetcher: Broadcasting 12 events. [04.09.2023 16:07.05.688] [LOG] Keyboard Interrupted [04.09.2023 16:07.05.690] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 16:07.06.193] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 16:07.06.363] [LOG] [GESTURE] ORIGIN:wake-up finish. [04.09.2023 16:07.06.474] [LOG] [GESTURE] ORIGIN:Paj7620 initialize register finished. [04.09.2023 16:07.55.429] [LOG] Keyboard Interrupted [04.09.2023 16:07.55.432] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 16:07.55.935] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 16:07.56.121] [LOG] Keyboard Interrupted [04.09.2023 16:07.56.122] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 16:07.56.626] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 16:07.56.815] [LOG] [GESTURE] ORIGIN:wake-up finish. [04.09.2023 16:07.56.969] [LOG] [GESTURE] ORIGIN:Paj7620 initialize register finished.
-
@Egnos
By spec, PAJ7620’s MAX i2c speed is 400Kbit/s (400,000) But sometimes Raspberry PI i2c cannot handle fast devices.Have you tried testing the sensor?
cd ~/MagicMirror/modules/MMM-GroveGestures/py python gesture_print.py
And there could be other possible causes;
- Pins are not stably connected
- Too long cabling, > 30cm. The signal would be weaker or noisy.
- I2C frequency is still too high. Set slower (lesser number than your trials)
- I2C Bus overloaded, if you are connecting other i2c connections. (maybe more than 3 or 4s)
-
@MMRIZE said in MMM-GroveGestures / Python script is terminated:
Have you tried testing the sensor?
Yes, and also when appear
[GESTURE] Python script is terminated. It will restart soon.
the gesture works well.@MMRIZE said in MMM-GroveGestures / Python script is terminated:
Pins are not stably connected
I exclude it.
@MMRIZE said in MMM-GroveGestures / Python script is terminated:
Too long cabling, > 30cm. The signal would be weaker or noisy.
It will surely be longer, 40 or 50 cm
@MMRIZE said in MMM-GroveGestures / Python script is terminated:
I2C frequency is still too high. Set slower (lesser number than your trials)
I tried all speeds, maybe with 32000 seems better.
From this value (32000) do I go down or up?@MMRIZE said in MMM-GroveGestures / Python script is terminated:
I2C Bus overloaded, if you are connecting other i2c connections. (maybe more than 3 or 4s)
I exclude it. I have only Paj7620 and PIR sensor on GPIO…I’m sure with the old version v2.23 of MM I always had the error messages but the gesture sensor always worked, with the new version v2.24.0 of MM sometimes the sensor stops working and I have to redo this procedure
https://github.com/MMRIZE/MMM-GroveGestures#install-hw@MMRIZE Thanks for your precious advises.
-
@Egnos said in MMM-GroveGestures / Python script is terminated:
Too long cabling, > 30cm. The signal would be weaker or noisy.
It will surely be longer, 40 or 50 cm
Hopefully not, over 30cm long cabling could be the issue. (You wrote 40~50cm, is it right?)
-
@MMRIZE Yes, from the GPIO to the sensor there will be about 40/45 cm…
-
@Egnos
40~45cm seems somewhat too long. Could you build it shorter? or use a lower frequency than usual case.
Ref. these; -
@MMRIZE The path of the sensor cables (Yellow, red, white and black) is this:
Maybe I could shorten the wires a bit…
Thanks for the links.
-
@Egnos Maybe Sparkfun Midpoint and Endpoint to give you ample length. They tout over 100’ with those devices.