Go to advanced search

by wymand
Fri Jun 28, 2019 9:25 pm
Forum: General discussion
Topic: Raspberry Pi 4 touch screen and HDMI
Replies: 2
Views: 718

Raspberry Pi 4 touch screen and HDMI

I am curious if the Raspberry Pi 4 can support a touch screen and an hdmi output at the same time.
by wymand
Sat Mar 03, 2018 11:42 pm
Forum: Python
Topic: SMBus address error
Replies: 0
Views: 195

SMBus address error

I am curious why the following lines of code work: myx = smbus.SMBus(1) reading = [] for port in range(0,0x32): sys.stdout.write(str(port)) reading.append(format(myx.read_byte_data(83,port), '#04x')) However if I comment out the sys.stdout.write(str(port)) I get an I/O failure :?: Doug (superannuate...
by wymand
Sat Nov 05, 2016 5:53 pm
Forum: Troubleshooting
Topic: Won't boot without HDMI connected (solved)
Replies: 8
Views: 15378

Re: Won't boot without HDMI connected (solved)

I also had the no boot without HDMI problem and tried all the fixes listed to no avail. Then I noticed in rasp-config advance options I had enabled the GL driver. Once the GL driver was disabled, the pi boots fine without HDMI
by wymand
Sat Oct 29, 2016 10:19 pm
Forum: Advanced users
Topic: lirc.conf for KEYES remote control
Replies: 0
Views: 918

lirc.conf for KEYES remote control

I bought one of the inexpensive IR remote control kits for Raspberry Pi. IT worked well with an LG remote but I could not find a configuration for the KEYES remote that came with the kit. I recorded one using irrecord and here is the result. # Please make this file available to others # by sending i...
by wymand
Tue Oct 25, 2016 6:36 pm
Forum: Troubleshooting
Topic: avconv frozen first frame recording
Replies: 0
Views: 217

avconv frozen first frame recording

I have a Raspberry Pi 3 running rasbian wheezy. I use avconv to stream to a file from an mpeg IP stream. avconv -y -i "http://192.168.0.164/videostream.asf?user=admin&pwd=iamat1face" -t 900 -map 0:0 -f avi -vcodec copy "/ftp/cam164/cam164_$hour.avi" where $hour is the recording start time. The recor...
by wymand
Wed Mar 30, 2016 12:17 am
Forum: Raspbian
Topic: Rasbian Jessie frustrations
Replies: 1
Views: 523

Rasbian Jessie frustrations

service mountall.sh start
Failed to start mountall.service: Unit mountall.service is masked.

What does service is masked mean?
How can I fix it?
by wymand
Tue Mar 29, 2016 12:20 am
Forum: Raspbian
Topic: shutdown fails
Replies: 3
Views: 988

Re: shutdown fails

On Rasbian Wheezy a shutdown -rF does a shutdown and runs a file check and restarts
shutdown -h halts the system
Does the reboot run the file check now?
by wymand
Mon Mar 28, 2016 7:41 pm
Forum: Raspbian
Topic: shutdown fails
Replies: 3
Views: 988

shutdown fails

When I try a shutdown on my new Rasbian Jessie install I get this

[email protected]:~# shutdown -rF now
Code should not be reached 'Unhandled option' at ../src/systemctl/systemctl.c:6316, function shutdown_parse_argv(). Aborting.
Aborted

What do I need to change
by wymand
Thu Jul 02, 2015 7:03 pm
Forum: Python
Topic: Python MySQLdb
Replies: 2
Views: 543

Re: Python MySQLdb

try sudo apt-get install mysql-server
by wymand
Thu Jul 02, 2015 6:59 pm
Forum: Python
Topic: Sunrise and Sunset calculation in Python
Replies: 4
Views: 7100

Sunrise and Sunset calculation in Python

Here is a link to my blog http://tigermountainsprings.net/wp/?p=343 on adding
Sunrise and Sunset calculation to a Raspberry Pi running Python.
this is part of my Chicken Coop Control http://tigermountainsprings.net/wp/ system
that I use to operate and protect the chicken coop and flock.
by wymand
Mon Apr 20, 2015 9:26 pm
Forum: General discussion
Topic: Send Hex Data Serial Port
Replies: 18
Views: 24497

Re: Send Hex Data Serial Port using Raspberry Pi

Rereading your post you want to store the returned data in text form. This does not require you to change to decimal form. response = ser.readline() print("read Serial Number MSB = : 0x" + str(binascii.hexlify(response[7])) + str(binascii.hexlify(response[8]))) This code reads a line of data and cha...
by wymand
Mon Apr 20, 2015 9:22 pm
Forum: General discussion
Topic: Send Hex Data Serial Port
Replies: 18
Views: 24497

Re: Send Hex Data Serial Port using Raspberry Pi

I am using pyserial module in Python to send hex data (apt-get install python-serial) The commands to send are easy. ser.write(serial.to_bytes([0x4C,0x12,0x01,0x00,0x03,0x40,0xFB,0x02,0x7a])) It dies of course require setup. See my blog on Element 14 for a program sample http://www.element14.com/com...
by wymand
Mon Apr 20, 2015 8:57 pm
Forum: Automation, sensing and robotics
Topic: Thinking of a project - road/path usage
Replies: 4
Views: 929

Re: Thinking of a project - road/path usage

To see if a car is parked, the distance to the nearest object could be stored. If the next check shows the same reading or the same reading is present in X out of number of shots, something is there and not moving. I think this would be more reliable and would require less coding than imaging. After...
by wymand
Thu Apr 16, 2015 12:02 am
Forum: Python
Topic: Sample program to read TI HDC1000EVM
Replies: 0
Views: 482

Sample program to read TI HDC1000EVM

Here is a sample program in python2.x to read the Texas Instruments HDC1000EVM import serial #sample program to read Texas Instruments HDC1000EVM #initialization and open the port #possible timeout values: # 1. None: wait forever, block call # 2. 0: non-blocking mode, return immediately # 3. x, x is...
by wymand
Wed Apr 15, 2015 9:52 pm
Forum: Python
Topic: 'Serial' object has no attribute 'fd' (solved)
Replies: 2
Views: 1538

Re: 'Serial' object has no attribute 'fd'

HAH!!!! I found the cause. Being an old timer serial programmer it has been my good practice to set RTS and DTR. NO!!!!! I did a line by line check and the setting of either caused the no attribute fd error. Plugging along, I am getting returns from the module in fact more than expected. Thank you I...
by wymand
Wed Apr 15, 2015 9:17 pm
Forum: Python
Topic: 'Serial' object has no attribute 'fd' (solved)
Replies: 2
Views: 1538

'Serial' object has no attribute 'fd' (solved)

I am trying to use python (or python3) to evaluate the TI HDC1000EVM. I can see the device in /dev as /dev/ttyACM0 it also appears in /dev/serial/by-id/usb-Texas_Instruments_MSP430-USB_Example_E89A816F1C000500-if00 -> ../../ttyACM0 However when I try to open the device using python serial I get an e...
by wymand
Tue Apr 14, 2015 6:58 pm
Forum: Automation, sensing and robotics
Topic: Thinking of a project - road/path usage
Replies: 4
Views: 929

Re: Thinking of a project - road/path usage

The basic idea is great BUT... Always a BUT in the equation. Having worked for and consulted with law enforcement (retired State Patrol IT) and for Dpt of Transportation, the big roadblock is political. People do NOT want such things implemented. We installed automatic license plate readers (ALPR) a...
by wymand
Wed Jan 21, 2015 2:33 am
Forum: Troubleshooting
Topic: latest update removed SPI
Replies: 6
Views: 988

Re: latest update removed SPI

:evil: It would be nice if there were some means of warning people of this major of a change.
Thank you for pointing me in the right direction.

And... As was said on that, I am SURE there will be an avalanche of posts on this
by wymand
Wed Jan 21, 2015 1:31 am
Forum: Troubleshooting
Topic: latest update removed SPI
Replies: 6
Views: 988

latest update removed SPI

I just did an rpi-update, apt-get update apt-get dist-upgrade on all 4 of my raspberry pi computers. Every single one lost the SPI.
I reverted to a saved image and SPI is back. HELP :o
by wymand
Fri Dec 05, 2014 11:57 pm
Forum: Python
Topic: Cleaning up GPIO
Replies: 2
Views: 733

Re: Cleaning up GPIO

Dirk, Thanks I will remove the GPIO.remove_event_detect(pir_no) line and see if anything breaks. No need to have the process trying to figure out WHAT #$%^& EVENT? Who knows if it is not needed it might decide to remove something else. <GRIN> Have some doubts about the 'GPIO.remove_detect_event' cal...
by wymand
Fri Dec 05, 2014 10:48 pm
Forum: Python
Topic: Cleaning up GPIO
Replies: 2
Views: 733

Cleaning up GPIO

I have the following program and it runs well however on keyboard interrupt I do not see the print statement before the GPIO.cleanup() statement and wonder if the GPIO is being cleaned up and the processes all cleaned up. from multiprocessing import Process import RPi.GPIO as GPIO import httplib2 im...
by wymand
Fri Dec 05, 2014 12:53 am
Forum: Advanced users
Topic: GPIO pins 21, 23 and 25 used by PiFace?
Replies: 2
Views: 705

Re: GPIO pins 21, 23 and 25 used by PiFace?

Thanks Dougie, I hope I haven't fried input 25 during my testing. :oops:
by wymand
Thu Dec 04, 2014 10:28 pm
Forum: Advanced users
Topic: GPIO pins 21, 23 and 25 used by PiFace?
Replies: 2
Views: 705

GPIO pins 21, 23 and 25 used by PiFace?

I was trying to use the RPi GPIO pins 21, 23 and 25 for inputs using the PiPlate and use a PiFace for it's outputs. I could not get the inputs (PIR sensors) to work with the PiFace connected but they worked fine with the PiFace removed. This makes me think the PiFace is using GPIO 21,23 and 25 but I...
by wymand
Mon Nov 10, 2014 5:32 pm
Forum: Troubleshooting
Topic: cron running wild
Replies: 11
Views: 1953

Re: cron running wild

I finally caught the culprit. It is indeed cron hanging up on the php5 script that runs every half hour. # /etc/cron.d/php5: crontab fragment for php5 # This purges session files older than X, where X is defined in seconds # as the largest value of session.gc_maxlifetime from all your php.ini # file...
by wymand
Sun Nov 09, 2014 5:07 pm
Forum: Troubleshooting
Topic: cron running wild
Replies: 11
Views: 1953

Re: cron running wild

I just checked and the output to the URL looks truncated also. ??? You could redirect the output to a file and pastebin that. It should not be truncated then. ps axjf > ps.out cat ps.out| pastebinit Gr. Dirk. It truncates when piping it to a file also. The cure is to make as wide a terminal window ...

Go to advanced search