SIM900 stm32 interfacing problem.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2014-03-27 3:29 PM
Posted on March 27, 2014 at 23:29
I am working on SIM900 stm32 interfacing.
Firstly, I communicated SIM900 with computer, using hyperterminal. It is succesfull, so GSM module is OK. I removed echo messages permamently, and setted baudrate to 9600, It is also permamently. I saved this setting with AT&W commandnow. I want to communicate with stm32. It is also working, but receiving data writen false on LCD. I think, This is delay problem. I tried all combination of delay, but still same problem My GSM modem is http://gsmkontrol.blogspot.com.tr/MY board is STM3210Ceval boardthey are communicating via rs232some part of my codes.while(USART_GetFlagStatus(USART2, USART_FLAG_TXE) == RESET);
USART_SendData(USART2, 65); // A while(USART_GetFlagStatus(USART2, USART_FLAG_TXE) == RESET);USART_SendData(USART2, 84); // Twhile(USART_GetFlagStatus(USART2, USART_FLAG_TXE) == RESET);USART_SendData(USART2, 13); // CR while(USART_GetFlagStatus(USART2, USART_FLAG_RXNE) == RESET);re[0] = USART_ReceiveData(USART2); while(USART_GetFlagStatus(USART2, USART_FLAG_RXNE) == RESET);re[1] = USART_ReceiveData(USART2); LCD_DisplayStringLine(Line5,re); #think!
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2014-03-27 5:26 PM
Posted on March 28, 2014 at 01:26
''data writen false on LCD''
What, exactly, do you mean by that?''I think, This is delay problem''On what basis do you think that?''I tried all combination of delay, but still same problem''Doesn't that tend to suggest, then, that it is not a delay problem...?!''LCD_DisplayString
Line( Line5, re );''I think there's a clue in the name here - does re constitute a validstring
in the 'C' programming language...?
A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
A complex system designed from scratch never works and cannot be patched up to make it work.
