Go to advanced search

by knute
Thu Sep 17, 2015 3:13 pm
Forum: Other programming languages
Topic: Perl 5.18?
Replies: 2
Views: 998

Perl 5.18?

Anybody know a simple way to get perl 5.18 on my Pi? I think Jessie has 5.18, is there a way to use the Jessie perl?

Thanks,
by knute
Fri Sep 11, 2015 2:30 am
Forum: Java
Topic: swing problems with ssh and xtightvncviewer
Replies: 1
Views: 573

Re: swing problems with ssh and xtightvncviewer

Looks like you don't have window$1 in your classpath. Is this program in a jar file? Are all the generated class files in the jar?
by knute
Tue Sep 01, 2015 4:51 am
Forum: General discussion
Topic: UDP broadcast appears blocked
Replies: 6
Views: 6223

Re: UDP broadcast appears blocked

Are the UDP packets correctly addressed to your Pi?
by knute
Sat Aug 29, 2015 5:01 am
Forum: Beginners
Topic: !?Java File Handling with Pi Server?!
Replies: 3
Views: 571

Re: !?Java File Handling with Pi Server?!

Well you could certainly write something in Java but there are already programs available to move files around. From the simple, FTP, to Samba shared files. If you want your Pi to really be a file server, Samba is the way I would go.
by knute
Wed Aug 26, 2015 3:20 am
Forum: Beginners
Topic: !?Java File Handling with Pi Server?!
Replies: 3
Views: 571

Re: !?Java File Handling with Pi Server?!

All the usual ways I'm sure. What do you want to upload and download?
by knute
Wed Aug 26, 2015 12:07 am
Forum: Astro Pi
Topic: Altimeter
Replies: 12
Views: 6139

Re: Altimeter

Your sensor will measure air pressure and that changes all the time. It needs to be corrected for that and elevation. The simplest method to correct it is to find an airport near you and get their altimeter setting. This is their pressure reading adjusted for their elevation. If you are in the U.S. ...
by knute
Tue Aug 25, 2015 11:57 pm
Forum: Troubleshooting
Topic: Where do I find the Git has for older firmware?
Replies: 2
Views: 547

Re: Where do I find the Git has for older firmware?

Found that hashes, thanks! When I try to use them to revert or advance the kernel I get an error message about something not being gzipped? I thought it might be because of an anachronistic rpi-update script but I tried going from old to new and new to old and got the same message every time. Thanks,
by knute
Tue Aug 25, 2015 12:26 am
Forum: Troubleshooting
Topic: Incompatibility between new #810 kernel and PIGPIO v36
Replies: 4
Views: 869

Re: Incompatibility between new #810 kernel and PIGPIO v36

I had the problem on all 4 of my Pis. I reloaded the OS on all of them in an attempt to duplicate the problem today but I couldn't. Needless to say I was going crazy. But I did find out what was causing the problems: the w1-gpio device tree overlay. If that is active and it is on GPIO pin 4 it inter...
by knute
Mon Aug 24, 2015 4:50 pm
Forum: Troubleshooting
Topic: Where do I find the Git has for older firmware?
Replies: 2
Views: 547

Where do I find the Git has for older firmware?

I looked at the site https://github.com/Hexxeh/rpi-update and it says "To upgrade/downgrade to a specific firmware revision, specify its Git hash (from the https://github.com/Hexxeh/rpi-firmware repository) as follows: sudo rpi-update fab7796df0cf29f9563b507a59ce5b17d93e0390" but if you go to that p...
by knute
Mon Aug 24, 2015 4:45 pm
Forum: Troubleshooting
Topic: Incompatibility between new #810 kernel and PIGPIO v36
Replies: 4
Views: 869

Incompatibility between new #810 kernel and PIGPIO v36

I've been playing around with some DHTxx sensors and using both PIGPIO and the device tree code and found that if the kernel is upgraded to #810 that it interferes with PIGPIO. Reading of the DHTxx sensors with my program before kernel #810 was rock solid but after I got significant error rates. I l...
by knute
Mon Aug 24, 2015 4:48 am
Forum: Troubleshooting
Topic: vim double indents
Replies: 2
Views: 626

Re: vim double indents

I also use:

set shiftwidth=4
by knute
Thu Aug 20, 2015 3:46 pm
Forum: Beginners
Topic: How do I update to the latest version of PIGPIO?
Replies: 3
Views: 772

Re: How do I update to the latest version of PIGPIO?

It must have been a static link issue. I did a make uninstall, deleted the PIGPIO directory, deleted the pigpio files in /usr/local/lib, reinstalled and ran my program and it still showed V31. Then I recompiled it and now it's using V36.

Thanks!
by knute
Thu Aug 20, 2015 4:39 am
Forum: General programming discussion
Topic: dht11-overlay.dtb?
Replies: 5
Views: 2302

