Go to advanced search

by rpdom
Fri Aug 08, 2014 5:11 am
Forum: Networking and servers
Topic: Problem setting up rsync
Replies: 5
Views: 2941

Re: Problem setting up rsync

Are you saying that you are using Putty on a Windows PC to log in to your Pi, then typing the rsync command on the Pi command line and expecting it to copy files to your PC somehow? All you appear to be doing is telling rsync to copy files from a directory on the Pi to a local directory, which, as y...
by rpdom
Thu Aug 07, 2014 9:51 pm
Forum: General discussion
Topic: Work alleviation
Replies: 2
Views: 685

Re: Work alleviation

You can put sets of frequently used commands in scripts, that is a common thing to do. If you want to be able to copy and paste on the console you can install the "gpm" program Description: General Purpose Mouse interface This package provides a daemon that captures mouse events when the system cons...
by rpdom
Thu Aug 07, 2014 7:06 pm
Forum: General discussion
Topic: Raspberry Pi model A+?
Replies: 18
Views: 3496

Re: Raspberry Pi model A+?

And a couple of links to take the single USB port on the SoC to the socket. Which is one of the things I find puzzling, looking at my B+ I didn't see any evidence of non-mounted links. Maybe they are hidden under a component, maybe my eyes are bad or maybe they are planning to change the board desi...
by rpdom
Thu Aug 07, 2014 12:09 pm
Forum: Troubleshooting
Topic: Win32 Disk Imager write to smaller SD memory card
Replies: 26
Views: 52755

Re: Win32 Disk Imager write to smaller SD memory card

