Go to advanced search

by gmc
Sat Oct 05, 2013 6:54 am
Forum: Troubleshooting
Topic: SD Card when trying to boot NOOBs
Replies: 10
Views: 1979

Re: SD Card when trying to boot NOOBs

Try a standard wheezy install and see what happens. Also are you sure your power is ok?
by gmc
Fri Oct 04, 2013 6:15 pm
Forum: C/C++
Topic: Debugging a c program?
Replies: 15
Views: 3294

Re: Debugging a c program?

Thanks for the tips. I'm logging a ton of info to a debug.log file and have also setup ulimit.

Now just waiting for it to crash.....come on......crash!!! :)
by gmc
Mon Sep 30, 2013 8:58 pm
Forum: C/C++
Topic: Debugging a c program?
Replies: 15
Views: 3294

Re: Debugging a c program?

I ran it through efence - no errors so far.

With gdb - since the program only crashes every week, is it possible to run gdb in the background so I can exit the ssh session, but then leave gdb running so when it crashes it spews out the info to a log file?
by gmc
Mon Sep 30, 2013 7:34 pm
Forum: C/C++
Topic: Debugging a c program?
Replies: 15
Views: 3294

Re: Debugging a c program?

Thanks - I'll look into gdb.
by gmc
Mon Sep 30, 2013 6:44 pm
Forum: C/C++
Topic: Debugging a c program?
Replies: 15
Views: 3294

Debugging a c program?

Anyone got any ideas on how to debug a c program on the pi? I've got a c program I wrote which runs fine but seems to crash at least once a week. I've got another program that monitors the pid and restarts the program as soon as it detects the program has died. A bit of a cheap but it seems to keep ...
by gmc
Mon Sep 30, 2013 10:52 am
Forum: Beginners
Topic: First time - can't even login
Replies: 3
Views: 641

Re: First time - can't even login

I reckon just redownload the latest version of Noobs and reflash again.
by gmc
Sun Sep 29, 2013 9:10 pm
Forum: C/C++
Topic: Network Programming Problem
Replies: 1
Views: 628

Re: Network Programming Problem

From the pi can you ping the server. Are you using the IP or the server name?
by gmc
Sat Sep 28, 2013 2:03 pm
Forum: HATs and other add-ons
Topic: Using old Creative webcam with motion
Replies: 5
Views: 7690

Re: Using old Creative webcam with motion

Thanks for the info - tried that and couldnt get it going. Guess its time to retire the old cam.
I tried PC's newer webcam and it works flawlessly so I guess its time to get a compatible cam off eBay.
by gmc
Sat Sep 28, 2013 8:53 am
Forum: HATs and other add-ons
Topic: Using old Creative webcam with motion
Replies: 5
Views: 7690

Re: Using old Creative webcam with motion

There are few posts regarding OV518/519 based webcams but no resolutions, though in an older Linux related posting it does state "NOTE: The ov519 driver only works with applications that support JPEG video format" http://www.lavrsen.dk/foswiki/bin/view/Motion/WorkingDevices I would be happy if I co...
by gmc
Sat Sep 28, 2013 7:59 am
Forum: HATs and other add-ons
Topic: Using old Creative webcam with motion
Replies: 5
Views: 7690

Using old Creative webcam with motion

I've dug out my old Creative live mini webcam in that I'm hoping I can get it working with my pi. I've installed motion, plugged in the webcam which gets detected: Bus 001 Device 004: ID 05a9:0518 OmniVision Technologies, Inc. OV518 Webcam In the messages log I see this when I startup motion: Sep 28...
by gmc
Thu Sep 26, 2013 7:16 am
Forum: Beginners
Topic: How to launch the an application during start up
Replies: 5
Views: 959

Re: How to launch the an application during start up

Balakrishna wrote:
if[$(tty)==/dev/tty1];then
/home/pi/bin/script_auto_run
#fi
i dont have access to my pi here, but I'm guessing this is the problem.

Just strip the if statement out and run:

Code: Select all

/home/pi/bin/script_auto_run
by gmc
Mon Sep 23, 2013 8:03 am
Forum: Beginners
Topic: SOLVED Folding at Home ORIGAMI
Replies: 11
Views: 8444

Re: Folding at Home ORIGAMI

AndrewS wrote:Any distributed computing project will run so slowly on the Pi compared to a 'normal' computer, that it's probably not even worth bothering.
These guys dont think so :)

