Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

coding problem with Avr to interface SIM300

Status
Not open for further replies.

bmodi700

Junior Member level 2
Junior Member level 2
Joined
Jul 18, 2013
Messages
22
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
142
Hey guys,
I am trying to interface SIM300 modual with AVR.
I am using Tx & Rx(uart) of Atmega16 for this communication...
I am also having Tx &Rx pins on my GSm300 modual...
I am using MCS - AVR bascom for coding ....
When i am sending AT code to GSM...in return i am getting AT code on my LCD...
any one can help me???:???:
 


Code Basic4GL - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$regfile = "m16def.dat"
$crystal = 1000000
$baud = 19200
 
 
 
 
Config Lcdpin = Pin , Db4 = Portb.1 , Db5 = Portb.2 , Db6 = Portb.3 , Db7 = Portb.4 , E = Portb.0 , Rs = Portc.7
Config Lcd = 16 * 2
 
 
 
Config Serialout = Buffered , Size = 20
Config Serialin = Buffered , Size = 20
Enable Interrupts
 
Dim A As Byte , S As String * 2
Lcd "bhavik"
 
Do
 
   Print "ATE1"
   Wait 1
    Cls
 
 
 
S = Waitkey()
 
Lcd S
 
 
 
 
 
 
 
Loop
 
 
 
End

 
Last edited by a moderator:

Unfortunately, I am not familiar enough with BASCOM or any other variant of Embedded BASIC to be of much help in composing the required code.



However, I would suggest attaching your GSM/GPRS module to your PC's serial port and using a terminal emulation software like Putty to test and troubleshoot the required AT Command sequences.

Once you have determined the required AT Command sequences and their order of issuance, incorporating them into your BASIC code should not be a major issue.

If your GSM/GPRS module only provides TTL serial output, you will need to utilize a RS-232 Transceiver, like the MAX232, before interfacing the GSM/GPRS module to your PC's serial port.

You'll need to choose the appropriate RS-232 Transceiver based on the allowable voltage levels of the GSM/GPRS modules TTL interface, if an RS-232 interface is not provided.


BigDog
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top