Go to advanced search

by rpdom
Tue Jul 08, 2014 3:39 pm
Forum: Troubleshooting
Topic: cannot locate cpu Mhz in /proc/cpuinfo
Replies: 19
Views: 4962

Re: FATAL: cannot locate cpu Mhz in /proc/cpuinfo

Oooh look, I have Flash in my browser.... I'm so happy for you... :roll: The estimated everyday Ubuntu Users on the planet runs to about 20 million which puts a little perspective on the 3 million Pi's . It does indeed. It shows that the number of Pi users is catching up very rapidly :D I do enjoy ...
by rpdom
Tue Jul 08, 2014 4:40 am
Forum: C/C++
Topic: about GPIO pin 17
Replies: 6
Views: 2173

Re: about GPIO pin

thanks for your suggestion. i'v changed *tmp= set_v in function set_pin_on_off(). Now it works. But i still not understood, why is not *tmp|= set_v? Because i just want to modify the speicified pin. the other pin-lebel i want to let them stay like before... thanks, chun Because writing to the set/c...
by rpdom
Mon Jul 07, 2014 7:29 pm
Forum: Troubleshooting
Topic: Setting NXT client
Replies: 3
Views: 785

Re: Setting NXT client

What mad-hatter said.

The person who wrote that guide got the instructions slightly wrong.

It should be
sudo apt-get update
sudo apt-get dist-upgrade
by rpdom
Mon Jul 07, 2014 5:20 pm
Forum: Troubleshooting
Topic: cannot locate cpu Mhz in /proc/cpuinfo
Replies: 19
Views: 4962

Re: FATAL: cannot locate cpu Mhz in /proc/cpuinfo

The error sounds like lazy programming. It shouldn't assume a value is there just because it is on some Linux systems. At least plug in an "unknown" or something...
by rpdom
Mon Jul 07, 2014 4:14 pm
Forum: Compute Module
Topic: USB Output Chip
Replies: 8
Views: 2070

Re: USB Output Chip

The FSUSB42UMX chip is just a USB switch. It connects the USB of the BCM2385 to either the USB host port for general use, or to the USB slave port for initial programming of the eMMC flash memory. If you are designing your own board for a specific application, you don't really need that chip at all,...
by rpdom
Mon Jul 07, 2014 9:18 am
Forum: General discussion
Topic: rpi-update without internet?
Replies: 6
Views: 5356

Re: rpi-update without internet?

Hi, Can I do this: 1-sudo apt-get --print-uris --yes upgrade | grep ^\' | cut -d\' -f2 >downloads.list 2-wget --input-file downloads.list 3-dpkg -i *.deb Thanks? Sort of... Run step 1 on your Pi. Copy the file downloads.list to a Linux system that has got internet connection. Run step 2 on that Lin...
by rpdom
Mon Jul 07, 2014 8:52 am
Forum: Beginners
Topic: starting sh file via php
Replies: 4
Views: 842

Re: starting sh file via php

Does /dev/ttyUSB00 exist? What are its permissions? (ls -l /dev/ttyUSB0). Do your scripts work if you run them manually? Don't forget that as they are running from the webserver they will (probably) be running as a different user, usually "www-data", so even if the "pi" user has access, they may not.
by rpdom
Mon Jul 07, 2014 8:20 am
Forum: Beginners
Topic: starting sh file via php
Replies: 4
Views: 842

Re: starting sh file via php

Any clues in the webserver error log?

/var/log/apache2/error.log (if using Apache)
by rpdom
Mon Jul 07, 2014 8:17 am
Forum: Advanced users
Topic: Disable Analogue & HDMI video OR disable prompt?
Replies: 9
Views: 2099

Re: Disable Analogue & HDMI video OR disable prompt?

Or you could just comment out all the lines that contain "/sbin/getty" in /etc/inittab. Possibly that might leave one console running. I'm not sure as I haven't tried it. that will remove all local login's but this is not secure - if you have access to the device then you can remove the SD card and...
by rpdom
Mon Jul 07, 2014 7:16 am
Forum: Troubleshooting
Topic: Raspberry Pi not switching on
Replies: 6
Views: 1424

Re: Raspberry Pi not switching on

klricks wrote:I would use a switching or 'buck' type regulator instead of the 7805. Your useful battery time will be much longer. The 7805 wastes energy as heat especially going from 12V to 5V.
This.

I make it nearly 60% of power wasted as heat :o

A switching regulator would get that down to 10% or lower.
by rpdom
Sun Jul 06, 2014 9:25 pm
Forum: Advanced users
Topic: Disable Analogue & HDMI video OR disable prompt?
Replies: 9
Views: 2099

Re: Disable Analogue & HDMI video OR disable prompt?

Or you could just comment out all the lines that contain "/sbin/getty" in /etc/inittab.

Possibly that might leave one console running. I'm not sure as I haven't tried it.
by rpdom
Sun Jul 06, 2014 4:03 pm
Forum: Compute Module
Topic: What would you do with a Compute Module?
Replies: 50
Views: 13967

Re: What would you do with a Compute Module?

bluecar1 wrote:what about putting the module on an arduino shield? nice option then for combining the two platforms
That would very much depend on what you wanted to use the Arudino for and how you wanted the PiCM to control it - serial, I2C or other?
by rpdom
Sun Jul 06, 2014 1:25 pm
Forum: Bare metal, Assembly language
Topic: Coding in HEX
Replies: 41
Views: 11281

Re: Coding in HEX

