2014년 3월 7일 금요일

망고210 wince6.0 밝기조절




망고210 wince6.0 밝기조절 | § Mango210공부방전체공개08:49
답변 0 
조회 7
추천0
화면 밝기 조절만 할거라서 간단하게 했습니다

먼저 Display 에 ldi.c를 보면 RGB_port_initialize 쪽에 백라이트 포트 초기화 하는곳이 있습니다.

저는 LB070WV4 를 1280*1024로 하여 디폴트 LCD로 사용하고 있습니다


이부분에 기본적으로 백라이트 포트를 Output 으로 High로 주고 있습니다
전 부트로더쪽에서 초기화 할것이므로 이부분의 포트초기화 하는부분을 삭제 하였습니다.




EBOOT에서 GPD0[0] 번 포트 즉 PWM0 번 설정 구간 입니다

밝기 조절시 미세한 정도로 컨트롤하기 위해 분주비를 위와같이 나누었습니다.

위와같이 설정하고 다운로드를 해보면 GPD0 번으로 PWM이 출력되는걸 확인할수 있습니다

그리고나서

앱(OS 위의 프로그램 쪽)단에서는

핸들을 만들고 DeviceIOControl 을 통해 OS쪽으로 인자를 전달해주어서 임의로 밝기조절을 하면 됩니다.

OS쪽에서는(버튼 드라이버가 포함되어 있지 않길래 포함시키고 이쪽을 작업용으로 사용했습니다)


위와같이 사용 하시면 됩니다. 밝기 조절은 High low구간의 비율로 조절되는데 High구간이 low구간보다 길수록 밝고 짧을수록 어두워 집니다.
즉 TCNTB 와 TCMPB의 차이가 작을수록 밝고   차이가 클수록 어두워 집니다.



위의 내용이 정답은 아닐수도 있습니다` `;
다만 사용하지 않는 드라이버쪽을 이용해서 위와같이 밝기를 포함해서 OS위의 프로그램 상에서 여러가지를 컨트롤 하는데 사용하고 있습니다

2014년 3월 3일 월요일

Micro SD card 속도 체크하기





Micro SD card 속도 체크하기

위키 사이트를 보면 아래와 같이 정의가 되어 있다.

[하이스피드 모드 카드]
·         계열 2 (Class 2): 2 MB/초
·         계열 4 (Class 4): 4 MB/초
·         계열 6 (Class 6): 6 MB/초
·         계열 10 (Class 10): 10MB/초
[울트라하이스피드 모드 카드]
· 등급 0 (Grade 0): 10 MB/초 미만
· 등급 1 (Grade 1): 10 MB/초
· 등급 2 (Grade 2): 20 MB/초



리눅스 PC에 Micro SD card를 삽입


[icanjji@icanjji-pc ~]$ df
Filesystem      1K-blocks       Used Available Use% Mounted on
/dev/sda2      1947374844 1599089460 250823276  87% /
udev              2006136          4   2006132   1% /dev
tmpfs              805972       1380    804592   1% /run
none                 5120          0      5120   0% /run/lock
none              2014924         76   2014848   1% /run/shm
/dev/sda1           96880        124     96756   1% /boot/efi
/dev/sdg2          508745     123479    359666  26% /media/gnome
[icanjji@icanjji-pc ~]$ sudo hd
hd      hdparm 
[icanjji@icanjji-pc ~]$ sudo hdparm -t /dev/sdg
[sudo] password for icanjji:

/dev/sdg:
 Timing buffered disk reads:  56 MB in  3.07 seconds =  18.25 MB/sec

18.25MB 속도가 나온다.


Class 10 이상임이 틀림이 없다. 

2014년 3월 2일 일요일

Mango220 Quad core Developers Guide



망고220 매뉴얼을 아래와 같이 작성 해 보려고 합니다.
많은 관심 부탁드립니다.
같이 동참하실 분 모집합니다.

1. Hardware menual
 
 
1.1 Intro
 
1.2. Hardware Specifcation
 
1.3 Block Diagram
 
1.4 배치도
 
1.5 Pin Map
2. 호스트(PC) 설치 요구
 
 
2.1 우분투12.04 64bit 설치
 
2.2 SSH 서버 설정 및 접속
 
2.3 Telnet 서버 설정 및 접속
 
2.4 TFTP 서버 설정 및 접속
 
2.5 Samba 서버 설정 및 접속
3. Intitializing a Build Environment
 
 
3.1 GCC Setting
 
3.2 Toolchain install
 
3.3 Package install
4. 빌드 절차
 
 
4.1 부트로더 빌드
 
4.2 안드로이드 리눅스 커널 빌드
 
4.3 안드로이드 파일 시스템 빌드
5. Image transfer to board
 
 
5.1 Image transfer to SDMMC
 
5.2 Image transfer to eMMC
6. Booting Platform
 
 
6.1 SD/MMC Booting
 
6.1 eMMC Booting
7. Application Development and Debugging
 
