Go to advanced search

by kaksi
Sun Oct 24, 2021 7:48 pm
Forum: Camera board
Topic: Cleaning my camera
Replies: 0
Views: 122

Cleaning my camera

My camera (v1 or v2) has a very fuzzy image, I suspect there is a thin film of oil or of isopropylalcohol.

I tried lens cleaning tissues, but it seems I cannot reach the lens. Cotton buds did not work better.

Please suggest only solutions that worked. I do not really want to experiment.
by kaksi
Mon Aug 16, 2021 4:01 pm
Forum: Python
Topic: fast connection between raspi and pc
Replies: 17
Views: 869

Re: fast connection between raspi and pc

Some days ago, I solved such a problem with WinSCP: @echo off if *%1*==*11* goto :011 if *%1*==*13* goto :013 if *%1*==*14* goto :014 if *%1*==*211* goto :211 if *%1*==*213* goto :213 if *%1*==*213* goto :214 :USAGE echo Usage %0 R_PI cam / v380 echo R_PI can be 11, 13, 14, 211, 213, 214 if *%1*==**...
by kaksi
Sat May 29, 2021 12:50 pm
Forum: General discussion
Topic: Need help on @
Replies: 2
Views: 193

Re: Need help on @

by kaksi
Sat Apr 03, 2021 10:49 pm
Forum: Beginners
Topic: Cannot change permission on USB drive
Replies: 19
Views: 1400

Re: Cannot change permission on USB drive

I remember having had such problems, changing permissions upward helped:

Code: Select all

drwxr-xr-x   4 pi   pi    4096 Jul 28  2020  media
drwxr-x---+ 3 pi   pi     4096 Apr  2 07:38 pi
by kaksi
Fri Aug 28, 2020 8:51 am
Forum: General discussion
Topic: Can a Pi tell when it's memory card is full?
Replies: 7
Views: 525

Re: Can a Pi tell when it's memory card is full?

pi-anazazi wrote:
Fri Aug 28, 2020 7:51 am
You can always monitor free space via an appropriate script and remove some old data if necessary. You have to learn a little bit of coding though...
Capture df output in Python?
by kaksi
Fri Jul 10, 2020 11:12 am
Forum: Beginners
Topic: Permission denied despite sudo
Replies: 27
Views: 1818

Re: Permission denied despite sudo

afaik this: https://en.wikipedia.org/wiki/Media_Transfer_Protocol Its a whole separate protocol just for transferring images/videos/audio from mobile devices. You are nowhere near directly access to any flash/disk/partition on your phone. I considered a protocol as a set of rules HOW data is transf...
by kaksi
Tue Jul 07, 2020 7:28 pm
Forum: Beginners
Topic: Permission denied despite sudo
Replies: 27
Views: 1818

Re: Permission denied despite sudo

If the phone has removable storage, you should be able to connect it using a card reader. At first, I need to copy the phone internal memory to the removable media. I tried Terminal Emulator, no dd. I could not instal Termux. Otherwise, you may be able to configure the phone for Mass Storage mode. ...
by kaksi
Tue Jul 07, 2020 7:09 pm
Forum: Beginners
Topic: Permission denied despite sudo
Replies: 27
Views: 1818

Re: Permission denied despite sudo

If you COPY A:*.* /s B:, the OS reports them identical, but byte by byte, they will be different (special cases excepted). Do you have some evidence to back up that claim? If files were being routinely changed on a simple copy don't you think someoen would have complained about it decades ago? Caut...
by kaksi
Tue Jul 07, 2020 4:48 pm
Forum: Beginners
Topic: Permission denied despite sudo
Replies: 27
Views: 1818

Re: Permission denied despite sudo

