- 29a Bùi Xuân Phái, P.Tây Thạnh, Quận Tân Phú, TPHCM
- linhkienduchuy2018@gmail.com
- 0942954739
Giao miễn phí trong nội thành TPHCM đối với đơn hàng trên 1 triệu đồng
Tặng ngay 50.000đ cho đơn hàng trên 2 triệu đồng
- Module GSM GPRS này được xây dựng dựa trên SIM900A GSM/GPRS của SIMCOM. Hoạt động trên các tần số 900/ 1800 MHz. SIM900A có thể tự động tìm kiếm hai băng tần này. Ngoài ra cũng có thể thiết lập các dải tần số thông qua tập lệnh AT. T
- Tốc độ truyền có thể được cấu hình từ 1200-115200 thông qua lệnh AT. Modem GSM / GPRS có ngăn xếp TCP / IP nội bộ để cho phép bạn kết nối với internet qua GPRS. SIM900A là một mô-đun không dây nhỏ gọn và đáng tin cậy.
Đặc điểm kỹ thuật:
+ Điện áp hoạt động: 4.7-5V
+ Điện năng tiêu thụ thấp: 1.5mA (ở chế độ ngủ)
+ Nhiệt độ hoạt động: -40 - 85 °C
+ Điều khiển qua tập lệnh AT (GSM 07.07 ,07.05 and SIMCOM enhanced AT Commands)
+ Băng tần kép 900/ 1800 MHz
+ GPRS multi-slot class 10/8
+ GPRS mobile station class B
+ Phù hợp với GSM giai đoạn 2/2+
+ Kích thước: 24 x 24 x 3 mm
+ Trọng lượng: 3.4g
CODE GIAO TIẾP ARDUINO + SIM900A:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(9, 10);// 9:RX, 10:TX TRÊN ARDUINO
char msg;
char call;
void setup()
{
mySerial.begin(9600); // Setting the baud rate of GSM Module
Serial.begin(9600); // Setting the baud rate of Serial Monitor (Arduino)
Serial.println("GSM SIM900A BEGIN");
Serial.println("Enter character for control option:");
Serial.println("h : to disconnect a call");
Serial.println("i : to receive a call");
Serial.println("s : to send message");
Serial.println("c : to make a call");
Serial.println("e : to redial");
Serial.println();
delay(100);
}
void loop()
{
if (Serial.available()>0)
switch(Serial.read())
{
case 's':
SendMessage();
break;
case 'c':
MakeCall();
break;
case 'h':
HangupCall();
break;
case 'e':
RedialCall();
break;
case 'i':
ReceiveCall();
break;
}
if (mySerial.available()>0)
Serial.write(mySerial.read());
}
void SendMessage()
{
mySerial.println("AT+CMGF=1"); //Sets the GSM Module in Text Mode
delay(1000); // Delay of 1000 milli seconds or 1 second
mySerial.println("AT+CMGS=\"+84942954739\"\r"); // Replace x with mobile number
delay(1000);
mySerial.println("sim900a sms");// The SMS text you want to send
delay(100);
mySerial.println((char)26);// ASCII code of CTRL+Z
delay(1000);
}
void ReceiveMessage()
{
mySerial.println("AT+CNMI=2,2,0,0,0"); // AT Command to recieve a live SMS
delay(1000);
if (mySerial.available()>0)
{
msg=mySerial.read();
Serial.print(msg);
}
}
void MakeCall()
{
mySerial.println("ATD+84942954739;"); // ATDxxxxxxxxxx; -- watch out here for semicolon at the end!!
Serial.println("Calling "); // print response over serial port
delay(1000);
}
void HangupCall()
{
mySerial.println("ATH");
Serial.println("Hangup Call");
delay(1000);
}
void ReceiveCall()
{
mySerial.println("ATA");
delay(1000);
{
call=mySerial.read();
Serial.print(call);
}
}
void RedialCall()
{
mySerial.println("ATDL");
Serial.println("Redialing");
delay(1000);
}
3,000₫
5,000₫
180,000₫
95,000₫
40,000₫
15,000₫
2,000₫
6,000₫
6,000₫
7,000₫
13,000₫
25,000₫
45,000₫
25,000₫
25,000₫
170,000₫
90,000₫
150,000₫
40,000₫
45,000₫
40,000₫
40,000₫
40,000₫
150,000₫
40,000₫
400,000₫
600,000₫
18,000₫
20,000₫
40,000₫
75,000₫
355,000₫
280,000₫
550,000₫
355,000₫
280,000₫
70,000₫
165,000₫
165,000₫
90,000₫
Bình luận