Go to advanced search

by DougieLawson
Mon Jun 25, 2018 7:01 pm
Forum: General discussion
Topic: Multiple Frame buffer beta testers wanted
Replies: 28
Views: 970

Re: Multiple Frame buffer beta testers wanted

I gave this a try on my RPi3B with the Official LCD. I got the rainbow screen (on both the LCD and the TV) but the boot didn't continue from that point. That 3B is set-up to boot from a USB stick. It was already running 4.14.50-v7+ #1122 before I started the experiment. I may try again with a USB se...
by DougieLawson
Mon Jun 25, 2018 6:57 pm
Forum: Python
Topic: Pyhon script not logging when running from terminal
Replies: 5
Views: 95

Re: Pyhon script not logging when running from terminal

You have two versions of your CSV.

One in a subdirectory of your home directory
/home/pi/les/TempStation.log.csv

One in the root
/TempStation.log.csv

The root version was written there because you don't fully qualify the path in your program.
by DougieLawson
Mon Jun 25, 2018 6:54 pm
Forum: General discussion
Topic: What is the vcgencmd command?
Replies: 1
Views: 20

Re: What is the vcgencmd command?

vc == video core
gen == generate
cmd == command

It's a command line interface to generate commands passed directly to the VC4.

Source code at: https://github.com/raspberrypi/userland
by DougieLawson
Mon Jun 25, 2018 5:22 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Raspberry Pi communicating with ARPI600
Replies: 4
Views: 75

Re: Raspberry Pi communicating with ARPI600

Add this

Code: Select all

dtoverlay=i2c-rtc,pcf8563
enable_uart=1
to /boot/config.txt and reboot to get your RTC working and enable the serial.
by DougieLawson
Mon Jun 25, 2018 5:08 pm
Forum: General discussion
Topic: set time on pi with local server without internet
Replies: 2
Views: 25

Re: set time on pi with local server without internet

If you edit /etc/systemd/timesyncd.conf you can add the local IP address for your time server. The local time server needs to be running on port UDP/123.
by DougieLawson
Mon Jun 25, 2018 2:46 pm
Forum: Troubleshooting
Topic: Why Raspberry Pi is affected by USB KIller?
Replies: 16
Views: 371

Re: Why Raspberry Pi is affected by USB KIller?

There's nothing in the USB spec about surge protection. So they're testing something that's "out of spec". There's some protection for 5V at more than 1.8A but not hundreds of volts. I like James analogy to windscreen testing with a sledge hammer. That reminds me about the [apocryphal] story of VC10...
by DougieLawson
Mon Jun 25, 2018 2:25 pm
Forum: Beginners
Topic: Security & Transfer files
Replies: 2
Views: 40

Re: Security & Transfer files

The GUI has a "SD Card Copier" option.

You need to ensure that your original SDCard has the firmware/bootcode/kernel to support the target machine before you start.

As to secure, what do you mean? What security do you need? What are you protecting?
by DougieLawson
Mon Jun 25, 2018 2:23 pm
Forum: Troubleshooting
Topic: Why Raspberry Pi is affected by USB KIller?
Replies: 16
Views: 371

Re: Why Raspberry Pi is affected by USB KIller?

Why would anyone spend €55 to get a device to destroy the motherboard in a €400 laptop (and possibly take the harddrive/SSD with it)? It makes no sense. They're not protecting anyone from anything. They may demonstrate that Joe Bloggs shouldn't plug that random device that appeared on their desk int...
by DougieLawson
Mon Jun 25, 2018 2:07 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Raspberry Pi communicating with ARPI600
Replies: 4
Views: 75

Re: Raspberry Pi communicating with ARPI600

You should use sudo raspi-config to disable the serial console. It edits all the stuff for you.
by DougieLawson
Mon Jun 25, 2018 2:05 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Trouble Connecting an RF Module over SPI
Replies: 8
Views: 172

Re: Trouble Connecting an RF Module over SPI

I might be completely wrong but looking at the documentation on page 11, the column "Type" appears incorrect for the use for pins 2 and 3, are they round the wrong way? I think that's just a typo in the docs. Pin#2 is MISO which connects to RPi MISO pin#21 (BCM09) Pin#3 is MOSI which connects to RP...
by DougieLawson
Mon Jun 25, 2018 10:36 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Trouble Connecting an RF Module over SPI
Replies: 8
Views: 172

Re: Trouble Connecting an RF Module over SPI

Have you tried using python to work with your RFM69?

http://rpi-rfm69.readthedocs.io/en/latest/
by DougieLawson
Mon Jun 25, 2018 9:22 am
Forum: Beginners
Topic: not getting ping unless reboot
Replies: 2
Views: 72

Re: not getting ping unless reboot

What's the DHCP lease time set to on your router? Set it to at least 1440mins.
by DougieLawson
Sun Jun 24, 2018 10:05 pm
Forum: Advanced users
Topic: How to read data using Python/C++/JavaScript/HTML
Replies: 7
Views: 216

