Go to advanced search

by Faruk
Wed Dec 26, 2018 6:08 am
Forum: Python
Topic: Pass variable script problem
Replies: 3
Views: 329

Pass variable script problem

Hello guys. I write two python code and I can pass variable two scrpit but I have some problem. My scrpits this: script1.py x='a' import script2 script2 import script1 import time print "second script start" print script1.x print "secon script end" When I ran script2.py result this: second script st...
by Faruk
Mon Dec 24, 2018 1:20 pm
Forum: Türkçe
Topic: Raspi'nin Güç Tüketimi Kontrolü
Replies: 1
Views: 7477

Re: Raspi'nin Güç Tüketimi Kontrolü

Merhabalar konu ile ilgiili benimde üzerinde çalıştığım ve merak ettiğim bir şey var. Uart haberleşme ile gelen verileri GUI'de ekrana yazıyorum ancak CPU çok fazla çalışıyormuş gibi geliyor. Daha ağır işlemleri raspberry'nin daha rahat yaptığını gördüm. Benim uygulamamda %20 civarlarında çalışıyor....
by Faruk
Mon Dec 24, 2018 1:17 pm
Forum: Türkçe
Topic: Raspery pi ile normal hdmi ekran kullanimi
Replies: 2
Views: 3273

Re: Raspery pi ile normal hdmi ekran kullanimi

Raspberry'de 19" ekran kullanabilirisn. Tv vs bile kullanabiliyorsun. Sadece duruma göre çözünürlüğü ayarlaman gerekebilir
by Faruk
Wed Dec 19, 2018 7:55 am
Forum: Python
Topic: Code effect on CPU
Replies: 5
Views: 483

Re: Code effect on CPU

Okey. Thanks for your helping :)
by Faruk
Wed Dec 19, 2018 7:51 am
Forum: Python
Topic: Code effect on CPU
Replies: 5
Views: 483

Re: Code effect on CPU

Try time.sleep(0.1) after return dataarray line. But CPU usage is not change
by Faruk
Wed Dec 19, 2018 7:47 am
Forum: Python
Topic: Code effect on CPU
Replies: 5
Views: 483

Re: Code effect on CPU

DougieLawson wrote:
Wed Dec 19, 2018 7:42 am
Put a time.sleep(0.1) in your while True: loop. See what effect that has, because a free running while True: loop will chew 100% of one of the four cores (making your Raspberry run hot).
Okey but Is not affected communication by this situation? Because there is streaming data always.
by Faruk
Wed Dec 19, 2018 7:37 am
Forum: Python
Topic: Code effect on CPU
Replies: 5
Views: 483

Code effect on CPU

Hello guys. I have a python 2.7 script for my raspberry pi. My problem is When I run code, Raspberry pi use %20 of CPU. I think, wrong something in my code. I saw else program bigger than mine(Also it runs video and render image) but it use %5 of CPU. I think my algorithm is wrong but I couldn't fin...
by Faruk
Tue Dec 18, 2018 6:44 am
Forum: Linux Kernel
Topic: Kernel Panic
Replies: 5
Views: 3867

Re: Kernel Panic

