How to interface Smart G100 Ublox Dev. Board to a PC
-
- Posts: 6
- Joined: 22 Feb 2012 06:37
How to interface Smart G100 Ublox Dev. Board to a PC
Recently (two days back) we procured Smart G100 dev board for Leon G100.
We tried connecting the development board vi RX/TX/VCC/GND of development board with the pc using a max 32 convertor.
a. The max 32 to converter uses a 3-5 volt supply and has 2 pins for RX and TX
b. We connected max32 converter and Smart G100 in the following manner
SMARTG100 MAX 32 conveter \
GND --> GND |
5V --> VCC |---------
RX --> RX |---------DB9 of PC using a RS323 cable
TX --> TX |
/
c. No response to AT commands recieved using terminal. I tried different baud rates 9600/19600/115200 etc. with 8n1
Please help us to get this board working.
We tried connecting the development board vi RX/TX/VCC/GND of development board with the pc using a max 32 convertor.
a. The max 32 to converter uses a 3-5 volt supply and has 2 pins for RX and TX
b. We connected max32 converter and Smart G100 in the following manner
SMARTG100 MAX 32 conveter \
GND --> GND |
5V --> VCC |---------
RX --> RX |---------DB9 of PC using a RS323 cable
TX --> TX |
/
c. No response to AT commands recieved using terminal. I tried different baud rates 9600/19600/115200 etc. with 8n1
Please help us to get this board working.
- janko.kaljevic
- Posts: 3565
- Joined: 16 Jun 2011 13:48
Re: How to interface Smart G100 Ublox Dev. Board to a PC
Hello,
If you are referring at MAX3232 converter, you should connect it as follows:
http://www.mikroe.com/eng/products/view ... 232-board/
Use CN2 connector on the Smart G100 board.
Please notice that you will have to use some external 3.3V source.
Connect Vcc and GND from this source to both Vcc and GND from MAX3232 and SmartG100 board.
Rx from MAX3232 to pin6
Tx to pin7
DIP switch SW1.1 and 1.5 ON.
This way you will be able to establish communication between computer and SmartG100 board.
Best regards.
If you are referring at MAX3232 converter, you should connect it as follows:
http://www.mikroe.com/eng/products/view ... 232-board/
Use CN2 connector on the Smart G100 board.
Please notice that you will have to use some external 3.3V source.
Connect Vcc and GND from this source to both Vcc and GND from MAX3232 and SmartG100 board.
Rx from MAX3232 to pin6
Tx to pin7
DIP switch SW1.1 and 1.5 ON.
This way you will be able to establish communication between computer and SmartG100 board.
Best regards.
-
- Posts: 6
- Joined: 22 Feb 2012 06:37
Re: How to interface Smart G100 Ublox Dev. Board to a PC
I tried the step suggested in the reply but there is no activity from SmartG100
Steps followed
1. Dip switch SW1.1 and SW1.5 are on. All other SW1 switches are off
2. CN2.PIN6 -> RX of our eval board (instead of max 3232)
3. CN2.GND -> GND of our eval board(instead of max 3232)
4. CN2.PIN7 -> TX of our eval board(instead of max 3232)
5. CN2.VCC <- 3.3V of our eval board.
Eval board RX and TX are a USART of a MCU.
Please note that we are able successfully connect other modems with a similar setup.
We just facing issue with SMARTG100.
Steps followed
1. Dip switch SW1.1 and SW1.5 are on. All other SW1 switches are off
2. CN2.PIN6 -> RX of our eval board (instead of max 3232)
3. CN2.GND -> GND of our eval board(instead of max 3232)
4. CN2.PIN7 -> TX of our eval board(instead of max 3232)
5. CN2.VCC <- 3.3V of our eval board.
Eval board RX and TX are a USART of a MCU.
Please note that we are able successfully connect other modems with a similar setup.
We just facing issue with SMARTG100.
- janko.kaljevic
- Posts: 3565
- Joined: 16 Jun 2011 13:48
Re: How to interface Smart G100 Ublox Dev. Board to a PC
Hello,
Please can you tell me which controller are you using.
And if you can send me a picture of your board connected to SmartG100.
Best regards.
Please can you tell me which controller are you using.
And if you can send me a picture of your board connected to SmartG100.
Best regards.
Re: How to interface Smart G100 Ublox Dev. Board to a PC
Hello.
I have brand new Smart-g100 board. I'm trying to connect it to PC. Must I use the MAX circuit between the board and PC or is there options to direct connection?
I have brand new Smart-g100 board. I'm trying to connect it to PC. Must I use the MAX circuit between the board and PC or is there options to direct connection?
-
- Posts: 6
- Joined: 22 Feb 2012 06:37
Re: How to interface Smart G100 Ublox Dev. Board to a PC
We are using energy micro efm32 series micro controller (Geko starter kit)
1. I connected GND,VCC,RX, TX located to the left side of the speaker and mic out (IMG150A.jpg)
2. I connected VCC,GND,CN2.PIN6 and CN2.PIN7 as specifed in the reply to the post (IMG152A.jpg)
In both cases there was no reply
1. I connected GND,VCC,RX, TX located to the left side of the speaker and mic out (IMG150A.jpg)
2. I connected VCC,GND,CN2.PIN6 and CN2.PIN7 as specifed in the reply to the post (IMG152A.jpg)
In both cases there was no reply
- Attachments
-
- IMG150A.jpg
- IMG0152A.JPG (19.03 KiB) Viewed 5413 times
-
- IMG152A.jpg
- IMG0150A.JPG (22.32 KiB) Viewed 5413 times
- janko.kaljevic
- Posts: 3565
- Joined: 16 Jun 2011 13:48
Re: How to interface Smart G100 Ublox Dev. Board to a PC
Hello,
From the picture I can not see how did you power the board.
It should be powered via DC barrel connector.
The best way to test the board is to connect power supply unit, press power on GSM module button for about two seconds, and then try to call number that is inside SIM card holder.
The number should be available and you should hear some noise coming from the module.
And GSM antenna should be connected.
@Antti
You have to use MAX232 or MAX3232 board in order to connect this board to PC. Other option is USB UART board:
http://www.mikroe.com/eng/products/view ... art-board/
Best regards.
From the picture I can not see how did you power the board.
It should be powered via DC barrel connector.
The best way to test the board is to connect power supply unit, press power on GSM module button for about two seconds, and then try to call number that is inside SIM card holder.
The number should be available and you should hear some noise coming from the module.
And GSM antenna should be connected.
@Antti
You have to use MAX232 or MAX3232 board in order to connect this board to PC. Other option is USB UART board:
http://www.mikroe.com/eng/products/view ... art-board/
Best regards.
-
- Posts: 6
- Joined: 22 Feb 2012 06:37
Re: How to interface Smart G100 Ublox Dev. Board to a PC
Please see another two images that show the complete setup of the smartg100. it is powered using a 12v/1.5a dc adapter
Antenna is connected along with the sim in the tray.
I have tried all the SW1 dip switch combinations but there is no response from the modem. I do hold the reset button for 2 secs before i execute any modem command on it.
Antenna is connected along with the sim in the tray.
I have tried all the SW1 dip switch combinations but there is no response from the modem. I do hold the reset button for 2 secs before i execute any modem command on it.
- Attachments
-
- IMG0154A.JPG
- IMG0154A.JPG (13.68 KiB) Viewed 5399 times
-
- IMG0153A.JPG
- IMG0153A.JPG (23.43 KiB) Viewed 5399 times
Re: How to interface Smart G100 Ublox Dev. Board to a PC
Thank you for reply!
Is the point there the fact that signal levels in PC's serial port are much higher than on the board?
Is the point there the fact that signal levels in PC's serial port are much higher than on the board?
-
- Posts: 6
- Joined: 22 Feb 2012 06:37
Re: How to interface Smart G100 Ublox Dev. Board to a PC
Hi
Please note that we are using a max3232 converter for interfacing with the PC and all other modems are working fine with the our max3232 converter.
Moreover we are interfacing smartg100 with the energy micro eval board as shown in previous pictures. We have successfully executed several other modems with this setup. If signal level was an issue we would have faced similar issue with other modems. Infact we use some different Ublox eval board for the same.
I tried calling the modem and yes the modem on smart g100 responds to the call.
We brought this board to get our prototyping faster. We are loosing time and money.
Please provide some viable solution as quickly as possible.
Please note that we are using a max3232 converter for interfacing with the PC and all other modems are working fine with the our max3232 converter.
Moreover we are interfacing smartg100 with the energy micro eval board as shown in previous pictures. We have successfully executed several other modems with this setup. If signal level was an issue we would have faced similar issue with other modems. Infact we use some different Ublox eval board for the same.
I tried calling the modem and yes the modem on smart g100 responds to the call.
We brought this board to get our prototyping faster. We are loosing time and money.
Please provide some viable solution as quickly as possible.
-
- Posts: 6
- Joined: 22 Feb 2012 06:37
Re: How to interface Smart G100 Ublox Dev. Board to a PC
Hi,
We are able get the SmartG100 working. Thanks for the timely help
We are able get the SmartG100 working. Thanks for the timely help
- janko.kaljevic
- Posts: 3565
- Joined: 16 Jun 2011 13:48
Re: How to interface Smart G100 Ublox Dev. Board to a PC
Hello,
Nice to hear that you got it working.
@Antti
Yes you are right.
You need this because of different voltage levels.
Best regards.
Nice to hear that you got it working.
@Antti
Yes you are right.
You need this because of different voltage levels.
Best regards.
-
- Posts: 6
- Joined: 15 Apr 2012 14:23
Re: How to interface Smart G100 Ublox Dev. Board to a PC
How to interface Smart G100 Ublox with pic 16f887a
Re: How to interface Smart G100 Ublox Dev. Board to a PC
hi all,i am recently working on a project that sending AT command to gsm module from stm32vl discovery via usart and receiving response with interrupt but i am very confused about usart interfaces.i cant receive response from gsm module.i am using stm32vl discovery and ublox leon g100 gsm module usart1 and usart3 and terminal.here is my code :
/*----------------------------------------------*/
/*----------------------------------------------*/
#include "stm32f10x.h"
#include "stdio.h"
#include "string.h"
/*----------------------------------------------*/
/*---------function prototypes------------------*/
void RCC_Configuration(void);
void GPIO_Configuration(void);
void NVIC_Configuration(void);
void USART_Configuration(void);
void ResetModule(void);
void USART_SendCommand(unsigned char *s);
/*------------------------------------------------*/
/*-------------global variables-------------------*/
unsigned char command[]="AT\0\r\n";
char response[50];
int res_index=0;
unsigned char r;
/*----------------------------------------------*/
/*----------RCC configurations------------------*/
void RCC_Configuration(void){
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE);
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB, ENABLE);
RCC_APB2PeriphClockCmd(RCC_APB2Periph_USART1, ENABLE);
RCC_APB1PeriphClockCmd(RCC_APB1Periph_USART3, ENABLE);
}
/*----------------------------------------------*/
/*----------GPIO configurations------------------*/
void GPIO_Configuration(void){
GPIO_InitTypeDef GPIO_InitStructure;
/* Configuring USART1_Tx as 'alternate function push-pull' */
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_9;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;
GPIO_Init(GPIOA, &GPIO_InitStructure);
/* Configuring USART1_Rx as 'input floating' */
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_10;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING;
GPIO_Init(GPIOA, &GPIO_InitStructure);
/* Configuring USART3_Tx as 'alternate function push-pull' */
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_10;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;
GPIO_Init(GPIOB, &GPIO_InitStructure);
/* Configuring USART3_Rx as 'input floating' */
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_11;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING;
GPIO_Init(GPIOB, &GPIO_InitStructure);
/* reset the module*/
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_12 | GPIO_Pin_13;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_Init(GPIOB, &GPIO_InitStructure );
}
/*----------------------------------------------*/
/*----------USART configurations----------------*/
void USART_Configuration(void){
USART_InitTypeDef USART_InitStructure;
USART_InitStructure.USART_BaudRate = 9600;
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
USART_InitStructure.USART_StopBits = USART_StopBits_1;
USART_InitStructure.USART_Parity = USART_Parity_No;
USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx;
USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;
USART_Init(USART1, &USART_InitStructure);
USART_Cmd(USART1, ENABLE);
USART_Init(USART3, &USART_InitStructure);
USART_Cmd(USART3, ENABLE);
USART_ITConfig(USART3, USART_IT_RXNE, ENABLE);
}
/*----------------------------------------------*/
/*----------NVIC configurations-----------------*/
void NVIC_Configuration(void){
NVIC_InitTypeDef NVIC_InitStructure;
NVIC_InitStructure.NVIC_IRQChannel = USART3_IRQn;
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);
}
/*----------------------------------------------*/
/*----------RESET module-----------*/
void ResetModule(void){
long int n;
//reset
GPIO_SetBits(GPIOB,GPIO_Pin_13);
for(n = 0;n < 10000000;n++);
GPIO_ResetBits(GPIOB,GPIO_Pin_13);
for(n = 0;n < 30000000;n++);
//power
GPIO_SetBits(GPIOB,GPIO_Pin_12);
for(n = 0;n < 10000000;n++);
GPIO_ResetBits(GPIOB,GPIO_Pin_12);
}
/*----------------------------------------------*/
/*----------Main function-----------------------*/
int main(){
RCC_Configuration();
GPIO_Configuration();
USART_Configuration();
NVIC_Configuration();
ResetModule();
USART_SendCommand(command);
while(1){
}
}
/*----------------------------------------------*/
/*----------Send command------------------------*/
void USART_SendCommand(unsigned char *s)
{
while(*s)
{
//while(USART_GetFlagStatus(USART1, USART_FLAG_TXE) == RESET);
//USART_SendData(USART1, *s);
while(USART_GetFlagStatus(USART3, USART_FLAG_TXE) == RESET);
USART_SendData(USART3, *s++);
}
}
/*----------------------------------------------*/
/*----------Receive character from USART3-------*/
void USART3_IRQHandler(void){
r=USART_ReceiveData(USART3);
response[res_index]=r;
res_index++;
}
/*----------------------------------------------*/
/*--------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------------*/
/*----------------------------------------------*/
/*----------------------------------------------*/
#include "stm32f10x.h"
#include "stdio.h"
#include "string.h"
/*----------------------------------------------*/
/*---------function prototypes------------------*/
void RCC_Configuration(void);
void GPIO_Configuration(void);
void NVIC_Configuration(void);
void USART_Configuration(void);
void ResetModule(void);
void USART_SendCommand(unsigned char *s);
/*------------------------------------------------*/
/*-------------global variables-------------------*/
unsigned char command[]="AT\0\r\n";
char response[50];
int res_index=0;
unsigned char r;
/*----------------------------------------------*/
/*----------RCC configurations------------------*/
void RCC_Configuration(void){
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE);
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB, ENABLE);
RCC_APB2PeriphClockCmd(RCC_APB2Periph_USART1, ENABLE);
RCC_APB1PeriphClockCmd(RCC_APB1Periph_USART3, ENABLE);
}
/*----------------------------------------------*/
/*----------GPIO configurations------------------*/
void GPIO_Configuration(void){
GPIO_InitTypeDef GPIO_InitStructure;
/* Configuring USART1_Tx as 'alternate function push-pull' */
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_9;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;
GPIO_Init(GPIOA, &GPIO_InitStructure);
/* Configuring USART1_Rx as 'input floating' */
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_10;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING;
GPIO_Init(GPIOA, &GPIO_InitStructure);
/* Configuring USART3_Tx as 'alternate function push-pull' */
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_10;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;
GPIO_Init(GPIOB, &GPIO_InitStructure);
/* Configuring USART3_Rx as 'input floating' */
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_11;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING;
GPIO_Init(GPIOB, &GPIO_InitStructure);
/* reset the module*/
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_12 | GPIO_Pin_13;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_Init(GPIOB, &GPIO_InitStructure );
}
/*----------------------------------------------*/
/*----------USART configurations----------------*/
void USART_Configuration(void){
USART_InitTypeDef USART_InitStructure;
USART_InitStructure.USART_BaudRate = 9600;
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
USART_InitStructure.USART_StopBits = USART_StopBits_1;
USART_InitStructure.USART_Parity = USART_Parity_No;
USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx;
USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;
USART_Init(USART1, &USART_InitStructure);
USART_Cmd(USART1, ENABLE);
USART_Init(USART3, &USART_InitStructure);
USART_Cmd(USART3, ENABLE);
USART_ITConfig(USART3, USART_IT_RXNE, ENABLE);
}
/*----------------------------------------------*/
/*----------NVIC configurations-----------------*/
void NVIC_Configuration(void){
NVIC_InitTypeDef NVIC_InitStructure;
NVIC_InitStructure.NVIC_IRQChannel = USART3_IRQn;
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);
}
/*----------------------------------------------*/
/*----------RESET module-----------*/
void ResetModule(void){
long int n;
//reset
GPIO_SetBits(GPIOB,GPIO_Pin_13);
for(n = 0;n < 10000000;n++);
GPIO_ResetBits(GPIOB,GPIO_Pin_13);
for(n = 0;n < 30000000;n++);
//power
GPIO_SetBits(GPIOB,GPIO_Pin_12);
for(n = 0;n < 10000000;n++);
GPIO_ResetBits(GPIOB,GPIO_Pin_12);
}
/*----------------------------------------------*/
/*----------Main function-----------------------*/
int main(){
RCC_Configuration();
GPIO_Configuration();
USART_Configuration();
NVIC_Configuration();
ResetModule();
USART_SendCommand(command);
while(1){
}
}
/*----------------------------------------------*/
/*----------Send command------------------------*/
void USART_SendCommand(unsigned char *s)
{
while(*s)
{
//while(USART_GetFlagStatus(USART1, USART_FLAG_TXE) == RESET);
//USART_SendData(USART1, *s);
while(USART_GetFlagStatus(USART3, USART_FLAG_TXE) == RESET);
USART_SendData(USART3, *s++);
}
}
/*----------------------------------------------*/
/*----------Receive character from USART3-------*/
void USART3_IRQHandler(void){
r=USART_ReceiveData(USART3);
response[res_index]=r;
res_index++;
}
/*----------------------------------------------*/
/*--------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------------*/