Go to advanced search

by Bosse_B
Wed Dec 18, 2019 1:07 pm
Forum: General discussion
Topic: Configuring apache to use my program as cgi handler?
Replies: 11
Views: 529

Re: Configuring apache to use my program as cgi handler?

I thought that headers are the stuff between head and /head.
( I cannot find the lt and gt chars on the phone keyboard...).
After all I am just doing a config utility....
by Bosse_B
Tue Dec 17, 2019 11:28 pm
Forum: General discussion
Topic: Configuring apache to use my program as cgi handler?
Replies: 11
Views: 529

Re: Configuring apache to use my program as cgi handler?

I tried your supersimple way and it worked fine here too. Then I started putting back my complex style code including the style sheet (needed for the configuration form I will show once I got this basic stuff working) and it still worked even when I put the following lines at the top of the generate...
by Bosse_B
Tue Dec 17, 2019 4:41 pm
Forum: General discussion
Topic: Configuring apache to use my program as cgi handler?
Replies: 11
Views: 529

Re: Configuring apache to use my program as cgi handler?

Your code: #Below added by Bosse_B 2019-12-17 ScriptAlias "/cgi-bin/" "var/www/html/cgi-bin/" <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Require all granted </Directory> I think that "var/www/html/cgi-bin/" is wrong, it needs a / at the star...
by Bosse_B
Tue Dec 17, 2019 2:44 pm
Forum: General discussion
Topic: Configuring apache to use my program as cgi handler?
Replies: 11
Views: 529

Re: Configuring apache to use my program as cgi handler?

Have you enabled cgi with this: sudo a2enmod cgi sudo service apache2 restart No but this is now done: $ sudo a2enmod cgi Enabling module cgi. To activate the new configuration, you need to run: systemctl restart apache2 $ sudo systemctl restart apache2 Then I tried to access a test program in Fire...
by Bosse_B
Tue Dec 17, 2019 10:11 am
Forum: General discussion
Topic: Configuring apache to use my program as cgi handler?
Replies: 11
Views: 529

Configuring apache to use my program as cgi handler?

I am using an RPi4B with Raspbian Buster fully updated and with Apache2 installed. I can show html and php files correctly in the browser so the webserver seems to work OK. For a project I am doing I need to use a binary program as the form handler for a few forms used to configure an application. A...
by Bosse_B
Wed Nov 13, 2019 9:13 am
Forum: General discussion
Topic: Do I need to remove fake-hwclock if I use an RTC chip?
Replies: 0
Views: 213

Do I need to remove fake-hwclock if I use an RTC chip?

I have read a number of howto's regarding use of an RTC module (using the DS3231M chip). In some they mention the removal of fake-hwclock and in some this is not mentioned. THIS is a howto where they mention the removal.. What gives here? If I do not remove it what are the ramifications? And if I do...
by Bosse_B
Tue Nov 12, 2019 10:28 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Reading/Writing I2C devices in Raspbian?
Replies: 2
Views: 782

Reading/Writing I2C devices in Raspbian?

I need to read and write some I2C devices (RTC, EEPROM) on my RPi4. I am not using C, C++ or Python so I would like to know if there are some Linux basic commands operating on the /dev/i2c-1 device I can use from any language that can handle files? What I actually use is FreePascal and Lazarus IDE. ...
by Bosse_B
Mon Nov 11, 2019 10:43 am
Forum: General discussion
Topic: State of GPIO pins on startup?
Replies: 8
Views: 360

Re: State of GPIO pins on startup?

Then a 100K (or maybe as low as 10K) would suffice as pull-down to guarantee a low level input to the MOSFET until the application kicks in and sets the pins as outputs with 0V level. The pull-down must be such that the CPU can drive the GPIO pin up to 2.5V or higher for the MOSFET to switch on. I w...
by Bosse_B
Mon Nov 11, 2019 10:12 am
Forum: General discussion
Topic: State of GPIO pins on startup?
Replies: 8
Views: 360

Re: State of GPIO pins on startup?