Re: dht11-overlay.dtb?

Thanks for the code! I looked through it but there is a lot I don't understand. It looks to me like he is checking for level changes in both directions. That requires considerably better resolution than just checking low going transitions. I do like his trick for determining whether a DHT11 or DHT22...
by knute
Thu Aug 20, 2015 4:22 am
Forum: Beginners
Topic: How do I update to the latest version of PIGPIO?
Replies: 3
Views: 772

How do I update to the latest version of PIGPIO?

I tried deleting the pigpio.zip file and the PIGPIO directory, downloading and doing a new make and install but it still shows version 31. Clearly I'm missing a step somewhere?

Thanks,
by knute
Wed Aug 19, 2015 12:06 am
Forum: General programming discussion
Topic: dht11-overlay.dtb?
Replies: 5
Views: 2302

Re: dht11-overlay.dtb?

Using the dht11-overlay with the new sensors I got today, the DHT22 works about 75% of the time and the DHT11 sensors don't ever give valid data. All of them work just fine using PIGPIO C code that I wrote to read them. I don't really understand how these overlays work but I'm assuming there are som...
by knute
Tue Aug 18, 2015 4:16 am
Forum: Networking and servers
Topic: Set up a static IP
Replies: 5
Views: 1084

Re: Set up a static IP

dhcpcd is a dhcp client. If he has the lastest software he has dhcpcd5 installed and it will give him both a static and dhcp address if he configures /etc/network/interfaces with the usual setup. See the link on how to set up a static address if you have dhcpcd running.
by knute
Mon Aug 17, 2015 4:06 pm
Forum: Networking and servers
Topic: Set up a static IP
Replies: 5
Views: 1084

Re: Set up a static IP

by knute
Mon Aug 17, 2015 4:03 pm
Forum: Troubleshooting
Topic: seial communication with high baud rate in java rxtx library
Replies: 2
Views: 872

Re: seial communication with high baud rate in java rxtx lib

So I'm not sure why you are using RXTX if you've got the USB end of the converter plugged into your PI? Does your converter device have a driver? And does that driver have a buffer? If so I would just set the device parameters and read and write directly to the device with Java. I've used some ether...
by knute
Sat Aug 15, 2015 9:01 pm
Forum: General programming discussion
Topic: dht11-overlay.dtb?
Replies: 5
Views: 2302

Re: dht11-overlay.dtb?

Thanks for that link. I did get it working (sort of), lots of errors but then I put my DHT22 in backwards and that's it until next week when I get a new one :-).

Thanks!
by knute
Wed Aug 12, 2015 3:48 am
Forum: General programming discussion
Topic: dht11-overlay.dtb?
Replies: 5
Views: 2302

dht11-overlay.dtb?

I saw this post (https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=98543&p=746882&hilit=dht11+dtb#p746882) about using the DHT11 device tree overlay. Is there some more complete information somewhere on how this works and how to get the data? Is there a DHT22 version available? I see the overl...
by knute
Wed Aug 05, 2015 7:49 pm
Forum: Troubleshooting
Topic: Single static IP address for eth0
Replies: 54
Views: 80546

Re: Single static IP address for eth0

Somewhere along the way an upgrade modified my /etc/network/interfaces file with the 'manual' word instead of dhcp or static and I ended up with two IP addresses, my static one and a dhcp address. I finally had time to play with it and found out that dhcpcd5 works differently than whatever was in it...
by knute
Sat Jul 11, 2015 11:38 pm
Forum: Python
Topic: Help with conditional constructs
Replies: 3
Views: 656

Re: Help with conditional constructs

Thanks!
by knute
Fri Jul 10, 2015 12:58 am
Forum: Python
Topic: Help with conditional constructs
Replies: 3
Views: 656

Re: Help with conditional constructs

firstTime = 1

if (GPIO4)
if (firstTime)
notify()
firstTime = 0
store()

?
by knute
Tue Jun 16, 2015 3:38 am
Forum: Troubleshooting
Topic: Can't get I2C to work?
Replies: 1
Views: 435

Re: Can't get I2C to work?

Well that's embarrassing, it actually works writing to my PiGlow, what doesn't appear to work is i2cdetect. I guess I shouldn't have even installed it I would never have known it didn't work.
by knute
Tue Jun 16, 2015 3:05 am
Forum: Troubleshooting
Topic: mail program from mailutils?
Replies: 0
Views: 218

mail program from mailutils?

I'm having a problem using mail. When finished entering text for an email, you press CTRL-D to end entry and send the email. The program ignores the CTRL-D. I've tried using the . by itself on the last line (which is the way I remember doing it from years ago) but that doesn't work either. The resul...

Go to advanced search