Go to advanced search

by Richard-TX
Sun Mar 01, 2015 3:44 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SOLVED: pi2, i2c0 and Wheezy
Replies: 26
Views: 11339

Re: pi2, i2c0 and Wheezy

Here is the output from a gpio readall. Both i2c0 and i2c1 look the same. BTW my script does nothing as it detects that no changes need to be made. Both i2c1 and i2c0 are set to ALT0 # gpio readall +-----+-----+---------+------+---+---Pi 2---+---+------+---------+-----+-----+ | BCM | wPi | Name | Mo...
by Richard-TX
Sat Feb 28, 2015 7:24 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SOLVED: pi2, i2c0 and Wheezy
Replies: 26
Views: 11339

Re: pi2, i2c0 and Wheezy

Root only permissions are a non-issue for me.

Thanks for looking at this Joan.

I have opened an issue. It is #382
by Richard-TX
Sat Feb 28, 2015 12:23 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SOLVED: pi2, i2c0 and Wheezy
Replies: 26
Views: 11339

Re: pi2, i2c0 and Wheezy

# i2cdetect -y 0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- ...
by Richard-TX
Sat Feb 28, 2015 12:22 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SOLVED: pi2, i2c0 and Wheezy
Replies: 26
Views: 11339

Re: pi2, i2c0 and Wheezy

I did the rpi-update/ It seemed to go well. I will have to revise my assessment of rpi-update.

Still no joy on the i2c-0
# uname -a
Linux raspberrypi 3.18.8-v7+ #761 SMP PREEMPT Fri Feb 27 15:48:09 GMT 2015 armv7l GNU/Linux
by Richard-TX
Sat Feb 28, 2015 12:20 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SOLVED: pi2, i2c0 and Wheezy
Replies: 26
Views: 11339

Re: pi2, i2c0 and Wheezy

I didn't realize it was mandatory.
by Richard-TX
Sat Feb 28, 2015 12:08 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SOLVED: pi2, i2c0 and Wheezy
Replies: 26
Views: 11339

Re: pi2, i2c0 and Wheezy

#uname -a Linux raspberrypi 3.18.7-v7+ #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015 armv7l GNU/Linux rpi-update and apt-get upgrade have been broken for quite some time. I will not waste me time with that. The last time I did a upgrade, I wound up with an unusable system. I would rather just downlo...
by Richard-TX
Sat Feb 28, 2015 11:32 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SOLVED: pi2, i2c0 and Wheezy
Replies: 26
Views: 11339

Re: pi2, i2c0 and Wheezy

DougieLawson wrote:Have you added the kernel parm bcm2708.vc_i2c_override=1 to /boot/cmdline.txt?
And dtparam=i2c_vc=on to /boot/config.txt?
yes and yes

here are the pertinent lines in config.txt

Code: Select all

dtparam=i2c_arm=on
dtparam=i2c_vc=on
device_tree_param=i2c0=on
device_tree_param=i2c=on
by Richard-TX
Sat Feb 28, 2015 11:27 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SOLVED: pi2, i2c0 and Wheezy
Replies: 26
Views: 11339

Re: pi2, i2c0 and Wheezy

Here is ther current state. i2c devices are connected to both buses # i2cdetect -l i2c-0 i2c 3f205000.i2c I2C adapter i2c-1 i2c 3f804000.i2c I2C adapter # i2cdetect -y 0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20:...
by Richard-TX
Sat Feb 28, 2015 11:13 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SOLVED: pi2, i2c0 and Wheezy
Replies: 26
Views: 11339

SOLVED: pi2, i2c0 and Wheezy

About 2 months ago I was evaluating Jessie and wIth Joan's help was able to get i2c-0 working. Since the Pi2 has come out and device tree has been added, things have changed again. The little enable script I have doesn't work so I have to change it to cover the pi2. I have tried a few things and I j...
by Richard-TX
Fri Feb 27, 2015 11:14 am
Forum: Troubleshooting
Topic: STICKY:I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.
Replies: 335
Views: 518381

Re: I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.

It seems to me that the whole device tree idea has shifted the relative pain felt by kernel developers when dealing with different devices from themselves to the implementers and end users. Am I right or wrong?
by Richard-TX
Sat Feb 07, 2015 3:19 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Assigning same USBtty linux to a device every time
Replies: 5
Views: 10554

Re: Assigning same USBtty linux to a device every time

Welcome to udev hell. Udev is what happens when someone does not think about the negative consequences of adding a feature and then burns their bridges behind them. Udev should be something that is optional or at least provide an easy way to hard code device names. Adding device names via a udev ent...
by Richard-TX
Wed Jan 21, 2015 2:32 am
Forum: Other projects
Topic: School PA system
Replies: 5
Views: 2603

Re: School PA system

