Interfacing Gsm/Gprs/Gnss/Bluetooth Hat With Raspberry Pi 3

As in our previous posts, we make a clear picture about interfacing the GPS, GSM/GPRS modules with Raspberry pi individually. So now its time to integrate these clustered functions in to a single device suited for Raspberry pi. A new module has been introduced with these appended functionalities and it is named as per its properties,  Gsm/Gprs/Gnss/Bluetooth Hat.

Communication system has been attained at its prime level by introducing this module as it prompts the IoT applications along with the location access. All the upcoming electronic systems will be accomplished with this communication schemes. The module will be highlighted when it is being interfaced with a Raspberry pi, as it can easily derive its functionalities. Eventually we can build our own mobile or tablet devices by the integration of these modules or can even up to more.

Here we brought the knowledge of basic interfacing between a Raspberry Pi3 and the HAT module. As in the HAT module, there are two ways for making the connections.

  • USB interfacing
  • GPIO interfacing

Here we make use of a micro USB cable for connecting Raspberry Pi with the HAT module that in-turn provides the suitable power and establish a serial communication.

SIM 868 module is being used in this device which is a complete Quad-Band GSM/GPRS module which combines GNSS technology for satellite navigation. In the left side of the module you can see a yellow jumper connected to the suitable pins. There are four pairs of pins in which the jumpers must be shorted to make three terminal pairs (A,B,C).

A: control the SIM868 through USB TO UART

B: control the SIM868 through Raspberry Pi

C: access Raspberry Pi through USB TO UART

Here we make use of A terminal, ie the jumpers must be connected vertically in the first two pins as shown in the figure given below. 

 Working

  • Power on the raspberry pi module with raspbian OS installed on it. Connect the hat module to the raspberry pi through USB as shown in the first figure. 
  • Insert a sim card to the HAT module to perform GSM operations.
  • After connecting the USB, the pwr led will be in an on state. Press the PWRKEY for 3 seconds and remove it. The STA LED (status) will also be ina an on state.
  • The NET led will blink in a continuous manner and the after obtaining the range for sim card, the blinking rate will be reduced.

Programming

Here we are giving two programs in python for sending messages and for getting the GPS data on Raspberry Pi.

Code for sending messages using Gsm/Gprs/Gnss/Bluetooth Hat

 

Code for getting GPS data using Gsm/Gprs/Gnss/Bluetooth Hat

Before running the code for GPS a GNSS antenna connector must be connected to the Hat module. Connect a GPS antenna to that connector and place the antenna projected to clear sky for GPS initialization.As shown in the figure above make the connections, and run the program given below in python.

Python Shell Results

 Note: To obtain an internet connection through this hat module, Please refer the link given below;

http://www.rhydolabz.com/wiki/?p=16325.(Use /dev/ttyUSB0 for serial communication).

 

 

Shop With US:

 

  • Click here to buy Gsm/Gprs/Gnss/Bluetooth Hat For Raspberry Pi from rhydoLABZ.
  • Click here to buy Raspberry Pi 3 Starter Kit from rhydoLABZ.



 

 

 


Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">