Cov txheej txheem:

Pib Nrog VMUSIC2: 5 Cov Kauj Ruam
Pib Nrog VMUSIC2: 5 Cov Kauj Ruam

Video: Pib Nrog VMUSIC2: 5 Cov Kauj Ruam

Video: Pib Nrog VMUSIC2: 5 Cov Kauj Ruam
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Kaum ib hlis
Anonim
Pib Nrog VMUSIC2
Pib Nrog VMUSIC2

VMUSIC2 yog qhov ua tiav MP3 player module los ntawm FTDI, Inc. uas ua rau nws yooj yim rau kev sib xyaw MP3 ua haujlwm rau hauv koj qhov project microcontroller tom ntej. Nws muaj ob qhov cuam tshuam: SPI lossis UART (serial)

Qee qhov kev thov piv txwv: 1. Ua rau koj tus neeg hlau tham thiab ua suab nrov raws qee qhov xwm txheej lossis ua rau 2. Ntxiv suab rau koj cov qauv thiab dioramas; Muab qee qhov kev sib cuam tshuam lossis keeb kwm rau koj daim 3. Sib tham sib kos duab 4. Spice li koj Pinball lossis lwm yam tshuab arcade 5. Siv tus qauv los thauj cov ntawv los ntawm lub flash drive txhais cov duab, xws li rov ua suab lub suab thaum ua qee yam mechanical txhua hnub raws li siv hauv animatronics. Lub sijhawm ua si yog tso tawm hauv vib nas this uas tuaj yeem siv rau (nyoos) sib sau ua ke (HINT: Qhov kawg no yog qhov kuv tau npaj rau yav tom ntej qhia) Cov ntaub ntawv los ntawm FTDI piav qhia txog kev siv cov qauv no tsis tau teeb tsa zoo heev thiab kuv muaj qee qhov teeb meem pib nrog kuv. Thaum nrhiav cov ntaub ntawv, Kuv tau pom ntau cov lus tshaj tawm hauv ntau lub rooj sab laj los ntawm tib neeg kuj muaj teeb meem pib, yog li tom qab thaum kawg tau txais kuv li kev khiav, Kuv txiav txim siab los tsim cov lus qhia no los pab lwm tus. Cov lus qhia no yuav npog kev sib txuas thiab tswj hwm koj li VMUSIC2 module los ntawm hyperterminal. Kuv pom zoo pib tawm txoj hauv kev no vim tias nws yuav tso cai rau koj kom paub cov lus txib thiab tau txais kev xav tias nws ua haujlwm li cas ua ntej txuas nws rau koj lub microcontroller. Kuv yuav ua raws nrog lwm cov lus qhia ntawm kev tswj hwm nws los ntawm microcontroller.

Kauj Ruam 1: Taw qhia rau VMUSIC2 Module

Taw qhia rau VMUSIC2 Module
Taw qhia rau VMUSIC2 Module
Taw qhia rau VMUSIC2 Module
Taw qhia rau VMUSIC2 Module

VMUSIC2 tus qauv yog ua raws Vinculum VNC1L USB Host controller los ntawm FTDI thiab VS1003 MP3 encoder/decoder los ntawm VLSI. VMUSIC2 tso cai rau koj ntsaws rau hauv USB flash drive ntim nrog MP3s thiab ua si los ntawm koj lub microcontroller. kom zoo dua los siv tus qauv no yog tias nws tsuas yog xav tau ob peb tus pin los tswj nws, thiab cov nyiaj siv ua haujlwm software tsawg heev. Qhov no tso cai rau koj lub microcontroller tsom mus rau qhov seem ntawm koj txoj haujlwm (saib cov hloov pauv, thiab lwm yam …) thaum MP3 tab tom ua si. Nws kuj txhais tau tias koj tuaj yeem khiav tawm nrog kev siv microcontrollers nrog lub cim xeeb tsawg dua thiab tsawg dua I/O. Lwm qhov txiaj ntsig yog tias koj tsis tas yuav paub dab tsi txog kev sau ntawv rau FAT32, USB host, lossis MP3s. Thaum lub VMUSIC2 module tau tsim los ua si rov qab MP3s, USB host interface kuj tseem tuaj yeem siv nkag tau (ob leeg nyeem thiab sau) txhua cov ntaub ntawv ntawm flash drive. Thaum kuv tau txais cov lus qhia uas kuv txuas qhov no rau lub microcontroller, nws yuav pom tseeb tias qhov no muaj txiaj ntsig zoo li cas. Koj yuav xav tau cov khoom hauv qab no kom ua tiav cov lus qhia no:*VMUSIC2 Module los ntawm FTDI.*RS232 rau RS232-TTL-3.3 v hloov pauv (yog tias koj txuas tus qauv no ncaj qha rau koj lub PC qhov chaw nres nkoj, koj yuav ua rau nws puas tsuaj. Saib cov kauj ruam 3 rau cov lus pom zoo)*5V fais fab mov*Lub khoos phis tawj nrog hyperterminal (suav nrog lub qhov rais) lossis qee qhov lwm qhov kev pabcuam tau txais txhua yam? Zoo peb saib qhov module:

Kauj ruam 2: Programming Firmware

Programming lub Firmware
Programming lub Firmware
Programming lub Firmware
Programming lub Firmware
Programming lub Firmware
Programming lub Firmware

Kuv xaj kuv VMUSIC2 module ncaj qha los ntawm FTDI. Qhov loj tshaj plaws ntawm kuv qhov kev poob siab yog tias kuv pom tias kuv tus qauv tsis muaj lub khoos phis tawj teeb tsa. Tau kawg, Kuv xav tias nws yog teeb meem nrog kuv kev sib txuas, yog li kuv tau mus taug kev ntawm goose qus mus nrhiav kom paub seb kuv tau ua dab tsi! Thiab kuv tsis tau paub tias kuv tuaj yeem hloov kho lub firmware los ntawm USB tsav, yog li kuv tau ua tiav qhov nyuaj. Cov lus qhia no yuav tsum tseg koj rau ntawd. Ntxiv rau, lub hauv paus firmware tsis tau teeb tsa los ua phooj ywg nrog hyperterminal. Yog li, peb yuav hloov kho thiab hloov kho cov firmware. Ua ntej tshaj, mus rau Vinculum lub vev xaib thiab rub tawm cov ntaub ntawv Reflash (FTD) qhov tseeb. Kuj tau txais VPROG Re-flash Utility (tsis siv hauv cov lus qhia no, tab sis yuav pab tau yog tias koj muaj teeb meem) thiab Firmware Customizer los ntawm Cov Ntawv Thov thiab Kev Pabcuam txuas ntxiv mus rau nplooj ntawv.) cov ntaub ntawv uas koj rub tawm. Koj yuav pom cov ntsiab lus ntawm cov kev xaiv ua haujlwm hauv firmware. Nyem rau tom ntej kom pib kho qhov firmware. (Kuv tau suav nrog cov duab ntawm ntu uas kuv tau hloov pauv) Qhov no yog cov ntsiab lus ntawm cov kev xaiv uas kuv tau xaiv: UART: 9600 baud, 8 khoom, Tsis muaj Parity, 1 Nres me ntsis, thiab Tsis ntws tswj (qhov no yog qhov tseem ceeb) IPA Hom thiab Kev Hais Kom Ncaj Ncees SetNow, tsuas yog nyem tom ntej los ntawm cov kev xaiv uas seem. Koj yuav raug nug kom muaj 3 tus cim tshwj xeeb rau koj li kev cai firmware. Kuv tsim ob lub firmwares sib txawv thiab siv cov ID no; COM rau hyperterminal tus phooj ywg (qhov no) thiab MCU rau microcontroller tus phooj ywg version. Peb tsuas yog txhawj xeeb nrog cov phooj ywg hyperterminal version rau cov lus qhia no. Koj yuav xav tau hloov cov ntaub ntawv hauv cov ntawv qhia zaub mov nco tseg kom txuag tau FTD cov ntaub ntawv. Ib daim ntawv ROM yuav tsis ua haujlwm rau cov lus qhia no vim nws tsis tuaj yeem nyem los ntawm USB drive. Ntawm no, theej cov FTRFB. FTD cov ntaub ntawv uas koj nyuam qhuav tsim hla mus rau lub hauv paus nplaub tshev ntawm lub flash drive koj tab tom npaj siv. lub npe thawj cov ntaub ntawv uas yuav pab koj txheeb xyuas nws tom qab, thiab tom qab ntawd tsuas yog hloov nws mus rau FTRFB. FTD tom qab theej nws mus rau lub flash drive. Nws YUAV TSUM muaj lub npe no lossis lub bootloader yuav tsis lees paub nws thiab rov tsim dua nws tus kheej.

Kauj ruam 3: Tau Txuas

Kev Sib Txuas
Kev Sib Txuas

Thawj kauj ruam yog txuas VMUSIC module rau 5V thiab hauv av. Xa mus rau daim duab hauv qab no rau tus pinout. Thaum txuas lub VMUSIC2, ntxig koj lub USB tsav nrog FTRB. FTD cov ntawv rau nws. Koj yuav tsum pom lub teeb ntsais muag. Nws yuav siv sijhawm li 20-30 vib nas this los teeb tsa lub khoos phis tawj tshiab. Tsis txhob tshem lub zog thaum nws ntsais muag lossis koj yuav tau mus rau txoj kev kim dua thiab nyuab kuv tau hla mus (lossis tsis zoo dua - koj xoob lub bootloader tag.) Lub teeb yuav tsum ci RED rau ob lossis ob thiab tom qab ntawd nyob twj ywm ntsuab thaum flashing tiav. Tsis txhob ua siab ntev. Nws yuav pom tseeb zoo nkauj thaum nws ua haujlwm. Feem ntau, tsis muaj lub teeb ua haujlwm ntawm USB flash drive thaum pib. Lub teeb yuav dhau mus vwm thaum nws tab tom ua haujlwm thiab txheeb xyuas qhov tsis sib xws 5V los ntawm VMUSIC module. Koj tam sim no tau npaj yuav nqes tus cim ntxiv thiab pib tham nrog nws nrog hyperterminal. hauv cov ntaub ntawv. Ua ntej tshaj plaws, VMUSIC2 UART interface yog 3.3V logic. Koj yuav xav tau qee yam kev hloov pauv rau koj kev txuas. Kuv yuav tsis mus rau ntau yam nthuav dav yuav ua li cas, vim tias muaj ntau txoj kev xaiv. Ib qho yooj yim tshaj yog yuav Nokia DKU-5 xov tooj ntawm tes cov ntaub ntawv xov tooj thiab hloov kho nws los ntawm kev txiav tawm Nokia txuas. Cov kab no yog USB rau RS232-TTL3.3v cable raws li FT232R. Tsis muaj CTS lossis RTS tuav tes tuav tes nyob hauv kab ntawv no, uas yog ib qho laj thawj uas peb hloov kho lub khoos phis tawj kom tsis muaj kev tswj ntws.. Nws tsis muaj teeb meem dab tsi hloov pauv koj siv ntev li nws tau tsim rau 3.3V TTL, tsis yog 5V. Npaj rau cov kauj ruam tom ntej los ntawm kev ua kom ntseeg tau tias koj tau teeb tsa cov tsav tsheb rau koj lub khoos phis tawj (yog USB.) Nws yuav tsum tshwm nyob rau hauv tus thawj tswj ntaus ntawv. Sau ntawv ceeb toom ntawm COM Chaw nres nkoj muab rau nws yog tias cov neeg muaj teeb meem nrog cov kauj ruam no, Kuv yuav tsim cov lus qhia cais raws li lub xov tooj nokia. Tab sis cov xov tooj no nrov heev hauv ntau lub zej zog kev hloov pauv thiab cov qauv tau sau tseg zoo heev. Kuv tab tom siv qhov hloov pauv sib txawv (kim dua) tam sim no thiab tsis muaj kev nkag tau mus rau kuv lub xov tooj nokia cable ATM, txwv tsis pub kuv yuav ntxiv nws ntawm no. UAV TSHIAB: Pom kab lus zoo piav qhia txog kev xaiv sib txawv thiab cov peev txheej rau cov xov tooj pheej yig. Kuv tsis paub tias kuv plam nws li cas, tab sis TTL-232R-3V3 los ntawm FTDI tau ua tiav rau lub hom phiaj no. Txheeb xyuas qhov txuas no rau lwm txoj hauv kev (koj yuav txawm tias muaj qee yam dag ib ncig) Ua ntej txuas lwm yam ntxiv rau VMUSIC2, dua, xyuas kom lub zog tsis txuas nrog. Txuas RXD ntawm koj lub converter rau TXD ntawm VMUSIC2 Txuas TXD ntawm koj hloov mus rau RXD ntawm VMUSIC2 Txuas lub GROUND ntawm koj qhov hloov pauv mus rau GROUND ntawm VMUSIC2Connect CTS ntawm VMUSIC2 rau GROUND (Qhov no tsis yog xaiv tau. Koj yuav tuaj yeem xa cov lus txib, tab sis koj yuav tsis tau txais lus teb yog tias koj tsis txuas qhov no teeb liab mus rau hauv av.) RTS tuaj yeem sab laug txuas tsis tau txuas txuas tam sim no yuav yog lub sijhawm zoo los rub lub flash drive nrog qee lub MP3s (Kuv tau hloov npe kuv li 1.mp3, 2.mp3, thiab lwm yam … kom yooj yim dua) thiab tseem tshem tawm FTRFB. FTD cov ntaub ntawv los ntawm flash drive. Lub khoos phis tawj tuaj yeem nyeem DOS cov npe nkaus xwb. Qhov no txhais tau tias 8 tus cim rau lub npe thiab 3 rau kev txuas ntxiv. Kuv ntseeg tias koj tuaj yeem tawm ntawm qhov txuas ntxiv thiab tsuas yog siv tag nrho kaum ib lub cim rau lub npe ntawv, tab sis qhov ntawd yuav tawg nyob rau yav tom ntej firmware, yog li kuv tsis qhia nws. Leave 5V kab txuas. Peb yuav txuas nws dua hauv cov kauj ruam tom ntej. Kuv xav sau qee qhov lus kawg hais txog nqe lus no tsuas yog ua kom tiav, vim nws yuav tsis cuam tshuam txog cov theem tom ntej: Yog tias koj muaj tus hloov pauv muaj peev xwm RTS/CTS ntws tswj, qhov no yog qhov ua tau zoo dua. Yog tias koj ib txwm xav tau rov rub lub firmware rau txoj kev nyuaj, qhov no yog qhov tsim nyog kiag li. Lub bootloader tsuas yog txhawb hom no. Muaj ob qhov laj thawj uas peb tau muab qhov no tshem tawm, txawm li cas los xij. Thawj qhov yog cov neeg feem coob tab tom nrhiav cov kab hluav taws xob pheej yig uas tsis txhawb nqa qhov no, thiab kev tsim lub microcontroller los tswj RTS/CTS ntws ntws yog qhov nyuaj me ntsis thiab xav tau ntau dua IO thiab software nyiaj siv ua haujlwm. Cov tsev qiv ntawv feem ntau tsis txhawb nws, yog li cia li kaw nws. Yog tias koj ua teeb meem ntsais koj lub firmware, koj yuav xav tau RTS/CTS muaj peev xwm hloov pauv tau kom rov zoo, txawm li cas los xij. Txhawm rau siv RTS/CTS kev tswj ntws, sib pauv ob lub cim ntawm cov khoom siv. Qhov no txhais tau tias RTS ntawm tus hloov pauv yuav tsum txuas nrog CTS ntawm VMUSIC2 tus qauv, thiab hloov pauv. Thaum kawg, RI yog Qhov Taw Qhia Ntiv Nplhaib, uas tuaj yeem pinged kom tsa VMUSIC2 module tawm ntawm kev tos. Peb yuav tsis siv nws ntawm no thiab nws tsis siv rau hauv kev rov ua haujlwm firmware. Cia li tso nws tsis txuas nrog. Qhov pinout ntawm VMUSIC2:

