串口的基礎(chǔ)概念就不描述了,網(wǎng)上好多。產(chǎn)品的串口都是AT指令,注意是非標(biāo)的。和其他廠家的模塊不一樣
波特率出廠默認(rèn)是115200 。上電會自動返回模塊或者芯片的一些參數(shù),如版本、藍(lán)牙名、UUID等等參數(shù)
只要給模塊發(fā)送了正確的數(shù)據(jù),模塊是一定會返回OK或者ER+x等等信息,注意查看
如果在調(diào)試的過程中,遇到問題。請不要著急,冒然懷疑這,懷疑那。因為問題是要一步一步的去解決。
我們做售后遇到的各種客人,其實最終的解決辦法,基本就是如下:無其他
1、先使用“電腦端”的串口調(diào)試助手,把USB轉(zhuǎn)TTL工具的TX和RX短接,看一下自發(fā)自收是否正常
2、檢查一下藍(lán)牙模塊,上電主動返回的串口信息是否有收到。
3、在調(diào)不通的情況下,一定要使用電腦端的串口調(diào)試助手試一下,推薦使用我們提供的。
4、然后發(fā)送一下“AT”指令,看模塊是否會返回“ER+x”信息。如果返回就一切正常
5、還要檢查一下USB轉(zhuǎn)TTL的工具,我們再三聲明,建議使用CH340G的芯片板。因為我們的芯片是弱驅(qū),其他的USB轉(zhuǎn)TTL的模塊,可能會有問題。
6、如果都排查了,最后也是有可能模塊本身不良。但是這種概率極低,就出現(xiàn)一例[2年時間]
If you encounter problems during debugging. Please don't worry, doubt this, doubt that. Because the problem needs to be solved step by step.
In fact, the final solution for all kinds of customers we meet after sales is basically as follows: nothing else
1. First, use the serial port debugging assistant of the "computer end" to short connect the TX and Rx of the USB to TTL tool to see if the spontaneous self collection is normal
2. Check whether the serial port information returned from Bluetooth module is received.
3. In case of failure in debugging, it is necessary to use the serial port debugging assistant of the computer end to try it. It is recommended to use what we provide.
4. Then send the "at" command to see if the module will return the "ER + X" message. If you go back, it's all right
5. Also check the USB to TTL tool. We have repeatedly stated that we recommend using ch340g chip board. Because our chip is a weak drive, other USB to TTL modules may have problems.
6. If all of them are checked, it is possible that the module itself is defective. But the probability is very low, so there is an example [2 years]
聯(lián)系客服