Cov txheej txheem:

Android G1 Serial rau USB Cable: 8 Kauj Ruam
Android G1 Serial rau USB Cable: 8 Kauj Ruam

Video: Android G1 Serial rau USB Cable: 8 Kauj Ruam

Video: Android G1 Serial rau USB Cable: 8 Kauj Ruam
Video: Digital Certificate Mastery: Empowering IT Professionals 2024, Hlis ntuj nqeg
Anonim
Android G1 Serial rau USB Cable
Android G1 Serial rau USB Cable

Kawm paub yuav ua li cas hauv Android G1 2.8v txuas rau USB Serial device adapter (siv 3.3v ttl rau usb txuas txuas txuas). Qhov no tuaj yeem siv rau kev debugging ntsiav/lwm yam nrog koj lub khoos phis tawj. Txoj haujlwm no yuav tsum tsis raug nqi koj ntau dua 40 bucks yog tias koj twb muaj cov cuab yeej siv hluav taws xob yooj yim xws li cov hlau txuas. Daim ntawv ceeb toom: Lub peev xwm siv 3.3v ttl qib txuas yog ua los ntawm google pab pawg sib tham thiab daim duab ntawm cov xov tooj txuas siv los ntawm kev liam Android dev. Cov qib 2.8v tau txiav txim siab los ntawm ib tus neeg siv lub voltmeter. Tsim/siv ntawm koj tus kheej txoj kev pheej hmoo thiab tshawb xyuas cov lus ntawm cov lus qhia no ib yam ua ntej pib! microcontroller xws li Arduino. Kuv tuaj yeem tshaj tawm cov lus qhia yuav ua li cas ua cov no ib zaug kuv ua si ib puag ncig nrog G1 ntsiav qee yam ntxiv.:) Qhov kev qhia no kwv yees kev paub yooj yim ntawm kev siv tshuaj txhuam. Yog tias koj tsis muaj qhov txuj ci no koj yuav tsum pom cov lus qhia hais txog nws thiab xyaum me ntsis. Kev siv tshuaj yuav tsum tau ua rau txoj haujlwm no tsis nyuaj, tab sis yuav tsum tau ua hauv qhov chaw me me uas tuaj yeem nyuaj rau cov pib siv kab ntawv no tau tsim los ntawm cov ntaub ntawv tau txais los ntawm Android-Platform Google Group. … Tshwj xeeb cov ob no xov: https://groups.google.com/group/android-platform/browse_thread/thread/f03730e25cc3fe55? fwc = 1https://groups.google.com/group/android-platform/browse_thread/thread/439d3f3af7a88a09/10a80eb835e8d lnk = gst & q = serial#10a80eb835e8dbcc… Daim duab no ntawm "mystical" g1 cov xov tooj tau pab (thiab tsis meej pem!) ib yam: https://www.noisebridge.net/wiki/Image: G1-two-usb-to-serial- cable.jpgThov tso kev thuam/tawm tswv yim yog tias koj pom cov kauj ruam tsis raug, tsis meej pem … lossis sau tsis zoo!

Kauj Ruam 1: Cov Khoom Xav Tau