why not use octal, the base-8 numbering system. 177 025 172 003 105. If programming in hex has magical properties, programming in octal would have it even more so. :mrgreen: Oh gods, don't remind me :( Although I never had to program in octal, I spent many years decoding octal dumps[1], converting ...
by rpdom
Sun Jul 06, 2014 1:13 pm
Forum: Troubleshooting
Topic: pi freezes frequently
Replies: 4
Views: 762

Re: pi freezes frequently

The ratings on some PSUs can be misleading (AKA "A lie"). Some of them will provide 5V@200mA but only 3.5V@1000mA, so they say "It can do 5V and it can do 1000mA" just not both at the same time! [edit] The supplies that can't provide 5V@1000mA are often badly designed with no regards to safety. Ther...
by rpdom
Sun Jul 06, 2014 5:11 am
Forum: Troubleshooting
Topic: Battery-powered RPi freezes when taking picture
Replies: 9
Views: 1920

Re: Battery-powered RPi freezes when taking picture

I may be completely off here, but it was my understanding that batteries will pretty much provide whatever current is needed from it? Up to a max. The output from my battery pack states 2A, which should cover the RPi with a 200mA spike, no? The batteries should be able to handle it, yes. But there ...
by rpdom
Sun Jul 06, 2014 4:08 am
Forum: Troubleshooting
Topic: Battery-powered RPi freezes when taking picture
Replies: 9
Views: 1920

Re: Battery-powered RPi freezes when taking picture

Well, despite the fact you've tried various battery options, the thing that would seem obvious is power. When activated, the camera module will draw quite a lot of extra current (I believe I've read it can be as much as 200mA). Presumably that is causing a surge that your battery units can't cope wi...
by rpdom
Sat Jul 05, 2014 5:07 pm
Forum: Troubleshooting
Topic: Ran out of space, can't purge things
Replies: 3
Views: 909

Re: Ran out of space, can't purge things

It doesn't remove any packages. It will remove some old package installation files which are no longer needed. To be honest, I'd just try "sudo apt-get clean" instead of those lines. That will clear out all old installation images. They are not needed once the install is complete. The last line will...
by rpdom
Sat Jul 05, 2014 4:57 pm
Forum: Troubleshooting
Topic: Eror message using sudo apt-get update
Replies: 68
Views: 7278

Re: Eror message using sudo apt-get update

I'm fairly certain that came from another computer or router on your 192.168.1.X network. Possibly even the 192.1681.254 device. Whatever is causing that needs to be stopped so the only nameserver line that file will contain is nameserver 8.8.8.8 Are you using wifi on 192.168.1.X with dhcp? [edit] T...
by rpdom
Sat Jul 05, 2014 4:39 pm
Forum: Beginners
Topic: Can't SSH with NOOBS
Replies: 9
Views: 4456

Re: Can't SSH with NOOBS

redhawk wrote:Try:
username: root
password: raspbian

Richard S.
I think that might be:
username: root
password: raspberry

But I'm not sure that will give you anything useful, as NOOBS is just a GUI based installer that uses a minimal Linux OS.
by rpdom
Sat Jul 05, 2014 3:49 pm
Forum: Troubleshooting
Topic: Eror message using sudo apt-get update
Replies: 68
Views: 7278

Re: Eror message using sudo apt-get update

I'm starting to wonder if DHCP (or something else) is messing around with settings somewhere.

If you get it working again, could you check the contents of /etc/resolve.conf and compare that to the contents of the same file once it stops working.
by rpdom
Sat Jul 05, 2014 3:46 pm
Forum: Beginners
Topic: Can't SSH with NOOBS
Replies: 9
Views: 4456

Re: Can't SSH with NOOBS

ajan wrote:

Code: Select all

ssh -X pi@ 169.254.187.131
There shouldn't be a space between the @ and the IP address, otherwise you will try to connect to the localhost port on the machine you are running the ssh command on.
by rpdom
Fri Jul 04, 2014 4:23 pm
Forum: Troubleshooting
Topic: running motion cron job
Replies: 16
Views: 6499

Re: running motion cron job

I have never needed to restart the cron daemon after making changes to crontabs. As long as you use the proper crontab commands to change the crontab it should "just work".
by rpdom
Fri Jul 04, 2014 3:50 pm
Forum: Troubleshooting
Topic: Internal Server Error
Replies: 4
Views: 8771

Re: Internal Server Error

Log files are stored in /var/log.

If you're using the Apache web server, the files are /var/log/apache2/error.log and /var/log/apache2/access.log
by rpdom
Fri Jul 04, 2014 12:55 pm
Forum: Troubleshooting
Topic: Eror message using sudo apt-get update
Replies: 68
Views: 7278

Re: Eror message using sudo apt-get update

As I said previously, replace the line

Code: Select all

dns-nameservers 192.168.2.100
with

Code: Select all

dns-nameservers 8.8.8.8
and restart the interface.
If that doesn't work, show us the contents of /etc/resolv.conf.
by rpdom
Fri Jul 04, 2014 7:47 am
Forum: Troubleshooting
Topic: Unable to SSH or login
Replies: 3
Views: 949

Re: Unable to SSH or login

It sounds like you haven't configured the keyboard layout correctly. The Pi defaults to UK keymapping, and I suspect you are using a US (or other foreign) keyboard. Try poking around some of the other symbol keys to see if any of them display the "|" character. On my UK keyboards I use shift+"\" whi...

Go to advanced search