www.tothpal.eu - Logo - Tóthpál István

Menu

  1. Tóthpál István - Home

  2. Weblinks

  3. Curriculum Vitae

  4. Photography

  5. Trips

  6. Fishing

  7. HW Programming

    • Arduino

    • AVR

    • I2C

    • PonyProg

    • SMBus

    • Serial

    • SPI

Serial communication

Old standard communication way between two devices, there are several ways it has implemented.

  • I2C
  • SMBUS
  • SPI

Read more on Wikipedia

SIM800L

I've ordered a SIM800L module for trying to communicate my AVR board with Me. As it has arrived, I've connected to my CH341A USB to Serial/I2C adapter.

Logically very easy to connect, CH341A RX,TX to SIM800L TX,RX (RX to TX and TX to RX). The only problem is that the maximum voltage level of SIM800L UART is 3.3V (I chose 2.8V) and CH341A works with 5V by default, so I have to use a level shifter (e.g. TXS0102). As SIM800L recommended voltage for power supply is 3.4V-4.4V, you should power it from a 3.7V battery, not directly from 5V of USB. Another reason to use battery is that USB current is only 300mA-500mA and SIM800L can use 2A.

Connecting SIM800L through level shifter to CH341A USB serial adapter - Tóthpál István - www.tothpal.eu Connecting SIM800L through level shifter to CH341A USB serial adapter - Tóthpál István - www.tothpal.eu

After the good connection I could access it under /dev/ttyUSBx in my Linux. SIM800L works like old analogue modems, You can manage it with AT commands in a serial monitor. You can choose several programs: screen, putty, ... I used PUTTY now. (It works similar in Windows, just select correct COM port instead of /dev/ttyUSB0.)

Putty configuration - Tóthpál István - www.tothpal.eu SIM800L example AT commands in Putty - Tóthpál István - www.tothpal.eu

Terms and Privacy
Copyright (c)2008-2020 Tóthpál István