Go to advanced search

by david_1234
Tue Aug 11, 2020 8:43 am
Forum: Python
Topic: run ping and save the ttl
Replies: 3
Views: 73

Re: run ping and save the ttl

You're looking at the exit code from ping and the normal convention is that 0 = no error. I didn;t know this - thanks! so to understadn (if next time I want to run another command or do something else ) this command will "put" the all respons into a string ? result = os.popen("ping -c 1 "+ip).read(...
by david_1234
Mon Aug 10, 2020 3:21 pm
Forum: Python
Topic: run ping and save the ttl
Replies: 3
Views: 73

run ping and save the ttl

Hello I have a simple ping code that scan a list of IP from a file work great I want to know the ttl from the reaply this is what I have now import os file = open('/home/pi/Desktop/DevicesToCheck' , 'r') count = 0 for line in file: count +=1 print("Line{}: {}".format(count, line.strip())) hostname =...
by david_1234
Thu Aug 06, 2020 12:23 pm
Forum: Advanced users
Topic: Can I connect pi from usb and read files?
Replies: 2
Views: 147

Can I connect pi from usb and read files?

Hello I running pi as a logger for data and save them on files is there any whay\app \ code I can run on the pi so when I'm connecting the pi using the USB it will pnly show me the directory where I save the files? so I will see the pi as DOK ? I using pi zero and want to move the data to my compute...
by david_1234
Mon Jul 20, 2020 9:25 am
Forum: Beginners
Topic: Connect HC-05 Bluetooth with PI2 or 3
Replies: 2
Views: 88

Re: Connect HC-05 Bluetooth with PI2 or 3

this is just image of the device - so you will know what I'm talking about , that is all . I want to be abel to "talk" with that device and send him at-commands and be abel to read the answer after a long try I mange to setup the minicom but when I enter it and send "AT" I get this: ERROR:(0) ERROR:...
by david_1234
Mon Jul 20, 2020 9:19 am
Forum: Beginners
Topic: Connect HC-05 Bluetooth with PI2 or 3
Replies: 2
Views: 88

Connect HC-05 Bluetooth with PI2 or 3

Hello , I'm trying to connect the HC-05 zs-040 model to my pi this is the device (look at the first image ) http://www.martyncurrey.com/arduino-with-hc-05-bluetooth-module-in-slave-mode/ I want to be abel to send him at commands for scanning and be abel to read the answer I don't wnat to pair the bl...
by david_1234
Sun Jul 12, 2020 2:53 pm
Forum: Beginners
Topic: usb hub reset on PI3?
Replies: 0
Views: 61

usb hub reset on PI3?

Hello , I'm using a pi3 B+ with offical power supplay 5V\2.5A . I have connected to my PI this usb camera http://a4tech.com/product.aspx?id=35 and also a dok 16GB the pi is running zonmidner and record the video from the camera on the USB. not so much work load my problem is that every unknonw perio...
by david_1234
Thu Jul 09, 2020 6:23 pm
Forum: Beginners
Topic: 16GB usb is mount but don't see it in "df"?
Replies: 19
Views: 644

Re: 16GB usb is mount but don't see it in "df"?

Hello again , same problem after 4 days take a look (please...) cat /var/log/kern.log | grep USB Jul 5 17:01:04 raspberrypi kernel: [611192.231743] usb 1-1.2: reset high-speed USB device number 8 using dwc_otg Jul 9 17:09:41 raspberrypi kernel: [957308.880858] usb 1-1.1: USB disconnect, device numbe...
by david_1234
Thu Jul 09, 2020 6:34 am
Forum: Beginners
Topic: Duplicate working pi project
Replies: 8
Views: 269

Re: Duplicate working pi project

Thank you all
I will try all the options

Thanks!
by david_1234
Wed Jul 08, 2020 7:36 pm
Forum: Troubleshooting
Topic: Connect USB modem to pi4
Replies: 7
Views: 216

Re: Connect USB modem to pi4

I have added the "persist" , now we shall wait an see :-) btw - it ther any way to know how many time it disconnect and then reconnect? just to know and make statistic and about the debug you mean I should see it in the /var/log/syslog? can I make him also create it own output log file ? also (anoth...
by david_1234
Wed Jul 08, 2020 3:08 pm
Forum: Troubleshooting
Topic: Connect USB modem to pi4
Replies: 7
Views: 216

Re: Connect USB modem to pi4

this is what he created me when I follow the guide

I have post the code , can you take a look in the previous post?
and tell me where to put the commands you told me ?
and how and where I see it's debug?

Thanks ,
by david_1234
Wed Jul 08, 2020 2:58 pm
Forum: Troubleshooting
Topic: Connect USB modem to pi4
Replies: 7
Views: 216

Re: Connect USB modem to pi4

this is what I see in the file /dev/ttyUSB3 115200 user internet password internet # The chat script, customize your APN in this file connect 'chat -s -v -f /etc/ppp/peers/quectel-chat-connect -T internet' # The close script disconnect 'chat -s -v -f /etc/ppp/peers/quectel-chat-disconnect' # Hide pa...
by david_1234
Wed Jul 08, 2020 2:14 pm
Forum: Beginners
Topic: Duplicate working pi project
Replies: 8
Views: 269

Re: Duplicate working pi project

Thanks
in that why I can also save the image in my computer for backup?
by david_1234
Wed Jul 08, 2020 2:12 pm
Forum: Troubleshooting
Topic: Connect USB modem to pi4
Replies: 7
Views: 216

Connect USB modem to pi4

Hello , I have connected 4G/LTE USB Quectel EC25 Modem via Raspberry Pi. like it said in this guide https://blog.enchose.com/raspberry-pi-runs-ppp-dial-up-quectel-ec25-lte-modem/ did everything it said , use my sim user \password\APN and it's working and connecting to the internet my problem is that...
by david_1234
Wed Jul 08, 2020 12:46 pm
Forum: Beginners
Topic: FTP server -vsftpd show wrong time +3 from my time
Replies: 4
Views: 196

Re: FTP server -vsftpd show wrong time +3 from my time

I have an IP camera theat uplaod files to the pi .
the camera time & date are correct (the same as the pi +- a few seconds).

what else it could be ?
by david_1234
Tue Jul 07, 2020 9:57 am
Forum: Beginners
Topic: FTP server -vsftpd show wrong time +3 from my time
Replies: 4
Views: 196

FTP server -vsftpd show wrong time +3 from my time

Hello, I have notice that when a file is creted on the ftp server the time is incorrect when in my pi the time is 12:00:00 the file is 15:00:00 I have looked at the vsftpd .conf file , and it should use the system time # If enabled, vsftpd will display directory listings with the time # in your loca...
by david_1234
Mon Jul 06, 2020 10:14 am
Forum: Beginners
Topic: 16GB usb is mount but don't see it in "df"?
Replies: 19
Views: 644

Re: 16GB usb is mount but don't see it in "df"?

I will try to look next time ,
hope it will be never :-)