Breadboarding (on an RPi2B+ unit)... I hooked up my scope to the relay pins I had selected and set it for a one-shot registration triggered on the rising edge at about 1V. Nothing happened on a power-up, so I guess I am good here. If I put an ID EEPROM on the board as well (connected to pins 27/28) ...
by Bosse_B
Mon Nov 11, 2019 9:32 am
Forum: General discussion
Topic: State of GPIO pins on startup?
Replies: 8
Views: 360

Re: State of GPIO pins on startup?

Are the CPU chip GPIO pins directly routed to the 40-pin connector without any external components connected such as pull resistors (up or down)?
I tried to find a circuit diagram but all I managed to find was a drawing that looks incomplete to me.
Is there no complete drawing available?
by Bosse_B
Mon Nov 11, 2019 8:50 am
Forum: General discussion
Topic: State of GPIO pins on startup?
Replies: 8
Views: 360

State of GPIO pins on startup?

I am designing a board to be plugged into the 40-pin header implementing a few interfacing circuits. Among these are a couple of power switching relays for activation of external equipment. I am using 2SK3018 MOSFET transistors to drive the relay coils and the MOSFET gates are hooked directly to GPO...
by Bosse_B
Sat Nov 09, 2019 1:52 pm
Forum: General discussion
Topic: HELP! GUI no longer working on RPi4B 4GB unit
Replies: 4
Views: 360

Re: HELP! GUI no longer working on RPi4B 4GB unit

I'm curious, with all that detective work on your history and such, did you ever discover what it was that you did that messed it up? Unfortunately not! I have been down this route twice now in the last few weeks and both times I had intended to check something I thought was safe (setting up WiFi a...
by Bosse_B
Sat Nov 09, 2019 10:59 am
Forum: General discussion
Topic: SD Card Copier to an old RPi SD-card - not allowed?
Replies: 2
Views: 181

Re: SD Card Copier to an old RPi SD-card - not allowed?

EXCEPT it takes an enormously long time ! It has been running now for 35 minutes and the progress bar is like at the 20% mark! So I am looking at more than 2.5 hours of copy time. Is this normal? When I used the same USB SD reader to make the original from the Raspbian download it took probably only...
by Bosse_B
Sat Nov 09, 2019 10:21 am
Forum: General discussion
Topic: SD Card Copier to an old RPi SD-card - not allowed?
Replies: 2
Views: 181

Re: SD Card Copier to an old RPi SD-card - not allowed?

Problem solved!
I went back and repeated the drive selections and it seems like I have to select the target twice for it to be recognized!
by Bosse_B
Sat Nov 09, 2019 10:15 am
Forum: General discussion
Topic: SD Card Copier to an old RPi SD-card - not allowed?
Replies: 2
Views: 181

SD Card Copier to an old RPi SD-card - not allowed?

I want to copy my now working setup as a backup so I tried to use the RPi GUI. The target SDcard is a 16 GB card whereas the live card is 32 GB but the used size is only 12 GB, so it should fit on a 16GB card. I attached the target SD-card to my RPi4 using an USB memory reader and started "Accessori...
by Bosse_B
Sat Nov 09, 2019 8:17 am
Forum: General discussion
Topic: HELP! GUI no longer working on RPi4B 4GB unit
Replies: 4
Views: 360

Re: HELP! GUI no longer working on RPi4B 4GB unit

Not so long ago (some weeks) I hosed the same system when I tried to make the WiFi operate as an Access Point (without being a router) such that a person nearby could connect to its AP and then access the web based configuration system for the unit. After I failed to fix that I was left with a syste...
by Bosse_B
Fri Nov 08, 2019 7:29 pm
Forum: General discussion
Topic: Network time sync on Raspbian Buster???
Replies: 8
Views: 2431

Re: Network time sync on Raspbian Buster???

I used ntp (sudo apt-get install ntp) for a long time, but have recently switched to chrony (sudo apt-get install chrony). Both work fine, but I'm sticking with chrony for now. chrony needs a little config file. Here's how I generate mine. 192.168.16.0 and 10.16.10.0 are subnets on my network; adju...
by Bosse_B
Fri Nov 08, 2019 7:25 pm
Forum: General discussion
Topic: Network time sync on Raspbian Buster???
Replies: 8
Views: 2431

