Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Orange pi zero install problem #104

Open
lasuridze opened this issue Jun 6, 2021 · 2 comments
Open

Orange pi zero install problem #104

lasuridze opened this issue Jun 6, 2021 · 2 comments

Comments

@lasuridze
Copy link

lasuridze commented Jun 6, 2021

please help

Error in plugin: [url=http://sensor:7575]: Get "http://sensor:7575": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

sensor_bitter-resonance-06.06.21_17_14_43_(+0400).txt

C:\Users\lasur\Downloads\balena-sense-2.0.0\balena-sense-2.0.0>balena push g_laska/sensor
[Info] Starting build for sensor, user g_laska
[Info] Dashboard link: https://dashboard.balena-cloud.com/apps/1834675/devices
[connector] [=========================================================] 100%
[sensor] [=========================================================] 100%
[dashboard] [=========================================================] 100%
[Info] Uploading images
[Success] Successfully uploaded images
[Info] Built on arm02
[Success] Release successfully created!
[Info] Release: f286d4819eb0e6a6be56996fcb6e0c6a (id: 1822551)
[Info] ┌───────────┬────────────┬────────────┐
[Info] │ Service │ Image Size │ Build Time │
[Info] ├───────────┼────────────┼────────────┤
[Info] │ influxdb │ 252.34 MB │ 21 seconds │
[Info] ├───────────┼────────────┼────────────┤
[Info] │ dashboard │ 205.47 MB │ 19 seconds │
[Info] ├───────────┼────────────┼────────────┤
[Info] │ sensor │ 278.12 MB │ 25 seconds │
[Info] ├───────────┼────────────┼────────────┤
[Info] │ connector │ 278.84 MB │ 28 seconds │
[Info] └───────────┴────────────┴────────────┘
[Info] Build finished in 1 minute, 39 seconds


\
\
>/7
.-(6'
(=
./\ ) \ | / / | / > / j < _\ _.-' : ``. \ r=._\ .
<\\_ \ .-.
\ r-7 -. ._ ' .
`, -.7 7) )
/ | ' / `-.

|| .'
\ (
>\ >
,.-' >.'
<.'_.''
<'

::::::::::::::::::sensr error
File "/usr/local/lib/python3.9/threading.py", line 954, in _bootstrap_inner
sensor self.run()
sensor File "/usr/local/lib/python3.9/threading.py", line 892, in run
sensor self._target(*self._args, **self._kwargs)
sensor File "/usr/src/app/sensor.py", line 64, in background_web
sensor balenasense = balenaSense()
sensor File "/usr/src/app/sensor.py", line 30, in init
sensor self.device_count = idetect.detect_iio_sensors()
sensor File "/usr/src/app/idetect.py", line 81, in detect_iio_sensors
sensor bus = SMBus(bus_number)
sensor File "/usr/local/lib/python3.9/site-packages/smbus2/smbus2.py", line 280, in init
sensor self.open(bus)
sensor File "/usr/local/lib/python3.9/site-packages/smbus2/smbus2.py", line 310, in open
sensor self.fd = os.open(filepath, os.O_RDWR)
sensor FileNotFoundError: [Errno 2] No such file or directory: '/dev/i2c-1'

@alanb128
Copy link
Contributor

alanb128 commented Jun 7, 2021

It looks like the Orange Pi Zero does not use the hard-coded I2C bus number 1. I'm testing an addition to the sensor block so that you can specify a different bus. I'll post more information here when that is available.

@alanb128
Copy link
Contributor

alanb128 commented Jun 9, 2021

@lasuridze can you try pulling the latest version of the sensor block and setting the BUS_NUMBER service variable to 0 (or whichever bus you are using?)

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

No branches or pull requests

2 participants