Or maybe someone knows a simpler way. Not on Windows, but someone (sorry, I can't remember who) has written a Linux script that will resize the saved image file to make it as small as possible. Then you can use disk imager to write it to the smaller card and raspi-config to expand it to fit. Person...
by rpdom
Thu Aug 07, 2014 11:24 am
Forum: General discussion
Topic: The Raspberry Pi Model B+ Q&A thread
Replies: 388
Views: 206206

Re: The Raspberry Pi Model B+ Q&A thread

J5 is the (unpopulated) JTAG connector on the other side of the board to the HDMI socket.

J9 is the micro SD card socket.

I can't see J2.
by rpdom
Thu Aug 07, 2014 11:21 am
Forum: Networking and servers
Topic: Transfer or share files between PC and Pi wirelessly
Replies: 5
Views: 1238

Re: Transfer or share files between PC and Pi wirelessly

You can do it either way around. Either have the folder on the Pi shared and have the PC access it, or have a shared folder on the PC and have the Pi mount it. Both systems will be able to create and access files in the folder, whichever method you use. Now you have to work out how the Pi will tell ...
by rpdom
Thu Aug 07, 2014 10:23 am
Forum: General discussion
Topic: The Raspberry Pi Model B+ Q&A thread
Replies: 388
Views: 206206

Re: The Raspberry Pi Model B+ Q&A thread

From what I can see on the board:
USBs J11 (middle), J12 (edge)
Ethenet J10
GPIO (40-way) J8
RUN Not marked!
You've already got the others.
by rpdom
Thu Aug 07, 2014 10:16 am
Forum: Automation, sensing and robotics
Topic: QR Code Recipe Generator
Replies: 3
Views: 1167

Re: QR Code Recipe Generator

You could look at using the Raspberry Pi camera and the v4l driver with the zbar-tools package to recognise QR Codes. Either use the zbar-tools libraries with your own program to read the codes, or use the zbarcam command to get the codes.
by rpdom
Thu Aug 07, 2014 9:01 am
Forum: Other programming languages
Topic: Unknown column 'temp' in 'field list'
Replies: 2
Views: 2417

Re: Unknown column 'temp' in 'field list'

Your using the word "temp" in your query instead of the value of the temp variable.

You probably need something like this

Code: Select all

    connection.query('INSERT INTO sensorLog(sensorId, logTime, sensorValue) VALUES(4, current_timestamp(), ' + temp + ')', function(err) {
by rpdom
Thu Aug 07, 2014 8:52 am
Forum: General discussion
Topic: Safety And The Pi
Replies: 9
Views: 1553

Re: Safety And The Pi

Sorry just to make sure this is understood I am not saying a flaky PSU will cause the RPi to explode but that there are so many fake PSU's out there that you have a much grater chance you will have an issue with a PSU than you will ever have with the RPi plugged into it. There has been one occasion...
by rpdom
Thu Aug 07, 2014 7:59 am
Forum: Raspberry Pi OS
Topic: compile 3.12.y kernel with other driver
Replies: 1
Views: 490

Re: compile 3.12.y kernel with other driver

Is there any step by step tutorial for newbies? There is a guide to compiling a kernel for the Pi in the documentation. I'm not sure how newbie friendly it is, I've not needed to compile a kernel for a Pi yet and I'm definitely not a newbie when it comes to building kernels. http://www.raspberrypi....
by rpdom
Thu Aug 07, 2014 6:32 am
Forum: Troubleshooting
Topic: what happen to my raspberry pi?
Replies: 3
Views: 735

Re: what happen to my raspberry pi?

Nothing is wrong with the su command. As root login is disabled on the Pi (because the password isn't set), it doesn't work. If you want to run command as root use sudo. If you want to change to root for a while use sudo -i. If you want su to work use sudo passwd and set a root password. Then use th...
by rpdom
Thu Aug 07, 2014 6:27 am
Forum: Automation, sensing and robotics
Topic: Controlling Tasks Run with Cron
Replies: 2
Views: 600

Re: Controlling Tasks Run with Cron

You can send a Ctrl-C to mplayer with killall -2 mplayer (-2 = SIGINT = Ctrl-C)

By default killall will send a -15 signal to the process (SIGTERM). Hopefully that will prevent your script dying.
by rpdom
Thu Aug 07, 2014 6:12 am
Forum: General discussion
Topic: USB Drives Not Recognized
Replies: 7
Views: 2108

Re: USB Drives Not Recognized

Use a mains powered USB hub.
[edit]
I missed the fact it was a B+.

As Rattus says, you need a big PSU, 2A at least. You will probably also need to set the high USB current option if you haven't already done so.
by rpdom
Thu Aug 07, 2014 5:51 am
Forum: Beginners
Topic: a little help please? (solved)
Replies: 5
Views: 785

Re: a little help please?

I'm having trouble booting it on my laptop. I've changed my bios settings to boot from usb. I'm sorry, I don't quite understand what you mean here. Why did you change your BIOS settings? They have nothing to do with the Pi. What sort of screen are you using on your Pi (HDMI or Composite)? Do you ha...
by rpdom
Wed Aug 06, 2014 8:51 pm
Forum: HATs and other add-ons
Topic: Power Connection
Replies: 27
Views: 15210

Re: Power Connection

The I/O "daughter" board for the CM is only intended for development purposes. Once you have got your software tested and prototype hardware working you should design your own carrier board with the hardware that you need. That includes USB power management and maybe a power on/off option.
by rpdom
Wed Aug 06, 2014 5:56 pm
Forum: Python
Topic: Make Logic High (>3V)
Replies: 5
Views: 1157

Re: Make Logic High (>3V)

Have you got a link to the specifications for the laser?
by rpdom
Wed Aug 06, 2014 5:55 pm
Forum: Bare metal, Assembly language
Topic: FrameBufferInfo alignment (Baking Pi)
Replies: 15
Views: 2488

Re: FrameBufferInfo alignment (Baking Pi)

Because an address that is 16-byte aligned has the last 4 bits as 0b0000 which is 0x0, as mentioned above.
by rpdom
Wed Aug 06, 2014 4:48 pm
Forum: Graphics, sound and multimedia
Topic: Pi B+ and 16x2 LCD - Help Needed
Replies: 11
Views: 3170

Re: Pi B+ and 16x2 LCD - Help Needed

kapurvish wrote:Is there any differencr between: 10k ohm, single turn trimmer potentiometer and Cermet Preset 10K Ω (ohm) Variable Resistor.
Not really. I use a multi-turn pot as that is what I have in my spares box, but you will be good with a preset one.
by rpdom
Wed Aug 06, 2014 4:40 pm
Forum: Off topic discussion
Topic: I got a Intel Galileo! (Now running + Programs - Startrek)
Replies: 29
Views: 4004

Re: I got a (free) Intel Galileo!

AndrewS wrote:For a telnet client, just 'apt-get install netkit-telnet'
netkit-telnet is the source name. The actual package is just "telnet", so "sudo apt-get install telnet" (that's so 90's!).
by rpdom
Wed Aug 06, 2014 2:03 pm
Forum: Graphics, sound and multimedia
Topic: Pi B+ and 16x2 LCD - Help Needed
Replies: 11
Views: 3170

Re: Pi B+ and 16x2 LCD - Help Needed

Often (but not always) you will need a 10K pot on this type of display to control the contrast to make the text visible from the angle you are looking at it from. It can't be controlled from the GPIO. Usually you use a trimmer variety because you will set it once and then leave it.
by rpdom
Wed Aug 06, 2014 12:46 pm
Forum: Bare metal, Assembly language
Topic: FrameBufferInfo alignment (Baking Pi)
Replies: 15
Views: 2488

Re: FrameBufferInfo alignment (Baking Pi)

Arbitrary, as in just pick an address in memory that isn't being used by your code (or anything else), and ends in 0x0. Easy to do with bare metal where you know where everything is running. Hard on a full OS, as anything could be using that memory.
by rpdom
Wed Aug 06, 2014 8:11 am
Forum: Troubleshooting
Topic: What is wrong with my pi's gpio 2 & 3 ?
Replies: 7
Views: 1049

Re: What is wrong with my pi's gpio 2 & 3 ?

Is it normal for pin(3) and pinn(5) to give a 1.64v output when i power on my pi(without using a sd card)? Aren't they supposed to be at 0V? No, the aforementioned pull-up resistors will set them to 3.3V when not driven by anything. Which pins are you measuring the voltage between? It sound like yo...
by rpdom
Wed Aug 06, 2014 8:03 am
Forum: General discussion
Topic: 1500MHz lock?
Replies: 43
Views: 12625

Re: 1500MHz lock?

Any idea if this voltage mod is legitimate? Looks like the guy is a writer for an online tech news site so I'm inclined to give him the benefit of the doubt. Also it looks like he did some benchmarking. "rsnubje says: 155 days ago – Power is given on Varm readout point. L5 resistor(sic) removed. " ...
by rpdom
Wed Aug 06, 2014 6:32 am
Forum: Beginners
Topic: Dual Booting
Replies: 5
Views: 911

Re: Dual Booting

RaspBMC is Raspbian with XBMC installed. So you may not need plain old Raspbian. To fit both on one SDCard get a 16MB card. WOW! now that's a slim OS - could you send me a link the image please? :lol: :lol: :lol: Actually, I do sometimes use a 16MB SD card with a Pi :-) It's for my Bare Metal testi...

Go to advanced search