公告

國明的網路筆記

2012年5月23日 星期三

FileZilla 無法取得目錄列表解決方法



安裝了  FileZilla Server Client,安裝完畢之後的連線測試時,卻出現下列問題,看起來是已經連上並登入之後,卻無法取得目錄列表:



狀態:       正在連線到 xxx.xxx.xxx.xxx:21 ...
狀態:       連線已建立, 正等候歡迎訊息...
回應:       220-FileZilla Server version 0.9.41 beta
回應:       220-written by Transfer Ltd.,co.
回應:       220 Please visit http://www.transfer.com.tw
指令:       USER xxxxxx
回應:       331 Password required for jgm
指令:       PASS *******
回應:       230 Logged on
狀態:       已連線
狀態:       正在取得目錄列表...
指令:       PWD
回應:       257 "/" is current directory.
指令:       TYPE I
回應:       200 Type set to I
指令:       PASV
回應:       227 Entering Passive Mode (xxx,xxx,xxx,xxx,194,109)
指令:       MLSD
回應:       425 Can't open data connection.



解決方法是在 FileZilla Client 端的 [編輯] \ [設定]下面
傳輸模式改為主動模式 ] 即可



使用 TB88-50 DC-to-DC 升壓 IC 製作 LED 手電筒升壓電路

【參考自:http://tw.myblog.yahoo.com/wukc-soft/article?mid=568


TB88-50
低電壓升壓 IC
採用 VFM DC-TO-DC 電壓轉換,電壓從 0.9V 開始



2012年5月22日 星期二

iPhone 3Gs 的拆解


第一步:準備好所需工具 


iphone一台、吸盤一個、螢幕布一塊、十字螺絲起子、sim卡針、拆機工具(綠色翹鉗可有可無)

第二步: 卸下機身下部的兩顆螺絲 ,把吸盤吸在手機下部,然後慢慢提起!
注意:不要拔得太大力,以免連排線一起拔斷,銀邊和後蓋是用膠封的,不要亂翹!




第三步: 卸下吸盤,翻開螢幕,拆除排線!(用綠色的翹鉗拆機工具撬開)
注意:3號排線要先將白色開關掀開,再將排線抽拔起來! 




第四步: 把前三條排線拆除後就可以把螢幕與機身分離了!


第五步:螢幕的拆解,首先卸下全部螺絲(左3顆,右2顆,背面1顆,共6顆)


再把螢幕金屬框用指甲稍稍外翻.....然後把液晶屏下方撬開一條縫 


把液晶屏翹起30度左右,然後抽出來