Txhawm rau tsim qhov hloov pauv no koj yuav xav tau cov hauv qab no:

  • Soldering Iron (Xijpeem Radioshack/online/thiab lwm yam yuav tsum ua haujlwm)
  • Solder (Xijpeem Radioshack/online/thiab lwm yam muaj hauv Tshuag uas yog 0.032 dia. Lossis me me yuav ua haujlwm)
  • Cov Hluav Taws Xob Hluav Taws Xob (Tsis txhob yuav cov no los ntawm Radioshack.. koj lub khw kho vajtse hauv ib cheeb tsam yuav tsum muaj lawv txawm li cas los xij)
  • Hlau txiav
  • HTC ExtUSB Breakout board
  • 22 AWG khoom Hlau - Nws yuav zoo tshaj kom tau liab, dub thiab lwm xim uas koj xaiv (dawb) tab sis nws tsis tsim nyog.
  • USB rau 2.8V (lossis 3.3v) hloov pauv hloov pauv. Nws yuav zoo tshaj yog tias koj tuaj yeem tau txais ib qho uas tso cai rau koj siv kab 5v ntawm lub npav USB kom muaj zog G1, tab sis nws tsis tsim nyog. Ib qho ntawm cov hauv qab no yuav tsum ua haujlwm (koj tsuas yog xav tau ib leeg):
    • (Tsis muaj kab 5v rau lub zog)
    • (Tej zaum yuav nyuaj rau hloov kho kom tau 5v kab rau lub zog)
    • (Kuv siv qhov no, muaj 5v txuas)
    • (VCC tus pin yuav tsum muab 5v… kos ob qho tib si!)
    • (Qhov no yuav tsum muaj kab 5v (VCC).. tab sis muaj cov ntaub ntawv tsis sib xws ntawm lub khw thiab tuam txhab tshwj xeeb nplooj ntawv) https://apple.clickandbuild.com/cnb/shop/ftdichip?productID=68&op=catalogue-product_info-null&prodCategoryID = 47 ib

Kauj Ruam 2: Soldering HTC ExtUSB Breakout Board Data Wires

Soldering HTC ExtUSB Breakout Board Cov Ntaub Ntawv Xov Xwm
Soldering HTC ExtUSB Breakout Board Cov Ntaub Ntawv Xov Xwm

