2016-07-13 2 views
0

DHT11モジュール、ESP8266チップ、標準FTDIチップを使用して温度と湿度のデータをデータベースに送信しようとすると、私のプログラムをモジュールにアップロードするとき:DHTとESP8266のインタフェース時に奇妙なエラーが発生する - データが絶え間なく変化するタイプ

esptool v0.4.8 - (c) 2014 Ch. Klippel <[email protected]> 
    setting board to ck 
    setting baudrate from 115200 to 115200 
    setting port from COM1 to COM20 
    setting address from 0x00000000 to 0x00000000 
    espcomm_upload_file 
    espcomm_upload_mem 
    setting serial port timeouts to 1000 ms 
opening bootloader 
resetting board 
trying to connect 
    flush start 
    setting serial port timeouts to 1 ms 
    setting serial port timeouts to 1000 ms 
    flush complete 
    espcomm_send_command: sending command header 
    espcomm_send_command: sending command payload 
    serialport_receive_C0: 9C instead of C0 
trying to connect 
    flush start 
    setting serial port timeouts to 1 ms 
    setting serial port timeouts to 1000 ms 
    flush complete 
    espcomm_send_command: sending command header 
    espcomm_send_command: sending command payload 
    espcomm_send_command: receiving 27847 bytes of data 
    serialport_receive_C0: 62 instead of C0 
trying to connect 
    flush start 
    setting serial port timeouts to 1 ms 
    setting serial port timeouts to 1000 ms 
    flush complete 
    espcomm_send_command: sending command header 
    espcomm_send_command: sending command payload 
    serialport_receive_C0: 03 instead of C0 
resetting board 
trying to connect 
    flush start 
    setting serial port timeouts to 1 ms 
    setting serial port timeouts to 1000 ms 
    flush complete 
    espcomm_send_command: sending command header 
    espcomm_send_command: sending command payload 
    serialport_receive_C0: C7 instead of C0 
trying to connect 
    flush start 
    setting serial port timeouts to 1 ms 
    setting serial port timeouts to 1000 ms 
    flush complete 
    espcomm_send_command: sending command header 
    espcomm_send_command: sending command payload 
    serialport_receive_C0: 1B instead of C0 
trying to connect 
    flush start 
    setting serial port timeouts to 1 ms 
    setting serial port timeouts to 1000 ms 
    flush complete 
    espcomm_send_command: sending command header 
    espcomm_send_command: sending command payload 
    serialport_receive_C0: 03 instead of C0 
resetting board 
trying to connect 
    flush start 
    setting serial port timeouts to 1 ms 
    setting serial port timeouts to 1000 ms 
    flush complete 
    espcomm_send_command: sending command header 
    espcomm_send_command: sending command payload 
    serialport_receive_C0: 1C instead of C0 
trying to connect 
    flush start 
    setting serial port timeouts to 1 ms 
    setting serial port timeouts to 1000 ms 
    flush complete 
    espcomm_send_command: sending command header 
    espcomm_send_command: sending command payload 
    espcomm_send_command: receiving 539 bytes of data 
    serialport_receive_C0: 62 instead of C0 
trying to connect 
    flush start 
    setting serial port timeouts to 1 ms 
    setting serial port timeouts to 1000 ms 
    flush complete 
    espcomm_send_command: sending command header 
    espcomm_send_command: sending command payload 
    serialport_receive_C0: C7 instead of C0 

コードはうまくいきますが、ハードウェアの問題だと私は信じています。

+0

フォーマット済みのログをコードとして出力します。 –

答えて

0

ボーレートが低いと、より安定している可能性があります。 また、CP2102ベースのシリアルインターフェイスを試してみることもできます。多くの人がFTDIの問題を抱えているようです。

+0

私はボーレートのすべてのバリエーションを試して、同じものを出力しました。残念ながら、私はFTDIを使用する必要があります。 – pulsar100

+0

これは残念です:)配線はどうですか?あなたはFTDIからESPに力を入れていませんか? ESPに電源を供給してみることもできますが、GNDを接続したままにしておいてください。また、いくつかのコンデンサを追加するのに役立つかもしれません。ちょうどソフトウェアの問題がある場合には、出力だけでなく使用しているコマンドを実際に追加することもできます。例えば、EspressifフラッシュツールとそのATファームウェアを試してみてください。 SDK。 – cranphin

関連する問題