Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Geschrieben

Hi,

I have deployed a network of motion sensors on the campus that have fairly simple construction 

RPI zero -> MasterBrick -> motion 2.0 bricklet.

a python  script as a service is running on the units with a callback function to send motion as MQTT message.

Sometimes (once every 2 weeks) one of 15 units stops motion detection.  The script is still running. And restarting it does not fix the problem.

Rebooting a whole sensor with RPI is a solution to a problem.  But I have no idea how to detect a problem appeared.

TIA 

Geschrieben

Hi,

By rebooting the Pi you mean power cycling it or just a software reboot? A software reboot does not restart the connected Master Brick, so this would indicate, that your problem is not the Brick or the Motion Bricklet. If this happens again, it would be interesting to see, if you can still connect to the Pi with Brick Viewer and if so, whether the Motion Bricklet is still working. Also the Brick Daemon log (/var/log/brickd.log) could be useful.

Geschrieben
  • Autor

I just rebooted the RPI remotely and that fixes the problem, so it looks like the callback function "expired" I have not checked that unit with Brick Viewer but I'm quite sure it was running fine as that motion sensor does have a  temp sensor that was reporting the temps fine all that time when the motion sensor was stuck.  Next time I catch that  I will try to connect with the BrickViewer at that very moment it fails.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.