跳到主要內容

發表文章

目前顯示的是 3月, 2012的文章

zigbee DRF1605H commands

under Ubuntu, you can use Gtkterm  Serial port is 38400,8N1  flow control: none the last byte is the LSB of sum of all the previous 6 bytes eg,  FC(hex) + 00(hex) + 91(hex) +  03(hex) + A3(hex) + B3(hex) = 2E6(hex), so the LSB of 2E6(hex) is E6 (hex) Read PAN ID:                  FC 00 91 03 A3 B3 E6 Read Short Address:      FC 00 91 04 C4 D4 29 Read MAC Address:       FC 00 91 A8 B8 F5 Read the type of node:   FC 00 91 0B CB EB 4E   return: 43 6F 6F 72 64 69 means coordinator   return: 52 6F 75 74 65 72 means router Read the wireless channel no: FC 00 91 0D 34 2B F9

How to detect USB Serial port in Ubuntu

first use lsusb command to find: Mar 25 09:11:26 joelinux kernel: [ 1803.128054] usb 6-1: USB disconnect, address 3 Mar 25 09:11:26 joelinux kernel: [ 1803.128239] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0 Mar 25 09:11:26 joelinux kernel: [ 1803.128263] pl2303 6-1:1.0: device disconnected Mar 25 09:11:30 joelinux kernel: [ 1807.632517] usb 6-1: new full speed USB device using uhci_hcd and address 4 Mar 25 09:11:30 joelinux kernel: [ 1807.794123] pl2303 6-1:1.0: pl2303 converter detected Mar 25 09:11:30 joelinux kernel: [ 1807.806180] usb 6-1: pl2303 converter now attached to ttyUSB0 so you can be sure that kernel has detected the USB port. Next, detach and re-attach your USB serial device, and look in syslog 1)by System > Administration > System Log Viewer > syslog or 2) in terminal >>tail /var/log/syslog Mar 25 09:11:26 joelinux kernel: [ 1803.128054] usb 6-1: USB disconnect, address 3 Mar 25 09:11:26 joelinux kernel: [ 1803.12

Chinese year cycle and the Sun

It's well known that Chinese has the 12 Shenxiao ( 生肖 ), whereas for the solar activity is around 11 to 12 years. This year is near the max solar activity( now is year of the Dragon), and cause massive eruptions called CME ( coronal mass eruptions ). When these erupted material reach the Earth, this will cause the electro-magnetic storm.  How will this affect our daily lives?  Are chinese aware of such solar activities, and therefore set the chinese zodiac as 12 years?

X-37B orbital test vehicle

This experimental vehicle has been quietly in space for a year. USAF has 2 of these unmanned re-launchable spacecraft, and this one is second one. The craft launched aboard an Atlas 5 rocket. This week marked the one-year anniversary of the spacecraft orbiting the planet performing a still secret mission. So far, the USAF has only said that the craft is performing top-secret experiments. We have no indication of when the X-37B might return to earth. X-37B number one spent 224 days orbiting the planet before landing on December 3, 2010 at Vandenberg Air Force Base. Amateur astronomers have noted that the second X-37B is in an orbit that is very similar to US spy satellites. Some think the USAF may be using the spacecraft to keep certain countries under close scrutiny. General Characteristics Primary Mission : Experimental test vehicle Prime Contractor : Boeing Height: 9 feet, 6 inches (2.9 meters) Length : 29 feet, 3 inches (8.9 meters) Wingspan : 14 feet, 1