Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > GSM Modem (SIM 300) interface wih PSoC3

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



GSM Modem (SIM 300) interface wih PSoC3
Moderator:
RKRM

Post Reply
Follow this topic



GSM Modem (SIM 300) interface wih PSoC3

vip11 posted on 23 Apr 2012 10:06 AM PST
Member
2 Forum Posts

 Hello,

I am using CY8Ckit-030 PSoC3 development kit..If i want to transmit AT commands to gsm modem then how UART of PSoC and UART of gsm modem should be connected ? And if i use UART_TX example project available in PSoC Creator then what should necessary changes should be done on UART and Character LCD components in Topdesign.cysch ? I have go through this topic http://www.cypress.com/?app=forum&id=2232&rID=52896  still there is no communication between the two.And how DCE to DCE communication done when there are female DB9 connector on both the sides?




Re: GSM Modem (SIM 300) interface wih PSoC3

Bob Marlowe posted on 23 Apr 2012 11:56 AM PST
Top Contributor
1768 Forum Posts

The serial interface has never undergone a strong standardization as for instance USB or the Centronix interface. Thus a lot of experiencing (trial and error) has to be done.

First: a level-shifter is required to connect to another serial interface, MAX232 might be already on the board and should be enableg, consult the schematic.

The cable: To cross or not to cross, that's the question. Modems usually use hardware-handshake with RTS and CTS, TX and RX that has to be implemented in the PSoCs UART or (when possible) disabled in the modem.

Triple check the baud-rate!!! Check Start- and Stop-bits.

 

And: Make written notes, what you checked.

 

Bob



Re: GSM Modem (SIM 300) interface wih PSoC3

Eilrem posted on 23 Apr 2012 07:50 PM PST
Cypress Employee
17 Forum Posts

As Bob has mentioned, you have to do some experimenting. In my case, I had to cross the wire to make the comm work: TX on 1st connector is connected RX of 2nd connector, RX of 1st connector is connected TX of 2nd connector.



Re: GSM Modem (SIM 300) interface wih PSoC3

Gautam Das posted on 24 Apr 2012 10:57 PM PST
Cypress Employee
742 Forum Posts

Hi vip11,

 

The project attached in the link you provided shows how a text message can be sent using SIM300 GSM modem to a number of your choice.

On The PC side DB9 connector, pin-2 isRx and pin-3 is Tx.

On the PSoC3 kit, Pin-2 is Tx and Pin-3 is Rx. In the GSM modem too Pin-2 is Tx and Pin-3 is Rx.

Hence, in order to establish comm b/w PSoC3 development kit and GSM modem, the pins 2 and 3 should be criss-crossed. Connect pin2 of kit to pin3 of GSM modem and vice versa.

Let us know if this works.



Re: GSM Modem (SIM 300) interface wih PSoC3

vip11 posted on 24 Apr 2012 05:35 AM PST
Member
2 Forum Posts

Thanks

bt  i have tried that gsm modem project .still it doesn't work..can you guide what other connections we can try to make it work?and how we can check whether UART is communicating or not? 



Re: GSM Modem (SIM 300) interface wih PSoC3

Bob Marlowe posted on 24 Apr 2012 06:32 AM PST
Top Contributor
1768 Forum Posts

Use a scope and send "Hello world" over the UART.

Route the UART-Clock to an output pin and verify correct frequency

You'll always need a scope

 

You may connect the UART-TX to the UART-Rx and with a piece oft software you can see if the UART>> is able to talk to itself

 

 

Bob



Re: GSM Modem (SIM 300) interface wih PSoC3

Gautam Das posted on 24 Apr 2012 10:40 AM PST
Cypress Employee
742 Forum Posts

Hi vip11,

 

As Bob has mentioned, you can test the UART by sending out sample strings like "Hello World".

One way to make sure that the UART in the project is sending out data from PSoC is to connect the UART terminals to PC's Hyperterminal. Use Hyperterminal to see if the commands such as "AT+CMGF=1" and "AT+CMGS="xxxxxxxxxx"" appears on the hyperterminal. Make sure that the baud rate set for both are same.

 

To be able to receive SMS via this modem make sure that the modem has acquired the channel. Waiting for a few seconds after the modem is powered on, or waiting till the Indicator LED blinks in a specific manner is another option to be sure that the channel is acquired.






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20