GSM3Click on raspberry pi

Post your reviews about the boards you have got.
Post Reply
Author
Message
Lauture
Posts: 2
Joined: 08 Apr 2019 13:11

GSM3Click on raspberry pi

#1 Post by Lauture » 08 Apr 2019 13:38

Hi!

I have a project where I use a Raspberry Pi 3B, a Pi 3 click shield and a GSM3 Click on slot number one.

I try "lora.py" to send AT command but no response from GSM3 click board.
Do you have a simple example to send an SMS from raspberry or support to use your click board with raspberry?

Thank you.

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: GSM3Click on raspberry pi

#2 Post by stefan.filipovic » 09 Apr 2019 18:06

Hi,

Welcome to the mikroE forum.

We provide examples and libraries for our click boards only for mikroC/Basic/Pascal for all architectures that we support.
We have posted several examples for Raspberry PI 3 on our GitHub repository, but unfortunately, there is no example for GSM 3 Click board in Python.
Here you can find open-source examples for GSM3 Click written for mikroE compilers.
I think that you can use it as a starting reference in order to write a code in Python.

Kind regards,
Stefan Filipović

Lauture
Posts: 2
Joined: 08 Apr 2019 13:11

Re: GSM3Click on raspberry pi

#3 Post by Lauture » 19 Apr 2019 10:10

Thank you.

In the examples provided the first function is: systemInit();

This function is :
void systemInit()
{
callFlag = 0;
mikrobus_gpioInit( _MIKROBUS1, _MIKROBUS_AN_PIN, _GPIO_INPUT );
mikrobus_gpioInit( _MIKROBUS1, _MIKROBUS_PWM_PIN, _GPIO_OUTPUT );
mikrobus_gpioInit( _MIKROBUS1, _MIKROBUS_INT_PIN, _GPIO_INPUT );
mikrobus_gpioInit( _MIKROBUS1, _MIKROBUS_RST_PIN, _GPIO_OUTPUT );
mikrobus_gpioInit( _MIKROBUS1, _MIKROBUS_CS_PIN, _GPIO_OUTPUT );
mikrobus_uartInit( _MIKROBUS1, &_GSM3_UART_CFG[0] );
mikrobus_logInit( _MIKROBUS2, 9600 );
}

The mikrobus_gpioInit isn't GSM3 click board specific and I didn't find the source code of this function
or the pin matching.

In lthe "Lora"'s example for the raspberry there are only these few lines:
GPIO.setmode(GPIO.BOARD)
GPIO.setup(5, GPIO.OUT)
GPIO.output(5,GPIO.HIGH)
time.sleep(1)
GPIO.output(5,GPIO.HIGH)



Can you help me find the correspondence? thank you very much.

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: GSM3Click on raspberry pi

#4 Post by stefan.filipovic » 30 Apr 2019 13:37

Hi,

Here you can find the source code of the mikroSDK functions.

Also, there are older examples which haven't been written following the mikroSDK standard, so you may find it useful.
https://libstock.mikroe.com/projects/vi ... r-versions

Kind regards,
Stefan Filipović

Post Reply

Return to “Review”