Go to advanced search

by Milliways
Mon Aug 02, 2021 5:01 am
Forum: Raspberry Pi OS
Topic: How to change the stored WiFi password?
Replies: 3
Views: 101

Re: How to change the stored WiFi password?

There should be no reason you can't enter a password in the GUI Networking tab, even in a 4 year old OS. If you select the network and enter a password it will overwrite the old. I am unsure about ancient OS, but I seem to remember the GUI clobbered old networks. See How to set up networking/WiFi Wi...
by Milliways
Mon Aug 02, 2021 12:35 am
Forum: General discussion
Topic: A simple way to get all IP and MAC addresses on my network
Replies: 24
Views: 575

Re: A simple way to get all IP and MAC addresses on my network

It was easier to fix than I thought. Instead of combining all the lines into the pattern space, it is easier to make it selectively read the next line when needed. This means the other lines can be ignored and the always greedy matching doesn't break everything. { ip a | sed -rn "/ether/{N;s/....
by Milliways
Sun Aug 01, 2021 2:06 am
Forum: General discussion
Topic: A simple way to get all IP and MAC addresses on my network
Replies: 24
Views: 575

Re: A simple way to get all IP and MAC addresses on my network

Thanks, this works. That is because get-oui by default, doesn't download anything on Debian systems. It reads the files from the ieee-data package and that hasn't been updated since 2018. If you want to make it download the latest IEEE OUI file then you need to run "get-oui -u http://standards-...
by Milliways
Sun Aug 01, 2021 1:32 am
Forum: General discussion
Topic: A simple way to get all IP and MAC addresses on my network
Replies: 24
Views: 575

Re: A simple way to get all IP and MAC addresses on my network

I tried on my Pi, but arp-scan failed to identify Pi4.

I ran get-oui but while this resolved some of the missing entries did not find the OUI for Raspberry Pi Trading.
by Milliways
Fri Jul 30, 2021 12:15 am
Forum: General discussion
Topic: Hysteresis - on or off?
Replies: 5
Views: 388

Re: Hysteresis - on or off?

Using set_glitch_filter does get round the instability but it is a software debounce function not the hardware hysteresis. It also sets a delay on the input. NOTE my tests were done without the glitch_filter. I had included that for some other tests but commented it out in the results reported abov...
by Milliways
Thu Jul 29, 2021 4:49 am
Forum: General discussion
Topic: Hysteresis - on or off?
Replies: 5
Views: 388

Re: Hysteresis - on or off?

A normal scan appears to show multiple transitions. (There seems to be some limit which prevents me adding more files.) I used the following code to produce the output, although I can't discount that this may be responsible for some of the "jitter". #! /usr/bin/env python3 ""&quo...
by Milliways
Wed Jul 28, 2021 9:41 am
Forum: General discussion
Topic: How do you upload an image to this site?
Replies: 2
Views: 130

How do you upload an image to this site?

How do you upload an image to this site?

There are [img] tags but apparently to way to upload.
by Milliways
Tue Jul 27, 2021 3:57 am
Forum: General discussion
Topic: Hysteresis - on or off?
Replies: 5
Views: 388

Re: Hysteresis - on or off?

I wrote a program to show hysteresis, which seems to show it is on. https://www.raspberrypi.org/forums/viewtopic.php?p=1893271#p1893271 The following will toggle the hysteresis setting. /* This is a test program to toggle the Pi hysteresis setting Only works on Buster or Stretch Compile: cc toggleHy...
by Milliways
Mon Jul 26, 2021 4:40 am
Forum: Advanced users
Topic: Pi GPIO hysteresis
Replies: 4
Views: 318

Re: Pi GPIO hysteresis

I wrote a quick & dirty program to check the values. (NOTE this only works with sudo.) /* This is a test program to read the Pi PAD settings Only works on Buster or Stretch Compile: cc getPAD.c -I/opt/vc/include -L/opt/vc/lib -lbcm_host -o getPAD 2021-07-26 */ #include <bcm_host.h> #include <fcn...
by Milliways
Sat Jul 24, 2021 4:23 am
Forum: Advanced users
Topic: Pi GPIO hysteresis
Replies: 4
Views: 318

Re: Pi GPIO hysteresis

pigpio allows the setting and getting of drive strength. Don't remember if it works on the Pi4/Pi400. http://abyz.me.uk/rpi/pigpio/pigs.html#PADS Just tried pigs PADG 0 on my Pi4 and was surprised that it returns 16 - all the documentation I have read, and running on earlier models returns 8. pigs ...
by Milliways
Fri Jul 23, 2021 6:49 am
Forum: Advanced users
Topic: Pi GPIO hysteresis
Replies: 4
Views: 318

Pi GPIO hysteresis

Over the years I have studied Pi Peripheral datasheets, but while there were occasional vague references to hysteresis there is no detail. Recently while perusing https://www.raspberrypi.org/documentation/hardware/raspberrypi/gpio/gpio_pads_control.md I found:- GPIO Addresses 0x 7e10 002c PADS (GPIO...
by Milliways
Wed Jul 21, 2021 4:32 am
Forum: Other programming languages
Topic: Cobol in schools
Replies: 99
Views: 3191

Re: COBOL in schools

I've written tens of thousands of lines of COBOL in the last year. It's a brilliant language for doing pounds and pennies calculations (PIC S9(5)V99). So that would be one program? I taught myself COBOL in the early 1970s, and found using COBOL for input, FORTRAN for number crunching and COBOL for ...
by Milliways
Sun Jul 18, 2021 8:32 am
Forum: General discussion
Topic: Static IP address of Desktop Buster
Replies: 20
Views: 601

Re: Static IP address of Desktop Buster