7.1 Using ADB Android Debugger Downloader
 
7.2 Downloading "ADB" & Host setup
 
7.3 Connecting Host machine to board through adb
 
7.4 adb over USB
 
7.5 adb over USB Ethernet(Ethernet over USB)
 
7.6 adb over Ethernet
 
7.7 adb ober USB on Windows Machine
8. Camera Porting Guide
 
 
8.1 5M Camera Porting
 
8.2 1.3M Camera Porting
 
8.3 TVP5150 Camera Porting
 
8.4 Supported Dual Camera
9. Other device Porting Guide
 
 
9.1 GPS Porting
 
9.2 3Axis-Accel Sensor Porting
 
9.3. Gyro Sensor Porting
10. WiFi/BT Porting Guide
 
 
10.1 WiFi Porting
 
10.2 BT porting Guide

2014년 2월 28일 금요일

지그비 모듈 소모 전류 관련



제가 측정한바로는 rx 만 놓았을 경우에 3.3v 27mA 정도 소모하는 것으로 측정 하였습니다.
3일 이면, 27mA X 24(시간) X 3 = 1944mA 정도 입니다.

AA 사이즈 배터리의 경우, 네어버에 찾아보니 회사에 따라 다르지만 2000mA 내외 인 것으로보입니다.

따라서 RX를 계속 하고 있다고 하면 그정도 가는 것이 맞다고 봅니다.

더 오랜 시간을 구동 시칸다고 하면, POWER 모드를 변경하는 것이 맞는 것 같습니다.
데이터 시트에도 아래와 같이 되어 있습니다.

본문 이미지 1

따라서 슬립 모드로 있다가 RF 로 RX 가 들어오면 깨어나는 그러한 것을 구현 해야 할 듯 싶습니다.

2014년 2월 27일 목요일

(CM-V310 ) 3GB RAM




(CM-V310 ) 3GB RAM

[root@icanjji-pc image]# df
Filesystem      1K-blocks       Used Available Use% Mounted on
/dev/sda2      1947374844 1607249888 242662848  87% /
udev              2006136          4   2006132   1% /dev
tmpfs              805972       1860    804112   1% /run
none                 5120          0      5120   0% /run/lock
none              2014924         76   2014848   1% /run/shm
/dev/sda1           96880        124     96756   1% /boot/efi
/dev/sdg1         6673712          4   6673708   1% /media/0000-3333
/dev/sdg3          301416      16576    269284   6% /media/0a09e951-c99a-a8e3-c1ea-a133ba3a9a83
/dev/sdg2          302608     101884    200724  34% /media/57f8f4bc-abf4-0000-675f-946fc0f9f25b
/dev/sdg4          301416      16576    269284   6% /media/5546348f-4e96-2ddf-46e6-262f3f361f7f
[root@icanjji-pc image]# sudo ./sdwriter sdg 310 bin
Mango SD Writer V1.0

Unmount all : success

Write Mango310 BL1 : success
Write Mango310 Uboot : success
Write Mango310 Kernel : success

Unmount all : success

Success
SD write를 하고 bootargs는 3GB에서 부팅하는 경우
Mango310 # setenv bootargs 'root=/dev/mmcblk0p2 rw rootfstype=ext4 init=/sbin/init console=ttySAC1,115200 mem=0xbfffffff rootwait'

위와 같이 세팅을 해야 부팅을 한다.
1byte를 작게 bootargs에 넘겼다.

커널에서 1byte를 사용하지 못한다.

왜 그런지 잘 모르겠다. 

2014년 2월 26일 수요일

망고 안드로이드 CTS 테스트




망고 안드로이드 CTS 테스트

https://source.android.com/compatibility/cts-intro.html


[icanjji@icanjji-pc Downloads]$ ls
adt-bundle-linux-x86_64-20131030.zip  android-sdk_r22.3-linux.tgz
[icanjji@icanjji-pc Downloads]$ sudo cp * /opt/

android-cts-4.0.3_r3-linux_x86-arm.zip 압축을 풀었다.





 [root@icanjji-pc tools]# export PATH=/opt/java/bin:$PATH
[root@icanjji-pc tools]# ./cts-tradefed
02-26 20:34:52 W/DeviceManager: You are running an older version of fastboot, please update it.
Android CTS 4.0.3_r3
cts-tf > 02-26 20:34:52 I/DeviceManager: Detected new device BABABEEFBABABEEF

cts-tf >
cts-tf >
cts-tf > run cts