這樣就把觸控式螢幕和液晶屏分開了!(若只是想清螢幕的灰塵請原順序裝回 


(螢幕排線特寫) 


(Home 鍵觸點特寫


第六步:機身的拆解

機身特寫 


先把4號到7號排線拆除
然後拆除螺絲(左3..4..攝像頭支架1..
然後把攝像頭支架移除

在右下角的螺絲上有一張不易碎的易碎貼
不易碎的易碎貼特寫(在保的就要三思而行了)



攝像頭支架特寫 


移除主機板: 
先把攝像頭向機身內翻起(稍稍弄鬆就可以了) 
然後把主機板從機身下方翻起再抽出(與螢幕的拆解一樣) 
後殼特寫 



主機板特寫 



攝像頭特寫 


Mic、喇叭的拆解:
拆去左下角剩下的那顆螺絲即可整塊抽出!


注意:圖中右方的金屬塊,是在模組左邊缺口中  右方螺絲孔對稱的! 

後殼排線的拆解: 


後殼排線特寫 

注意:把剩下的所有螺絲卸去,小心地把排線撕出,然後把3.5音訊插口,向機身下部滑出,這樣排線就出來了! 



振動器特寫 


Power、靜音開關特寫 

電池的更換: 
長期使用對於電池續航能力的影響是很大的,所以更換一塊更耐用的電池也是必要的! 

電池特寫 


電池與後殼只是用膠粘的,只要撕出來就可以了! 

回到今天的主角,-主機板 !主機板有兩塊保護殼,用針挑一挑就出來了,
下面都是主機板晶片的特寫 











【參考自:http://bbs.weiphone.com/read.php?tid=694261&page=1&toread=1#tpc】



讓 iPhone 擁有像 HTC 的天氣桌面




對於 iPhone 原本桌面上的小方塊看膩了嗎 ? 如何將  iPhone  變成 HTC 桌面 ?

首先 你的手機必須是 JB 過 !
1. 打開 Cydia
2. 接著搜尋 PerpageHTML 並安裝 !
3. 就可以離開 Cydia 了 !



你就會在桌面上看到 PerPage 的 icon
安裝 HTC天氣插件:

(方法一)( 直接利用裝置安裝 )

請直接在 Cydia 裡 搜尋 " HTC Weather Animated PerPageHTML "
下載並安裝 !!!!

(方法二)( 透過電腦安裝 )

1 . 請先下載 HTC天氣插件 檔案
載點:http://www.xun6.net/file/a711ca102/HTCAniPPH.rar.html



2.解壓縮 HTCAniPPH.rar 到桌面

更改天氣地區代碼:
( 預設為台北,若是台北就可跳過這段,若為高雄則填入TWXX0013 )
若上面使用【方法一】者 底下請繼續看【方法一】
若上面使用【方法二】者 底下請繼續看【方法二】


Taiwan Weather Location Code:
--------------------------------
TWXX0001 (Chang-hua) 彰化
TWXX0002 (Chia-i) 嘉義
TWXX0003 (Chi-lung) 基隆
TWXX0004 (Chingmei) 景美
TWXX0005 (Ch'i-shan) 旗山
TWXX0006 (Chu-tung) 竹東
TWXX0007 (Feng-yuan) 豐原
TWXX0008 (Hengch'un) 恆春
TWXX0009 (Hsin-chu) 新竹
TWXX0010 (Hsin-tien) 新店
TWXX0011 (Hua-lien) 花蓮
TWXX0012 (Kangshan) 岡山
TWXX0013 (Kao-hsiung) 高雄
TWXX0014 (Miao-li) 苗栗
TWXX0015 (P'ing-tung) 屏東
TWXX0016 (Su-ao) 蘇澳
TWXX0017 (Ta-cho-shui) 南澳 (大濁水)
TWXX0018 (Ta-fan-lieh) 南灣 (大阪埒)
TWXX0019 (T'ai-chung) 台中
TWXX0020 (T'ai-nan) 台南
TWXX0021 (Taipei) 台北
TWXX0022 (T'aipeihsien) 台北縣
TWXX0023 (T'aitung) 台東
TWXX0024 (Tan-shui) 淡水
TWXX0025 (T'ao-yuan) 桃園
TWXX0026 (Ta-wu) 大武
TWXX0027 (Hengchun) 恆春
TWXX0028 (Taidong) 台東


(方法一)
請打開裝置裡的 " iFile "
進入:/var/mobile/Library/PerPageHTM/HTCAniPPH
打開 " configureMe.js "
在 var locale = "輸入天氣地區碼"
在 var updateInterval = 輸入自動更新時間/分鐘
完成之後按下儲存

(方法二)
解壓縮 HTCAniPPH.rar 到桌面

打開 HTCAniPPH 資料夾內的 configureMe.js
 ( 沒有裝Dreamwaver的可以用記事本打開 )
 ( 可以用記事本編輯的 )


接下來要設定你所在的地區與自動更新頻率
在 var locale = "輸入天氣地區碼"
在 var updateInterval = 輸入自動更新時間/分鐘



完成之後按下儲存
接著將  iPhone  連接電腦 開啟 i-funbox
再來將 HTCAniPPH 上傳至 iPhone 以下路徑:/var/mobile/Library/PerPageHTM

註:
地區天氣代碼查詢頁面:http://www.wretch.cc/blog/iphoneclass/405437


設定教學:
打開  iPhone 裡的 PerPage 會看到下圖:



注意:
(1). none 為 乾淨的畫面
(2). Analogclock 為 動態時鐘


(3). Calender 為 行事曆


(4). HTCAniPPH 為 HTC天氣


8. 再來點一下設定你想設定在第幾頁


9. 設定完後 按 " Home " 鍵 回桌面 !!!
10. 這是  iPhone 會自己 Respring 重開
11. 你就會看到桌面有跟 HTC 一樣的時鐘天氣圖案 !!!

P.S:如有 icon 擋住時鐘的問題 !!!

請至 Cydia下載 iBlank 製造空白標籤 將時鐘的地方隔出來
http://www.wretch.cc/blog/johnny830714/17227846

台灣天氣代碼查詢


天氣代碼查詢 Taiwan Weather Location Code
Taiwan Weather Location Code:
--------------------------------
TWXX0001 (Chang-hua) 彰化
TWXX0002 (Chia-i) 嘉義
TWXX0003 (Chi-lung) 基隆
TWXX0004 (Chingmei) 景美
TWXX0005 (Ch'i-shan) 旗山
TWXX0006 (Chu-tung) 竹東
TWXX0007 (Feng-yuan) 豐原
TWXX0008 (Hengch'un) 恆春
TWXX0009 (Hsin-chu) 新竹
TWXX0010 (Hsin-tien) 新店
TWXX0011 (Hua-lien) 花蓮
TWXX0012 (Kangshan) 岡山
TWXX0013 (Kao-hsiung) 高雄
TWXX0014 (Miao-li) 苗栗
TWXX0015 (P'ing-tung) 屏東
TWXX0016 (Su-ao) 蘇澳
TWXX0017 (Ta-cho-shui) 南澳 (大濁水)
TWXX0018 (Ta-fan-lieh) 南灣 (大阪埒)
TWXX0019 (T'ai-chung) 台中
TWXX0020 (T'ai-nan) 台南
TWXX0021 (Taipei) 台北
TWXX0022 (T'aipeihsien) 台北縣
TWXX0023 (T'aitung) 台東
TWXX0024 (Tan-shui) 淡水
TWXX0025 (T'ao-yuan) 桃園
TWXX0026 (Ta-wu) 大武
TWXX0027 (Hengchun) 恆春
TWXX0028 (Taidong) 台東

2012年5月21日 星期一

iPhone 連接座腳位定義



http://bbs.shanzhaiji.cn/viewthread.php?tid=134467

iPhone 連接座腳位定義

接口排列方式為:
1.2 3 4 5 6 7 8 910 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29.30
內部銲接點排列為:
1  3  5  7  9  11  13  15  17  19  21  23  25  27  29
2  4  6  8  10  12  14  16  18  20  22  24  26  28  30
接口定義為:
1 Ground (-) 地 *
2 Line Out - Common Ground (-) 線路輸出 地*
3 Line Out - R (+) R聲道線路輸出
4 Line Out - L (+) L聲道線路輸出
5 Line In - R (+) R聲道線路輸入
6 Line In - L (+) L聲道線路輸入
7 Remoute Sense(感應)
8 Video Out - Composite Video (for ipod colour when slideshow activated) 復合視頻輸出 (只有彩屏的ipod有效)******
9 S Video C/Component Video Y(
10 S Video Y/Component Video Pr
11 Serial GND RS-232串口 地
12 Serial TxD RS-232串口 TxD
13 Serial RxD RS-232串口 RxD
14Reserved
15 Ground (-) 地 **
16 USB GND (-) USB電源負極 **
17 Reserved
18 3.3V Power (+) 3.3V電源正極
19 Firewire Power 12 VDC (+) 1394火線12V電源 正極 ***
20 Firewire Power 12 VDC (+) 1394火線12V電源 正極***
21 Accessory Indicator 附件識別接口 ****
22 FireWire Data TPA (-) 1394火線數據 TPA(-)
23 USB Power 5 VDC (+) USB 5V 電源 正極
24 FireWire Data TPA (+) 1394火線數據 TPA(+)
25 USB Data (-) USB 數據(-)
26 FireWire Data TPB (-) 1394火線數據 TPA(-)
27 USB Data (+) USB 數據(+)
28 FireWire Data TPB (+) 1394火線數據 TPB(+)
29 FireWire Ground (-) 1394火線12V電源 負極*****
30 FireWire Ground (-) 1394火線12V電源 負極*****
特殊定義:
* 1,2 與電路板連接
** 15,16 與電路板連接
*** 19,20 與電路板連接
**** 21 通過一個電阻連接到地。 不同的阻抗表明不同的輔助部件被連接。
已知的resistances/functions (歐姆) 是如下:
1k0 - iPod 基座
10k - 照相機適配器
500k - RS-232通信
1M0 - Belkin 自動適配器, iPod 自動地關閉了當力量分開了
***** 29,30 與電路板連接
****** 全部連接在公共地
C6的USB的四隻腳是16 25 27 29我看到是一樣的不知道其他的腳位功能也是一樣!


拆開的 iPhone USB Cable




iphone 3G/3GS/4 傳輸線 6蕊
01    Ground (-)
15    Ground (-)
16    USB GND (-)
23    USB Power 5 VDC (+)
25    USB Data (-)
27    USB Data (+)
30 pin iPOD proprietary connector layout
30 pin iPOD proprietary connector
at the player ( white side up)

Used in 3rd and later generation iPods for charging, connecting to a PC via USB or Firewire, to a stereo via line-out, to a serial device (controlled via the Apple Accessory Protocol). This connector exists in most Apple iPod MP3 players (iPod 3G, 4G, 5G Video, 5.5G Video, Nano (1G, 2G, 3G, 4G), Mini, Classic, Touch, Touch 2G, and iPhone (1G, 3G and 3GS))

PinSignalDescription
1GNDGround (-), internally connected with Pin 2 on iPod motherboard
2GNDAudio & Video ground (-), internally connected with Pin 1 on iPod motherboard
3RightLine Out - R (+) (Audio output, right channel)
4LeftLine Out - L(+) (Audio output, left channel)
5Right InLine In - R (+)
6Left InLine In - L (+)
8Video OutComposite video output (only when slideshow active on iPod Photo)
or Component Video Pb
9S-Video Chrominance outputfor iPod Color, Photo only
or Component Video Y
10S-Video Luminance outputfor iPod Color, Photo only
or Component Video Pr
11AUDIO_SWIf connected to GND the iPhone sends audio signals through pin 3-4, otherwise it uses onboard speaker. 
12Txipod sending line, Serial TxD
13Rxipod receiving line, Serial RxD
14RSVDReserved
15GNDGround (-), internally connected with pin 16 on iPod motherboard
16GNDUSB GND (-), internally connected with pin 15 on iPod motherboard
17RSVDReserved
183.3V3.3V Power (+)
Stepped up to provide +5 VDC to USB on iPod Camera Connector. If iPod is put to sleep while Camera Connector is present, +5 VDC at this pin slowly drains back to 0 VDC.
19,20+12VFirewire Power 12 VDC (+)
21Accessory Indicator/Serial enableDifferent resistances indicate accessory type:
1kOhm - iPod docking station, beeps when connected
10kOhm - Takes some iPods into photo import mode
6.8 kΩ - Serial port mode. Pin 11-13 are TTL level. Requires MAX232 chip to convert to RS232 levels.
68kOhm - makes iPhone 3g send audio through line-out without any messages
500kOhm - related to serial communication / used to enable serial communications Used in Dension Ice Link Plus car interface
  1MOhm - Belkin auto adaptor, iPod shuts down automatically when power disconnected Connecting pin 21 to ground with a 1MOhm resistor does stop the ipod when power (i.e. Firewire-12V) is cut. Looks to be that when this pin is grounded it closes a switch so that on loss of power the Ipod shuts off. Dock has the same Resistor.
22TPA (-)FireWire Data TPA (-)
235 VDC (+)USB Power 5 VDC (+)
24TPA (+)FireWire Data TPA (+)
25Data (-)USB Data (-)
26TPB (-)FireWire Data TPB (-)
27Data (+)USB Data (+)
Pins 25 and 27 may be used in different manner. To force the iPod 5G to charge in any case, when USB Power 5 VDC (pin 23) is fed, 25 must be connected to 5V through a 10kOhm resistor, and 27 must be connected to the Ground (for example: pin 1) with a 10kOhm resistor.
iPod 5G can also be forced to charge by attaching the data + and the data - pins to the 5v via a 10k Ohm resistor ( BOTH PINS) and connecting pin 16 to the 5v (ground). (Confirmed working with iPod 5G 20GB). This provides 500mA of current for charging. For quicker charing, up to 1A, see below.
To charge an iPhone 3G / iPod Touch 2nd gen or Ipod Classic (6th Gen), usb data- (25) should be at 2.8v, usb data+(27) should be at 2.0v. This can be done with a few simple resistors: 33k to +5v (23) and 22k to gnd(16) to obtain 2v and 33k to +5v and 47k to gnd to obtain 2.8v. This is a notification to the iphone that it is connected to the external charger and may drain amps from the usb.
To charge iPod Nano pins 25 and 27 should be tied together and then connected to a 10K ohm resistor, and the other side of this resistors then needs to be connected to 5v power.
It's also possible to charge the iPod's or iPhone's battery to make use the of internal +3.3v output (18) terminal to connect the USB Data + (27) thru a 47k ohms resistor and the USB Data- (25) thru a 47k resistor to the USB Power source +5v (23).  This way the USB function is still useable for normal operations and makes it easier the fit in a plug. The resistors are not to critical 2x 150k's still work.
28TPB (+)FireWire Data TPB (+)
29,30GNDFireWire Ground (-)
Back side of dock connector;
 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30
 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29
Pins 1,2 connected on motherboard.
Pins 15,16 connected on motherboard.
Pins 19,20 connected on motherboard.
Pins 29,30 connected on motherboard.
If you disassemble the original apple-ipod-dock-connector-cable and look at the connector itself, on the back side, where it is soldered, you can see the number 1 and 30 (e.g. pin 1 and 30). In this description NUMBERING is INVERSED: pin 1 is pin 30 and pin 29 is pin 2, so, don't look at numbers on connector.
The remote control, iTalk and other serial devices use Apple Accessory Protocol for communication with iPOD. This protocol was introduced with the 3rd generation iPods, and is also compatible with the 4th generation iPods and mini iPods. The connections uses a standard 8N1 (one startbit 8 data bits 1 Stopbit) serial protocol, 19200 baud (higher rates up to 57600 also possible, but speed faster than 38400 may cause problems with large amounts of data), delay of 12 microseconds inserted between end of the stopbit and the beginning of the next startbit (also working without this delay).
Electrical: high +3,3V low 0V
default line state: high. Codes used for communication with peripherals are here


2012年5月16日 星期三

停用 Windows 2008 Server 密碼複雜度


Start→Run→gpedit.msc→Computer Configuration→Windows Settings→Security Settings→Password Policy→Password must mett complexity requirements→Disable

開始 → 執行 → gpedit.msc → 電腦設定 → Windows 設定 → 安全性設定 → 帳戶原則 →
密碼原則 → 密碼必須符合複雜性需求 → 已停用