Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

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.

Orange pi zero, ping hangs up

Featured Replies

Hi there! I has a OPi zero board on armbian ubuntu os.  There is a python scrypt that ping server. Scrypt starts with my service.

service code:

[Unit]
Description=My Script Service
After=multi-user.target
[Service]
Type=simple
ExecStart=/usr/bin/sudo /usr/bin/python /root/test/qr2.py
RemainAfterExit=no
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target

python ping server like:

try:
	os.system('ping ' + ip + ' -c 4')
    # or 
    # s.scall('ping ' + ip + ' -c 4 )
except:
	print 'ping error'

Sometimes If i start system after power supply scrypt is starting, but then hangs on ping function. In Htop (image) i can see ping process.  There are no python errors or exceptions. It just hangs. But if i use console command to ping  server ip while scrypt hans, it pings well.

If a starts scrypt manualy it works well, no hanging. Also if i execute reboot command in concole, then after restart scrypt do not hangs up. 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

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.