@Paul-Austen said in Latest python I2c module issue:
from OmegaExpansion import onionI2C
Just tried the following minimal workaround
opkg remove pyOnionI2C
opkg install pyOnionI2C_0.4-1_mipsel_24kc.ipk
and this gets rid of the import error
Paul
@Paul-Austen said in Latest python I2c module issue:
from OmegaExpansion import onionI2C
Just tried the following minimal workaround
opkg remove pyOnionI2C
opkg install pyOnionI2C_0.4-1_mipsel_24kc.ipk
and this gets rid of the import error
Paul
@Paul-Austen my mistake the download URL should be http://repo.onion.io/omega2/packages/onion/
Initially I reset the Omega2 to factory settings using the following from a serial console
firstboot -y
sync
reboot
After setting up the wifi I then copied the following files to flash via scp
pyOmegaExpansion_0.4-1_mipsel_24kc.ipk
pyOnionI2C_0.4-1_mipsel_24kc.ipk
and then ran
opkg install pyOmegaExpansion_0.4-1_mipsel_24kc.ipk
opkg install pyOnionI2C_0.4-1_mipsel_24kc.ipk
This did the trick.
However
opkg remove pyOmegaExpansion
opkg remove pyOnionI2C
Followed by
opkg install pyOmegaExpansion_0.4-1_mipsel_24kc.ipk
opkg install pyOnionI2C_0.4-1_mipsel_24kc.ipk
should do it.
I downloaded the two package files from
http://repo.onion.io/omega2/packages/packages
Paul
Not sure if this is the place to raise this but the latest pythonI2c module appears to have an issue.
I get
python
Python 2.7.13 (default, Sep 18 2017, 20:32:03)
[GCC 5.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
from OmegaExpansion import onionI2C
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: Error relocating /usr/lib/python2.7/OmegaExpansion/onionI2C.so: i2c_writeBufferRaw: symbol not found
The latest i2C packages appear to be broken
pyOmegaExpansion_0.5-1_mipsel_24kc.ipk
pyOnionI2C_0.5-1_mipsel_24kc.ipk
Have the problem I described. I dropped back to
pyOmegaExpansion_0.4-1_mipsel_24kc.ipk
pyOnionI2C_0.4-1_mipsel_24kc.ipk
And the problem went away.
Regards
Paul
I believe I know what the problem is. The latest i2C packages are broken
pyOmegaExpansion_0.5-1_mipsel_24kc.ipk
pyOnionI2C_0.5-1_mipsel_24kc.ipk
Have the problem I described. I dropped back to
pyOmegaExpansion_0.4-1_mipsel_24kc.ipk
pyOnionI2C_0.4-1_mipsel_24kc.ipk
And the problem went away.
I have been using the python i2c module and it's been working fine. However even if I start from factory default
E.G
firstboot -y
sync
reboot
wifisetup
opkg update
opkg install python
opkg install pyOnionI2C
I then get
root@Omega-E941:~# python
Python 2.7.13 (default, Sep 18 2017, 20:32:03)
[GCC 5.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
from OmegaExpansion import onionI2C
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: Error relocating /usr/lib/python2.7/OmegaExpansion/onionI2C.so: i2c_writeBufferRaw: symbol not found
If anyone has any idea's as to what may be the problem I'd appreciate it
Thanks
Paul
Hi,
Does anyone know how to read the WIFI RSSI level on an Omega 2 ?
I tried iwinfo but this returns unknown for the signal levels
root@Omega-96FB:~# iwinfo
apcli0 ESSID: "airstorm11"
Access Point: C0:56:27:8E:7B:0E
Mode: Client Channel: 11 (unknown)
Tx-Power: unknown Link Quality: unknown/100
Signal: unknown Noise: unknown
Bit Rate: 72.0 MBit/s
Encryption: unknown
Type: wext HW Mode(s): unknown
Hardware: unknown [Generic WEXT]
TX power offset: unknown
Frequency offset: unknown
Supports VAPs: no PHY name: apcli0
ra0 ESSID: "Omega-96FB"
Access Point: 40:A3:6B:C0:96:FB
Mode: Client Channel: 11 (unknown)
Tx-Power: unknown Link Quality: unknown/100
Signal: unknown Noise: unknown
Bit Rate: 72.0 MBit/s
Encryption: unknown
Type: wext HW Mode(s): unknown
Hardware: unknown [Generic WEXT]
TX power offset: unknown
Frequency offset: unknown
Supports VAPs: no PHY name: ra0
Thanks
Paul