Re: How to read data using Python/C++/JavaScript/HTML

You need to point your browser at the local URL for your python CGI program. The program gets the as an Apache2 subtask.

The normal place for CGI programs is /usr/lib/cgi-bin unless you've changed it.
by DougieLawson
Sun Jun 24, 2018 7:48 pm
Forum: Python
Topic: Simplifying 'if' statements
Replies: 3
Views: 131

Re: Simplifying 'if' statements

I'd use a python dictionary Pixcolour = { 'VFR': vfr, 'MVFR': mvfr, 'IFR': ifr, 'LIFR': lifr} strip.setPixelColor(K_led, Pixcolour[data['data'][0]['flight_category']]) print(data['data'][index]['icao']+' is '+(data['data'][index]['flight_category'])) strip.show() No if needed.
by DougieLawson
Sun Jun 24, 2018 6:24 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Trouble Connecting an RF Module over SPI
Replies: 8
Views: 172

Re: Trouble Connecting an RF Module over SPI

You need to solder some header pins into that small circuit board. The pushed in wires won't make a reliable connection.
by DougieLawson
Sun Jun 24, 2018 5:02 pm
Forum: General discussion
Topic: Share HDD with windows and Pi
Replies: 27
Views: 699

Re: Share HDD with windows and Pi

169.254.xxx.xxx/16 addresses are chosen by the local TCP/IP stack with no external influence.

If your machine randomly picks the same 16-bit address (unlikely) as another on the network it'll re-run the automatic function and get a new address.

169.254.xxx.xxx is not routable.
by DougieLawson
Sun Jun 24, 2018 4:03 pm
Forum: Python
Topic: please explain this code?
Replies: 13
Views: 280

Re: please explain this code?

Unless your program is time critical then python is a good choice. It's easy to learn, there's lots of library functions, it's interpreted (edit & run, rather than edit, compile, link & run). It is slow but that won't matter. The only downside of python is the totally insane left-hand whitespace as ...
by DougieLawson
Sun Jun 24, 2018 3:37 pm
Forum: General discussion
Topic: STICKY: PINN - An enhanced version of NOOBS.
Replies: 406
Views: 105287

Re: STICKY: PINN - An enhanced version of NOOBS.

chrisino wrote:
Sun Jun 24, 2018 3:17 pm
Hi. It's a 32 gb card with LibreElec, Batocera on it. I'd like to add Raspian.

The Pinn installer just states overwrite if I add any other OS.
You can't do that with the current design of PINN (or NOOBS).
by DougieLawson
Sun Jun 24, 2018 2:15 pm
Forum: Python
Topic: please explain this code?
Replies: 13
Views: 280

Re: please explain this code?

Apart from language designers implementing that sort of junk, the folks who use it without clear "I'm insane so I wrote this." comments are the ones who need to meet the wrath of my educational baseball bat. If you use weird arcane crap like that you should at least explain why it solves your progra...
by DougieLawson
Sun Jun 24, 2018 2:09 pm
Forum: Beginners
Topic: is it correct the raspberry pi 0 has no spi headers?
Replies: 9
Views: 223

Re: is it correct the raspberry pi 0 has no spi headers?

You been the victim of fake news. The zeros have EXACTLY the same GPIOs as every other 40-pin Raspberry and the first 26 pins are IDENTICAL to every Raspberry since 2013.
by DougieLawson
Sun Jun 24, 2018 11:04 am
Forum: General discussion
Topic: STICKY: PINN - An enhanced version of NOOBS.
Replies: 406
Views: 105287

Re: STICKY: PINN - An enhanced version of NOOBS.

How about another method: Move the existing stuff from an 8GB SDcard to a 16GB (or 32GB to 64GB) use the free space that appears to allow expansion of that existing stuff or addition of new stuff. You could probably steal borrow the code from the RPF SDCard Copier (aka Piclone) to do some of that wo...
by DougieLawson
Sun Jun 24, 2018 10:59 am
Forum: Beginners
Topic: 5V relay to control a 0.5HP pump
Replies: 19
Views: 276

Re: 5V relay to control a 0.5HP pump

A servo (or solenoid) could press the button to start up (the length of time required to press it will be a guess based on experience), but personally I would wire a relay across the starter button (so much easier and more reliable than building a robot finger). The relay itself could be housed ins...
by DougieLawson
Sun Jun 24, 2018 10:42 am
Forum: General discussion
Topic: Documentation for beginners
Replies: 33
Views: 932

Re: Documentation for beginners

The problem with YT videos is too many are amateurish, they don't get straight to the point, they don't review the important bits. They miss the fact that 110V is safer than 230V. They're unscripted and un-edited. There's nothing worse than someone droning on about nonsense when they need to get on ...

Go to advanced search