I would be willing to bet that PA system is a 70 volt system. I would not touch that system with a 10 ft pole. It would be in the school's and your best interests to issue a RFP (Request For Proposal). WHen you see what others have to say about it, then you will know what has to be done.
by Richard-TX
Wed Jan 21, 2015 2:08 am
Forum: Automation, sensing and robotics
Topic: Use GPIO to short circuit 2 contacts?
Replies: 19
Views: 2886

Re: Use GPIO to short circuit 2 contacts?

None of the GPIOs function as a contact closure. You have to use an external device if that is what you want. A simple NPN transistor or FET like a 2N7000 comes to mind.
by Richard-TX
Tue Jan 20, 2015 6:04 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: B+, i2c-0, and Jessie
Replies: 58
Views: 12506

Re: B+, i2c-0, and Jessie

I will grab my B+ and try it here. It will be later tonight as I am in the middle of another project at the moment.
by Richard-TX
Tue Jan 20, 2015 3:41 pm
Forum: General discussion
Topic: Cron Job
Replies: 10
Views: 1216

Re: Cron Job

whenever i run as a root user python clock.py It works properly. It show me a clock window poped up. But when i try to open it up in cron it does not work. The rest mp3 etc files are working but python script is not working. I have also given privil to clock. A window? Sounds like you are trying to...
by Richard-TX
Sun Jan 18, 2015 11:40 pm
Forum: Troubleshooting
Topic: My Pi seems to have Alzheimer's
Replies: 3
Views: 596

Re: My Pi seems to have Alzheimer's

On first boot after installing the 'raw' image with Win32diskimager you MUST first..... before doing anything else......, use option 1 in sudo raspi-config to expand the filesystem to fill the card and reboot . If you don't expand and run out of disk-space when doing updates your OS will be trashed...
by Richard-TX
Sun Jan 18, 2015 4:13 pm
Forum: Beginners
Topic: Does my son need a Pi
Replies: 5
Views: 808

Re: Does my son need a Pi

Don't get him something unless he asks for it. Giving a kid something he does not ask for is like giving a pig a diamond ring.
by Richard-TX
Fri Jan 16, 2015 3:12 pm
Forum: Python
Topic: Using Cron to update a log file
Replies: 46
Views: 4133

Re: Using Cron to update a log file

you need to specify a fully qualified path for the logfile. I recommend /tmp/logfile as a test. I assume that you ran this script manually and it runs fine.
by Richard-TX
Fri Jan 16, 2015 3:09 pm
Forum: Beginners
Topic: Running SSH Command from Apache server
Replies: 7
Views: 1615

Re: Running SSH Command from Apache server

iinnovations wrote: Preach.
Amen Brother! :roll:
by Richard-TX
Fri Jan 16, 2015 5:43 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Fixed I2C address - best solution for third sensor
Replies: 41
Views: 6055

Re: Fixed I2C address - best solution for third sensor

All address pins must be either grounded to tied to VCC.
The addressing is as follows:

base addr + addressing pins = i2c address

assuming 3 address pins.

0 = ground
1 = VCC

0 0 0 = 0
0 0 1 = 1
0 1 0 = 2
.
.
1 1 1 = 7
by Richard-TX
Fri Jan 16, 2015 5:35 am
Forum: Python
Topic: Using Cron to update a log file
Replies: 46
Views: 4133

Re: Using Cron to update a log file

Joe Schmoe wrote:
As noted earlier, any proposed "solution" involving "/etc/rc.local" should, of course, be ignored.
Don't like rc.local? Then create a /etc/init.d startup script.
by Richard-TX
Fri Jan 16, 2015 5:29 am
Forum: Beginners
Topic: Running SSH Command from Apache server
Replies: 7
Views: 1615

Re: Running SSH Command from Apache server

iinnovations wrote:
Richard-TX wrote:What is the document root dir defined in the sites-enabled file?

Security wise, this is a very bad idea.
I was going to point this out, but when I do nobody seems to care.
If anyone really cared, sudo would not exist. Just because everyone does it, doesn't make it right.
by Richard-TX
Fri Jan 16, 2015 2:08 am
Forum: Beginners
Topic: Running SSH Command from Apache server
Replies: 7
Views: 1615

Re: Running SSH Command from Apache server

What is the document root dir defined in the sites-enabled file?

Security wise, this is a very bad idea.
by Richard-TX
Fri Jan 16, 2015 2:06 am
Forum: Advanced users
Topic: _ip_addresses
Replies: 5
Views: 936

Re: _ip_addresses

Auto complete a file named ipaddresses? ip*
by Richard-TX
Thu Jan 15, 2015 5:59 pm
Forum: Raspbian
Topic: Is iptables available in your Kernel
Replies: 9
Views: 5260

Re: Is iptables available in your Kernel

In case it's helpful to anyone, I managed to reproduce this problem recently on what I thought was a completely up to date system. Turns out that rpi-update (and/or apt-get upgrade and apt-get update) will quite happily update the system even if they can't write the new kernel image to /boot. After...

Go to advanced search