Go to advanced search

by PlanB
Sun Oct 29, 2017 9:04 pm
Forum: Troubleshooting
Topic: Time does not sync on Pi 3 and with official dongle [Solved]
Replies: 57
Views: 36464

Re: [Solved] Time does not sync on Pi 3 and with official dongle

sntp -s time.google.com seems to work as a clock adjuster, I'm just a bit unsure about if it keeps running or not after I've used it? It generally does the adjustment in just a few seconds. ntpd -qg is definitely a one shot that I can use each modem power up but it takes at least a quarter of a minu...
by PlanB
Sun Oct 29, 2017 12:44 pm
Forum: Troubleshooting
Topic: Time does not sync on Pi 3 and with official dongle [Solved]
Replies: 57
Views: 36464

Re: [Solved] Time does not sync on Pi 3 and with official dongle

I've got Jessie on a Pi0 whose only internet connection is a 3G modem that powers up briefly every 10 mins to squirt some data to a website. I'm in all all sorts of strife with ntp, ntpd, sntp, etc. I've tried shutting down the automatic service (/etc/init.d/ntp stop) & running sntp -s google.com ea...
by PlanB
Wed Oct 25, 2017 1:22 am
Forum: Advanced users
Topic: Raspberry Pi B+ turn usb power off
Replies: 52
Views: 98479

Re: Raspberry Pi B+ turn usb power off