= 1. Siv lub tshuab txiav hlau, txiav peb txoj hlua ntev uas txhua tus ntev li 5 ntiv tes. Yog tias koj yuav ntau dua ib xim ntawm xaim, ua rau ib lub xaim dub thiab ob qho ntawm koj cov xim tshwj xeeb. = 2. Nrog cov hlua hlau, tshem tawm li 5 hli ntawm rwb thaiv tsev los ntawm txhua qhov kawg ntawm peb kab ntawv. HTC ExtUSB breakout board thiab ua tib zoo saib nws. Ib sab yuav muaj cov lej me me ntawm nws uas cuam tshuam cov hauv qab no: 6 9 11 5O OO O78 10 4OO O O1 2 3O O O Cov qhov tawv tawv yog qhov peb nyiam.), thiab RXI (Qhov 9), txhua yam uas tsim nyog rau G1 kev sib txuas lus txuas mus. Yog tias koj xav tsis thoob tias lwm tus pin tau txuas rau dab tsi, qhov no yog dab tsi PodGizmo.com tam sim no tau teev tseg: 1: USB VCC +5v2: USB Data -3: USB Data +4: N / C5: USB GND6: Sab laug Suab + 7: Labeled "AG" (Serial 2.8v Level GROUND) 8: Audio - (GND) Labeled "CK" (Serial 2.8v Level TX0) 9: Hloov (Tham) Labeled "OT" (Serial 2.8v Theem RX'I) 10: Txoj Cai Suab +11: Mic +12: Chassis Av (GND) = 3. Ntsaws koj cov hlau txuas thiab cia kom sov. = 4. Nqa cov xaim koj txiav ua ntej (dub yog tias koj muaj ntau xim) thiab solder nws hla lub qhov 7 (GND). = 5. Lob lwm lub xov hlau uas koj tau txiav ua ntej thiab muab nws txuas hla lub qhov 8 (TXO). = 6. Ceev cov xaim kawg koj tau txiav ua ntej thiab muab nws hla lub qhov 9 (RXI). Tom qab ntawd nws yuav tsum saib qee yam zoo li daim duab hauv qab no.

Kauj Ruam 3: Soldering USB rau TTL-Qib Serial Adapter Cov Ntaub Ntawv Xov Xwm

Soldering USB rau TTL-Qib Serial Adapter Cov Ntaub Ntawv Xov Xwm
Soldering USB rau TTL-Qib Serial Adapter Cov Ntaub Ntawv Xov Xwm

Tam sim no tias ExtUSB pawg thawj coj tau muab muag, cov kauj ruam tom ntej yog txhawm rau txuas cov xov hlau mus rau qhov sib xws hauv USB mus rau 2.8v cov ntawv xov xwm. Ua ntej txuas ntxiv, nws yuav yog lub tswv yim zoo los tuav lub rooj tsavxwm no thiab ua tib zoo saib kom pom qhov GND, RX, thiab TX qhov. = 1. Luag lub GND xaim (Ib qho Soldered hauv Qhov 7 ntawm HTC ExtUSB board) hauv lub qhov uas sau tias GND ntawm koj lub USB rau 2.8v Serial adapter. = 2. Siv lub TXO xaim hlau (Ib qho Soldered hauv Qhov 8 ntawm HTC ExtUSB pawg thawj coj) hauv lub qhov sau lo lus RX ntawm koj USB rau 2.8v Serial adapter. = 3. Siv lub RXI xaim (Ib qho Soldered hauv Qhov 9 ntawm HTC ExtUSB board) hauv lub qhov sau tias TX ntawm koj USB rau 2.8v Serial adapter.

Kauj Ruam 4: Txheeb Xyuas Cov Ntaub Ntawv Txuas Hluav Taws Xob

Txheeb xyuas Cov Ntaub Ntawv Xov Xwm Sib Txuas
Txheeb xyuas Cov Ntaub Ntawv Xov Xwm Sib Txuas
Txheeb xyuas Cov Ntaub Ntawv Xov Xwm Sib Txuas
Txheeb xyuas Cov Ntaub Ntawv Xov Xwm Sib Txuas
Txheeb xyuas Cov Ntaub Ntawv Xov Xwm Sib Txuas
Txheeb xyuas Cov Ntaub Ntawv Xov Xwm Sib Txuas

= 1. Yog tias xav tau, teeb tsa cov tsav tsheb tsim nyog rau USB rau 2.8v cov txuas txuas uas koj tau siv. = 2. Rub tawm daim ntawv thov nkag rau koj lub khoos phis tawj. Rau OS X/Linux cov neeg siv, kab hais kom ua minicom lossis tshuaj ntsuam yog qhov kev xaiv zoo. Kuv yuav siv minicom hauv Ubuntu. = 3. Txuas lub hloov pauv uas koj tau ua rau hauv USB chaw nres nkoj ntawm koj lub computer. TSIS TXHOB ntsaws nws rau hauv lub xov tooj tseem tsis tau. = 4. Qhib koj li serial console app thiab saib yog tias lub cuab yeej raug kuaj pom. Rau kuv nws qhia hauv qab /dev /ttyUSB0 thiab minicom khaws nws cia li. Koj yuav xav tau teeb tsa koj lub software. = 5. Nrog rau qhov chaw nres nkoj tam sim no tau lees paub, tam sim no koj yuav tsum hloov pauv tus nqi baud/nres cov khoom, thiab tswj kev ntws. Txhawm rau hloov cov no hauv minicom, ntaus Ctrl-a ces ntaus Shift-O (O zoo li hauv Obama). Kev sib tham teeb tsa yuav tshwm sim. Koj yuav tsum xaiv "teeb tsa chaw nres nkoj txuas", ntaus nkag ces hloov qhov txiaj ntsig los ua cov hauv qab no:

  • Bps/Par/Khoom: 115200 8N1
  • Kev Kho Vajtse Flow Control: Tsis yog
  • Software Flow Control: Tsis yog

= 6. Kaw qhov chaw thiab tos kom muaj kev sib txuas tam sim no. Koj tuaj yeem tawm qhov teeb tsa hauv minicom los ntawm nias lub pob khiav tawm. = 7. Mus tuav koj lub G1 Xov Tooj thiab xyuas kom nws tau them zoo. Thaum nws ua tiav, koj yuav tsum mus rau Nqis-> Suab thiab Zaub-> Screen Timeout thiab nce nws mus rau 10 feeb lossis Tsis tas sij hawm. Los ntawm kev sim ua ntej, Nws zoo li tsis ua haujlwm nrog cov zaub tawm.. tab sis qhov no tseem tsis tau raug txheeb xyuas. = 8. Txuas lub HTC ExtUSB txuas rau hauv lub xov tooj.. yog tias koj hnov ntxhiab dab tsi lom zem lossis pom txim taws, txuas qhov txuas sai. los ntawm lub xov tooj tom qab ntawd USB cable thiab tshuaj xyuas cov kauj ruam ua ntej kom pom tias koj plam dab tsi. = 9. Yog tias txhua yam zoo li thiab tsis hnov tsw zoo, ua tibzoo saib cov ntawv tso tawm ntawm lub console, nws yuav tsum hais "debug>" tam sim. Qhov no cuam tshuam tias koj tsawg kawg tau siv GND thiab RX cov xov hlau kom raug, woo! ** = 10. Sim ntaus "ps" thiab ntaus nkag, yog tias koj pom ps tshwm thiab ntau cov ntawv sau los ntawm thaum koj ntaus nkag, uas txhais tau tias koj txuas ua haujlwm zoo. Neat! **** Yog tias koj tsis pom qhov kev cia siab "debug>" ntawv lossis koj tsis pom yam koj ntaus, ntaus ob peb zaug. Qee zaum kev sib txuas lus tuaj yeem ua tsis tau zoo vim tias tsis muaj software/kho vajtse tswj kev siv. Yog tias qhov ntawd tsis ua haujlwm, koj tuaj yeem sim rov pib dua koj lub app app, txheeb xyuas qhov teeb tsa kev sib txuas lus, tshem tawm/ntsaws hauv lub xov tooj, thiab thaum kawg ob zaug xyuas seb koj tau siv dab tsi. = 11. Txiav cov xov hlau ntau dhau ntawm ob lub rooj.

Kauj Ruam 5: Soldering USB rau TTL-Level Serial Adapter Fais Fab Hlau (xaiv tau)

Soldering USB rau TTL-Qib Serial Adapter Lub Hwj Huam Hluav Taws Xob (xaiv tau)
Soldering USB rau TTL-Qib Serial Adapter Lub Hwj Huam Hluav Taws Xob (xaiv tau)

Tam sim no koj paub koj cov xov tooj ua haujlwm koj tuaj yeem siv nws zoo li yog, ua kom nws muab lub zog rau G1, lossis ua kom nws ua haujlwm raws li tus qauv txheem USB thiab USB ntaus ntawv txuas. Cov hauv qab no piav qhia yuav ua li cas thiaj muab lub zog rau G1 muab rau koj lub adapter muaj 5v lub qhov rau qhov laug rau. = 1. Ua tibzoo saib koj li 2.8v qib txuas rau USB adapter thiab saib rau qee yam uas sau tias 5V. Nws kuj tseem tuaj yeem sau npe VCC tab sis yog qhov no, tshawb xyuas koj daim ntawv hloov pauv cov ntaub ntawv txhawm rau txheeb xyuas qhov tseeb nws tau muab 5V ncaj qha los ntawm USB npav. Nws kuj tseem yuav tsis raug mob los tshuaj xyuas qhov no siv lub voltmeter. Yog tias koj tsis muaj qhov txuas no, koj yuav tsis tuaj yeem ua tiav ob peb kauj ruam tom ntej. Yog tias koj khiav mus rau qhov xwm txheej no koj yuav xav txiav txim siab tsuas yog siv lub USB cable txuas rau HTC ExtUSB tus pin kom raug raws li qhov no yuav tsum tso cai rau koj ob lub zog G1 thiab tseem muaj tus qauv USB nkag mus rau G1 = 2. Siv cov tshuab txiav hlau, txiav xaim uas ntev li 5 ntiv tes. Yog tias koj yuav ntau dua ib xim ntawm cov xaim, siv xaim liab. = 3. Nrog cov hlua hlau, tshem tawm li 5 hli ntawm rwb thaiv tsev los ntawm txhua qhov kawg ntawm kab. = 4. Muab cov xaim hla 5V (lossis VCC) qhov rau koj adapter.

Kauj Ruam 6: Soldering HTC ExtUSB Breakout Board Power Wire (yeem)

Soldering HTC ExtUSB Breakout Board Fais Fab Hlau (xaiv tau)
Soldering HTC ExtUSB Breakout Board Fais Fab Hlau (xaiv tau)

Ua tibzoo saib ntawm HTC ExtUSB pawg thawj coj saib dua. Peb txaus siab rau USB VCC +5v qhov uas ua siab tawv hauv qab. 6 9 11 5O OO O7 8 10 4O OO O1 2 3O O O1: USB VCC +5v2: USB Data -3: USB Data +4: N / C5: USB GND6: Sab laug Suab +7: Labeled "AG" (Serial 2.8v Qib GROUND) 8: Audio - (GND) Labeled "CK" (Serial 2.8v Level TX) 9: Hloov (Tham) Labeled "OT" (Serial 2.8 v Qib RX) 10: Txoj Cai Suab +11: Mic +12: Chassis Av (GND) = 1. Cuam lwm qhov kawg ntawm (liab) xaim koj nyuam qhuav xau hauv qhov 1 (USB VCC +5v).

Kauj Ruam 7: Txheeb Xyuas Qhov Txuas Hluav Taws Xob

Txheeb xyuas Cov Hluav Taws Xob Txuas Hluav Taws Xob
Txheeb xyuas Cov Hluav Taws Xob Txuas Hluav Taws Xob

= 1. Txuas lub adapter rau hauv koj lub computer. Yog tias nws pib hnov tsw ntxhiab lossis tawg, tshem nws sai thiab txheeb xyuas seb koj tau siv dab tsi. = 2. Rub koj lub xov tooj, qhib lub zog yog tias nws tawm, tom qab ntawd ntsaws lub adapter rau hauv. Tom qab kwv yees li ob lossis ob teev, lub teeb them nyiaj amber yuav tsum tig thiab nyob twj ywm.. yog tias tsis yog, txuas nws sai thiab txheeb xyuas koj qhov kev sib txuas ob zaug.

Kauj ruam 8: Tam sim no Dab tsi?

Yog li tam sim no koj paub yuav cuam tshuam nrog qhov chaw nres nkoj hauv G1, tej zaum koj yuav muaj cov tswv yim nyob ib puag ncig koj lub taub hau seb yuav ua li cas kom tau txais txiaj ntsig ntawm nws, txoj cai? Puas yog nws zoo siv qhov no rau: -Control ib tus neeg hlau-Siv G1 ua ntu txuas txuas mus rau cov servers hauv pawg beowulf zoo li System-X-Sib Txuas nrog cov ntsuas/ua haujlwm dhau lub 3g network rau kev saib xyuas tej thaj chaw deb/tswj-Siv qhov chaw nres nkoj txuas mus rau cov ntshav nyeem ntshav lossis lwm yam cov cuab yeej siv kho mob (psst, ib lub tuam txhab kho mob loj ntiav?) thiab muab ob lub cuab yeej los ua ib qho rau ntau tus neeg? Nov yog qhov haujlwm uas piav qhia yuav ua li cas sau G1 lub xov tooj lub ntsiav kom koj tuaj yeem siv qhov chaw nres nkoj ntawm tus neeg siv. Nws kuj tseem muaj qhov api yog li koj tuaj yeem siv qhov chaw nres nkoj txuas ncaj qha los ntawm Android Gui apps! !

Pom zoo: