Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

[SOLVED] Interfacing SIM 300 with serial port to hyper terminal

Status
Not open for further replies.

Y.li

Member level 2
Joined
Apr 5, 2012
Messages
52
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,649
Hello,

I wanted to interface SIM 300 (Ver 7.03) modem having RS 232 interface with PC using serial port. I made a male-female DB9 connector by connecting pin 2,3 & 5 such that pins 2 and 3 were exchanged at one end. Then, connected the device to PC, inserted sim card, connected the adaptor to SIM 300 and opened hyper terminal. I used the settings as in the post below :

https://www.edaboard.com/thread197380.html

Then typed AT in the screen. There was no display on the hyper terminal screen (neither of AT or any acknowledgement).

I tried this for both COM1 and COM2.

Pls. tell me if I am doing something wrong.


Thanks,
Y Li
 

GSM Man

Banned
Joined
Apr 15, 2009
Messages
671
Helped
168
Reputation
338
Reaction score
94
Trophy points
1,308
Location
New Jersey, USA
Activity points
0
Some basic troubleshooting to start...

1) Disconnect the cable from your modem and short pins 2 & 3. Is Hyperterminal showing what you typed? No...Wrong COM port selected or Bad Cable?

2) Are you sure the modem you have requires pins 2 & 3 to be reversed? Try a straight-through connector?

3) Are you sending a return after the command?
 

Y.li

Member level 2
Joined
Apr 5, 2012
Messages
52
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,649
Some basic troubleshooting to start...

1) Disconnect the cable from your modem and short pins 2 & 3. Is Hyperterminal showing what you typed? No...Wrong COM port selected or Bad Cable?

2) Are you sure the modem you have requires pins 2 & 3 to be reversed? Try a straight-through connector?

3) Are you sending a return after the command?
Thanks for replying. I changed the emulation mode to tty and things started working. BTW just needed one info. Every-time, when I power up the modem, do I have to use AT+CREG=0 for the SIM registration. Need to know it as I will have to finally interface it with a uC.

Thanks & regards,
Y. Li
 
Last edited:

GSM Man

Banned
Joined
Apr 15, 2009
Messages
671
Helped
168
Reputation
338
Reaction score
94
Trophy points
1,308
Location
New Jersey, USA
Activity points
0
"AT+CREG=0" disables unsolicited result codes - it doesn't affect network registration. If you need to disable those codes, you'll need to send that command.
 
  • Like
Reactions: Y.li

    Y.li

    points: 2
    Helpful Answer Positive Rating

Y.li

Member level 2
Joined
Apr 5, 2012
Messages
52
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,649
So does it mean that I dont have to register to the n/w every time GSM modem is powered on ? Also, if I dont disable the codes (AT+CREG=0), does it affect the functioning of GSM modem in general. I need to send alert messages once a while.

Thanks,

Y. Li
 

GSM Man

Banned
Joined
Apr 15, 2009
Messages
671
Helped
168
Reputation
338
Reaction score
94
Trophy points
1,308
Location
New Jersey, USA
Activity points
0
The module will register itself on the network when you power it up - the "AT+CREG" command doesn't affect that. Sending "AT+CREG=0" only tells the module not to send unsolicited commands. If you send "AT+CREG=1" or "AT+CREG=2" the module will send a message whenever the network registration changes. For example, if your device is moving and the cell tower it is connected to changes it would send a "+CREG" message. Or if the module loses connection to the cell tower it would send a "+CREG" message. If you send the command "AT+CREG=0" it will not send these messages.
 
  • Like
Reactions: Y.li

    Y.li

    points: 2
    Helpful Answer Positive Rating

Y.li

Member level 2
Joined
Apr 5, 2012
Messages
52
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,649
OK, thanks.

Y Li
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top