I wrote my library on PHP: https://github.com/VBaczynski/phpi2c
And the sensor reader: https://github.com/VBaczynski/bmp-sensor-reader
It works much faster then the Python version. (I don't know why...)
V_Baczynski
@V_Baczynski
Best posts made by V_Baczynski
-
RE: Driver for BMP085 pressure sensor
Latest posts made by V_Baczynski
-
RE: Omega2+ bricked (with LEDE fw) [Resolved]
I've found my old school 128Mb USB flash drive and finally recover the system with omega2p-v0.1.10-b160.bin firmware.
-
RE: Omega2+ bricked (with LEDE fw) [Resolved]
@Chris-Stratton Okay, it's not 'bricked' it's useless (without working Internet and working USB).
I need to configure WiFi. By default it is disabled:
root@LEDE:/# cat /etc/config/wireless config wifi-device 'radio0' option type 'mac80211' option channel '11' option hwmode '11g' option path 'platform/10300000.wmac' option htmode 'HT20' option disabled '1' config wifi-iface 'default_radio0' option device 'radio0' option network 'lan' option mode 'ap' option ssid 'LEDE' option encryption 'none' root@LEDE:/# cat /etc/config/network config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config globals 'globals' option ula_prefix 'IPv6_HERE' config interface 'lan' option type 'bridge' option ifname 'eth0' option proto 'static' option ipaddr '192.168.1.1' option netmask '255.255.255.0' option ip6assign '60' config device 'lan_dev' option name 'eth0' option macaddr 'MAC_HERE' config switch option name 'switch0' option reset '1' option enable_vlan '0'
As I mentioned before, USB recovery from U-Boot doesn't work and I don't know why.
-
RE: Omega2+ bricked (with LEDE fw) [Resolved]
@Jackdaw USB & Internet doesn't work. I assume that WiFi should be configured manually, but I can't find how to do this properly.
-
Omega2+ bricked (with LEDE fw) [Resolved]
Hello.
I've uploaded firmware to my Omega2+ and now it's 'bricked': OS works but WiFi and USB doesn't.
sysupgrade omega2p-squashfs-sysupgrade.bin
(without -n option)
(fw from here: http://downloads.lede-project.org/releases/17.01.2/targets/ramips/mt7688/)I've tried to upload firmware from USB flash but got this error:
CMD_FAT: ** Unable to use usb 0:1 for fatload **
Upgrade F/W from USB storage failed.How to reverse it to original fw?
-
Omega Dock power issue?
Hello,
i've connected BMP280 sensor to Omega's Dock (3.3v) and collecting a temperature and pressure data via I2C. Sometimes i'm getting higher or lower values, as a result it looks like a spikes on graphs. I'm using a regular phone USB charger as a power source.
So, looks like the Dock is not good enough to stabilize the voltage? -
RE: Trying to use I2C with Python but Library not Found [RESOLVED]
Hello,
i have the same issue:
root@Omega-0417:~# opkg install pyOnionI2C
Unknown package 'pyOnionI2C'.
Collected errors:
opkg_install_cmd: Cannot install package pyOnionI2C.
root@Omega-0417:~#
root@Omega-0417:~# oupgrade
Device Firmware Version: 0.1.4 b330
Checking latest version online...
Repo Firmware Version: 0.1.4 b330
Comparing version numbers
Device firmware is up to date!How to fix it? opkg update did not helped.
-
RE: Driver for BMP085 pressure sensor
I wrote my library on PHP: https://github.com/VBaczynski/phpi2c
And the sensor reader: https://github.com/VBaczynski/bmp-sensor-reader
It works much faster then the Python version. (I don't know why...) -
RE: Driver for BMP085 pressure sensor
I've used BMP180.py (from https://community.onion.io/topic/120/python-code-for-bmp180, thanks to @pedro-baco), it works fine, but i've added converting to mm Hg:
p = Decimal( p / 1.3332239 )
p = round( p, 0 )
before:
p = p / 100
and
from decimal import Decimal
at the beginning (don't forget to run opkg install python-decimal).