User Tools

Site Tools


journal:201309

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
journal:201309 [2013/09/19 04:51] – [9월 19일] 220.86.36.224journal:201309 [2018/07/18 14:10] (current) – external edit 127.0.0.1
Line 99: Line 99:
  
 안드로이드 컨트롤러도 만들었네 : https://github.com/S3FA/SuperStreetFireAndroid 안드로이드 컨트롤러도 만들었네 : https://github.com/S3FA/SuperStreetFireAndroid
 +
 +===== 또 I2C =====
 +
 +몇 주간 쿼드콥터에 uart만 붙이면 죽어서 찾아보니깐 i2c 문제 였다. 
 +
 +
 +I2C 코드는 왜이리 버그가 많냐. I2Cx->CR1 |= CR1_START_Set; while ((I2Cx->CR1 & 0x100) == 0x100) ; 요 며칠 고민한 코드. 인터럽트 방식 안쓰고 결국 polling 방식으로 해결.
 +
 +polling 방식이 낫다는 작년 겨울 msp430 코딩하다가 호준님하고 낸 결론 이었지만, IC 회사에서 주는 샘플코드가 인터럽트 방식으
 +로 되어 있어서 믿고 싶었다.
 +
 +====== 9월 24일 ======
 +
 +오늘의 커밋 로그.
 +
 +MjpegViewer추가. 9월24일 데모는 여기까지. 
 +
 + - Frame레이아웃을 사용하여 LinearLayout 두개를 넣어서 MjpegView와 ControlViewer를 보이게 함.
 + - ControlViewer를 MJpegViewer위에 보이게 하고 싶은데, 세팅메뉴에서 MjpegView 보였다 안보였다 한다.
 + - Frame레이아웃에는 두개의 LinearLayout이 있는데, 이들 순서를 바꾸면 동작이 안된다. (왜?)
 + - 다른 사람 코드를 미리 읽어 본게 삽질 덜하게 도와준것 같다.
 + - 크레이지플라이 사람들(?) 여러 방면에서 잘한다.(전자/펌웨어/파이썬 클리이언트/안드로이드) 
 + - 2013년 09월 24일 오전 1:04
 +
 +<code>
 +client (pc)    
 +
 +gst-launch -v udpsrc port=4000 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtph264depay ! ffdec_h264 ! fpsdisplaysink fps-update-interval=5000 sync=false
 +</code>
 +
 +server
 +
 +<code>
 + cat run.sh 
 +#v4l2-ctl --set-fmt-video=width=1280,height=720,pixelformat=1 # with 30fps or 15fps or 10fps ...
 +#v4l2-ctl --set-fmt-video=width=640,height=480,pixelformat=1 # with 30fps
 +#v4l2-ctl --set-fmt-video=width=1024,height=576,pixelformat=1  # with 30fps
 +#v4l2-ctl --set-fmt-video=width=864,height=480,pixelformat=1 # with 10fps (v4l2-ctl --set-parm=10)
 +v4l2-ctl --set-fmt-video=width=1280,height=720,pixelformat=1 # with 30fps
 +v4l2-ctl --set-parm=15
 +#v4l2-ctl --set-parm=30
 +
 +sleep 1
 +
 +./capture -c 100000 -o | gst-launch -v fdsrc ! legacyh264parse ! rtph264pay ! udpsink host=192.168.1.240 port=4000
 +#v4l2-ctl --list-formats
 +#v4l2-ctl --list-formats-ext
 +
 +
 +</code>
 +
 +android viewer
 +
 +https://bitbucket.org/coisme/simplemjpegview_gst/src
 +
 +https://android.googlesource.com/platform/cts/+/jb-mr2-release/tests/tests/media/src/android/media/cts/EncodeDecodeTest.java
journal/201309.1379566273.txt.gz · Last modified: 2018/07/18 14:09 (external edit)