Like I said.. explain what you are trying to do ! Maybe you remember the DOS command DISKCOPY. It copied a floppy sector by sector. Compared byte by byte, these floppies were identical. If you COPY A:*.* /s B:, the OS reports them identical, but byte by byte, they will be different (special cases e...
by kaksi
Tue Jul 07, 2020 12:24 pm
Forum: Beginners
Topic: Permission denied despite sudo
Replies: 27
Views: 1818

Re: Permission denied despite sudo

rpdom wrote:
Tue Jul 07, 2020 10:15 am
You appear to be trying to dd from a directory to a directory. That isn't what dd does.
I am ready to negotiate:
- I can change the destination to of=/dev/sdx
- the man says: "if=FILE" - a directory is a file, isn't it?
by kaksi
Tue Jul 07, 2020 7:49 am
Forum: Beginners
Topic: Permission denied despite sudo
Replies: 27
Views: 1818

Permission denied despite sudo

pi@raspberrypi:/run/user/1000/gvfs/mtp:host=MediaTek_MT65xx_Android_Phone_0123456789ABCDEF/Phone storage/Pictures/Screenshots $ ll total 6431 -rw------- 1 pi pi 1288370 Mar 19 15:08 Screenshot_2020-03-19-15-08-15.png -rw------- 1 pi pi 1123875 Mar 19 15:08 Screenshot_2020-03-19-15-08-26.png -rw----...
by kaksi
Sun Jul 05, 2020 5:20 pm
Forum: Beginners
Topic: How to take control of Android from RPI?
Replies: 6
Views: 392

Re: How to take control of Android from RPI?

Are you trying to recover some “lost” files (photos)? In fact, yes, this is the first goal. Further, it would not be bad to examine the copy without the fear to do some harm. For the first problem, I tried some apps: they only look in ./Camera and I do not want to hear about them any more. I tried ...
by kaksi
Sun Jul 05, 2020 4:18 pm
Forum: Beginners
Topic: How to take control of Android from RPI?
Replies: 6
Views: 392

Re: How to take control of Android from RPI?

If I connect my Android phone (S7) to my pi4 using the phone's USB charging cable, and enable mtp when the phone asks me, I can see all the files on the phone via File Manger on the pi. Will that work for you? Yes, that works, but I need more control. My first goal is to examine the copy by photore...
by kaksi
Sun Jul 05, 2020 1:24 pm
Forum: Beginners
Topic: How to take control of Android from RPI?
Replies: 6
Views: 392

How to take control of Android from RPI?

I would like (between other, if possible) to:

Code: Select all

dd if=Android of=/media/pi/STICK
or at least:

Code: Select all

dd if=/storage/emulated/0/DCIM/OpenCamera of=/media/pi/STICK
by kaksi
Wed Jun 24, 2020 9:06 am
Forum: Python
Topic: sudo python3 No module named 'cv2'
Replies: 9
Views: 6617

Re: sudo python3 No module named 'cv2'

HATHEMI wrote:
Sun Jun 21, 2020 8:04 pm
sudo python3 prog.py
Can't you run python w/o sudo?

I learnt the hard way sudo is a false friend and problems are postponed. i.e. sudo python allowed me to write files on the USB stick. It was then pain to work with them. A much better solution in my case: chown.
by kaksi
Sun Jun 07, 2020 7:47 pm
Forum: Python
Topic: Help my code to look better
Replies: 12
Views: 993

Re: Help my code to look better

It seems to me that line_number is not used.
by kaksi
Tue May 26, 2020 12:24 pm
Forum: General discussion
Topic: ssh stops after some time
Replies: 3
Views: 639

Re: ssh stops after some time

Periodically, the ssh stops, I have to restart it. If I leave the RPI idle overnight, I have to unplug and plug in the mouse. " Periodically, the ssh stops, I have to restart it. " How do you diagnose that? What steps do you take to restart sshd? service ssh status service ssh restart
by kaksi
Tue May 26, 2020 12:10 pm
Forum: Python
Topic: No module named 'cv2' after update.
Replies: 3
Views: 846

Re: No module named 'cv2' after update.

If you want to use the Python3 interpreter - as you should - then you need to install Python3 versions of the modules you want to import. Thanks, that was the problem. As a boy from a good family, I do use Python3. It just never came to my mind that sudo apt install python-opencv might not install ...
by kaksi
Tue May 26, 2020 9:20 am
Forum: General discussion
Topic: ssh stops after some time
Replies: 3
Views: 639

ssh stops after some time

I upgraded to 2020-02-13-raspbian-buster with existing file /boot/ssh. In the starting dialogue, I just changed the password. Then I replaced the wpa_supplicant.conf. Periodically, the ssh stops, I have to restart it. If I leave the RPI idle overnight, I have to unplug and plug in the mouse. What dr...
by kaksi
Tue May 26, 2020 9:12 am
Forum: Python
Topic: No module named 'cv2' after update.
Replies: 3
Views: 846

No module named 'cv2' after update.

About three months ago, I installed python-opencv. So far, so good. I upgraded to 2020-02-13-raspbian-buster and installed python-opencv. pi@raspberrypi:/media/pi/SLATE_1 $ sudo apt install python-opencv Reading package lists... Done Building dependency tree Reading state information... Done python-...
by kaksi
Tue May 26, 2020 8:54 am
Forum: Beginners
Topic: Smartphone as camera
Replies: 4
Views: 430

Re: Smartphone as camera

drgeoff wrote:
Sat May 23, 2020 5:05 pm
There are clones of the original (v1) RPI camera which are a fraction of the price mentioned.
Under circumstances, I am not willing to risk an RPI, but I do not care for an outdated phone with a dead battery.
by kaksi
Tue May 26, 2020 8:50 am
Forum: Beginners
Topic: Smartphone as camera
Replies: 4
Views: 430

Re: Smartphone as camera

An idea for 1 fps.

I installed on the phone Open Camera which can take one picture per second. and transfer these pictures using SSHDroid (on the phone) and WinSCP (on the PC).

(It is on my to_do list to transfer pictures directly by ssh.)
by kaksi
Thu May 21, 2020 3:32 pm
Forum: Beginners
Topic: Can I replace the start-up dialogue?
Replies: 6
Views: 444

Re: Can I replace the start-up dialogue?

HawaiianPi wrote:
Thu May 21, 2020 11:34 am
Editing the image is not that hard.
Everything is relative, depends for whom.

I achieved a great improvement with sudo cp keyboard /etc/default. RPI does not mind remaining in GB, ssh is enabled, so I get thru the config quickly and only once.
by kaksi
Thu May 21, 2020 8:49 am
Forum: Beginners
Topic: Can I replace the start-up dialogue?
Replies: 6
Views: 444

Can I replace the start-up dialogue?

For various reasons, from time to time, I perform a clean reinstall. When I started with RPI2, I could not imagine my life without raspi-config. Now, when I go thru the starting menu over and over again, I dream about a bash that would replace this dialogue using a kind of answerfile: camera=on coun...
by kaksi
Wed May 20, 2020 11:52 am
Forum: General discussion
Topic: Raspberry Pi Imager and write protected card
Replies: 13
Views: 1772

Re: Raspberry Pi Imager and write protected card

SD cards have their own processors on board and do an awful lot of stuff we know nothing about. They run closed source software and I suspect there is a lot of interaction between card and computer that is undocumented. As such this problem is likely unfixable in the Linux world. What if the proces...

Go to advanced search