Help with UDP and GSM

Hello ppl,
I am currently working on Arduino Mega 2560 with the GSM shield. I was wondering if it is possible to send UDP packets via the GSM. I saw many examples of sending and recieving UDP packets by using the Ethernet shield. I was thinking if it is possible to modify the Ethernet library to send UDP packets via the GSM network. There is no specific library as such to perfom this task. So was hoping you guys might help me with this task.
Can you please throw some light into this ?
Thanks in advance
:slight_smile:

There is no specific library as such to perfom this task. So was hoping you guys might help me with this task.

That will depend on your GSM modem.
What model do you have?
Some modems does not implement TCP/IP stack.If this is your case then you are in big trouble sending a UDP packect from it.
It will require implementing the TCP/IP stack in arduino.

Hey HugoPT ,
I am using the GSM shield provided by arduino itself. It is the shield developed in association with 'Telefonica' . When i read about the shield in the arduino site it was mentioned that the shield uses a 'radio modem M10 by Quectel' .
So does this model has a TCP/IP stack ? Please enlighten me on this issue !!

According to the specification sheet
http://www.quectel.com/UploadFile/Product/Quectel_M10_GSM_Specification_V3.0.pdf

Yes it does.

Ok so now it does have a TCP/IP stack , any ideas on how to send UDP packets using this modem ?

According to the command reference here

You send an AT+QIOPEN to the modem, specifying UDP mode as a parameter,
The AT+QISEND command will then cause the modem to send the specified data as datagrams.