npaisnel wrote:
Sun Jul 18, 2021 5:24 am
Have you got a link to that tutorial
You obviously don't read the posts people go to the trouble of writing. see How to set up networking/WiFi
by Milliways
Sun Jul 18, 2021 1:01 am
Forum: General discussion
Topic: Static IP address of Desktop Buster
Replies: 20
Views: 601

Re: Static IP address of Desktop Buster

other things I have read have said better to set the machine as static .. This explains why the first thing every Windows or Mac user does is set a Static IP Address! Static IP Addresses are a Pi disease; you can find more bad advice on the web than good, because ANYONE can post their opinions. Mos...
by Milliways
Sat Jul 17, 2021 11:53 am
Forum: General discussion
Topic: Static IP address of Desktop Buster
Replies: 20
Views: 601

Re: Static IP address of Desktop Buster

I am afraid that as with the explanations regarding the difference between DHCP reervation or IP-MAC binding on the router ...a man page is generally about as much use as a chocolate fire guard to a lot of us. A lot of full time / regular IT people that do their best to help us mere mortals, do ten...
by Milliways
Sat Jul 17, 2021 7:37 am
Forum: General discussion
Topic: Static IP address of Desktop Buster
Replies: 20
Views: 601

Re: Static IP address of Desktop Buster

If you want a PREDICTABLE IP Address I suggest you avoid static. The preferred option is to reserve on your DHCP server. It often takes a while for addresses to settle if they have changed. I never found just reserved address reservation that reliable. Then you are doing something wrong. I have 12 ...
by Milliways
Sat Jul 17, 2021 6:42 am
Forum: General discussion
Topic: Static IP address of Desktop Buster
Replies: 20
Views: 601

Re: Static IP address of Desktop Buster

As for setting a Static IP outside the DHCP range, I did have it set up like that on my old TP-Link N600 Router. Just got a new Router, Archer C5400X, and TBH, I left the DHCP range across the full range . 1. through to .254 The points about DHCP address reservation and IP-MAC binding does bring up...
by Milliways
Fri Jul 16, 2021 12:26 am
Forum: General discussion
Topic: Power Supply for Raspberry 4 bad design for Australia
Replies: 89
Views: 2721

Re: Power Supply for Raspberry 4 bad design for Australia

Number 4 is a little odd... The pins are insulated so it's impossible to touch them while they're live unless you fail that safety regulation. I guess it never hurts to be too safe, so we default back to my previous suggestion - a utility knife. A grinder is a better option. I routinely remove the ...
by Milliways
Fri Jul 16, 2021 12:23 am
Forum: General discussion
Topic: Power Supply for Raspberry 4 bad design for Australia
Replies: 89
Views: 2721

Re: Power Supply for Raspberry 4 bad design for Australia

Number 4 is a little odd... The pins are insulated so it's impossible to touch them while they're live unless you fail that safety regulation. I guess it never hurts to be too safe, so we default back to my previous suggestion - a utility knife. I can definitively discount "so it's impossible ...
by Milliways
Wed Jul 14, 2021 12:45 pm
Forum: General discussion
Topic: Power Supply for Raspberry 4 bad design for Australia
Replies: 89
Views: 2721

Re: Power Supply for Raspberry 4 bad design

A number of plug packs and power plugs come with these superfluous wings - which means you waste 2 sockets on either side. I normally resolve this "issue" with a grinder. They may make it somewhat easier to remove, but only because there is so much wasted space on either side. If anyone th...
by Milliways
Mon Jul 12, 2021 12:55 am
Forum: Troubleshooting
Topic: Broken WiFi - how do I restore defaults?
Replies: 3
Views: 101

Re: Broken WiFi - how do I restore defaults?

Commenting out everything in /etc/network/interfaces seems to have done the trick! No interfaces or denyinterfaces lines were active in /etc/dhcpcd.conf. The previous version of /etc/network/interfaces contained auto lo iface lo inet loopback iface eth0 inet dhcp Are any of those lines worth adding...
by Milliways
Sun Jul 11, 2021 12:21 am
Forum: Beginners
Topic: Manually install OS
Replies: 12
Views: 450

WARNING

WARNING It is certainly possible to "install" using dd (assuming a Linux or Unix system), BUT if you don't understand exactly what this is doing you risk destroying the OS on your computer. Use one of the many installers until you know what is going on, then like the rest of us you will u...
by Milliways
Wed Jul 07, 2021 12:30 am
Forum: General discussion
Topic: Pi's history of weird, niche hardware choices.
Replies: 55
Views: 2096

Re: Pi's history of weird, niche hardware choices.

Along with all the other errors in the OP (which have been pointed out by others) "The Pi was originally created to make computers (and education thereof) available to everybody" was NEVER the published intention in 2011/2012.
by Milliways
Sat Jul 03, 2021 5:00 am
Forum: General
Topic: Pico as a computer peripheral
Replies: 34
Views: 2096

Pico as a computer peripheral on macOS

picod claims to run on macOS, but it is far from clear how. The following may be of help to others. Some steps need to be modified even to build and additional code is needed. The following changes to http://abyz.me.uk/picod/download.html is for Python3.7 (Initially I tried with Python3.9, but had p...
by Milliways
Fri Jul 02, 2021 1:13 am
Forum: General
Topic: rp2040 internal GPIO pullup/pulldown resistors
Replies: 4
Views: 273

Re: rp2040 internal GPIO pullup/pulldown resistors

I have searched through the rp2040 datasheet (dated 2021-06-23) and I cannot find any mention of the values of the GPIO pullup/pulldown resistors. I note there are some resistor values mentioned for the USB interface, I'm *not* referring to those. Could the RP2040 designers either point me at the d...

Go to advanced search