-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issues with smbus #72
Comments
Same here, i2c-dev doesn't mount any devices in |
Add:
to /boot/config.txt, and reboot. Or use raspi-config to do the same (Advanced Options, I2C, ...) See here for an explanation: http://www.raspberrypi.org/forums/viewtopic.php?f=44&t=98318 |
Can we close this issue? |
The issue is over (for me) |
There isn't much to go on there:
To save time I'm going to guess that your device is 0x1b on i2c1, which is equivalent to 0x36 on the wire. The SmartDemo library I found uses 0x36/0x1b as the default address, and it should correctly work out to use i2c1 on your Pi unless you are using a very old Model A or B. I suggest you either add some debugging print statements to the scripts or run the command under pdb, the python debugger. |
Use the debugger - run
|
@pelwell Can you help me with this error? File "/usr/local/lib/python2.7/dist-packages/OpenElectrons_i2c.py", line 61, in init |
What is the value of b when it fails? |
@pelwell Honestly I do not know. Could you help figure it out? (according to this site: https://pypi.python.org/pypi/smbus-cffi/0.4.1 root@raspberrypi:/smartdrive# ls -l /dev/i2c-1 |
Follow these simple steps:
One of the Alternatively, try:
Then post the URL it displays, which will be something like |
The first problem is caused by that library which doesn't cope with the current output from /proc/cpuinfo under Linux 4.9 or later. The relevant lines are (roughly):
for a Pi 3 rev 1.2. This will return one from cpu_rev(), which leaves you with a bus number of 0, which is wrong. On to the next problem. What happened when you ran |
Where did you get explorer.py and explorer1.py? |
TkS explorer1.py explorer.py |
Your cffi installation is failing because you don't have a gcc toolchain - run |
|
Ho hum. There is a package called python-cffi that you could apt-get install. But then you'll have to find somebody else to help you - I'm not much of a Python expert, I don't know the OpenElectrons platform, and this isn't the right place for this discussion. |
i need freelancer |
After updating with
rpi-update
to "Linux raspberrypi 3.18.3+ #740 PREEMPT Wed Jan 21 23:55:56 GMT 2015 armv6l GNU/Linux" I have some issues with smbus python mudule. I am using pi-pan kit an pilight from http://www.openelectrons.com/index.php?module=pagemaster&PAGE_user_op=view_page&PAGE_id=24 OpenelectronsDowngrade to #730 everything works correctly...
The text was updated successfully, but these errors were encountered: