Go to advanced search

by tohox
Sun Mar 11, 2018 3:55 pm
Forum: Python
Topic: Non standard SPI bits per word
Replies: 1
Views: 562

Non standard SPI bits per word

Hi, I'm using the SPI bus to act as an SSI master. The device I'm reading from sends 24bits of data per request so 24 clock cycles are required to fetch the complete message. However this slave also requires an initial clock toggle to start the transfer so 25 clock cycles are actually required. So f...
by tohox
Thu Mar 08, 2018 2:08 pm
Forum: Raspbian
Topic: Unmount/Mount systematically sets dirty bit
Replies: 15
Views: 3687

Re: Unmount/Mount systematically sets dirty bit

Unfortunately sameenashaikh29, in the end I simply ignored the dirty bit... Been working OK despite this.
by tohox
Thu May 18, 2017 5:36 am
Forum: Raspbian
Topic: Unmount/Mount systematically sets dirty bit
Replies: 15
Views: 3687

Re: Unmount/Mount systematically sets dirty bit

[email protected]:~/timelapse $ sudo -i [email protected]:~# for i in /dev/sdb1 /dev/sdb2; do umount $i; fsck -f -y $i; done fsck from util-linux 2.25.2 fsck.fat 3.0.27 (2014-11-12) Free cluster summary uninitialized (should be 473522) Auto-setting. Performing changes. /dev/sdb1: 28 files, 846/474368 c...
by tohox
Thu May 18, 2017 5:00 am
Forum: Raspbian
Topic: Unmount/Mount systematically sets dirty bit
Replies: 15
Views: 3687

Re: Unmount/Mount systematically sets dirty bit

Hi Dougie, SD card is not worn out (yet) as it is currently getting written to a couple thousand times a day by the camera and files are still there after unmounting/mounting. Also as mentioned above I've verified this same behaviour with both a different card and a different Pi. I'm running with X ...
by tohox
Thu May 18, 2017 3:13 am
Forum: Raspbian
Topic: Unmount/Mount systematically sets dirty bit
Replies: 15
Views: 3687

Re: Unmount/Mount systematically sets dirty bit

Scruss,

Indeed but what if I need to erase some files on the SD card before unmounting it? I assume I should be able to do this without setting the dirty bit if done correctly...

Thanks,
by tohox
Thu May 18, 2017 2:37 am
Forum: Raspbian
Topic: Unmount/Mount systematically sets dirty bit
Replies: 15
Views: 3687

Re: Unmount/Mount systematically sets dirty bit

Hi,

Just bumping this post as I still haven't found a valid explanation as to why the dirty bit gets set by simply mounting and immediately unmounting an SD card under Raspbian...

Thanks,
by tohox
Mon May 08, 2017 4:40 pm
Forum: Troubleshooting
Topic: Volume corruption over time
Replies: 0
Views: 340

Volume corruption over time

Hi, Sorry for this wall of text. Hopefully you'll catch something in it which I haven't... I have two nearly identical RPI3 setups used as timelapse controllers with two DSLRs. They both run 24/7 although they only take pictures during the daytime. The system relies on Cron jobs to start and stop va...
by tohox
Wed Jan 25, 2017 8:57 pm
Forum: Raspbian
Topic: Unmount/Mount systematically sets dirty bit
Replies: 15
Views: 3687

Re: Unmount/Mount systematically sets dirty bit

So in principle unmounting the volume should clear the dirty bit as long as it wasn't set before mounting it in the first place but that doesn't seem to be the case here.

Thanks for the link!
by tohox
Wed Jan 25, 2017 3:20 pm
Forum: Raspbian
Topic: Unmount/Mount systematically sets dirty bit
Replies: 15
Views: 3687

Unmount/Mount systematically sets dirty bit

Hi, I'm using a Python script to automate a timelapse. My script periodically switches the DSLR to mass storage mode in order to offload its SD card onto the Pi. To achieve this the Pi has to mount and unmount the volume frequently. I noted the other day that the dirty bit was set on the camera's SD...
by tohox
Mon Jan 04, 2016 2:27 am
Forum: Networking and servers
Topic: Ser2Net multiple connections
Replies: 1
Views: 2038

Re: Ser2Net multiple connections

FIXED. So, it appears it was actually a compound problem. - Ser2Net was behaving correctly. - The FTDI drivers were behaving correctly. - The Pi was behaving correctly. - The Raspberry Pi was however limiting the current available to the serial converters because the load was too high. - Adding a po...
by tohox
Tue Dec 29, 2015 12:14 am
Forum: Networking and servers
Topic: Ser2Net multiple connections
Replies: 1
Views: 2038

Ser2Net multiple connections

Hi, I'm using ser2Net 2.9.1 on Rapsberry Pi 2 under Raspbian (Jessie). I currently have four FTDI USB-SERIAL converters physically connected and configured as so in ser2net.conf: BANNER:banner:\r\nMCQ - Nano: port \p device \d [\s]\r\n\r\n 5001:telnet:0:/dev/ttyUSB0:2400 8DATABITS NONE 1STOPBIT bann...

Go to advanced search