Go to advanced search

by david_1234
Tue Dec 24, 2019 4:07 pm
Forum: General discussion
Topic: unabel to save PI image for backup&restore
Replies: 8
Views: 514

unabel to save PI image for backup&restore

Hello , I have a working PI3 with stretch on 16GB SD card. I remove the SD from the pi connect it to my computer open Win32 Disk Imager read the SD (took about 10 min) remove the SD put a new 16GB SD card ,format it. using Win32 Disk Imager press "Write" with the file I saved before finish put the S...
by david_1234
Tue Dec 24, 2019 12:35 pm
Forum: General discussion
Topic: PI get stuck after boot - showing only error messages
Replies: 19
Views: 861

Re: PI get stuck after boot - showing only error messages

can I just delete all of those file using "rm" ?
no need to diable any service first?
by david_1234
Tue Dec 24, 2019 8:13 am
Forum: General discussion
Topic: PI get stuck after boot - showing only error messages
Replies: 19
Views: 861

Re: PI get stuck after boot - showing only error messages

I have connected to the pi using HDMI it open it on the desktop , I reboot it and now I can only enter using cmd when I use df -h I see that "/dev/root 15G 100% used" when I enter run du -h /var/log I see it's 9.5G when I enter /var/log ls -ls I see that kern.log,kern.log.1,syslog.1,messages,message...
by david_1234
Mon Dec 23, 2019 11:39 am
Forum: General discussion
Topic: PI get stuck after boot - showing only error messages
Replies: 19
Views: 861

Re: PI get stuck after boot - showing only error messages

I will try to connect to pi usong keybaord and sceen and see

I will let you know in a day or 2

Thanks ,
by david_1234
Mon Dec 23, 2019 10:51 am
Forum: General discussion
Topic: PI get stuck after boot - showing only error messages
Replies: 19
Views: 861

Re: PI get stuck after boot - showing only error messages

:o :cry: :cry:
is there soemething I can try doing?
try to reload \ change old setting somehow?

or no other option and I need to run a fresh installation?
by david_1234
Mon Dec 23, 2019 7:45 am
Forum: General discussion
Topic: PI get stuck after boot - showing only error messages
Replies: 19
Views: 861

PI get stuck after boot - showing only error messages

Hello , I running om my pi only zoneminder yesterday i notice I can't enter the server when I try to connect to the PI using ssh I got this error messges Message from syslogd@raspberrypi at Dec 23 08:33:19 ... in decoder error: Message from syslogd@raspberrypi at Dec 23 08:33:19 ... iled to create a...
by david_1234
Sun Dec 22, 2019 8:40 am
Forum: Automation, sensing and robotics
Topic: I2C on PI stop working?
Replies: 2
Views: 389

Re: I2C on PI stop working?

it was INA219 but also a I2C LCD I remember I had some problem with the INA219 , and I wanted to check the i2c is working so I run a simple "show time " python code . maybe there is a simple sel-check or something I can do ? I think something went wrong in the PI because now I have also try to conne...
by david_1234
Sun Dec 22, 2019 8:34 am
Forum: Automation, sensing and robotics
Topic: I2C on PI stop working?
Replies: 2
Views: 389

I2C on PI stop working?

Hello , I'm working with PI4 buster I want to connect an I2C LCD device I have connected 5V,GND,PIN3(SDA),PIN5(SCL) enable the i2c on the config but when I run the command I don't see the device sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- ...
by david_1234
Tue Dec 03, 2019 10:49 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPi4 and i2c; Has anyone used additional i2c buses?
Replies: 15
Views: 6485

Re: RPi4 and i2c; Has anyone used additional i2c buses?

how do I test slower clock?
where do I change the setting?


Thanks ,
by david_1234
Tue Dec 03, 2019 8:52 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPi4 and i2c; Has anyone used additional i2c buses?
Replies: 15
Views: 6485

Re: RPi4 and i2c; Has anyone used additional i2c buses?

When I say remote I meant no one touch it (all the cables that connected to the card\pi are 15 cm max)
so you say maybe try with 3.3K resistors instead of 4.7K?
maybe this will solve the problem ?

Thanks ,
by david_1234
Mon Dec 02, 2019 1:24 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPi4 and i2c; Has anyone used additional i2c buses?
Replies: 15
Views: 6485

Re: RPi4 and i2c; Has anyone used additional i2c buses?

it's start to work , saw the address , run the script - everything was working just great but after ~ 3 min It stop working , and when I run the search to see the address it take about 3 min to finish the scan. no one touch it \ change the wiring - it was on a remote table what it could be ? Thanks ,
by david_1234
Sun Dec 01, 2019 3:18 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPi4 and i2c; Has anyone used additional i2c buses?
Replies: 15
Views: 6485

Re: RPi4 and i2c; Has anyone used additional i2c buses?

maybe you can help me? I'm trying to connect INA219 usnig i2c I'm using PI4 , opened all i2c pins ,and I can see 4 of them /dev/i2c-1 /dev/i2c-3 /dev/i2c-5 /dev/i2c-6 but I can't see the device I have try in all i2c pins (I took the pinout from here) https://learn.pi-supply.com/make/raspberry-pi-4-p...
by david_1234
Wed Nov 20, 2019 3:33 pm
Forum: General discussion
Topic: using to CanBus on on pi (SPI0 and SPI1)
Replies: 1
Views: 244

Re: using to CanBus on on pi (SPI0 and SPI1)

