Go to advanced search

by DougieLawson
Wed Jul 18, 2018 4:18 pm
Forum: Troubleshooting
Topic: PPP Serial communication between two Pi's
Replies: 6
Views: 151

Re: PPP Serial communication between two Pi's

You'll need to create a route between the eth0 and ppp0. What you're doing is much like making the Raspberry into a Wireless AP as documented at: https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md You should be able to crib some of that stuff (change wlan0 for ppp0 on t...
by DougieLawson
Wed Jul 18, 2018 1:54 pm
Forum: Beginners
Topic: open CMD on startup with and eun a command?
Replies: 6
Views: 83

Re: open CMD on startup with and eun a command?

How do you know it's not running?

Add this: > /var/log/jar.log 2> /var/log/jar.error (stuff in blue) between the end of your command and the &

When you've rebooted and you think it's failed take a look at those two logfiles you've just written.
by DougieLawson
Wed Jul 18, 2018 1:25 pm
Forum: Bare metal, Assembly language
Topic: Understanding the mailbox property interface
Replies: 6
Views: 100

Re: Understanding the mailbox property interface

I've started writing a more comprehensive mailbox document, the work in [progress is here https://github.com/raspberrypi/documentation/tree/JamesH65-mailbox_docs/configuration/mailboxes Does that help? In your article can you include a simple sample C program that anyone can cut'n'paste and get run...
by DougieLawson
Wed Jul 18, 2018 1:05 pm
Forum: General discussion
Topic: RTC sync with NTP
Replies: 9
Views: 129

Re: RTC sync with NTP

run sudo systemctl daemon-reload
by DougieLawson
Wed Jul 18, 2018 12:35 pm
Forum: Troubleshooting
Topic: hostapd problems after upgrade to 4.14.50
Replies: 53
Views: 1056

Re: hostapd problems after upgrade to 4.14.50

For many years interacting with some of the largest software (and hardware) suppliers in an enterprise environment the "normal" reaction on a problem report would be: "please install the latest version" before closing the case. Something similar occurred in this thread, so I upgraded to 4.14.52 and...
by DougieLawson
Wed Jul 18, 2018 12:25 pm
Forum: General discussion
Topic: RTC sync with NTP
Replies: 9
Views: 129

Re: RTC sync with NTP

On the two machines with RTCs I've done those udev changes. NTP got replaced with timedatectl in Rasbian Stretch. NTP continually updates the clock. Timedatectl periodically updates it (although I can't find out how often - Google won't tell me). On my network I put NTP back in. One machine syncs to...
by DougieLawson
Wed Jul 18, 2018 12:14 pm
Forum: General discussion
Topic: "Low depth" power supply
Replies: 15
Views: 385

Re: "Low depth" power supply

It depends what you define as an "appliance". For example, connecting an electric hob or fan oven to a 30A supply is somthing that's best left for a competent person. That's true here in the UK if what you're doing is covered by part P. https://www.gov.uk/government/publications/electrical-safety-ap...
by DougieLawson
Wed Jul 18, 2018 12:02 pm
Forum: General discussion
Topic: RTC sync with NTP
Replies: 9
Views: 129

Re: RTC sync with NTP

If you have a real RTC you don't need fake-hwclock. So run that stuff once.
by DougieLawson
Wed Jul 18, 2018 11:58 am
Forum: General discussion
Topic: RTC sync with NTP
Replies: 9
Views: 129

Re: RTC sync with NTP

Set up a cron job.

/etc/cron.daily/hwclock

Code: Select all

#!/bin/sh

/sbin/hwclock --systohc
sudo chmod 755 /etc/cron.daily/hwclock

That will run at 06:25 local every day.

You can also use /sbin/hwclock --adjust > /dev/null instead.
by DougieLawson
Wed Jul 18, 2018 11:07 am
Forum: Beginners
Topic: open CMD on startup with and eun a command?
Replies: 6
Views: 83

Re: open CMD on startup with and eun a command?

Leave the exit line alone.

Also if your Jar file is a graphical thing then that start too early before the desktop is alive. It will fail. To start graphical things use /home/pi/.config/lxsession/LXDE-pi/autostart.
by DougieLawson
Wed Jul 18, 2018 10:46 am
Forum: Beginners
Topic: open CMD on startup with and eun a command?
Replies: 6
Views: 83

Re: open CMD on startup with and eun a command?

Get rid of any quotes in /etc/rc.local add an & on the end of your

Code: Select all

/home/pi/Documents/start.sh &
line
by DougieLawson
Wed Jul 18, 2018 9:46 am
Forum: Raspbian
Topic: systemd service won't run at startup
Replies: 2
Views: 43

Re: systemd service won't run at startup

Try creating these three services /etc/systemd/system/raspivid.service [Unit] Description=raspivid process Requires=netcat.socket After=netcat.socket Wants=netcat.service [Service] TimeoutStartSec=infinity Sockets=netcat.socket StandardOutput=fd:netcat.socket StandardError=journal ExecStart=/usr/bin...
by DougieLawson
Tue Jul 17, 2018 9:19 pm
Forum: Beginners
Topic: Current NOOBS (June 2018) on older Pi B+ ?
Replies: 7
Views: 127

Re: Current NOOBS (June 2018) on older Pi B+ ?

There's only Raspbian included on a full NOOBS SDCard. Every other OS offered will be downloaded on demand from the internets.
by DougieLawson
Tue Jul 17, 2018 7:41 pm
Forum: Beginners
Topic: Current NOOBS (June 2018) on older Pi B+ ?
Replies: 7
Views: 127

Re: Current NOOBS (June 2018) on older Pi B+ ?

Current NOOBS 2.8.2 is compatible with every model of Raspberry.
by DougieLawson
Tue Jul 17, 2018 7:39 pm
Forum: Troubleshooting
Topic: Problem with a library
Replies: 11
Views: 270

Re: Problem with a library

If you can't answer a simple question with a simple answer and a simple source code example, then I'm out of here.
by DougieLawson
Tue Jul 17, 2018 5:33 pm
Forum: Beginners
Topic: between /etc/dhcpd.conf  and / etc / network/interfaces
Replies: 2
Views: 84

Re: between /etc/dhcpd.conf  and / etc / network/interfaces

The former works, the latter was deprecated in Raspbian Jessie.
by DougieLawson
Tue Jul 17, 2018 4:02 pm
Forum: Raspbian
Topic: Hook script for USB register and/or eth0 disappear
Replies: 13
Views: 174

Re: Hook script for USB register and/or eth0 disappear

The other thing is that /home/pi/myScript.sh must run to completion (one-shot process) in less than 30 seconds or Udev will kill it.
by DougieLawson
Tue Jul 17, 2018 3:16 pm
Forum: Raspbian
Topic: March 2018 Noobs download
Replies: 4
Views: 108

Re: March 2018 Noobs download

Why aren't you using NOOBS 2.8.2 which is fully supported on ANY model of Raspberry?

Going backwards re-introduces known bugs.
by DougieLawson
Tue Jul 17, 2018 3:15 pm
Forum: Beginners
Topic: Pi 3 model B+ not boot
Replies: 10
Views: 202

Re: Pi 3 model B+ not boot

Read the boot problems sticky thread at: viewtopic.php?f=28&t=58151
by DougieLawson
Tue Jul 17, 2018 3:12 pm
Forum: Troubleshooting
Topic: Problem with a library
Replies: 11
Views: 270

Re: Problem with a library

Did you compile/link the program on Windows and deploy on your Raspberry? Or did you move the source code to your Raspberry and compile on there?

Can you post an example program that doesn't work on here (in [code]... your stuff goes here ...[/code] tags)?
by DougieLawson
Mon Jul 16, 2018 6:54 pm
Forum: Beginners
Topic: Installation of Mysql connector on Pi
Replies: 5
Views: 122

Re: Installation of Mysql connector on Pi

Sorry I don't know how MySQL works (or fails) on Windows, I've never dreamt of running it on anything other than Linux.
by DougieLawson
Mon Jul 16, 2018 6:50 pm
Forum: Raspbian
Topic: How to disable screen blanking
Replies: 42
Views: 227915

Re: How to disable screen blanking

The one time I wanted to run a slide show with a projector I used Pi Presents.
https://pipresents.wordpress.com

https://pipresents.wordpress.com/download/

No screen blanking with that stuff.
by DougieLawson
Mon Jul 16, 2018 12:05 pm
Forum: Automation, sensing and robotics
Topic: Wireless soil moisture sensor
Replies: 15
Views: 270

Re: Wireless soil moisture sensor

The ESP is like an Arduino with on-board WiFi. It's got pins for 3V3 or 5V (if you get a Wemos variant).

I stuffed some sample code at: https://github.com/DougieLawson/Wemos_Arduino_MQTT a while ago.
by DougieLawson
Mon Jul 16, 2018 11:46 am
Forum: Beginners
Topic: Installation of Mysql connector on Pi
Replies: 5
Views: 122

Re: Installation of Mysql connector on Pi

Yes.
by DougieLawson
Mon Jul 16, 2018 11:40 am
Forum: General discussion
Topic: New firmware for the official wireless dongle
Replies: 4
Views: 226

Re: New firmware for the official wireless dongle

It'll go round 13 of my 15 raspberries when I do the next round of reboots (some of them use BRCM dongles/on-board WiFi).

Go to advanced search