You can recover your Pi using a Linux PC. Insert the SD card into your PC and then find out what the name of the SD card is (/dev/*): sudo fdisk -l Find the device that has properties similar to your SD card. For example, if your SD card is 8GB and there's a 7.9GB storage device, it's most likely y...
by Faruk
Tue Dec 18, 2018 5:45 am
Forum: Linux Kernel
Topic: Kernel Panic
Replies: 5
Views: 3867

Re: Kernel Panic

Can you tell me: 1) What is the workload you are running? 2) How much additional hardware is attached? 3) Is the Pi in a case? 4) What is the power supply? 5) At some point after you have started the workload but before the crash, what does "sudo vcgencmd get_throttled" report? The screen capture y...
by Faruk
Mon Dec 17, 2018 11:32 am
Forum: Linux Kernel
Topic: Kernel Panic
Replies: 5
Views: 3867

Kernel Panic

Hello I have some problem in raspberry pi 3. I took this error and I don't know cause. According to my research power supplies cause this problem. There is temperature icon in my raspberry pi. I don't know if there is a relationship with kernel. Also I reading data from uart and I show data in GUI. ...
by Faruk
Tue Dec 04, 2018 6:56 am
Forum: Python
Topic: Canvas refreshing problem
Replies: 2
Views: 564

Re: Canvas refreshing problem

Additionally if I close canvas code. I can't see number.
by Faruk
Tue Dec 04, 2018 6:53 am
Forum: Python
Topic: Canvas refreshing problem
Replies: 2
Views: 564

Canvas refreshing problem

Hello Guys. I have a problem about canvas. I work for lift program. When the lift move up or down, program should show number and arrow. I create program. But I can't direction arrow. My program shows to me "updateError" text(I establish this text. ) If lift is move up(travel_up) I should see upArro...
by Faruk
Tue Nov 27, 2018 10:56 am
Forum: Camera board
Topic: Usb camera does not use GPU
Replies: 9
Views: 1883

Re: Usb camera does not use GPU

You can accelerate USB webcams if you are prepared to do something custom. Cheese is not optimised at all as it is a totally generic app. Just resizing the video to whatever size your window is is a moderate processing load on the CPU. There are a couple of issues with hardware acceleration though:...
by Faruk
Tue Nov 27, 2018 10:15 am
Forum: Camera board
Topic: Usb camera does not use GPU
Replies: 9
Views: 1883

Re: Usb camera does not use GPU

What sort of acceleration are you looking to do on the GPU? I have microscope cam. I want use cam be live with raspberry. Just control component on board, solder, short circuit etc. I can use cam but CPU so warming and I have to close on Rpi. Is the CPU really over temperature? Do the warning icons...
by Faruk
Tue Nov 27, 2018 10:00 am
Forum: Camera board
Topic: Usb camera does not use GPU
Replies: 9
Views: 1883

Re: Usb camera does not use GPU

jamesh wrote:
Tue Nov 27, 2018 9:32 am
What sort of acceleration are you looking to do on the GPU?
I have microscope cam. I want use cam be live with raspberry. Just control component on board, solder, short circuit etc. I can use cam but CPU so warming and I have to close on Rpi.
by Faruk
Tue Nov 27, 2018 6:05 am
Forum: Camera board
Topic: Usb camera does not use GPU
Replies: 9
Views: 1883

Usb camera does not use GPU

Hello everyone. I have raspberry pi 3. I connected usb camera and install cheese program. It's work fine but I think cheese program does not use GPU and while cheese program running CPU temperature so rising. How can I fix this wrong?

Thanks for time
by Faruk
Mon Nov 12, 2018 8:42 pm
Forum: OpenMAX
Topic: How tunnel of openmax work?
Replies: 16
Views: 6877

Re: How tunnel of openmax work?

Hello again. I wonder one things. Can I use gstreamer for this job? I saw some comment gstreamer but I don't sure how can it run? I want decode video and audio like omx. Because I searched MMAL and container parse but it is look difficult and I can't find documentation according to me. I am pretty t...
by Faruk
Sat Nov 10, 2018 10:02 am
Forum: Türkçe
Topic: Raspberry pi 3'de main.c'de execute yapmak
Replies: 1
Views: 4858

Re: Raspberry pi 3'de main.c'de execute yapmak

Sorumun cevabını https://www.tutorialspoint.com/c_standa ... system.htm sayfasında buldum. Lazım olan arakdaşlar varsa buradan bilgi edinebilirler. Teşekkürler.
by Faruk
Sat Nov 10, 2018 8:59 am
Forum: Türkçe
Topic: Raspberry pi 3'de main.c'de execute yapmak
Replies: 1
Views: 4858

Raspberry pi 3'de main.c'de execute yapmak

Merhabalar Raspberry pi de main.c kodunun içine terminalden komut çalıştırma eklemek istiyorum. Bu konuda bilgisi olan var mı acaba C dilinde bu nasıl yapılıyor. Yapmak istediğim şey ile ilgili pythonda yaptığım şöyle bir örnek vereyim. #! /usr/bin/env python from decimal import* import os os.system...
by Faruk
Sat Nov 10, 2018 5:15 am
Forum: OpenMAX
Topic: How tunnel of openmax work?
Replies: 16
Views: 6877

Re: How tunnel of openmax work?

My work looking so difficult. I will search OMX and MMAL. Thank you :)
by Faruk
Fri Nov 09, 2018 11:40 am
Forum: OpenMAX
Topic: How tunnel of openmax work?
Replies: 16
Views: 6877

Re: How tunnel of openmax work?

I achieved decode video but just I can see display, I couldn't audio. I did ffmpeg process for audio and I converted from .mp4 file to .aac file. Openmax can decoding to .aac file with 'OMX_AUDIO_CodingAAC'. I try doing decode audio but I don't know what will result. I don't sure both video and audi...
by Faruk
Thu Nov 08, 2018 12:34 pm
Forum: OpenMAX
Topic: How tunnel of openmax work?
Replies: 16
Views: 6877

Re: How tunnel of openmax work?

Thanks for your help :). It working so great. I tried like this but video seemed distorted. Actually some file still broke but I can see different video now :)
by Faruk
Thu Nov 08, 2018 11:47 am
Forum: OpenMAX
Topic: How tunnel of openmax work?
Replies: 16
Views: 6877

Re: How tunnel of openmax work?

So how can I create elementary stream? I saw ffmpeg but I couldn't it. But I achieve againts. I convert test.h264 to .mp4 file with raspivid. Also can I decode video directly?
by Faruk
Wed Nov 07, 2018 3:54 pm
Forum: OpenMAX
Topic: How tunnel of openmax work?
Replies: 16
Views: 6877

Re: How tunnel of openmax work?

Hello again. I so much ask today. Sorry. I want run mpeg-4 video format. I tried change this section on my code: format.eCompressionFormat = OMX_VIDEO_CodingAVC; but openmax did not decode mpeg-4. My argument name is 'A.mp4' its format look like be mpeg-4 on its properties. I set argument and run bu...
by Faruk
Wed Nov 07, 2018 11:15 am
Forum: OpenMAX
Topic: How tunnel of openmax work?
Replies: 16
Views: 6877

Re: How tunnel of openmax work?

OK. I success this. I think I wrote function but I add it wrong place and I forgot to add config settings in my function. I share my code which maybe it is true. This: // create video_render if(status == 0 && ilclient_create_component(client, &video_render, "video_render", ILCLIENT_DISABLE_ALL_PORTS...

Go to advanced search