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?
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
.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With