http://www.southampton.ac.uk/~sjc/raspb ... ampton.htm
by gmc
Sat Sep 21, 2013 7:45 am
Forum: Troubleshooting
Topic: Relay board not working
Replies: 4
Views: 1611

Re: Relay board not working

Do you have a multimeter?

When the GPIO pin goes high, measure the voltage at the collector on the transistor. Does it drop to 0v? (Or close to it?)
by gmc
Sat Sep 21, 2013 7:34 am
Forum: Beginners
Topic: How to launch the an application during start up
Replies: 5
Views: 959

Re: How to launch the an application during start up

There are a few methods you use us. Try this: http://www.raspberry-projects.com/pi/pi-operating-systems/raspbian/scripts or http://www.raspberrypi-spy.co.uk/2013/07/running-a-python-script-at-boot-using-cron/ or http://blog.scphillips.com/2013/07/getting-a-python-script-to-run-in-the-background-as-a...
by gmc
Fri Sep 13, 2013 5:46 pm
Forum: C/C++
Topic: C code for MCP3008
Replies: 22
Views: 28952

Re: C code for MCP3008

Odd - tried that. Its not reading the values. I know the setup is correct as I have another c which uses different libraties and its retrieving values with it. Anything glaringly obvious? #include <wiringPi.h> #include <mcp3004.h> #include <stdio.h> #include <stdlib.h> #define BASE 200 #define SPI_C...
by gmc
Fri Sep 13, 2013 4:08 pm
Forum: C/C++
Topic: C code for MCP3008
Replies: 22
Views: 28952

Re: C code for MCP3008

Trying to get the wiringpi working and am struggling.

In the above code what variable do the following represent:

Code: Select all

#define BASE 100
#define SPI_CHAN 0
by gmc
Mon Sep 02, 2013 2:35 pm
Forum: C/C++
Topic: C code for MCP3008
Replies: 22
Views: 28952

Re: C code for MCP3008

wow - even easier.

Time to recode!

Thanks.
by gmc
Mon Sep 02, 2013 7:10 am
Forum: General discussion
Topic: Disappointed with RPi 2B - ideas for new version?
Replies: 28
Views: 7208

Re: Disappointed with RPi 2B - ideas for new version?

I think they should keep it as is - granted there are a few limitations, but if they add more and more things to it then it will just push the price up. Also one of the other major problems is that if there are a bunch of different pi versions floating around then you will soon find that downloading...
by gmc
Mon Sep 02, 2013 6:55 am
Forum: General discussion
Topic: Creating dashboard for pi data?
Replies: 0
Views: 388

Creating dashboard for pi data?

So I've got my pi uploading various bits of data to Thingspeak (similar to Xively) and now the next stage in my project I'm looking towards creating a nice dashboard where I can view the stats/data/graphs I've got a OpenSuse server I would like to install apache on and then host the dashboard. I was...
by gmc
Sat Aug 31, 2013 3:50 pm
Forum: C/C++
Topic: C code for MCP3008
Replies: 22
Views: 28952

C code for MCP3008

Thought I'd just post this here - took me ages to find a working C library, but this one works great. Hopefully it will help someone else out. http://gpcf.eu/projects/embedded/adc/ I originally used a c++ one but needed to go back to C. If you want a C++ library this works as well. (I could never ge...
by gmc
Thu Aug 29, 2013 6:05 pm
Forum: Beginners
Topic: SoS. My RPi would not boot.
Replies: 3
Views: 767

Re: SoS. My RPi would not boot.

Why not just redownload NOOBs?
by gmc
Fri Aug 23, 2013 7:04 pm
Forum: Troubleshooting
Topic: Pi not booting
Replies: 13
Views: 6801

Re: Pi not booting

Interesting info.

Its the latest noobs and wheezy version I downloaded last night.

As a test I might take a image of the wheezy I have running (fully updated) on yet another pi and put it on the 8gb sd card and see if it boots.
by gmc
Fri Aug 23, 2013 1:57 pm
Forum: Troubleshooting
Topic: Pi not booting
Replies: 13
Views: 6801

Re: Pi not booting

Its a 256MB chip (Hynix) but with the ethernet port.

On the back is E2712RSV1.0B1.1
by gmc
Fri Aug 23, 2013 12:18 pm
Forum: Troubleshooting
Topic: Pi not booting
Replies: 13
Views: 6801

Re: Pi not booting

It on the list - classed as working.

Go to advanced search