Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrating GSM/GPRS modem with Raspberry Pi 3 with Android things

I am trying to make a module with the help of Android Things. I need to send temperature and pressure readings to a server over the internet with the help of GSM/GPRS modem. I am using Raspberry Pi 3 with AndroidThings SDK. I am able to get temperature and pressure readings with the help of BMP 280 sensor but must use external GSM modem to send data to the server. Is it possible to integrate GSM modem with Android Things (Raspberry pi 3)? Where can I get resources to learn and do this, as I am new to Android Things and IoT?

like image 517
Mahendra Chhimwal Avatar asked Apr 02 '17 07:04

Mahendra Chhimwal


3 Answers

Yes, You can integrating JYMG-100 GSM/GPRS modem with Raspberry Pi 3 with Android things. For this You need:

1) hardware UART<->RS232 converter (for example like that) because RP3 has 0..+5V UART input/outputs, but JYMG-100 GSM/GPRS modem - not UART, but RS232 interface with -12..+12V input/outputs, more details see here)

2) implement AT-command control of JYMG-100 GSM/GPRS modem (yes, You need datasheet with JYMG-100 AT-command set, like this for SIM900 GSM/GPRS module, but for common tasks, like SMS processing You can use "standard" AT-commans like that. If You didn't find datasheet for JYMG-100 just open its body and look what GSM/GPRS it use) via RP3 UART like in this tutorial (also this question of proppy is very helpful). So, You just have to sent String with AT-command to JYMG-100 and get and analyze response String.

like image 92
Andrii Omelchenko Avatar answered Nov 05 '22 20:11

Andrii Omelchenko


This is possible. I have been able to integrate SIM800L TO RPI3 running Android Things via UART and AT commands. I am however using it for sending SMS and not for Internet connectivity. I do not see an issue in achieving that as well.

Ensure you use proper voltages for Sim800l module as the range is between 3.7v to 4.2v max and peak current consumption is around 2amps. Use a good quality power supply to prevent network dropouts.

Hope this answers your question.

like image 1
Abhishek Dixit Avatar answered Nov 05 '22 21:11

Abhishek Dixit


Yes, this is possible. Thanks for all the answers above. I worked on integrating SIM900 module in Android things with Raspberry Pi 3 board. I made a sample library project on GitHub as well. I thought It would be helpful for others. Link: https://github.com/MacSimmy/Sim900AndroidThings

like image 2
Mahendra Chhimwal Avatar answered Nov 05 '22 19:11

Mahendra Chhimwal