I can't seem to compile this program on a Pi0 with Jessie. Get an error 'undefined reference to `main'
collect2: error: ld returned 1 exit status' and after that the hub-ctrl.c program is gone?!
by PlanB
Sat Oct 14, 2017 11:25 pm
Forum: Troubleshooting
Topic: import subprocess nuance
Replies: 3
Views: 532

Re: import subprocess nuance

The first fn was throwing an error saying 'subprocess referenced before assignment' but I just removed it's 'import subprocess' & it's not complaining so I'm even more confused now. Python interpreters are moody creatures.
by PlanB
Sat Oct 14, 2017 12:11 pm
Forum: Troubleshooting
Topic: import subprocess nuance
Replies: 3
Views: 532

import subprocess nuance

I import subprocess at the top of a python 2.7 program. The program calls a couple of functions that also use subprocess. The 1st fn has the line p = subprocess.Popen (['python', '/home/pi/gpioA-D/pot_cap.py'], stdout=subprocess.PIPE,stderr=subprocess.PIPE) The 2ndr uses catdata = subprocess.Popen([...
by PlanB
Tue Oct 03, 2017 11:52 pm
Forum: Troubleshooting
Topic: STICKY:I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.
Replies: 335
Views: 546528

Re: STICKY:I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.

Phil, a year or so ago you were kind enough to write me a w1-gpio-intpullup.dtb file that eliminated the need for the external 4k7 on the DS18B20 data line in Wheezy by substituting the more than adequate strong internal pull up available on gpio4 I renamed the file w1-gpio-intpullup.dtbo & it works...
by PlanB
Mon Oct 02, 2017 5:19 am
Forum: Device Tree
Topic: .dtbo Vs .dtb
Replies: 2
Views: 3057

Re: .dtbo Vs .dtb

I get this when I try to use the Wheezy .dtb as a .dtbo in Jessie
[ 6.517364] w1-gpio onewire@0: gpio pin 4, external pullup pin -1, parasitic power 0
[ 6.517414] w1_add_master_device: set_pullup requires write_byte or touch_bit, disabling
by PlanB
Mon Oct 02, 2017 4:35 am
Forum: Device Tree
Topic: .dtbo Vs .dtb
Replies: 2
Views: 3057

.dtbo Vs .dtb

Device tree puzzles me greatly but I'm making the effort. I've got a w1-gpio-intpullup-overlay.dtb file from my Wheezy days with the DS18B20 that I'd like to use with Jessie. Alas this is pushing my userland slum credentials. Anybody know how to convert this to a Jessie compatible .dtbo file?
by PlanB
Wed Jun 07, 2017 3:20 am
Forum: Troubleshooting
Topic: Jessielite wifi pi3
Replies: 3
Views: 619

Re: Jessielite wifi pi3

Here is my problem as near as I can figure it out. WiFi details in Jessie are entered into /etc/wpa_supplicant/wpa_supplicant.conf The file originally looks something like; country=AU ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 then, when the AP details are input, it look...
by PlanB
Tue Jun 06, 2017 12:58 pm
Forum: Troubleshooting
Topic: Jessielite wifi pi3
Replies: 3
Views: 619

Jessielite wifi pi3

I downloaded a jessielite about a year ago, learned of the demise of /etc/network/interfaces & used /etc/dhcpcd.conf instead. Wifi worked & ls /var/run gave... avahi-daemon crond.reboot dhcpcd hcpcd.sock dnsmasq initctl log network plymouth rsyslogd.pid shm sshd.pid thd.pid tmpfiles.d user wpa_suppl...
by PlanB
Mon Jun 05, 2017 1:17 pm
Forum: Beginners
Topic: command line version of piclone?
Replies: 12
Views: 11116

Re: command line version of piclone?

I get a similar gripe when I try to use Bill Wilson's rpi-clone
by PlanB
Mon Jun 05, 2017 1:16 pm
Forum: Beginners
Topic: command line version of piclone?
Replies: 12
Views: 11116

Re: command line version of piclone?

Thnx for the tip, any idea how to fix the 'operation not permitted' errors? root@raspberrypi:/home/pi# bash sdclone /dev/sda umount: /dev/sda9: mountpoint not found umount: /dev/sda8: mountpoint not found umount: /dev/sda7: mountpoint not found umount: /dev/sda6: mountpoint not found umount: /dev/sd...
by PlanB
Mon Jun 05, 2017 12:28 pm
Forum: Beginners
Topic: command line version of piclone?
Replies: 12
Views: 11116

Re: command line version of piclone?

I pasted the above code into a file I named sdclone & tried to run it. I got..... root@raspberrypi:/home/pi# bash sdclone umount: 9: mountpoint not found umount: 8: mountpoint not found umount: 7: mountpoint not found umount: 6: mountpoint not found umount: 5: mountpoint not found umount: 4: mountpo...
by PlanB
Mon Jun 05, 2017 12:23 pm
Forum: Beginners
Topic: New "SD copy" feature of Raspian - Howto?
Replies: 17
Views: 8972

Re: New "SD copy" feature of Raspian - Howto?

I'm trying to get piclone working on Jessielite (Linux raspberrypi 4.4.38-v7+ #938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l GNU/Linux)so no startx or pixel GUI. From the cli I get ..... root@raspberrypi:/home/pi# piclone (piclone:1078): Gtk-WARNING **: cannot open display: I've googled this but none ...
by PlanB
Mon May 15, 2017 2:24 am
Forum: Troubleshooting
Topic: Rpi-clone
Replies: 3
Views: 2478

Rpi-clone

For a couple of years now I've had great success with Bill Wilson's https://github.com/billw2/rpi-clone for dupicating SD cards on the pi. Great little utility that automatically resizes to fit the card your duplicating to. When I moved to jessie lite last year it still worked great. However last ni...
by PlanB
Tue Dec 27, 2016 12:26 am
Forum: Raspbian
Topic: PiZero:Low speed USB devices don't work with Hub (05e3:0606)
Replies: 2
Views: 2012

Re: PiZero:Low speed USB devices don't work with Hub (05e3:0

Having exactly the same problem here, doesn't really seem to be any of the issues mentioned in the 2013 engineer post. The fact that the keyboard/gensys combo works when connected to the pi via the TerminusTech hub just floors me, I guess because it hammers home how much I don't know about USB.
by PlanB
Mon Dec 19, 2016 3:28 am
Forum: General discussion
Topic: Pi Zero USB hub
Replies: 96
Views: 75609

Re: Pi Zero USB hub

I've got identical software (cloned sd cards) on a piA+, a pi0 & a pi3. I bought a usb hub for the pi0/piA+ but it won't work (not even with just a keyboard plugged in) on either yet identifies/functions OK on the pi3 (Bus 001 Device 004: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 ...
by PlanB
Sat Nov 05, 2016 11:21 pm
Forum: Python
Topic: gpio.add_event_detect disabled by os.system
Replies: 6
Views: 1586

Re: gpio.add_event_detect disabled by os.system

Just as a matter of interest the GPIO.add_event_detect(channel, GPIO.OPTION, callback=my_callback) version of this fn crashes the I2C bus if you happen to be using the bus at the time the interrupt occurs. If you can wait till you're not using the bus to service the interrupt then GPIO.add_event_det...
by PlanB
Thu Nov 03, 2016 7:58 am
Forum: Python
Topic: gpio.add_event_detect disabled by os.system
Replies: 6
Views: 1586

Re: gpio.add_event_detect disabled by os.system

I really struggled with Jessie, all the wireless setups seemed so different. Is there no way I can get the new gpio into Wheezy? Successfully installed pip-9.0.0 root@harbinger:/home/pi/client# pip install python-rpi.gpio Collecting python-rpi.gpio /usr/local/lib/python2.7/dist-packages/pip/_vendor/...
by PlanB
Thu Nov 03, 2016 1:05 am
Forum: Python
Topic: gpio.add_event_detect disabled by os.system
Replies: 6
Views: 1586

Re: gpio.add_event_detect disabled by os.system

I did a sudo apt-get update today then an apt-get -y install python-rpi.gpio I got ; Hit http://raspberrypi.collabora.com wheezy Release.gpg .... Fetched 7,186 kB in 42s (168 kB/s) Reading package lists... Done then python-rpi.gpio is already the newest version. 0 upgraded, 0 newly installed, 0 to r...
by PlanB
Sun Oct 30, 2016 11:53 am
Forum: Python
Topic: gpio.add_event_detect disabled by os.system
Replies: 6
Views: 1586

Re: gpio.add_event_detect disabled by os.system

Wow, would that all my Pi tribulations were cured so promptly, thnx
by PlanB
Sun Oct 30, 2016 11:35 am
Forum: Python
Topic: gpio.add_event_detect disabled by os.system
Replies: 6
Views: 1586

gpio.add_event_detect disabled by os.system

I've got a little python routine that uses wall instead of print to output diagnostics. As the program runs the diagnostics are accumulated in a log_output file & at the end the wall outputs them all at once. Wall outputs text no matter how you're connected to the pi (ssh, local terminal, 'screen' s...
by PlanB
Sat Aug 27, 2016 12:37 pm
Forum: Troubleshooting
Topic: Pi Zero ethernet
Replies: 23
Views: 5803

Re: Pi Zero ethernet

For what it's worth the updated wheezy sd from my Pi3 works OK with the 9601 chipset, you don't have to go to jessie. The particular combined usbhub/ethernet unit I had was a dud but a 9601 based ethernet only adapter was fine.
by PlanB
Thu Aug 25, 2016 8:20 am
Forum: Troubleshooting
Topic: Pi Zero ethernet
Replies: 23
Views: 5803

Re: Pi Zero ethernet

I'm getting no indication that there is a driver problem here, no kernel panics, the iptable looks OK, /var/log/messages are sweet. I've got this nagging suspicion something else is amiss.
by PlanB
Thu Aug 25, 2016 4:44 am
Forum: Troubleshooting
Topic: Pi Zero ethernet
Replies: 23
Views: 5803

Re: Pi Zero ethernet

So do I have any chance of getting the 9601 chipset working without upgrading to Jessie? Jessie frightens the life out of me because of stuff like https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=110606 and this thing is looking like it should work, no kernel crashes, route -n, ifconfig etc a...

Go to advanced search