Thank you for the help!
by david_1234
Mon Jul 06, 2020 9:23 am
Forum: Beginners
Topic: 16GB usb is mount but don't see it in "df"?
Replies: 19
Views: 644

Re: 16GB usb is mount but don't see it in "df"?

OK

is there any way to know this was the problem ?
what to look for in the syslog?
so if it will happand again I will know this was the problem
by david_1234
Mon Jul 06, 2020 8:59 am
Forum: Beginners
Topic: 16GB usb is mount but don't see it in "df"?
Replies: 19
Views: 644

Re: 16GB usb is mount but don't see it in "df"?

:-)

although I'm using the offical power supplay 2.5A ?
by david_1234
Mon Jul 06, 2020 6:07 am
Forum: Beginners
Topic: 16GB usb is mount but don't see it in "df"?
Replies: 19
Views: 644

Re: 16GB usb is mount but don't see it in "df"?

I did this by topguy » Sun Jul 05, 2020 6:33 pm I would unmount the disk ( sudo umount /mnt/usb ) and then run a filesystem check. ( sudo fsck.ext4 /dev/sda1 ) didn't work then I saw that the USB is now "called" /dev/sdb1 and /dev/sda1 which make a good reason why there was a problem ...... so now i...
by david_1234
Sun Jul 05, 2020 8:44 am
Forum: Beginners
Topic: rc.local pritn to syslog and also to file
Replies: 4
Views: 184

Re: rc.local pritn to syslog and also to file

Thanks!
by david_1234
Sun Jul 05, 2020 7:44 am
Forum: Beginners
Topic: 16GB usb is mount but don't see it in "df"?
Replies: 19
Views: 644

Re: 16GB usb is mount but don't see it in "df"?

I don't know if this related or to pen a new post but everything work for 3 days without any problem able to read\write from\to the DOK but now I'm unable to enter it I see it in the lsusb lsusb Bus 001 Device 008: ID 0951:1666 Kingston Technology DataTraveler 100 G3/G4/SE9 G2 see it in the files: d...
by david_1234
Sun Jul 05, 2020 7:22 am
Forum: Beginners
Topic: Duplicate working pi project
Replies: 8
Views: 269

Duplicate working pi project

Hello , I have a working pi project on a 16GB SD card from "SanDisk" I have used this software "Win32DiskImager" 1. read the sd card from my computer 2. save it in my computer. 3. enter a new "SanDisk" 16GB SD card into my computer 4. press "write" 5. had a new SD card ready in 15~ min , put it in a...
by david_1234
Thu Jul 02, 2020 11:44 am
Forum: Beginners
Topic: 16GB usb is mount but don't see it in "df"?
Replies: 19
Views: 644

Re: 16GB usb is mount but don't see it in "df"?

so maybe it didn't work before becasue /mnt/mydisk had files inside of it ? now I have done this and it's working sudo mount /dev/sda1 /mnt/usb/ pi@raspberrypi:~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/root 14G 3.0G 11G 23% / devtmpfs 433M 0 433M 0% /dev tmpfs 438M 5.9M 432M 2% /dev/s...
by david_1234
Thu Jul 02, 2020 11:04 am
Forum: Beginners
Topic: 16GB usb is mount but don't see it in "df"?
Replies: 19
Views: 644

Re: 16GB usb is mount but don't see it in "df"?

my mistake

how to run it ?
beacuse in the history I see I have this command last about "mount"

Code: Select all

sudo mount /dev/sda1 /mnt/mydisk/
is it wrong ?
can you tell me please which command to run ?

Thanks ,
by david_1234
Thu Jul 02, 2020 10:55 am
Forum: Beginners
Topic: 16GB usb is mount but don't see it in "df"?
Replies: 19
Views: 644

Re: 16GB usb is mount but don't see it in "df"?

Code: Select all

 df -h /mnt/mydisk/
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        14G  2.9G   11G  22% /
does it mean the folder is not on the disk?
:o :o :o :o

how to fix this ?

Go to advanced search