Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.raspberry-pi > #20332

Re: Zero-WH, strange SD card behaviour

From Markus Robert Kessler <dimke.fax@uni.de>
Newsgroups comp.sys.raspberry-pi
Subject Re: Zero-WH, strange SD card behaviour
Date 2019-06-22 20:48 +0000
Organization A noiseless patient Spider
Message-ID <qem46j$27j$1@dont-email.me> (permalink)
References <qeivp3$g5k$2@dont-email.me> <qejdq2$gtu$1@dont-email.me> <qekqfb$a3u$1@dont-email.me> <qel2us$rhd$1@dont-email.me>

Show all headers | View raw


Am Sat, 22 Jun 2019 12:20:59 +0100 schrieb druck:

> On 22/06/2019 09:56, Markus Robert Kessler wrote:
>> - I switched to crontab-based reboots because the same machine (RPi
>> Zero Wifi) is used for taking photos on demand. Therefore I ssh into it
>> and start a script which accesses a USB webcam via fswebcam and
>> transfers the photos to a webserver.
>> This works fine, but from time to time fswebcam suddenly is no longer
>> able to get data from the webcam for some reason. In this case even a
>> "USB reset" does not work. So the machine has to be rebooted anyway.
> 
> This suggests to me that the webcam may be very close to the maximum
> current available from the Zero's USB port. If it has been currently
> limited the voltage will drop and many devices will no longer respond
> until the power is cycled. A USB deivce drawing too much current may
> also cause the WiFi to drop out on the Pi.
> 
> The solution would be to either attach the webcam through an externally
> powered USB hub, or replace it with a Raspberrp Pi camera, which are
> lower power.
> 
>> B.t.w., I already tried to put the line "fsck -p /dev/mmcblk0p1" into /
>> etc/rc.local to reset file system's "dirty bit" to prevent it from
>> demanding for a filesystem check. This seems to have no effect.
> 
> A fsck will be performed on system startup, long before anything in
> /etc/rc.local gets run. I know you can force an fsck on boot using
> /boot/cmdline.txt but I don't think you can prevent one.
> 
>> So, RPi or the OS, seems to make changes to the filesystem / MBR or
>> what else, which cannot be recovered by RPi itself, but a "normal"
>> Linux machine can handle this without even alerting about any trouble.
> 
> If this is happening the card needs to be replaced. If it wasn't a Zero
> I'd suggest booting from a USB stick for better reliability, but as an
> SD card is the only option, a high endurance version is probably
> worthwhile.
> 
> ---druck

Hi druck,

what you describe above (connecting the camera directly to the RPi) was 
what I did first, but that was indeed not so stable. Hence, very soon I 
switched to using an active-powered USB hub which feeds camera and RPi.

It may sound strange, but for me it seems that the higher the resolution 
of the connected webcam, the more problems this will cause to RPi / 
Raspian / fswebcam.

In the beginning, I tried to reset the USB bus -- with no success. Then I 
added commands to my script to rmmod and insmod / modprobe the relevant 
USB-to-video kernel drivers -- that worked often, but sometimes the whole 
machine crashed (!). That was the point when I involved watchdog mechanism 
also to get the machine back again in such a case.

So, meanwhile I prefer to wait at least 10..15 seconds after taking of a 
photo fails, until repeating it, and if this will not lead to success, 
then I run a reboot.

To the Micro SD cards: I tried several different ones in size and 
manufacturer, but alway the same. Except Kingston -- these cards just die 
under load, but then things are clear at least...

B.t.w., resetting the "dirty flag" is done during startup, in the hope, 
that this state may last until the machine crashes or the watchdog runs a 
hardware reset. But, it's likely that the flag will be set (again) prior 
to some crash, anyway?

Well, what I intend to try next is, what nev young recommends -- on most 
of my raspberries Bluetooth is really not needed at all.
So, I'll switch the driver off and see.

Best regards,

Markus

-- 
Please reply to group only.
For private email please use http://www.dipl-ing-kessler.de/email.htm

Back to comp.sys.raspberry-pi | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Zero-WH, strange SD card behaviour Markus Robert Kessler <dimke.fax@uni.de> - 2019-06-21 16:14 +0000
  Re: Zero-WH, strange SD card behaviour Martin Gregorie <martin@mydomain.invalid> - 2019-06-21 18:45 +0000
  Re: Zero-WH, strange SD card behaviour Alister <alister.ware@ntlworld.com> - 2019-06-21 19:30 +0000
  Re: Zero-WH, strange SD card behaviour druck <news@druck.org.uk> - 2019-06-21 21:13 +0100
    Re: Zero-WH, strange SD card behaviour Markus Robert Kessler <dimke.fax@uni.de> - 2019-06-22 08:56 +0000
      Re: Zero-WH, strange SD card behaviour druck <news@druck.org.uk> - 2019-06-22 12:20 +0100
        Re: Zero-WH, strange SD card behaviour Markus Robert Kessler <dimke.fax@uni.de> - 2019-06-22 20:48 +0000
          Re: Zero-WH, strange SD card behaviour druck <news@druck.org.uk> - 2019-06-24 21:59 +0100
        Zero-WH, strange SD card behaviour. nospam.Henri.Derksen@f1208.n280.z2.binkp.net (Henri Derksen) - 2019-06-25 12:37 +1300
          Re: Zero-WH, strange SD card behaviour. nospam.Dan.Clough@f1.n770.z1694.fidonet.org (Dan Clough) - 2019-06-25 19:22 +1300
          Re: Zero-WH, strange SD card behaviour. druck <news@druck.org.uk> - 2019-06-26 19:44 +0100
  Re: Zero-WH, strange SD card behaviour nev young <newsforpasiphae1953@yahoo.co.uk> - 2019-06-22 11:33 +0100

csiph-web