Java
cts-tf > run cts --plan CTS
02-26 21:30:55 I/TestInvocation: Starting invocation for 'cts' on build '4.0.3_r3' on device BABABEEFBABABEEF
02-26 21:30:55 I/BABABEEFBABABEEF: Created result dir 2014.02.26_21.30.55
cts-tf > 02-26 21:31:24 I/BABABEEFBABABEEF: Collecting device info
02-26 21:31:25 I/BABABEEFBABABEEF: -----------------------------------------
02-26 21:31:25 I/BABABEEFBABABEEF: Test package android.apidemos.cts started
02-26 21:31:25 I/BABABEEFBABABEEF: -----------------------------------------
02-26 21:31:35 I/BABABEEFBABABEEF: android.apidemos.cts.ApiDemosTest#testNumberOfItemsInListView PASS
02-26 21:31:38 I/BABABEEFBABABEEF: android.apidemos.cts package complete: Passed 1, Failed 0, Not Executed 0
02-26 21:31:38 I/BABABEEFBABABEEF: -----------------------------------------
02-26 21:31:38 I/BABABEEFBABABEEF: Test package android.acceleration started
02-26 21:31:38 I/BABABEEFBABABEEF: -----------------------------------------
02-26 21:31:40 I/BABABEEFBABABEEF: android.acceleration.cts.HardwareAccelerationTest#testIsHardwareAccelerated PASS
02-26 21:31:40 I/BABABEEFBABABEEF: android.acceleration.cts.HardwareAccelerationTest#testNotAttachedView PASS
02-26 21:31:40 I/BABABEEFBABABEEF: android.acceleration.cts.SoftwareAccelerationTest#testIsHardwareAccelerated PASS
02-26 21:31:41 I/BABABEEFBABABEEF: android.acceleration.cts.SoftwareAccelerationTest#testNotAttachedView PASS

These media files are required for the CTS media stress tests.
·         CTS Media 1.0

Older Android Versions



 다운로드 받습니다.




Workflow


This section summarizes CTS setup. Please refer to the CTS User Manual for detailed instructions.
1.    Download the CTS and CTS media files.
2.    Attach at least one device (or emulator) to your machine.
3.    For CTS versions 2.1 R2 through 4.2 R4, set up your device (or emulator) to run the accessibility tests:
1.    adb install -r android-cts/repository/testcases/CtsDelegatingAccessibilityService.apk
2.    On the device, enable Settings > Accessibility > Accessibility > Delegating Accessibility Service
4.    For CTS 2.3 R4 and beyond, set up your device to run the device administration tests:
1.    adb install -r android-cts/repository/testcases/CtsDeviceAdmin.apk
2.    On the device, enable the two android.deviceadmin.cts.CtsDeviceAdminReceiver* device administrators under Settings > Location & security > Select device administrators
Note: Make sure the android.deviceadmin.cts.CtsDeviceAdminDeactivatedReceiver stays disabled in the same menu.
5.    For CTS 2.3 R12 and beyond, the CTS media files must be copied to the device's external storage. Check section 4.2 of the latest CTS manual for further details on copying these files:
1.    Unzip the CTS Media zip file.
2.    Run the following command. If no resolution is specified, the default maximum resolution of 480x360 is assumed:
copy_media.sh [720x480|1280x720|1920x1080|all] [-s serial]
6.    Launch the CTS. The CTS test harness loads the test plan onto the attached devices. For each test in the test harness:
o    The test harness pushes an .apk file to each device, executes the test through instrumentation, and records test results.
o    The test harness removes the .apk file from each device.
7.    Once all the tests are executed, view the test results in your browser and use them to adjust your design. You can continue to run the CTS throughout your development process.

Types of test cases


The CTS includes the following types of test cases:
·         Unit tests test atomic units of code within the Android platform; e.g. a single class, such as java.util.HashMap.
·         Functional tests test a combination of APIs together in a higher-level use-case.
·         Reference application tests instrument a complete sample application to exercise a full set of APIs and Android runtime services.
Future versions of the CTS will include the following types of test cases:
·         Robustness tests test the durability of the system under stress.
·         Performance tests test the performance of the system against defined benchmarks, for example rendering frames per second.

Areas Covered


The unit test cases cover the following areas to ensure compatibility:
Area
Description
Signature tests
For each Android release, there are XML files describing the signatures of all public APIs contained in the release. The CTS contains a utility to check those API signatures against the APIs available on the device. The results from signature checking are recorded in the test result XML file.
Platform API Tests
Test the platform (core libraries and Android Application Framework) APIs as documented in the SDK Class Index to ensure API correctness, including correct class, attribute and method signatures, correct method behavior, and negative tests to ensure expected behavior for incorrect parameter handling.
Dalvik VM Tests
The tests focus on testing the Dalvik VM.
Platform Data Model
The CTS tests the core platform data model as exposed to application developers through content providers, as documented in the SDK android.provider package: contacts, browser, settings, etc.
Platform Intents
The CTS tests the core platform intents, as documented in the SDK Available Intents.
Platform Permissions
The CTS tests the core platform permissions, as documented in the SDK Available Permissions.
Platform Resources
The CTS tests for correct handling of the core platform resource types, as documented in the SDK Available Resource Types. This includes tests for: simple values, drawables, nine-patch, animations, layouts, styles and themes, and loading alternate resources.
Except as noted, this content is licensed under Creative Commons Attribution 2.5. For details and restrictions, see the Content License.
About Android  |  Community  |  Legal  |