{"id":61615,"date":"2022-06-06T15:30:47","date_gmt":"2022-06-06T19:30:47","guid":{"rendered":"https:\/\/www.engineersgarage.com\/?p=61615"},"modified":"2022-06-22T01:17:08","modified_gmt":"2022-06-22T05:17:08","slug":"articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing","status":"publish","type":"post","link":"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/","title":{"rendered":"RPi Python Programming 20: Interfacing the SIM900A GSM-GPRS modem and hacking earphones"},"content":{"rendered":"<p><span data-preserver-spaces=\"true\">In the <a href=\"https:\/\/www.engineersgarage.com\/raspberrypi\/articles-raspberry-pi-serial-communication-uart-protocol-ttl-port-usb-serial-boards\/\"><strong>previous tutorial<\/strong><\/a>, we learned how to use Raspberry Pi\u2019s (RPi) serial hardware port for serial data communication over the universal asynchronous receiver\/transmitter (UART) protocol. Most of the embedded devices have the\u00a0<\/span><strong><a class=\"_e75a791d-denali-editor-page-rtfLink\" href=\"https:\/\/www.engineersgarage.com\/raspberrypi\/raspberry-pi-serial-communication-uart-protocol-ttl-port-usb-serial-boards\/\" target=\"_blank\" rel=\"noopener noreferrer\">UART port for exchanging console data<\/a><\/strong><span data-preserver-spaces=\"true\">. In fact, most of the sensor modules that are designed for peer communication with controllers\/computers have the UART port for data communication. So, there are several sensor modules that can be interfaced with Raspberry Pi using its UART port.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Remember that RPi\u2019s UART port is 3.3V and it should be connected with the compatible serial port. If the other device has a different UART voltage level, the suitable voltage level shift or serial adaptor must be used. For example, a device with the 5V TTL UART port can connect to RPi\u2019s serial port of using a 5 to 3.3V TTL Logic Shifter.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Similarly, RPi&#8217;s UART port can be connected to the USB interface of a device using a USB-serial board. It can also be connected to the RS-232 port of a device using the RS-232-serial converter.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">The serial ports of sensors and modules can be directly or indirectly interfaced with those of Raspberry Pi and to any desktop computer using a USB-serial board.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">As\u00a0<\/span><strong><a class=\"_e75a791d-denali-editor-page-rtfLink\" href=\"https:\/\/www.engineersgarage.com\/raspberrypi\/rpi-python-programming-06-python-basics\/\" target=\"_blank\" rel=\"noopener noreferrer\">Python<\/a><\/strong><span data-preserver-spaces=\"true\"><strong>\u00a0<\/strong>is platform-independent, the script that works on RPi to receive serial data from a sensor can be used on any desktop computer by simply changing the serial port name.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">In this tutorial, we\u2019ll learn how to interface a SIM900A GSM-GPRS modem with\u00a0<\/span><strong><a class=\"_e75a791d-denali-editor-page-rtfLink\" href=\"https:\/\/www.engineersgarage.com\/raspberrypi\/rpi-python-programming-04-setting-up-raspberry-pi-linux-computer\/\" target=\"_blank\" rel=\"noopener noreferrer\">Raspberry Pi<\/a><\/strong><span data-preserver-spaces=\"true\"><strong>\u00a0<\/strong>and with any desktop computer. We\u2019ll also discuss how to hack an ordinary earphone to make and receive voice calls over a SIM900A modem.\u00a0<\/span><\/p>\n<p><strong><span data-preserver-spaces=\"true\">Wireless modems<\/span><\/strong><span data-preserver-spaces=\"true\"><br \/>\n<\/span><span data-preserver-spaces=\"true\">Wireless connectivity is a widely accepted solution for data communication over long distances. For M2M IoT solutions, mobile connectivity is the only resort to guarantee data transfer with mobile devices and remotely-deployed \u201cThings.\u201d There are many wireless modules available from different vendors that can be used for data communication over a mobile network. These wireless modules are generally classified by the mobile network technology (2G, 3G, 4G, or 5G) or by the technology platform they use (GSM\/GPRS, GSM\/GPRS+GNSS, WCDMA\/HSPA\/HSPA+, LTE, NB-IoT, or GNSS).<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">These wireless modules are capable of communicating data in the form of voice calls, SMS, GPRS, faxes, and the Internet (TCP\/IP, IP, HTTP, and FTP protocols).\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">SIMCOM is one of the largest vendors of wireless modules. Different wireless modems available from SIMCOM Limited for mobile connectivity are listed in this table:<\/span><\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-1-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-61616\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-1-1-300x134.jpg\" alt=\"\" width=\"701\" height=\"313\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-1-1-300x134.jpg 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-1-1-768x342.jpg 768w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-1-1-368x164.jpg 368w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-1-1.jpg 936w\" sizes=\"auto, (max-width: 701px) 100vw, 701px\" \/><\/a><\/p>\n<p>On the basis of the technology platform, the SIMCOM modules are listed in this table:<\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-2-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-61617\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-2-2-300x63.jpg\" alt=\"\" width=\"701\" height=\"147\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-2-2-300x63.jpg 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-2-2-768x162.jpg 768w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-2-2-368x78.jpg 368w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-2-2.jpg 936w\" sizes=\"auto, (max-width: 701px) 100vw, 701px\" \/><\/a><\/p>\n<p>Although 4G and 5G wireless modules are advanced modems offering the high speeds and features of 4G and 5G technologies, 2G wireless modules are still widely used in embedded applications. The 2G wireless modules are less costly and offer an optimum wireless solution where speed and latency are not an issue.<\/p>\n<p><strong>The SIM900A GSM-GPRS modem<\/strong><span data-preserver-spaces=\"true\"><strong>\u00a0\u00a0<\/strong><br \/>\n<\/span><span data-preserver-spaces=\"true\">SIM900 is a 2G wireless module that offers a Quad-Band 850\/900\/1800\/1900 MHz GSM-GPRS solution. The modem features GPRS multi-slot class 10\/class 8 (optional) and supports CS-1, CS-2, CS-3, and CS-4 GPRS encoding schemes.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">This ultra-compact modem requires a supply voltage of 3.2 to 4.8V. It can be controlled via AT commands (GSM 07.07, 07.05, and SIMCOM enhanced AT Commands), which can be communicated through the serial interface (UART), I2C, and SPI.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">It also has a single interface to an external SIM 3V\/1.8V in which the\u00a0<\/span><strong><a class=\"_e75a791d-denali-editor-page-rtfLink\" href=\"https:\/\/www.engineersgarage.com\/tech-articles\/esim-embedded-sim-internet-of-things-iot\/\" target=\"_blank\" rel=\"noopener noreferrer\">Mini-SIM (2FF Form Factor), Micro-SIM (3FF Form Factor) and, NanoSIM (4FF Form Factor)<\/a><\/strong><span data-preserver-spaces=\"true\"><strong>\u00a0<\/strong>can be plugged in.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">The modem is equipped with a GPIO, PWM, ADC, and an analog audio interface so that it can have a MIC and audio and speaker input, as well as a display and keypad interface. It also comes with a built-in RTC.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Some of the prominent features of SIM900A modem are listed here:<\/span><\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-3-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-61618\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-3-2-300x120.jpg\" alt=\"\" width=\"703\" height=\"281\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-3-2-300x120.jpg 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-3-2-768x308.jpg 768w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-3-2-368x148.jpg 368w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-3-2.jpg 878w\" sizes=\"auto, (max-width: 703px) 100vw, 703px\" \/><\/a><\/p>\n<p>The SIM900A modem has this pin diagram:<\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-01-SIM900A-GSM-Module-Pinout.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-61619\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-01-SIM900A-GSM-Module-Pinout-298x300.png\" alt=\"\" width=\"650\" height=\"654\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-01-SIM900A-GSM-Module-Pinout-298x300.png 298w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-01-SIM900A-GSM-Module-Pinout-150x150.png 150w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-01-SIM900A-GSM-Module-Pinout-768x774.png 768w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-01-SIM900A-GSM-Module-Pinout-236x238.png 236w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-01-SIM900A-GSM-Module-Pinout.png 900w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/a><\/p>\n<p>The SIM900A modem has this pin configuration:<\/p>\n<p><span style=\"color: #0000ff;\"><strong><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-4Final.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-61642\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-4Final-236x300.jpg\" alt=\"\" width=\"629\" height=\"799\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-4Final-236x300.jpg 236w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-4Final-187x238.jpg 187w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-4Final.jpg 562w\" sizes=\"auto, (max-width: 629px) 100vw, 629px\" \/><\/a><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-4a-FINAL.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-61643\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-4a-FINAL-300x146.jpg\" alt=\"\" width=\"630\" height=\"306\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-4a-FINAL-300x146.jpg 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-4a-FINAL-368x179.jpg 368w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Table-4a-FINAL.jpg 566w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/a><\/strong><\/span><strong>Hardware &amp; wiring<\/strong><span data-preserver-spaces=\"true\"><strong>\u00a0\u00a0<\/strong><br \/>\n<\/span><span data-preserver-spaces=\"true\">It\u2019s fairly easy to wire the modem.\u00a0<\/span><\/p>\n<ul>\n<li><span data-preserver-spaces=\"true\">The power supply pins 57, 56, and 55 should be connected to a 5V DC supply that\u2019s capable of 2A bursts.\u00a0<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">The ground can be provided at pin 54 of the modem.\u00a0<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">The SIM card slot should be wired to pins 30 (the voltage supply for SIM card), 31 (the SIM data output), 32 (the SIM clock), 33 (the SIM reset), and 34 (the SIM detect).<\/span><\/li>\n<\/ul>\n<p><span data-preserver-spaces=\"true\">The connections to the SIM card slot will depend on the type of SIM cardholder used for assembling the module. The image below shows the reference circuit for connections between SIM900A and an 8-pin SIM cardholder.<\/span><\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-02-8-Pin-SIM-card-holder.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-61620\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-02-8-Pin-SIM-card-holder-300x151.png\" alt=\"\" width=\"704\" height=\"354\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-02-8-Pin-SIM-card-holder-300x151.png 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-02-8-Pin-SIM-card-holder-768x387.png 768w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-02-8-Pin-SIM-card-holder-368x185.png 368w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-02-8-Pin-SIM-card-holder.png 798w\" sizes=\"auto, (max-width: 704px) 100vw, 704px\" \/><\/a><\/p>\n<p>Now, the antenna must be connected to pin 60. To power ON\/OFF the modem, a push button can be interfaced between pin 1 (PWRKEY) and pin 2 (PWRKEY_OUT). For the MIC input, pins 19 (microphone positive) and 20 (microphone negative) should be connected to a header.<\/p>\n<p>Similarly, for speaker connections, pins 21 (speaker positive) and 22 (speaker negative) should also be connected to a header. For communicating with the modem over the UART protocol, pin 9 (serial transmission), 10 (serial receive), and 17 (ground) should be connected to a header.<\/p>\n<p>The Txd and Rxd of SIM900A must connect to the Rxd and Txd of the controller\/computer, respectively. The headers for serial communication over other protocols (I2C and SPI) can also be provided similarly. Additionally, the circuit connections for the UART hardware and software flow control can be provided through a header if required.<\/p>\n<p>A reference circuit for SIM900A module is shown here:<\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-03.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-61621\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-03-300x253.png\" alt=\"\" width=\"701\" height=\"591\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-03-300x253.png 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-03-768x647.png 768w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-03-283x238.png 283w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-03.png 1000w\" sizes=\"auto, (max-width: 701px) 100vw, 701px\" \/><\/a><\/p>\n<p>You can design your own SIM900A module. The <a href=\"https:\/\/simcom.ee\/documents\/SIM900\/AN_SIM900%20Reference%20Design%20Guide_V1.02.pdf\">SIM900 Reference Design Guide<\/a> is quite useful for this process. There are several ready-to-use modules for the SIM900A GSM-GPRS modem available in the market.<\/p>\n<p>Here\u2019s one example:<\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-04-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-61622\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-04-300x225.jpg\" alt=\"\" width=\"655\" height=\"492\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-04-300x225.jpg 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-04-1024x768.jpg 1024w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-04-768x576.jpg 768w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-04-1536x1152.jpg 1536w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-04-2048x1536.jpg 2048w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-04-317x238.jpg 317w\" sizes=\"auto, (max-width: 655px) 100vw, 655px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-05-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-61623 aligncenter\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-05-300x225.jpg\" alt=\"\" width=\"651\" height=\"489\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-05-300x225.jpg 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-05-1024x768.jpg 1024w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-05-768x576.jpg 768w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-05-1536x1152.jpg 1536w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-05-2048x1536.jpg 2048w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-05-317x238.jpg 317w\" sizes=\"auto, (max-width: 651px) 100vw, 651px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-06-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-61624 aligncenter\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-06-300x225.jpg\" alt=\"\" width=\"651\" height=\"488\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-06-300x225.jpg 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-06-1024x768.jpg 1024w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-06-768x576.jpg 768w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-06-1536x1152.jpg 1536w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-06-2048x1536.jpg 2048w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-06-317x238.jpg 317w\" sizes=\"auto, (max-width: 651px) 100vw, 651px\" \/><\/a><\/p>\n<p><span data-preserver-spaces=\"true\">Note that this module has:\u00a0<\/span><\/p>\n<ul>\n<li><span data-preserver-spaces=\"true\">A power supply socket that can be connected to an AC-to-DC adapter<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">A SIM cardholder at its back<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Headers for the UART communication<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">A MIC and speaker input, as well as serial modem lines.\u00a0<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Also, the status LEDs and buzzer are connected in the module.<\/span><\/li>\n<\/ul>\n<p><strong>Interfacing the SIM900A GSM-GPRS module<\/strong><span data-preserver-spaces=\"true\"><strong>\u00a0 \u00a0<\/strong><br \/>\n<\/span><span data-preserver-spaces=\"true\">It\u2019s easy to interface the SIM900A module with Raspberry Pi, microcontrollers, and even desktop computers. You can use the UART, I2C, or SPI interfaces to connect the module serially with a controlling device.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">For communicating over the UART protocol, simply connect the Txd and Rxd of the module with RPi\u2019s Rxd and Txd using a 5 to 3.3V TTL Logic Shifter.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Remember that SIM900A is a 5V device with a 5V UART port. So, its UART port cannot be directly interfaced with RPi\u2019s serial hardware port. But a simple 5V-3V3 Voltage Shifter can be designed using a 1N4148 diode.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Here\u2019s a circuit diagram:\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-07.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-61625\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-07-300x197.png\" alt=\"\" width=\"649\" height=\"425\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-07-300x197.png 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-07-362x238.png 362w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-07.png 491w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/a>For making and receiving voice calls, the MIC and speaker input can be used&#8230;<\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-08-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-61626\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-08-300x225.jpg\" alt=\"\" width=\"651\" height=\"488\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-08-300x225.jpg 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-08-1024x768.jpg 1024w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-08-768x576.jpg 768w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-08-1536x1152.jpg 1536w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-08-2048x1536.jpg 2048w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-08-317x238.jpg 317w\" sizes=\"auto, (max-width: 651px) 100vw, 651px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-09-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-61627 aligncenter\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-09-300x225.jpg\" alt=\"\" width=\"656\" height=\"492\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-09-300x225.jpg 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-09-1024x768.jpg 1024w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-09-768x576.jpg 768w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-09-1536x1152.jpg 1536w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-09-2048x1536.jpg 2048w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-09-317x238.jpg 317w\" sizes=\"auto, (max-width: 656px) 100vw, 656px\" \/><\/a><\/p>\n<p>Next, insert a SIM card in the SIM cardholder, power the module with an adapter, and it&#8217;s ready to operate.<\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-10-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-61628 aligncenter\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-10-300x225.jpg\" alt=\"\" width=\"651\" height=\"487\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-10-300x225.jpg 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-10-1024x768.jpg 1024w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-10-768x576.jpg 768w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-10-1536x1152.jpg 1536w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-10-2048x1536.jpg 2048w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-10-317x238.jpg 317w\" sizes=\"auto, (max-width: 651px) 100vw, 651px\" \/><\/a><\/p>\n<p>For connecting the module with Arduino or any other 5V microcontroller, the UART port of the SIM900A modem can be directly connected to Arduino\u2019s serial port (or a 5V controller).<\/p>\n<p>It\u2019s also possible to interface the modem with any desktop computer. It can be serially connected to any desktop system using a USB-serial board. However, the board must be configured to use 5V UART signals<\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-11-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-61629 aligncenter\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-11-300x225.jpg\" alt=\"\" width=\"652\" height=\"489\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-11-300x225.jpg 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-11-1024x768.jpg 1024w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-11-768x576.jpg 768w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-11-1536x1152.jpg 1536w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-11-2048x1536.jpg 2048w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-11-317x238.jpg 317w\" sizes=\"auto, (max-width: 652px) 100vw, 652px\" \/><\/a><\/p>\n<p><strong>Hacking earphones to receive\/make voice calls<br \/>\n<\/strong>A typical earphone can serve as the MIC and speaker input for the SIM900A modem.<\/p>\n<p>This image shows the pin configuration of common headset connectors:<\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-61630 aligncenter\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-12-300x169.png\" alt=\"\" width=\"653\" height=\"368\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-12-300x169.png 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-12-1024x576.png 1024w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-12-768x432.png 768w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-12-368x207.png 368w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-12.png 1280w\" sizes=\"auto, (max-width: 653px) 100vw, 653px\" \/><\/a><\/p>\n<p>For both MIC and speaker input, a headset or earphones with a microphone and speakers are required. The standard (Apple) connector is quite common in headsets and earphones for computers and mobile phones.<\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-13.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-61631 aligncenter\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-13-300x169.png\" alt=\"\" width=\"652\" height=\"368\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-13-300x169.png 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-13-1024x576.png 1024w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-13-768x432.png 768w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-13-368x207.png 368w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-13.png 1280w\" sizes=\"auto, (max-width: 652px) 100vw, 652px\" \/><\/a><\/p>\n<p>The microphone and speaker are internally connected to the connector like this:<\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-14.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-61632\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-14-300x169.png\" alt=\"\" width=\"701\" height=\"395\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-14-300x169.png 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-14-1024x576.png 1024w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-14-768x432.png 768w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-14-368x207.png 368w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-14.png 1280w\" sizes=\"auto, (max-width: 701px) 100vw, 701px\" \/><\/a>Here are the next steps:<\/p>\n<ul>\n<li>Solder two wires\/jumper wires to the ground of the connector (for the MIC negative and speaker negative)<\/li>\n<li>Short the right and left audio of the connector (as there\u2019s only one speaker input on the header)<\/li>\n<li>Solder a wire\/jumper wire (for the speaker positive) to the shorted right and left audio of the connector<\/li>\n<li>Solder a wire\/jumper wire (for the MIC positive) to the microphone of the connector.<\/li>\n<\/ul>\n<p>For a clean solder, the connector can be stripped from the headset\/earphone wire and the jumper wires can be directly soldered to the respective wires of microphone and speaker connections.<\/p>\n<p>Typically, the headset\/earphone cable will have this color coding:<\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-15.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-61634 aligncenter\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-15-300x169.png\" alt=\"\" width=\"652\" height=\"367\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-15-300x169.png 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-15-1024x576.png 1024w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-15-768x432.png 768w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-15-368x207.png 368w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-15.png 1280w\" sizes=\"auto, (max-width: 652px) 100vw, 652px\" \/><\/a><\/p>\n<p>After soldering the jumper wires to the headset\/earphone, it should appear similar to this:<\/p>\n<p><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-16-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-61635 aligncenter\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-16-300x225.jpg\" alt=\"\" width=\"652\" height=\"489\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-16-300x225.jpg 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-16-1024x768.jpg 1024w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-16-768x576.jpg 768w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-16-1536x1152.jpg 1536w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-16-2048x1536.jpg 2048w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/20R-16-317x238.jpg 317w\" sizes=\"auto, (max-width: 652px) 100vw, 652px\" \/><\/a><\/p>\n<p><span data-preserver-spaces=\"true\">Most of the computer\/mobile headsets and earphones draw low current and are already 5V TTL compatible.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Any 8-ohm speakers can also be connected to the SIM900A. However, to hack and connect the headset\/earphone to the SIM900A, it must have an 8-ohm impedance.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">For a better audio experience, the headset reference circuit or 1-Watt audio power amplifier is recommended (and supported in the SIM900A Reference Design Guide).\u00a0<\/span><\/p>\n<p><strong>How the SIM900A modem works<\/strong><span data-preserver-spaces=\"true\"><strong>\u00a0<\/strong><br \/>\n<\/span><span data-preserver-spaces=\"true\">The SIM900A GSM-GPRS modem can be controlled over the UART, I2C, or SPI interfaces. It simply needs to be serially connected to a controlling device, which can be RPi, Arduino, a microcontroller, or any desktop computer (via the USB-serial board).\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">The modem understands AT commands that can be passed to it through the\u00a0<\/span><strong><a class=\"_e75a791d-denali-editor-page-rtfLink\" href=\"https:\/\/www.engineersgarage.com\/microcontroller-projects\/articles-raspberry-pi-serial-communication-uart-protocol-serial-linux-devices\/\" target=\"_blank\" rel=\"noopener noreferrer\">UART<\/a><\/strong><span data-preserver-spaces=\"true\">, I2C, or SPI protocol. The controlling device is called terminal equipment (TE) or data terminal equipment (DTE). The modem may be referred to as mobile equipment (ME), mobile station (MS), terminal adapter (TA), or data communication equipment (DCE).\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">With the help of the AT commands, the modem can be checked, configured, and operated for making and receiving voice calls, faxes, GPRS data (SMS), MMS, as well as data over TCP\/IP, IP, HTTP, and FTP protocols.\u00a0<\/span><\/p>\n<p><em>In the next tutorial, we\u2019ll cover many of the AT commands for the SIM900A GSM-GPRS modem.\u00a0<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the previous tutorial, we learned how to use Raspberry Pi\u2019s (RPi) serial hardware port for serial data communication over the universal asynchronous receiver\/transmitter (UART) protocol. Most of the embedded devices have the\u00a0UART port for exchanging console data. In fact, most of the sensor modules that are designed for peer communication with controllers\/computers have the&hellip;<\/p>\n","protected":false},"author":387,"featured_media":61644,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[3993],"tags":[],"class_list":{"2":"type-post","8":"entry","9":"has-post-thumbnail"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.2 (Yoast SEO v25.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>RPi Python Programming 20: Interfacing the SIM900A GSM-GPRS modem and hacking earphones<\/title>\n<meta name=\"description\" content=\"Learn how to interface the SIM900A GSM-GPRS module with Raspberry Pi, Arduino, and computers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RPi Python Programming 20: Interfacing the SIM900A GSM-GPRS modem and hacking earphones\" \/>\n<meta property=\"og:description\" content=\"Learn how to interface the SIM900A GSM-GPRS module with Raspberry Pi, Arduino, and computers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/\" \/>\n<meta property=\"og:site_name\" content=\"Engineers Garage\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/engineersgarage\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Rotator-3.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Nikhil Agnihotri\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EngineersGarage\" \/>\n<meta name=\"twitter:site\" content=\"@EngineersGarage\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nikhil Agnihotri\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/\"},\"author\":{\"name\":\"Nikhil Agnihotri\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/person\/3c71105e3b40a1fd12c79c15602914b6\"},\"headline\":\"RPi Python Programming 20: Interfacing the SIM900A GSM-GPRS modem and hacking earphones\",\"datePublished\":\"2022-06-06T19:30:47+00:00\",\"dateModified\":\"2022-06-22T05:17:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/\"},\"wordCount\":1675,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Rotator-3.jpg\",\"articleSection\":[\"Raspberry pi\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/\",\"url\":\"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/\",\"name\":\"RPi Python Programming 20: Interfacing the SIM900A GSM-GPRS modem and hacking earphones\",\"isPartOf\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Rotator-3.jpg\",\"datePublished\":\"2022-06-06T19:30:47+00:00\",\"dateModified\":\"2022-06-22T05:17:08+00:00\",\"description\":\"Learn how to interface the SIM900A GSM-GPRS module with Raspberry Pi, Arduino, and computers.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/#primaryimage\",\"url\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Rotator-3.jpg\",\"contentUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Rotator-3.jpg\",\"width\":800,\"height\":600,\"caption\":\"OLYMPUS DIGITAL CAMERA\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.engineersgarage.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RPi Python Programming 20: Interfacing the SIM900A GSM-GPRS modem and hacking earphones\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.engineersgarage.com\/#website\",\"url\":\"https:\/\/www.engineersgarage.com\/\",\"name\":\"Engineers Garage\",\"description\":\"Electronic Projects, Electrical Engineering Resources, Makers Articles and Product News\",\"publisher\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.engineersgarage.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.engineersgarage.com\/#organization\",\"name\":\"Engineer's Garage - WTWH Media\",\"url\":\"https:\/\/www.engineersgarage.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png\",\"contentUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png\",\"width\":372,\"height\":52,\"caption\":\"Engineer's Garage - WTWH Media\"},\"image\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/engineersgarage\",\"https:\/\/x.com\/EngineersGarage\",\"https:\/\/www.youtube.com\/channel\/UC0VITh11JSYk-UW7toLebUw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/person\/3c71105e3b40a1fd12c79c15602914b6\",\"name\":\"Nikhil Agnihotri\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d26b31563fa36169891c8c7d312e9b33de8a0e3da1340ec14ef2de84d5c43497?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d26b31563fa36169891c8c7d312e9b33de8a0e3da1340ec14ef2de84d5c43497?s=96&r=g\",\"caption\":\"Nikhil Agnihotri\"},\"url\":\"https:\/\/www.engineersgarage.com\/author\/nikhil-agnihotri\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"RPi Python Programming 20: Interfacing the SIM900A GSM-GPRS modem and hacking earphones","description":"Learn how to interface the SIM900A GSM-GPRS module with Raspberry Pi, Arduino, and computers.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/","og_locale":"en_US","og_type":"article","og_title":"RPi Python Programming 20: Interfacing the SIM900A GSM-GPRS modem and hacking earphones","og_description":"Learn how to interface the SIM900A GSM-GPRS module with Raspberry Pi, Arduino, and computers.","og_url":"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/","og_site_name":"Engineers Garage","article_publisher":"https:\/\/www.facebook.com\/engineersgarage","og_image":[{"width":800,"height":600,"url":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Rotator-3.jpg","type":"image\/jpeg"}],"author":"Nikhil Agnihotri","twitter_card":"summary_large_image","twitter_creator":"@EngineersGarage","twitter_site":"@EngineersGarage","twitter_misc":{"Written by":"Nikhil Agnihotri","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/#article","isPartOf":{"@id":"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/"},"author":{"name":"Nikhil Agnihotri","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/person\/3c71105e3b40a1fd12c79c15602914b6"},"headline":"RPi Python Programming 20: Interfacing the SIM900A GSM-GPRS modem and hacking earphones","datePublished":"2022-06-06T19:30:47+00:00","dateModified":"2022-06-22T05:17:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/"},"wordCount":1675,"commentCount":0,"publisher":{"@id":"https:\/\/www.engineersgarage.com\/#organization"},"image":{"@id":"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/#primaryimage"},"thumbnailUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Rotator-3.jpg","articleSection":["Raspberry pi"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/","url":"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/","name":"RPi Python Programming 20: Interfacing the SIM900A GSM-GPRS modem and hacking earphones","isPartOf":{"@id":"https:\/\/www.engineersgarage.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/#primaryimage"},"image":{"@id":"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/#primaryimage"},"thumbnailUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Rotator-3.jpg","datePublished":"2022-06-06T19:30:47+00:00","dateModified":"2022-06-22T05:17:08+00:00","description":"Learn how to interface the SIM900A GSM-GPRS module with Raspberry Pi, Arduino, and computers.","breadcrumb":{"@id":"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/#primaryimage","url":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Rotator-3.jpg","contentUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Rotator-3.jpg","width":800,"height":600,"caption":"OLYMPUS DIGITAL CAMERA"},{"@type":"BreadcrumbList","@id":"https:\/\/www.engineersgarage.com\/articles-raspberry-pi-sim900a-gsm-gprs-modem-interfacing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.engineersgarage.com\/"},{"@type":"ListItem","position":2,"name":"RPi Python Programming 20: Interfacing the SIM900A GSM-GPRS modem and hacking earphones"}]},{"@type":"WebSite","@id":"https:\/\/www.engineersgarage.com\/#website","url":"https:\/\/www.engineersgarage.com\/","name":"Engineers Garage","description":"Electronic Projects, Electrical Engineering Resources, Makers Articles and Product News","publisher":{"@id":"https:\/\/www.engineersgarage.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.engineersgarage.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.engineersgarage.com\/#organization","name":"Engineer's Garage - WTWH Media","url":"https:\/\/www.engineersgarage.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png","contentUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png","width":372,"height":52,"caption":"Engineer's Garage - WTWH Media"},"image":{"@id":"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/engineersgarage","https:\/\/x.com\/EngineersGarage","https:\/\/www.youtube.com\/channel\/UC0VITh11JSYk-UW7toLebUw"]},{"@type":"Person","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/person\/3c71105e3b40a1fd12c79c15602914b6","name":"Nikhil Agnihotri","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d26b31563fa36169891c8c7d312e9b33de8a0e3da1340ec14ef2de84d5c43497?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d26b31563fa36169891c8c7d312e9b33de8a0e3da1340ec14ef2de84d5c43497?s=96&r=g","caption":"Nikhil Agnihotri"},"url":"https:\/\/www.engineersgarage.com\/author\/nikhil-agnihotri\/"}]}},"featured_image_src":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Rotator-3.jpg","featured_image_src_square":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2020\/07\/Rotator-3.jpg","author_info":{"display_name":"Nikhil Agnihotri","author_link":"https:\/\/www.engineersgarage.com\/author\/nikhil-agnihotri\/"},"_links":{"self":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/posts\/61615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/users\/387"}],"replies":[{"embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/comments?post=61615"}],"version-history":[{"count":0,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/posts\/61615\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/media\/61644"}],"wp:attachment":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/media?parent=61615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/categories?post=61615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/tags?post=61615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}