Kauj ruam 4: Pib Tham

Pib hyperterminal lossis ib qho kev sib txuas lus sib txuas uas koj nyiam thiab tsim kev sib txuas ntawm com chaw nres nkoj ntawm koj lub hloov pauv nrog cov chaw no: 9600 Baud Rate8 Cov Ntaub Ntawv Bits1 Nres BitNo parityNo Handshake lossis Flow ControlKoj kuj tseem xav tau qhib lub ncha hauv zos kom koj pom dab tsi koj tab tom ntaus. Tus VMUSIC module tsis muab cov suab nyob deb. Ua ntej koj tau teeb tsa kev sib txuas, txuas 5V ntawm VMUSIC. Koj yuav tsum pom qhov hais kom sai uas zoo ib yam li qhov no: Ver 03.64-COMVMSC1F On-Line: Tsis Muaj Disk Tsis Txhim Kho Tam sim no ntxig koj flash tsav tsheb, thiab nws yuav tsum tshaj tawm tias lub cuab yeej raug kuaj pom ntawm Chaw Nres Nkoj 2 (P2) thiab muab D: \> tam sim qhia rau koj tias tam sim no nws tau npaj los txais cov lus txib!

Kauj Ruam 5: TODO: Cov lus txib Firmware

Qhov no yuav yog qhov ntev dua, yog li yuav hloov kho tshiab raws li kuv muaj sijhawm. Nov yog ob peb qhov lus txib kom sim: DIR (Sau cov ntaub ntawv hauv daim nplaub tshev tam sim no) CD (hloov cov npe tam sim no) VPF p (tso cov ntawv MP3) VP (ncua thiab rov pib dua) VST (nres rov ua haujlwm) V3A (Ua si tag nrho cov ntaub ntawv hauv cov npe tam sim no) VF (Hla mus rau kab ntawv tom ntej) VB (Hla mus rau txoj kab yav dhau los) VSV (teeb tsa lub ntim. Cov txiaj ntsig siv tau yog nruab nrab ntawm $ 00 max ntim thiab $ FE min ntim - uas yog hex. Qhov ntawd yog 0 txog 254 zauv. Nws tsis hais nws, tab sis kuv twv $ FF tsuas yog MUTE.) Tam sim no, txheeb xyuas Vinculum lub vev xaib thiab rub tawm Vinculum Firmware User Manual. Phau ntawv no qhia txog ntau yam khoom siv sib txawv. Nws tau teeb tsa zoo raws li kev siv yog tias koj twb paub txog qee yam lawm. Ua ntej tshaj plaws, feem ntau ntawm cov khoos phis tawj sib txawv yog ua raws li VDAP cov khoom siv dav dav, thiab cov khoom lag luam tshwj xeeb tsuas yog txuas ntxiv rau qhov ntawd. VMUSIC2 siv VMSC firmware, uas muab cov lus tshwj xeeb rau MP3 rov ua dua thiab kev sib txuas lus nrog VS1003. Ntu 6.8 ntawm phau ntawv qhia siv cov khoom siv tshwj xeeb rau VMSC firmware. Qhov no yog ntu uas koj yuav nyiam tshaj plaws. Ntu 6.0 txog 6.8 yog cov lus txib thoob ntiaj teb, feem ntau yog siv rau disk, nkag tau cov ntaub ntawv, thiab saib xyuas. Kuj tseem muaj qee cov ntaub ntawv hais txog kev siv lwm yam khoom siv hauv USB chaw nres nkoj, xws li tshuab luam ntawv, HID cov cuab yeej, thiab lwm yam. Cov lus 3.1 teev ntau yam khoom siv hauv chav kawm txhawb los ntawm txhua lub khoos phis tawj nkaus xwb. mus rau qhov chaw nres nkoj ntawd. Nws yuav tsum tau sau tseg ntawm no tias ntsaws koj lub khoos phis tawj rau hauv USB chaw nres nkoj ntawm VMUSIC tuaj yeem ua rau puas rau VMUSIC2, koj lub PC, lossis ob qho tib si. Cov kho vajtse hauv VMUSIC tsis txhawb qhov no, txawm hais tias VNC1L nti ua li cas. Kuv tsuas yog sim nws kom deb li deb nrog USB flash drive, tab sis raws li phau ntawv qhia, nws yuav tsum ua haujlwm nrog USB Hard drive, Cov Koob Yees Duab (hauv qhov chaw khaws cia loj), nyeem daim npav, thiab lwm yam … Muaj qee qhov kev txwv, txawm li cas los xij. Cov no tau piav qhia hauv phau ntawv qhia siv tus neeg siv firmware. Sector loj yuav tsum yog 512; ntau pawg pawg zoo li ua haujlwm zoo. Kuv sim qhov no nrog 8GB USB disk tsis muaj teeb meem, tab sis qee qhov lus txib yuav tsis tso tawm qhov raug thaum lub zog loj dua 4GB. Tam sim no, peb feem ntau txhawj xeeb nrog VMSC cov lus txib tshwj xeeb nrog rau ob peb ntawm VDAP lus txib (rau kev taw qhia cov kab ke.) Ib zaug ntxiv, Kuv yuav rov los saib ntu no kom pab ua qee qhov kev nkag siab ntawm txhua qhov no. Tab sis, tam sim no koj muaj cov ntaub ntawv txaus los pib ua si ib puag ncig nrog koj tus qauv. Kuv yuav pib rov sau phau ntawv siv, txawm li cas los xij, vim nws zoo nkauj heev thaum koj paub qhov twg los saib. Kuv tau ua tiav tsim cov ntawv kab ntawv hauv hom INI cov ntaub ntawv, tso cov ntaub ntawv rau hauv ntu cais, thiab tom qab ntawd nyeem nws rov qab ib ntu ib zaug, txhua qhov siv hyperterminal nkaus xwb. Nws yog ib qho yooj yim heev thiab kuv bet koj yuav muaj nws txhua tus xam tawm ua ntej kuv txawm hloov kho qhov no! Muaj kev lom zem!

Pom zoo: