Difference between revisions of "Serial"

From ElectroDragon
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
== Hardware ==
 +
Hardware: Use with easy [https://www.electrodragon.com/product/arduino-uno-r3/ microcontroller arduino]
 +
* only need to connect
 +
module serial TX pin -> arduino serial RX pin, which is arduino D0 pin
 +
also connect the common ground.
 +
Hardware: Use with USB-TTL Debugger: [https://www.electrodragon.com/product-tag/usb-ttl/ get a USB-TTL debugger here]
 +
* recommand CP2102, CH340 or FT232.
 +
* Same connect the target module TX (send) pin to USB-TTL debugger RX (receive) pin. Connect debuger USB to PC, use software SSCOM to read it.
 +
* Recommand software SSCOM51, please find in github.
 +
Software: Use with SSCOM
 +
* Switch to english version, supported
 +
* Please double check baudrate, stop bits, etc. For example, HLW8032 is 4800bps, EL125 is 9600bps
 +
* click "AddCrLF" depends on the target
 +
*
 +
 
== Monitor Tool ==
 
== Monitor Tool ==
 
=== Tools ===
 
=== Tools ===

Latest revision as of 00:10, 13 July 2019

Hardware

Hardware: Use with easy microcontroller arduino

  • only need to connect
module serial TX pin -> arduino serial RX pin, which is arduino D0 pin
also connect the common ground.

Hardware: Use with USB-TTL Debugger: get a USB-TTL debugger here

  • recommand CP2102, CH340 or FT232.
  • Same connect the target module TX (send) pin to USB-TTL debugger RX (receive) pin. Connect debuger USB to PC, use software SSCOM to read it.
  • Recommand software SSCOM51, please find in github.

Software: Use with SSCOM

  • Switch to english version, supported
  • Please double check baudrate, stop bits, etc. For example, HLW8032 is 4800bps, EL125 is 9600bps
  • click "AddCrLF" depends on the target

Monitor Tool

Tools

SSCOM Serial USB-TTL testing tool please find here.

The rest

UART USB-TTL

Check here to see the definition of UART in wikipedia.

  • Type of USB-TTL
Type Features Compatiblity Link/Datasheet Driver Price
PL2303HX - Not compatible WIN7 x
PL2303HXD (rev. D) - Compatible WIN7 7.5-10.5
PL2303TA - Compatible WIN7-10, autoupdate 4.5-7.5
CP2102 QFN28 (5x5mm) - 6-8.5
CP2104
  • OTP one time program
  • QFN24 (4x4mm)
  • cheaper than CP2102,
  • 5V compatible
  • RS-485 supported
  • GPIO
- 5-7.5
CH340G
  • Baudrate ~ 2M
Compatible WIN10, online install 1.5-2.5
CH341A
FTDI FT232RL
Holtek HT42B534
  • Baudrate ~ 3M
  • VDDIO supports 1.8~5.5V for DSP
  • integrated crystal+EEPROM to store VID, etc
  • support from XP to WIN10, android 4.0+IOS
WIN10, IOS, Linux Driver free link, Datasheet File:Ht42B534.zip 1-2

Serial Voltage level

Schematic