mt2523 hdk flashdown

이미지
mt2523 hdk flash tool download how to display_drawing_image.bin flash.bin flash_download.cfg mt2523_bootloader.bin must exist in the same folder.

SCAM-30 동작 영상

이미지
동작 확인이 힘든 제품입니다. 동작 시킨 환경 OS : Window7 64bit https://youtu.be/44AfyjiDEqk window 10 64bit 에서는 동작하지 않습니다. (저의 경우) 인터넷에 찾아봐도 되는지 확인할수 있는 영상이 없어서 올립니다.

java simpledateformat JAVA SIMPLEDATEFORMAT 자바 심플데이타 포맷

1. Date to String ====================================================== Date now = new Date(); String strnow =""; SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); strnow = sdf.format(now); Log.d("xxx"," strnow "+strnow); 2. String to Date ====================================================== try {       Date ddate = new Date();     String strdate= "2017-09-09 11:11:11";     SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");       ddate = sdf.parse(strdate);     Log.d("xxx","ddate "+ddate .toString()); } catch (ParseException e) {     e.printStackTrace(); } 3. SimpleDateFormat ====================================================== SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); S...

HC-6, HC-10 change Name

HC-6  , HC-10  REF CODE #include <SoftwareSerial.h> SoftwareSerial BTSerial(2, 3); // SoftwareSerial(RX, TX) bool isSendMsg = false; byte buf[1024]; int cnt; void setup() {   Serial.begin(9600);     Serial.println("Hello!");   BTSerial.begin(9600);  // BTSerial.write("AT"); // write it to BT  cnt = 0; } void loop(){   while (BTSerial.available()){ // if BT sends something       byte data = BTSerial.read();       Serial.write(data); // write it to serial(serial monitor)     }   while (Serial.available()){ // if Serial has input(from serial monitor)       byte data = Serial.read();     buf[cnt++] = data;     //Serial.println("AT");       //BTSerial.write("AT");     //Serial.write(data);     //BTSerial.write(data); // write it to BT     isSendMsg = true;   ...

C# sound library ref

http://cscore.codeplex.com/ https://github.com/Alkalinee/Hurricane http://stackoverflow.com/questions/1525320/how-to-enumerate-audio-out-devices-in-c-sharp https://social.msdn.microsoft.com/Forums/vstudio/en-US/f402c024-1ac6-47c3-ab73-475ce207b004/how-to-change-default-sound-output?forum=csharpgeneral http://www.codeproject.com/Articles/31836/Changing-your-Windows-audio-device-programmaticall http://www.daveamenta.com/2011-05/programmatically-or-command-line-change-the-default-sound-playback-device-in-windows-7/ http://www.codeproject.com/Articles/22951/Sound-Activated-Recorder-with-Spectrogram-in-C http://stackoverflow.com/questions/32330511/c-sharp-microphone-noise-detection https://naudio.codeplex.com/

beaglebone 해보기

이미지
시작하기 page https://beagleboard.org/getting-started#update 리눅스에서 연결하기  ( udev 추가) https://learn.adafruit.com/ssh-to-beaglebone-black-over-usb/installing-drivers-linux 윈도우 , mac  도 위에 page 열면 확인 할수있다. 현재 설치되어 있는 놈이 뭔지 알아본다. version check root@beaglebone:~# cat /etc/dogtag BeagleBoard.org BeagleBone Debian Image 2014-03-19 최종 이미지 다운로드 page http://beagleboard.org/latest-images emmc  에 넣 는 중에 발생하 는 에 러 rsync: write failed on "/tmp/rootfs/usr/lib/ruby/vendor_ruby/sequel/sql.rb": No space left on device (28) 원인 : 말그대로 공간이 없다.  ( 가지고 있는 비글이가 좀 된놈이라 4G 가 안된다.) 해결방법 : https://groups.google.com/forum/#!topic/beagleboard/VwQjxHuGISU 검색 의 결과 다. 2G 이미지 받아서 다시 만들어서 다운로드 try 한다.  다운로드 동작시 led가 왔다갔다 한다.  기 타) 카페 PRU_CAPE ( 위에 붙는놈 해보기) http://processors.wiki.ti.com/index.php/PRU_Cape_Getting_Started_Guide 여기부터는 확인하고 하자.

andriod old samples path

https://android.googlesource.com/platform/development/+/eclair-passion-release/samples

DLMS example

http://www.dlms.com/faqanswers/questionsonthedlmscosemspecification/areexamplesforinformationexchangeavailable.php

input size over than config in php.ini - change upload max file size ( php 업로드 파일 사이즈 올리는 방법)

change upload max file size  service setting : nginx + php5 fpm /etc/php5/fpm/php.ini ====================================== post_max_size = 32M upload_max_filesize = 24M // option max_execution_time = 300 max_input_time = 600 /etc/nginx/nginx.conf ====================================== http {     ...      client_max_body_size 100m; } restart service sudo pkill php5-fpm sudo service php5-fpm start sudo service nginx restart 게시판에 파일업로드 할려고하니 2M 까지만 된다고 하여서 수정했습니다.

DS18B20 Temperature Arduino ( 아두이노 온도센서)

이미지
사진 과같 은방향으 로연결하면됩니다. G,V,D  순으 로 연 결 ( 그라운드 , 입력전압 , 데이터 라인 ) 실제 연결 한사 진 소스 가 있는 곳 https://tkkrlab.nl/wiki/Arduino_37_sensors 온도 센서소스 https://tkkrlab.nl/wiki/Arduino_KY-001_Temperature_sensor_module 아두이 노실행결과

Error:Execution failed for task ':app:compileDebugJava'. > Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory.

이미지
안드로이드 스투디오 업데이트 이후 아래 와같 은 에러가 발생한다. 업데이트 할때마다 문제가 발생한다. 문제의 원인은 default 설정이 문제였다. File >> Other Setting >> Default Project Structure   를 선택하 면 아래와 같은 창이 나오고  default 로설정되어 있는 java  경로가 문제다.    아래와 같이 변경 하면된다.  ( 원래 설치되어 있는 자바 경로로 지정)   끝

tomcat7 설정하기

http://www.liquidweb.com/kb/how-to-install-apache-tomcat-7-on-ubuntu-14-04/

D3 (data driven document) 무조건 배워라.

d3 & angularjs 배우자... [D3.js] 배우는 방법 http://mobicon.tistory.com/275 http://victormejia.me/d3-angular-demos/#/ http://bl.ocks.org/tomerd/1499279 http://bl.ocks.org/mbostock https://www.dashingd3js.com/table-of-contents https://www.dashingd3js.com/why-build-with-d3js

Window 셋업 위저드 만들기

윈도우 프로그램 만들고 배포를 해야하는데 어떻게 해야 할 지 몰라서 찾아 보게 되었습니다. 그냥 인스톨 쉴드라고 알고 있었는데 옛날 이야기 지금은 스투디오 구석에 기타 >  셉업 위저드가 있습니다. 그냥 아래 보고 따라 하면 됩니다. http://stackoverflow.com/questions/6090913/make-an-installation-program-for-c-sharp-applications-and-include-net-framework

tomcat 한글깨짐

테스트 STS에서 는정상적으로 한글이 전송되는데 서버 에 올리면 한글전송이 문제가 생긴다. 아래 사이트 참조 하면됨. server.xml에 URIEncoding="UTF-8"  을추가하지않아서발생. 참조 한사이 트 http://hanmomhanda.blogspot.kr/2014/03/tomcat.html

ubuntu 14.04 nginx fpm setting ref

https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-14-04

mosquitto 1.4.1 빌드 참조

우선 여기부터 보고 아래 내용 참조 하세요. http://www.tutorialbook.co.kr/entry/Ubuntu-%EC%97%90-Mosquitto-Broker-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0 빌드를 할려고 하니 뭐가 없단다. 일단 필요한 것 부터 깔자. 아래의 사이트 보고 따라하면 websocket이 동작하는 mosquitto 서버를 구축할 수 있다. http://www.joinc.co.kr/modules/moniwiki/wiki.php/man/12/MQTT/Websocket 하지만 빌드하면 에러가 발생한다. 원인 : 현재 받아서 컴파일할려고 하는 버전이 1.4.1 인가 1.4.2 인데 make 하면 이상한 에러가 발생한다. 이유는 샬라샬라 라고 되어 있어 아래 사이트 내용 보고 https://answers.launchpad.net/mosquitto/+question/266465  WITH_SRV=no 로 설정했다. 그럼 빌드 된다. 

네트워크 모니터링 관련 툴 링크

여기 나와 있는 툴들 한번 확인해 볼 필요 있다. http://www.binarytides.com/linux-commands-monitor-network/ 밑에 있는 놈도 같이 한번 봐야 할 내용 같아서 ... http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/

GIT SETTING With giolite

REF following site https://www.digitalocean.com/community/tutorials/how-to-use-gitolite-to-control-access-to-a-git-server-on-an-ubuntu-12-04-vps

java 7 setup in ubuntu 14.04 64bit

java 7 download page http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html tar xvf jdk-7u75-linux-x64.tar.gz sudo mkdir /usr/local/jvm sudo mv ./jdk1.7.0_75 /usr/local/jvm/ # update-alternatives --install /usr/bin/javac javac /usr/local/jvm/jdk1.7.0_75/bin/javac 1 update-alternatives: using /usr/local/jvm/jdk1.7.0_75/bin/javac to provide /usr/bin/javac (javac) in auto mode # update-alternatives --install /usr/bin/java java /usr/local/jvm/jdk1.7.0_75/bin/java 1 update-alternatives: using /usr/local/jvm/jdk1.7.0_75/bin/java to provide /usr/bin/java (java) in auto mode