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.
GSM3Click on raspberry pi
- stefan.filipovic
- mikroElektronika team
- Posts: 1135
- Joined: 18 Dec 2018 10:30
Re: GSM3Click on raspberry pi
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,
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ć
Re: GSM3Click on raspberry pi
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.
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.
- stefan.filipovic
- mikroElektronika team
- Posts: 1135
- Joined: 18 Dec 2018 10:30
Re: GSM3Click on raspberry pi
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,
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ć