I saw on the internet that I can do this using a special card https://copperhilltech.com/content/PICAN2DUOUGB.pdf but can't I do the same using my own setting? I have try to add this lines in the boot/config.txt dtparam=spi=on dtoverlay=mcp2515-can0-overlay,oscillator=16000000,interrupt=12 dtoverlay...
by david_1234
Tue Nov 19, 2019 4:01 pm
Forum: General discussion
Topic: using to CanBus on on pi (SPI0 and SPI1)
Replies: 1
Views: 244

using to CanBus on on pi (SPI0 and SPI1)

Hello , wanted to know how can I read data from 2 canbus interfaces at the same time. Right now I'm using this configuration for 1 canbus : /boot/config.txt dtparam=spi=on dtoverlay=mcp2515-can0,oscillator=8000000,interrupt=12 dtoverlay=spi-bcm2835-overlay and this connections GPIO CAN HEADR SIGNAL ...
by david_1234
Mon Nov 11, 2019 10:00 am
Forum: Java
Topic: Unable to read cmd line from sh file using Java
Replies: 19
Views: 1947

Re: Unable to read cmd line from sh file using Java

whould you do it different? (Logic speaking)
Thanks ,
by david_1234
Mon Nov 11, 2019 9:37 am
Forum: Java
Topic: Unable to read cmd line from sh file using Java
Replies: 19
Views: 1947

Re: Unable to read cmd line from sh file using Java

OK - I can do this :-) just to see I got it right on t0 I have column1 , column2 , column3 .... on t1 I have column1_1 , column2_1 , column3_1 then I sub columns1_1-column1 ..... I get a "new" line with 7 values\numbers and from there I do waht I did before? CpuLoad = (100 - ((IdleCPU / TotalCPU) * ...
by david_1234
Mon Nov 11, 2019 8:34 am
Forum: Java
Topic: Unable to read cmd line from sh file using Java
Replies: 19
Views: 1947

Re: Unable to read cmd line from sh file using Java

So this doesn't help me to get to the solution I need either :|

I think Linux moto should be
"Let's make things more complicated....."

so maybe you have any idea how to get the cpu load (the same value I get in the monitor ) ?

Thanks ,
by david_1234
Sun Nov 10, 2019 3:24 pm
Forum: Java
Topic: Unable to read cmd line from sh file using Java
Replies: 19
Views: 1947

Re: Unable to read cmd line from sh file using Java

this is what I did for the last hour finally made this solution according to this explain https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk65143 String CpuFileName = "/proc/stat"; String line = null; String strArray[] = new String[12]; doubl...
by david_1234
Sun Nov 10, 2019 2:15 pm
Forum: Java
Topic: Unable to read cmd line from sh file using Java
Replies: 19
Views: 1947

Re: Unable to read cmd line from sh file using Java

you want me to read ~3100 lines of code? :-)
maybe you can point me to the answer ?

I can only assume you know the answer

Thanks ,
by david_1234
Sun Nov 10, 2019 2:05 pm
Forum: Java
Topic: Unable to read cmd line from sh file using Java
Replies: 19
Views: 1947

Re: Unable to read cmd line from sh file using Java

Ok now I see it but now what ? this is what I ask here https://www.raspberrypi.org/forums/viewtopic.php?f=32&t=247784&p=1562897#p1562897 what do I need to calcualte in order to see the current CPU use? I guess something from this line ? 12705560 1075 1114248 131286844 258837 0 58030 0 0 0 if I take ...
by david_1234
Sun Nov 10, 2019 1:21 pm
Forum: Java
Topic: Unable to read cmd line from sh file using Java
Replies: 19
Views: 1947

Re: Unable to read cmd line from sh file using Java

I don't have this file \ library.
do I need to install something?
by david_1234
Sun Nov 10, 2019 10:12 am
Forum: Java
Topic: Unable to read cmd line from sh file using Java
Replies: 19
Views: 1947

Re: Unable to read cmd line from sh file using Java

The problem is that the main code is JAVA and I need to keep the answer and do some work with the numbers

I don't want to start using python from java - I think it will complicate things - no ?

isn't better to use only 1 language?


Thanks ,
by david_1234
Sun Nov 10, 2019 9:14 am
Forum: Java
Topic: Unable to read cmd line from sh file using Java
Replies: 19
Views: 1947

Unable to read cmd line from sh file using Java

Hello , I'm having a strange problem I'm trying to read the CPU load using this commnad: top -n1 | grep "%Cpu" when I try to use this java code : try { ProcessBuilder GetCPU = new ProcessBuilder ("sudo" , top" ,"-n1","grep" , "%Cpu"); //*2 ProcessBuilder GetCPU = new ProcessBuilder ("sudo" , sh" , "...
by david_1234
Thu Nov 07, 2019 3:09 pm
Forum: Python
Topic: Get pi CPU temp and load
Replies: 15
Views: 2739

Re: Get pi CPU temp and load

OK so can I "trust" the answer I'm getting? meaning that if I get %Cpu(s): 6.8 us, 6.8 sy, 0.0 ni, 86.5 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st which I take from there only the idle "86.5" meaning beaing use 13.5% the real number is not that importent , I just want to make sure the pi is not "kiling" its...
by david_1234
Thu Nov 07, 2019 1:50 pm
Forum: Python
Topic: Get pi CPU temp and load
Replies: 15
Views: 2739

Re: Get pi CPU temp and load

Sorry for the bump I still can't find an answer for this , how to get the CPU Load. and it can't be that hard - becuase you can see it in the menu as "CPU Usage Monitor", so the number and calculation is there. so it must be a way to reach and get it , no? I understadn correctly this command top -n ...

Go to advanced search