Re: Network time sync on Raspbian Buster???

Yes, odd is an understatement! This system worked fine until this morning when I enabled I2C using raspi-config in order to prepare for the RTC module. I have not used the desktop since a few days when I worked on designing the add-on board I am preparing for use with the RPi. It contains basically ...
by Bosse_B
Fri Nov 08, 2019 5:45 pm
Forum: General discussion
Topic: HELP! GUI no longer working on RPi4B 4GB unit
Replies: 4
Views: 360

HELP! GUI no longer working on RPi4B 4GB unit

I have had this RPi4 working for quite some time now and I usually access it via PuTTY for command line work) and RealVNC (for development in th GUI environment). It has constantly (weekly at least) been updated so it should be up-to-date. Today I set out to experiment with an RTC time module using ...
by Bosse_B
Fri Nov 08, 2019 4:28 pm
Forum: General discussion
Topic: Network time sync on Raspbian Buster???
Replies: 8
Views: 2431

Network time sync on Raspbian Buster???

I have a difficult time getting my RPi4 with an updated Buster to time sync to the network... I have googled and found numerous commands, none of which works on my system. These do not even exist: ntptime ntpq And if I use timedatectl it still does not work even though it exists: $ sudo timedatectl ...
by Bosse_B
Fri Nov 08, 2019 3:16 pm
Forum: Troubleshooting
Topic: RTC DS3231 won't work on RPi4
Replies: 8
Views: 1979

Re: RTC DS3231 won't work on RPi4

One way is to connect it to the Internet and let is sync to the correct time. Then do a sudo hwclock -w to store it in the RTC. The RPi4 is connected to the Internet. It has now passed 2 hours and the RPi4 clock is still off by some 40 s... Exactly how does one "sync to correct time"? This happens ...
by Bosse_B
Fri Nov 08, 2019 1:17 pm
Forum: Troubleshooting
Topic: RTC DS3231 won't work on RPi4
Replies: 8
Views: 1979

Re: RTC DS3231 won't work on RPi4

I am now facing another possibly related problem: I can no longer connect using VNC, or rather I can connect but it does not show anything but an evenly gray screen, no desktop visible. And when I connect using PuTTY I get this: $ date Fri 08 Nov 2019 02:16:02 PM CET This happens when the actual tim...
by Bosse_B
Fri Nov 08, 2019 11:46 am
Forum: Troubleshooting
Topic: RTC DS3231 won't work on RPi4
Replies: 8
Views: 1979

Re: RTC DS3231 won't work on RPi4

OK thanks, so I now did this: 1) Commented out the two lines I added into /etc/modules only keeping i2c-dev, which was already present 2) Edited the boot/config.txt and added this immediately before the [pi4] section: dtoverlay=i2c-rtc,ds3231 3) Rebooted the RPi4. Now I had to wait more than 2 minut...
by Bosse_B
Fri Nov 08, 2019 9:20 am
Forum: Troubleshooting
Topic: RTC DS3231 won't work on RPi4
Replies: 8
Views: 1979

RTC DS3231 won't work on RPi4

I have used an RTC module on an RPi2 with Jessie and now that I am working on an RPi4 I moved it over to the new box. It was a long time since I set up the RPi2 I have forgotten all about it so I searched the web for advice and found a few promising tutorials which I followed. It did the following o...
by Bosse_B
Thu Nov 07, 2019 5:20 pm
Forum: General discussion
Topic: Building an RPi4 HAT - how to use the serial port
Replies: 4
Views: 1200

Re: Building an RPi4 HAT - how to use the serial port

After looking around a bit on the net I have reached the conclusion that I should add an EEPROM to the board to act as the ID memory. New questions regarding this: 1) Is a 4K EEPROM sufficient? We have such a part in use on other boards already so it would be good to reuse the same part on the RPi b...

Go to advanced search