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.

send data to server using gprs on quectel m95

Status
Not open for further replies.

mbedfreak

Newbie level 2
Joined
Feb 11, 2016
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
23
Hi,

I am an absolute newbie.
Could not find a solution to this question. Can anyone please help me out.
I know I can send data from remote device to a web server. But is it possible to send data to the remote device from a web server.
Say, a query message from a web server to the device, which responds back to the web server after extracting the message.
Also how can I do this using a quectel m95 modem.
I am done with sms and voice calls on the modem, now I need to check out gprs working.
A master, say a web server initiates a connection and sends a query to remote device a quectel modem interfaced with a microcontroller and the remote device responds back with some data.

Regards
 

Actually, you need to understand some points on server side. A server will run an instance that will listen to defined port (22 for ssh, 21 for FTP, 80 for http) like that and for socket based connection like TCP will establish a virtual link between the server and client, with a unique channel (which used to differentiate on multiple client and maximum number of clients can connect) whatever data written on the socket will receive on the other side
If you want to use M95 need to connect the modem over serial to the controller. And learn about AT commands for M95 to activate GPRS and establish connection to server
Google more to learn these then try to build your design it is very simple to design
 
Hi,
Thank You for the response.

I have a design

App (android) -------> Server ---------> microcontroller device+gsm modem (gprs)
<------ <-------
The app requests some data from the server, the server decodes the request and
in turn sends a request to microcontroller using gprs to fetch the required data and responds back to the app with the data.

Now I can upload data to the server from my microcontroller using gprs and get data using Get and post methods right.
My main concern here is how can I send a request from a server to the microcontroller that I want say this data from you,
please send me. Is this feasible. how can it be achieved.

Regards
 

This project is feasible, also it needs work on different platforms,
Android application (OS - Android, Language Java)
Server application (OS - linux/windows, language HTML PHP)
Embedded Controller (OS - RTOS, language ASM/C)
My main concern here is how can I send a request from a server to the microcontroller that I want say this data from you,
I am just answering your direct question alone
The server won't request the client until it is connected, so firstly your client needs to connect to the server either any way (IP PORT, web address) then the server will know the connected client and there is a valid connection is available between server and client for communication. Since your connection is two way server can send command to get the status from the microcontroller. If the connection breaks, then microcontroller need to reconnect to server.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top