Txoj kev sib txuas ntawm Bluetooth module thiab MCU lub ntsiab yog nyob ntawm hom module koj xaiv. Xav txog qhov project ntse nplhaib uas koj tab tom ua haujlwm, feem ntau muaj ob txoj kev sib txuas tseem ceeb:
1. UART Transparent Transmission Mode (Qhov yooj yim tshaj plaws, haum rau kev pib ceev-nce)
Yog tias koj siv lub pre-flashed module nrog kev sib xyaw ua ke ntawm Bluetooth firmware (xws li E104-BT09, MS52SF1, thiab lwm yam, raws li Telink TLSR8208), lawv feem ntau sib txuas lus nrog MCU ntawmUART pob tshab kis tau tus mob.
Txoj kev sib txuas:
TXD(Module Transmit) txuas mus rau MCU'sRXD(Tau txais)
RXD(Module Txais) txuas rau MCU'sTXD(Kev xa tawm)
GNDtxuas rauGND(Common Av)
VCCtxuas rau3.3V(Power Supply)
Txoj haujlwm ua haujlwm:MCU tsuas yog xav tau xa cov qauv AT cov lus txib ntawm UART los teeb tsa Bluetooth tsis tau (xws li lub npe ntaus ntawv, xa hluav taws xob, thiab lwm yam). Tom qab kev sib txuas tau tsim, txhua cov ntaub ntawv xa los ntawm MCU los ntawm UART yuav raug xa ncaj qha los ntawm Bluetooth, thiab rov ua dua. Txoj kev no tsis xav kom koj dhia tob rau hauv cov txheej txheem Bluetooth txheej txheem, ua kom nws zoo meej rau kev loj hlob sai.
2. Kev cai Docking hom (Mainstream tov, haum rau kev sib sib zog nqus customization)
Yog tias koj tab tom txhim kho kom zoo raws li Telink SDK (piv txwv li, siv Tuya Smart's BLE kev daws teeb meem), ntxiv rau kev sib txuas lus UART yooj yim, koj kuj yuav tsum tau txuas qee qhov.xwm txheej tswj tus pinskom ua tiav qib qis - tswj fais fab thiab cov xwm txheej synchronization.
Kev sib txuas yooj yim:
TX/RX:Hla- txuas nrog MCU, siv rau kev xa cov ntaub ntawv Bluetooth raws tu qauv (DP cov ntaub ntawv qhia thiab tau txais).
Advanced tswj pins (zoo heev pom zoo):
Tsawg- tus pin tswj fais fab (Wakeup/Sleep):MCU siv tus pin no los tso lub module rau hauv hom pw tsaug zog. Rau cov roj teeb- cov khoom siv hluav taws xob zoo li lub nplhaib ntse uas muaj kev nkag siab zoo rau kev siv hluav taws xob, tus pin no yog qhov tseem ceeb heev.
Kev sib txuas lus ceeb toom tus pin (Txuas / Xeev):Thaum lub xov tooj txuas los yog txiav tawm ntawm Bluetooth, lub module yuav tso tawm ib theem siab lossis qis qis los ntawm GPIO no kom ceeb toom rau MCU. Qhov no tso cai rau MCU hloov lub xeev ua haujlwm raws sijhawm (xws li, pw tsaug zog thaum tsis sib txuas, nyob twj ywm thaum txuas).
RST (Reset tus pin):MCU tuaj yeem yuam kom rov pib dua ntawm Bluetooth module los ntawm rub tus pin no qis.
💡 Kho vajtse txuas cov lus qhia rau cov nplhaib ntse:
Txij li qhov chaw sab hauv ntawm lub nplhaib ntse tsis tshua muaj kev txwv thiab nws tau siv los ntawm lub roj teeb, thov ua tib zoo mloog ob lub ntsiab lus hauv qab no thaum tsim cov PCB lossis cov xov hlau ya:
Tsawg- lub zog tsim:Nco ntsoov txuas lub module qis - fais fab tswj tus pin. Thaum MCU pom cov roj teeb qis lossis lub cuab yeej tsis ua haujlwm, nws tuaj yeem ua rau lub Bluetooth module tso rau hauv kev pw tsaug zog kom tsis txhob muaj lub zog tsis zoo.
Lub zog ruaj khov:Bluetooth rub tawm tam sim no loj tam sim no thaum xa cov teeb liab. Nws raug nquahu kom txuas cov khoom siv lim dej tsim nyog ntawm lub module's VCC thiab GND pins txhawm rau tiv thaiv kev hloov pauv ntawm qhov hluav taws xob los ntawm kev ua rau lub module rov pib poob poob qis.


