'2015/09/10'에 해당되는 글 7건

  1. 2015.09.10 z-wave
  2. 2015.09.10 nginx fastcgi 캐싱
  3. 2015.09.10 ie 호환성 모드 -_-
  4. 2015.09.10 리눅스 커널 인자 console 과 부팅시간
  5. 2015.09.10 라즈베리 B+ USB 전류 제한해제?
  6. 2015.09.10 html5
  7. 2015.09.10 html event
하드웨어/Network 장비2015. 9. 10. 17:11

U+ 에서 IoT로 광고하길래 스펙을 찾아 봤더니

zigbee나 RF가 아닌 z-wave 방식?

zigbee나 bluetooth를 대체할 IoT용 통신 노드들의 통신프로토콜이라고 해야 하려나?




[링크 : http://www.uplus.co.kr/ent/iot/IotswiSpec.hpi]


Radio specifications

Bandwidth: 9600 bit/s, 40 kbit/s or 100 kbit/s, speeds are fully interoperable

Modulation: GFSK Manchester channel encoding

Range: Approximately 100m, assuming "open air" conditions, with reduced range indoors depending on building materials

Frequency band: The Z-Wave Radio uses the 868.42 MHz SRD Band (Europe); the 900 MHz ISM band: 908.42 MHz (United States); 916 MHz (Israel); 919.82 MHz (Hong Kong); 921.42 MHz (Australian/New Zealand),India 865.2 MHz 

[링크 : https://ko.wikipedia.org/wiki/Z-Wave]



솔찍히.. zigbee 단품으로 개당 2~3만원하는건 부담 스럽긴 하니...


+

2015.09.16

[링크 : http://wiki.ase.tut.fi/courseWiki/images/9/94/SDS10243_2_Z_Wave_Protocol_Overview.pdf]

[링크 : http://www.z-wavealliance.org/]

'하드웨어 > Network 장비' 카테고리의 다른 글

iptime 전원 어댑터관련...  (0) 2016.11.04
망할 iptime 외부접속 보안 설정  (0) 2016.11.03
z-wave  (0) 2015.09.10
직비(zig-bee) / 블루투스 SPP(Serial Port Profile)  (0) 2015.07.02
intelligent hub?  (0) 2014.11.27
DM9161 phy address  (0) 2013.06.19
Posted by 구차니

댓글을 달아 주세요

프로그램 사용/nginx2015. 9. 10. 16:26

혹시나 해서 찾아 봤더니 ㄷㄷㄷ

그나저나...

nginx는 프로그램 자체에서 지원하고..

php의 경우 fpm-php에서 fastcgi에 대해서 캐싱을 지원한다고 한다.



[링크 : https://www.digitalocean.com/.../how-to-setup-fastcgi-caching-with-nginx-on-your-vps]

[링크 : http://websetnet.com/ko/how-to-configure-nginx-fastcgi-cache/]

'프로그램 사용 > nginx' 카테고리의 다른 글

nginx 리버스 프록시 와 ckeidtor upload 413 에러  (0) 2019.04.03
nginx 502 bad gateway와 audit  (0) 2019.03.20
nginx rever proxy with virtual host(+ subdomain)  (0) 2019.03.07
nginx load balance  (0) 2019.03.05
nginx reverse proxy  (2) 2018.10.30
nginx fastcgi 캐싱  (0) 2015.09.10
Posted by 구차니

댓글을 달아 주세요

Microsoft/Windows2015. 9. 10. 16:01

ie9 라고 하더라도 ie 호환성 모드로 하면 ie7로 작동

[링크 : http://kimsq.cweb.co.kr/b/tinylogs/34]


ie7로 작동하니 당연히.. ie9 부터 작동하는 HTML5도 작동이 불가라.. video 태그도 안되는 듯?

[링크 : https://uknowit.uwgb.edu/page.php?id=34780]

'Microsoft > Windows' 카테고리의 다른 글

win7 starter?  (0) 2015.11.07
IE 보호모드  (0) 2015.09.14
ie 호환성 모드 -_-  (0) 2015.09.10
윈7 그림판 글꼴 부드럽게 끄기  (0) 2015.06.26
KB3045171 글꼴관련 업데이트 문제점?  (0) 2015.05.31
windows 7 iSCSI?  (0) 2015.05.14
Posted by 구차니

댓글을 달아 주세요

embeded/raspberry pi2015. 9. 10. 15:06

115k의 경우 미세하게 차이가 나지만...

라즈베리 파이 2라서 이정도 인데..

더 사양이 낮은걸로 가면 어떻게 되려나? 간격이 좁혀지려나? 궁금해지네..

나중에 PC에서도 해봐야겠다.

(빠르게 처리하고 출력이 느려서 발목잡히는거라면..

성능이 느린 녀석일수록 낮은 baud rate에서도 느려지지 않을 가능성이 높아 보이네..)


결론 : 시리얼 콘솔로 출력을 안하는게 미세하게라도 부팅을 빠르게 해준다.

       단, 느리면 미친듯이 느려짐(ex 2400bps)


시리얼 콘솔 OFF

$ cat /boot/cmdline.txt

dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait


[    5.538787] i2c /dev entries driver

[    8.942949] random: dd urandom read with 125 bits of entropy available

[    9.218847] random: nonblocking pool is initialized

[    9.239318] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup

[   10.899741] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1

[   14.062018] cfg80211: Calling CRDA to update world regulatory domain

[   14.508474] Adding 102396k swap on /var/swap.  Priority:-1 extents:2 across:2134012k SSFS

[   17.215920] cfg80211: Calling CRDA to update world regulatory domain 


시리얼 콘솔 115k

$ cat /boot/cmdline.txt

dwc_otg.lpm_enable=0 console=tty1 console=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait


[    6.610517] i2c /dev entries driver

[    8.755376] random: nonblocking pool is initialized

[   10.337207] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup

[   11.845371] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1

[   15.171890] cfg80211: Calling CRDA to update world regulatory domain

[   15.575988] Adding 102396k swap on /var/swap.  Priority:-1 extents:2 across:2134012k SSFS

[   18.323100] cfg80211: Calling CRDA to update world regulatory domain


시리얼 콘솔 2.4k

$ cat /boot/cmdline.txt

dwc_otg.lpm_enable=0 console=tty1 console=ttyAMA0,2400 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait


[   65.375014] i2c /dev entries driver

[   69.878454] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup

[   71.466722] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1

[   74.321086] cfg80211: Calling CRDA to update world regulatory domain

[   75.156305] Adding 102396k swap on /var/swap.  Priority:-1 extents:2 across:2134012k SSFS

[   77.474999] cfg80211: Calling CRDA to update world regulatory domain



+

시리얼 초기화에 시간이 이상하리 만치 오래 걸리고

확실히 메시지 출력에 시간소요 되는게 다르다.

115k - 0.004278초

[    0.696002] console [ttyAMA0] enabled

[    0.700280] bcm2835-mbox 3f00b880.mailbox: mailbox enabled


2.4k - 0.175674 초

[   24.166507] console [ttyAMA0] enabled

[   24.342181] bcm2835-mbox 3f00b880.mailbox: mailbox enabled




+

2015.09.15

quiet 주면 로그가 출력이 거의 안되니까

부팅 시간에 영향을 거의 주지 않는다.

유의미한 부팅시간 차이는 없는 듯


no quiet / no console

$ cat /boot/cmdline.txt

dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait


$ dmesg

[    1.873744] smsc95xx v1.0.4

[    1.941273] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:7c:e2:4e

[    2.158823] udevd[175]: starting version 175

[    4.436091] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)

[    4.657410] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)

[    5.213253] fuse init (API version 7.23)

[    8.630851] random: dd urandom read with 121 bits of entropy available

[    9.128626] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup

[    9.533223] random: nonblocking pool is initialized

[   10.676478] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1

[   11.380752] Adding 102396k swap on /var/swap.  Priority:-1 extents:2 across:2134012k SSFS 


quiet / 2400bps

$ cat /boot/cmdline.txt

dwc_otg.lpm_enable=0 console=tty1 console=ttyAMA0,2400 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait quiet


$ dmesg

[    1.787155] smsc95xx v1.0.4

[    1.849754] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:7c:e2:4e

[    2.159625] udevd[175]: starting version 175

[    4.475902] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)

[    4.687585] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)

[    5.243639] fuse init (API version 7.23)

[    8.657857] random: dd urandom read with 122 bits of entropy available

[    9.236423] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup

[    9.285362] random: nonblocking pool is initialized

[   10.784245] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1

[   11.661120] Adding 102396k swap on /var/swap.  Priority:-1 extents:2 across:2134012k SSFS 


quiet / 115k

$ cat /boot/cmdline.txt

dwc_otg.lpm_enable=0 console=tty1 console=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait quiet


$ dmesg

[    1.787064] smsc95xx v1.0.4

[    1.848037] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:7c:e2:4e

[    2.083949] udevd[175]: starting version 175

[    4.375384] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)

[    4.588231] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)

[    5.138807] fuse init (API version 7.23)

[    8.506983] random: dd urandom read with 123 bits of entropy available

[    9.087136] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup

[    9.132055] random: nonblocking pool is initialized

[   10.595072] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1

[   11.272396] Adding 102396k swap on /var/swap.  Priority:-1 extents:2 across:2134012k SSFS 



[링크 : http://elinux.org/Disable_Console]

[링크 : https://www.kernel.org/doc/Documentation/kernel-parameters.txt]



+

2015.09.16


라즈베리 B에서 테스트

2400bps로 설정하면 라즈베리 B나 2B나 부팅시간이 거의 동일해진다 ㄷㄷ


# cat /flash/cmdline.txt

boot=/dev/mmcblk0p1 disk=/dev/mmcblk0p2 quiet


[    6.260069] lirc_rpi: auto-detected active low receiver on GPIO pin 18

[    6.260446] lirc_rpi lirc_rpi.0: lirc_dev: driver lirc_rpi registered at minor = 0

[    6.260465] lirc_rpi: driver registered!

[    9.116106] Console: switching to colour dummy device 80x30

[   10.033464] pcm512x 1-004d: Failed to reset device: -5

[   10.033606] pcm512x: probe of 1-004d failed with error -5

[   10.038823] pcm512x 1-004c: Failed to reset device: -5

[   10.038972] pcm512x: probe of 1-004c failed with error -5

[   11.996185] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup

[   11.996923] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

[   13.503507] input: lircd as /devices/virtual/input/input0

[   13.513621] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1

[   13.543861] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready


# cat /flash/cmdline.txt

boot=/dev/mmcblk0p1 disk=/dev/mmcblk0p2 console=ttyAMA0,115200


[    7.583641] lirc_rpi: auto-detected active low receiver on GPIO pin 18

[    7.584050] lirc_rpi lirc_rpi.0: lirc_dev: driver lirc_rpi registered at minor = 0

[    7.584073] lirc_rpi: driver registered!

[    7.590570] systemd[1]: Reached target Local File Systems.

[    7.590980] systemd[1]: Started Rebuild Journal Catalog.

[    7.607263] systemd[1]: Started Load Kernel Modules.

[    7.673956] systemd[1]: Started Journal Service.

[    7.835377] systemd-journald[149]: Received request to flush runtime journal from PID 1

[   11.254985] Console: switching to colour dummy device 80x30

[   12.137394] pcm512x 1-004d: Failed to reset device: -5

[   12.137547] pcm512x: probe of 1-004d failed with error -5

[   12.142543] pcm512x 1-004c: Failed to reset device: -5

[   12.142698] pcm512x: probe of 1-004c failed with error -5

[   14.273315] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup

[   14.276243] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

[   15.827031] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1

[   15.861468] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

[   15.930351] input: lircd as /devices/virtual/input/input0


# cat /flash/cmdline.txt

boot=/dev/mmcblk0p1 disk=/dev/mmcblk0p2 console=ttyAMA0,2400


[   59.096555] lirc_rpi: auto-detected active low receiver on GPIO pin 18

[   59.096935] lirc_rpi lirc_rpi.0: lirc_dev: driver lirc_rpi registered at minor = 0

[   59.096958] lirc_rpi: driver registered!

[   59.253490] systemd[1]: Mounted Temporary Directory.

[   59.530181] systemd[1]: Started Remount Root and Kernel File Systems.

[   59.910190] systemd[1]: Started Create list of required static device nodes for the current kernel.

[   60.106840] systemd[1]: Started Setup machine-id.

[   60.323515] systemd[1]: Started Set ondemand threshold.

[   60.500170] systemd[1]: Started Show Version.

[   60.716824] systemd[1]: Started Load Kernel Modules.

[   60.950148] systemd[1]: Started Kodi config dir rebrand.

[   61.146860] systemd[1]: Started Mounting swapfile.

[   61.376843] systemd[1]: Started udev Coldplug all Devices.

[   61.848866] systemd[1]: Starting Swap.

[   62.016818] systemd[1]: Reached target Swap.

[   62.017203] systemd[1]: Mounted FUSE Control File System.

[   62.018077] systemd[1]: Mounted Configuration File System.

[   62.018331] systemd[1]: Starting Apply Kernel Variables...

[   62.213534] systemd[1]: Starting Journal Service...

[   62.377729] systemd[1]: Starting Create Static Device Nodes in /dev...

[   62.620386] systemd[1]: Starting Setup Timezone data...

[   62.804543] systemd[1]: Started Debug /var/log relink.

[   63.003508] systemd[1]: Started Journal Service.

[   64.752792] systemd-journald[160]: Received request to flush runtime journal from PID 1

[   69.797632] pcm512x 1-004d: Failed to reset device: -5

[   69.797788] pcm512x: probe of 1-004d failed with error -5

[   69.802172] pcm512x 1-004c: Failed to reset device: -5

[   69.802323] pcm512x: probe of 1-004c failed with error -5

[   71.876799] Console: switching to colour dummy device 80x30

[   75.422833] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup

[   75.425714] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

[   76.986887] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1

[   76.995598] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

[   78.083255] input: lircd as /devices/virtual/input/input0



Posted by 구차니

댓글을 달아 주세요

embeded/raspberry pi2015. 9. 10. 13:40

wiring pi gpio 유틸 도움말을 보던 중에

어? 이런 기능이?

혹시.. 2B에도 적용되려나?


usbp   high | low

Change  the USB current limiter to high (1.2 amps) or low (the default, 600mA)

This is only applicable to the model B+


[링크 : https://projects.drogon.net/testing-setting-the-usb-current-limiter-on-the-raspberry-pi-b/]



+ 2015.09.11

어? 2b랑 b+이랑 보드 같은거 아니었어!??!?

pi@raspberrypi ~ $ gpio usbp high

USB power contol is applicable to B+ boards only.

pi@raspberrypi ~ $ gpio usbp low

USB power contol is applicable to B+ boards only. 


차이를 모르겠다 -_-a

아무튼.. 설정은 되는데 테스트는 나중에 USB 하드라도 물려봐야지 머..

pi@raspberrypi ~ $ gpio -g write 38 0

pi@raspberrypi ~ $ gpio -g mode 38 out

pi@raspberrypi ~ $ gpio -g write 38 1


I know the following:


Setting max_usb_current=1 sets the available current over USB to 1.2A (default is 600mA)

This can help if you have a decent power supply (2A, at least) and need to power something like a small external HDD or something that needs 300+ mA.

This feature is only available on the B+ and Pi model 2 (at the time of this writing)

[링크 : http://raspberrypi.stackexchange.com/.../is-setting-max-usb-current-1-to-give-more-power...]



max_usb_current


Together with the raspberry PI B+ a new config.txt setting was introduced.


  max_usb_current=1

when adding this line the USB power manager will change its output current limit (for all 4 USB ports combined) from 600mA to double that, 1200mA.

[링크 : http://elinux.org/RPiconfig#USB_Power]



---

집에와서 해보니..

두개중에 하나만 해줘도 되는거 같고..

$ cat /boot/config.txt 

safe_mode_gpio=4

max_usb_current=1


이렇게 38번 핀을 high 로 해도 USB 하드가 바로 전력소비가 커버되는지 삑삑삑삑

스핀들 모터가 못돌다가 조용해진다.(인식/마운트 성공)

$ gpio -g mode 38 out

$ gpio -g write 38 1 



결론 B+이나 2B나 같으니 2B에서도 된다!

Posted by 구차니

댓글을 달아 주세요

이렇게만 보면 먼가 할게 없어 보이는데... (어?)

[링크 : https://namu.wiki/w/HTML5]


이걸 읽으려니 쥐날거 같네? ㅠㅠ

[링크 : http://www.w3.org/TR/html5/]



결론(?)은 표준 맞추면 읽기 도구라던가 이런걸로 더 편하게 할 수 있다,.

nav 태그가 시맨텍 웹 관련 추가됨

font / applet / frame 이 사용불가!


frame이 불가능해졌기에 ajax 열풍이 분걸려나?

'Programming > javascript & HTML' 카테고리의 다른 글

<link> 관련 약어 정리  (0) 2015.09.14
node.js / angular.js ...  (0) 2015.09.11
html5  (0) 2015.09.10
html event  (0) 2015.09.10
jquery  (0) 2015.09.08
div 태그  (0) 2015.09.08
Posted by 구차니

댓글을 달아 주세요

뜬금없는 깨달음

아.. 이래서 HTML5를 쓰는구나(onresize 이벤트... 요녀석.. 반응형 웹의 핵심?)


[링크 : http://www.w3schools.com/tags/ref_eventattributes.asp]

'Programming > javascript & HTML' 카테고리의 다른 글

node.js / angular.js ...  (0) 2015.09.11
html5  (0) 2015.09.10
html event  (0) 2015.09.10
jquery  (0) 2015.09.08
div 태그  (0) 2015.09.08
javascript closure  (0) 2013.01.07
Posted by 구차니

댓글을 달아 주세요