embeded/raspberry pi2016. 12. 16. 15:08

테스트 해보니.. maxcpus는 작동하지 않는듯


# replace N with the number of cores you want to keep using

maxcpus=N 

[링크 : http://raspberrypi.stackexchange.com/questions/32562/how-to-make-the-raspberry-pi-consume-less-power]


arm_freq Frequency of the ARM CPU in MHz. The default value is 700.

core_freq Frequency of the GPU processor core in MHz. It has an impact on CPU performance, since it drives the L2 cache. The default value is 250.

sdram_freq Frequency of the SDRAM in MHz. The default value is 400.


gpu_freq Sets core_freq, h264_freq, isp_freq, and  v3d_freq together. The default value is 250.

h264_freq Frequency of the hardware video block in MHz. The default value is 250.

isp_freq Frequency of the image sensor pipeline block in MHz. The default value is 250.

v3d_freq Frequency of the 3D block in MHz. The default value is 250.


arm_freq_min Minimum value of arm_freq used for dynamic frequency clocking. The default value is 700.

core_freq_min Minimum value of core_freq used for dynamic frequency clocking. The default value is 250.

sdram_freq_min Minimum value of sdram_freq used for dynamic frequency clocking. The default value is 400.


[링크 : https://www.raspberrypi.org/documentation/configuration/config-txt.md]

[링크 : http://raspberrypi.stackexchange.com/questions/23442/raspberry-pi-b-cpu-clock-manipulation]

[링크 : http://raspberrypi.stackexchange.com/questions/41517/low-enery-consumption-kernel]


+

길어서 cpu 1,2,3은 삭제

$ cpufreq-info

cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009

Report errors and bugs to cpufreq@vger.kernel.org, please.

analyzing CPU 0:

  driver: BCM2835 CPUFreq

  CPUs which run at the same hardware frequency: 0 1 2 3

  CPUs which need to have their frequency coordinated by software: 0 1 2 3

  maximum transition latency: 355 us.

  hardware limits: 600 MHz - 900 MHz

  available frequency steps: 600 MHz, 900 MHz

  available cpufreq governors: conservative, ondemand, userspace, powersave, performance

  current policy: frequency should be within 600 MHz and 900 MHz.

                  The governor "ondemand" may decide which speed to use

                  within this range.

  current CPU frequency is 600 MHz.


$ cat /boot/config.txt

#uncomment to overclock the arm. 700 MHz is the default.

#arm_freq=800

arm_freq_min=300


길어서 cpu 1,2,3은 삭제


$ cpufreq-info

cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009

Report errors and bugs to cpufreq@vger.kernel.org, please.

analyzing CPU 0:

  driver: BCM2835 CPUFreq

  CPUs which run at the same hardware frequency: 0 1 2 3

  CPUs which need to have their frequency coordinated by software: 0 1 2 3

  maximum transition latency: 355 us.

  hardware limits: 300 MHz - 900 MHz

  available frequency steps: 300 MHz, 900 MHz

  available cpufreq governors: conservative, ondemand, userspace, powersave, performance

  current policy: frequency should be within 300 MHz and 900 MHz.

                  The governor "ondemand" may decide which speed to use

                  within this range.

  current CPU frequency is 300 MHz.

  cpufreq stats: 300 MHz:16.33%, 900 MHz:83.67%  (7)


$ cat /boot/config.txt

arm_freq=600

arm_freq_min=100


$ cpufreq-info

cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009

Report errors and bugs to cpufreq@vger.kernel.org, please.

analyzing CPU 0:

  driver: BCM2835 CPUFreq

  CPUs which run at the same hardware frequency: 0 1 2 3

  CPUs which need to have their frequency coordinated by software: 0 1 2 3

  maximum transition latency: 355 us.

  hardware limits: 100.0 MHz - 600 MHz

  available frequency steps: 100.0 MHz, 600 MHz

  available cpufreq governors: conservative, ondemand, userspace, powersave, performance

  current policy: frequency should be within 100.0 MHz and 600 MHz.

                  The governor "ondemand" may decide which speed to use

                  within this range.

  current CPU frequency is 600 MHz.

  cpufreq stats: 100.0 MHz:0.00%, 600 MHz:100.00% 


테스트 해보니.. 0.04W 감소 월(30일)기준 28.8W 절약... 이라고 해야하나?

100MHz 1.70W -> 1.66W

Posted by 구차니
embeded/odroid2016. 12. 15. 21:21

odorid u3

eMMC 8GB + SD 16GB

100M 랜선 연결 idle 1.95W

랜선빼고 1.72W (-0.23W)

SD 카드는 영향을 주지 않음(내장형 SD)


USB 키보드 0.17W

USB 마우스 0.53W


평균 2W 먹음(idle)

2W * 24 * 30 = 1440W = 1.4KW



---

번외

라즈베리 파이

lan / hdmi 연결 안함  1.70W

lan만 연결 1.93W


hdmi 연결 하고 부팅 1.76W

hdmi + lan 2.01W

hdmi 연결부팅 후 hdmi 제거 1.76W


Posted by 구차니
embeded/arduino(genuino)2016. 12. 2. 21:46

아두이노에서 아두이노 부트로더를 통해 시리얼로 업로드 하는데

avrdude를 통해 사용할떄는 프로그래머 타입을 arduino로 설정을 한다.

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58

         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         Copyright (c) 2007-2009 Joerg Wunsch


         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"


         Using Port                    : COM6

         Using Programmer              : arduino

         Overriding Baud Rate          : 57600

         AVR Part                      : ATmega328P 

2016/03/27 - [embeded/arduino(genuino)] - 아두이노 나노 - 시리얼 테스트


Binary sketch size: 1,084 bytes (of a 30,720 byte maximum)

D:/arduino-1.0.4/hardware/tools/avr/bin/avrdude -CD:/arduino-1.0.4/hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -carduino -P.COM22 -b57600 -D -Uflash:w:C:/Users/aSensar/AppData/Local/Tempbuild1227546797508918322.tmpBlink.cpp.hex:i 

[링크 : http://asensar.com/article/program-arduino-with-avrdude.html]


라즈베리의 GPIO를 통해서 spi 통신을 하는건지 

라즈베리의 spi로 avrisp를 흉내내는건진 잘 모르겠다.

[링크 : https://learn.adafruit.com/program-an-avr-or-arduino-using-raspberry-pi-gpio-pins/installation]


[링크 : https://www.arduino.cc/en/Hacking/Bootloader?from=Tutorial.Bootloader]

[링크 : http://svn.savannah.nongnu.org/viewvc/trunk/avrdude/arduino.c?revision=1321...p]

'embeded > arduino(genuino)' 카테고리의 다른 글

hoverlabs 사의 hover 제품  (0) 2017.07.17
아두이노 스켈레톤 코드 및 부트로더  (0) 2017.02.11
pwm ppm decode  (0) 2016.11.28
arduino clcd  (0) 2016.11.25
arduino nano 스펙(PWM)  (0) 2016.11.25
Posted by 구차니
embeded/arduino(genuino)2016. 11. 28. 18:30

'embeded > arduino(genuino)' 카테고리의 다른 글

아두이노 스켈레톤 코드 및 부트로더  (0) 2017.02.11
avrdude arduino  (0) 2016.12.02
arduino clcd  (0) 2016.11.25
arduino nano 스펙(PWM)  (0) 2016.11.25
아두이노 프로세싱(언어)  (0) 2016.05.09
Posted by 구차니
embeded/odroid2016. 11. 26. 22:09

640x480 해상도이긴 하지만 완전 낮은데?

MJPEG이라 그런건가..그리고 해상도 변경이 안되네? ㅠㅠ



Packed YUV가 오히려 더 cpu를 조금더 먹네

mjpeg은 jpeg이니까 하드웨어 가속을 받아도 압축이니까 순수하게 cpu로 해서 그런건가?



'embeded > odroid' 카테고리의 다른 글

odroid u3 웹캠 두 채널  (0) 2016.12.25
odroid u3 전원소비 (경우별)  (0) 2016.12.15
odroid u3 16.04 vlc / webcam  (0) 2016.11.21
odroid ubuntu mate 16.04 chrome flash가 안되네..  (0) 2016.11.19
odroid ubuntu mate 16.04 uname  (0) 2016.11.17
Posted by 구차니
embeded/arduino(genuino)2016. 11. 25. 20:46

4bit 8bit hd44780


[링크 : https://www.arduino.cc/en/Reference/LiquidCrystal]]

[링크 : https://www.arduino.cc/en/Tutorial/LiquidCrystalDisplay]

[링크 : http://playground.arduino.cc/Code/LCD]


근데 내가 가진건. hd44780 계열이 아니네...

sed1520 - cm04075

[링크 : https://www.devicemart.co.kr/1077090]

+ 2020.03.08

[링크 : https://blog.naver.com/ssw152003/220694366332]


s6a0069 / ks0066u - lc1628

[링크 : https://www.devicemart.co.kr/1075057]

'embeded > arduino(genuino)' 카테고리의 다른 글

avrdude arduino  (0) 2016.12.02
pwm ppm decode  (0) 2016.11.28
arduino nano 스펙(PWM)  (0) 2016.11.25
아두이노 프로세싱(언어)  (0) 2016.05.09
arduino firmata  (0) 2016.04.27
Posted by 구차니
embeded/arduino(genuino)2016. 11. 25. 10:04

6채널까지 가능

흐음..


조금 더 많았으면 좋았을텐데 조금 아쉽네


Microcontroller Atmel ATmega168 or ATmega328

Operating Voltage (logic level) 5 V

Input Voltage (recommended) 7-12 V

Input Voltage (limits) 6-20 V

Digital I/O Pins 14 (of which 6 provide PWM output)

Analog Input Pins 8

[링크 : https://www.arduino.cc/en/Main/ArduinoBoardNano]


아두이노 마이크로는 7채널이네

Microcontroller ATmega32U4

Operating Voltage 5V

Input Voltage (recommended) 7-12V

Input Voltage (limit) 6-20V

Digital I/O Pins 20

PWM Channels 7

Analog Input Channels 12

[링크 : https://www.arduino.cc/en/Main/ArduinoBoardMicro]


3,5,6,9,10,11 번이 PWM 이라고 했는데

아두이노 핀 번호라고 해야하나 어떻게 매핑되는진 매번 찾아야 할지도...


[링크 : https://forum.arduino.cc/index.php?topic=147582.0]

    [링크 : http://www.pighixxx.com/test/pinouts/boards/nano.pdf]

'embeded > arduino(genuino)' 카테고리의 다른 글

pwm ppm decode  (0) 2016.11.28
arduino clcd  (0) 2016.11.25
아두이노 프로세싱(언어)  (0) 2016.05.09
arduino firmata  (0) 2016.04.27
attiny2313 usb client  (0) 2016.04.19
Posted by 구차니
embeded/Cortex-M4 Ti2016. 11. 23. 17:08

원인 불명(?)으로

trim 값이 0x7FFF가 기본값인데

0x0114정도 들어있어서

어느 순간인가 갑자기 1초 더해지는게 아닌 2초가 더해지는 현상을 발견 -_-


결론은.. 이걸 어떻게 구워삶냐 인가..

일단 

  if(HibernateIsActive())

{

HibernateRTCTrimSet(0x7FFF);

}

식으로 되어 있어야 trim이 설정되는거 같은데 끄응... 머리 아프네

어떤 조건에서 설정이 되는지 알수가 없다보니..


+

일단은.. hibernate가 on 되어야 설정이 되는데

그렇다면.. 설정이 안된채로 넘어간적도 있다는 건가? 싶은데.. 머지?


데이터 시트 상으로는, 64초 마다 더하거나 뺸다고

그런 이유로 보고 있으면 갑자기 시간이 2초가 간다거나 하는 식으로 드러난다.

(물론 0x7FFF 보다 적을 경우는 빠르게 가고 0x7FFF < x < 0x10000 일 경우에는 느리게가는 듯?)


+

lm3s1607의 hibernate예제

클럭 초기화가 두번이네.. 일단은 이렇게 해주니 문제없이 rtc가 가동되는 듯..

     //

    // Enable the Hibernation module.

    //

    SysCtlPeripheralEnable(SYSCTL_PERIPH_HIBERNATE);


    //

    // Per an erratum, sometimes on wake the Hibernation module control

    // register will be cleared when it should not be.  As a workaround a

    // location in the non-volatile data area can be read instead.  This data

    // area is cleared to 0 on reset, so if the first location is non-zero then

    // the Hibernation module is in use.  In this case, re-enable the

    // Hibernation module which will ensure that the control register bits have

    // the proper value.

    //

    HibernateDataGet(&ulHibernateCount, 1);

    if(ulHibernateCount)

    {

        HibernateEnableExpClk(SysCtlClockGet());

        HibernateClockSelect(HIBERNATE_CLOCK_SEL_DIV128);

    }


    //

    // Check to see if Hibernation module is already active, which could mean

    // that the processor is waking from a hibernation.

    //

    if(HibernateIsActive())

    {

        //

        // Read the status bits to see what caused the wake.

        //

        ulStatus = HibernateIntStatus(0);

    }


    //

    // Enable the Hibernation module.  This should always be called, even if

    // the module was already enabled, because this function also initializes

    // some timing parameters.

    //

    HibernateEnableExpClk(SysCtlClockGet());


    //

    // If the wake was not due to button or RTC match, then it was a reset.

    //

    if(!(ulStatus & (HIBERNATE_INT_PIN_WAKE | HIBERNATE_INT_RTC_MATCH_0)))

    {

        //

        // Configure the module clock source.

        //

        HibernateClockSelect(HIBERNATE_CLOCK_SEL_DIV128);


        //

        // Finish the wake cause message.

        //

        RIT128x96x4StringDraw("RESET", COL(7), ROW(4), 15);


        //

        // Wait a couple of seconds in case we need to break in with the

        // debugger.

        //

        SysTickWait(3 * 100);


        //

        // Allow time for the crystal to power up.  This line is separated from

        // the above to make it clear this is still needed, even if the above

        // delay is removed.

        //

        SysTickWait(15);

    }


    //


Posted by 구차니
embeded/odroid2016. 11. 21. 20:58

14.04에서도 안된건... vlc출력 설정 문제였을까?


$ dmesg

[   31.676418] usb 1-3.1: new full-speed USB device number 6 using s5p-ehci

[   31.782909] usb 1-3.1: New USB device found, idVendor=0ac8, idProduct=301b

[   31.782918] usb 1-3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0

[   31.782924] usb 1-3.1: Product: PC Camera

[   31.782929] usb 1-3.1: Manufacturer: Vimicro Corp.

[   33.350055] gspca_main: v2.14.0 registered

[   33.352485] gspca_main: gspca_zc3xx-2.14.0 probing 0ac8:301b

[   33.536816] input: gspca_zc3xx as /devices/platform/s5p-ehci/usb1/1-3/1-3.1/input/input4

[   33.537949] usbcore: registered new interface driver gspca_zc3xx 


$ ll /dev/video*

crw-rw----+ 1 root video 81, 16 11월 21 20:53 /dev/video0

crw-rw----+ 1 root video 81,  0  2월 12  2016 /dev/video10

crw-rw----+ 1 root video 81,  1  2월 12  2016 /dev/video11

crw-rw----+ 1 root video 81,  2  2월 12  2016 /dev/video12

crw-rw----+ 1 root video 81,  3  2월 12  2016 /dev/video13

crw-rw----+ 1 root video 81,  4  2월 12  2016 /dev/video14

crw-rw----+ 1 root video 81,  5  2월 12  2016 /dev/video15

crw-rw----+ 1 root video 81,  6  2월 12  2016 /dev/video16

crw-rw----+ 1 root video 81,  7  2월 12  2016 /dev/video17

crw-rw----+ 1 root video 81, 12  2월 12  2016 /dev/video20

crw-rw----+ 1 root video 81, 13  2월 12  2016 /dev/video21

crw-rw----+ 1 root video 81, 14  2월 12  2016 /dev/video8

crw-rw----+ 1 root video 81, 15  2월 12  2016 /dev/video9


$ vlc

VLC media player 2.2.2 Weatherwax (revision 2.2.2-0-g6259d80)

[00023938] core libvlc: 기본 인터페이스로 vlc 실행. vlc 인터페이스 없이 사용하려면 'cvlc' 을 사용하세요.

sudFailed to open VDPAU backend libvdpau_nvidia.so: 동적 오브젝트 파일을 열 수 없습니다: 그런 파일이나 디렉터리가 없습니다

[b5905cb8] xcb_xv vout display error: no available XVideo adaptor

libGL error: unable to load driver: exynos_dri.so

libGL error: driver pointer missing

libGL error: failed to load driver: exynos

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a7509b48] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

[a2500510] core input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 300 ms) 


사용 가능한 옵션은 다음과 같은데..

아스키 아트 비디오 출력을 하니 아래와 같이 나온다. 

오메 신기해라 ㅋㅋ

X11 비디오 출력으로 하니 정상적으로 잘 나온다.


Posted by 구차니
embeded/odroid2016. 11. 19. 15:11

왜 안될까 -_-


$ sudo find / -name *flash*

/usr/lib/mozilla/plugins/flash-mozilla.so

/usr/lib/browser-plugin-freshplayer-pepperflash/libfreshwrapper-flashplayer.so

/etc/alternatives/flash-mozilla.so

/var/lib/dpkg/alternatives/flash-mozilla.so 


[링크 : https://ubuntu-mate.community/t/tutorial-flash-player-for-chromium-and-firefox/3598]


[링크 : http://askubuntu.com/questions/513027/flash-for-ubuntu-arm]


Adobe Flash Player 버전: 11.2.999.999
Shockwave Flash 11.2 r999
이름:Shockwave Flash
설명:Shockwave Flash 11.2 r999
버전:11.2.999.999
위치:/etc/alternatives/flash-mozilla.so
유형:PPAPI(프로세스 외부)
MIME 형식:
MIME 유형설명파일 확장명
application/x-shockwave-flashShockwave Flash
.swf
application/futuresplashFutureSplash Player
.spl
사용 중지  



'embeded > odroid' 카테고리의 다른 글

odroid vlc 웹캠 cpu 점유율  (0) 2016.11.26
odroid u3 16.04 vlc / webcam  (0) 2016.11.21
odroid ubuntu mate 16.04 uname  (0) 2016.11.17
odroid u3 ubuntu MATE 16.04 / chrome hold  (0) 2016.11.14
odroid ubuntu mate 16.04 사용준비  (0) 2016.11.12
Posted by 구차니