Go Down

Topic: New GPRS module for Arduino (Read 3589 times) previous topic - next topic

libelium

Hi all,

we have launched a GPRS module for Arduino. It includes the Hilo SAGEM communication.
The module is available and you can order it directly here:

http://www.libelium.com/tienda/catalog/product_info.php?cPath=21&products_id...

As usual schematics and tutorials are available in SquidBee project page:

http://www.libelium.com/squidbee/index.php?title=New_GPRS_module_for_Arduino_%28...

Regards,

libelium
http://www.tienda.libelium.com

tobie

hi libelium,

good to see you on the forum, and thanks for introducing the GPRS shield.

The examples in the tutorial are a great start, and I'm now developing an application using the TCP socket over GPRS.

I'm using a Terminal before I migrate the routine to Arduino code, and things seem to hang when I form the HTTP GET request. Some times I see a reply, but usually I get a stall and a GPRS error message.

Have you managed to use the TCP socket?

Here's an example AT terminal transcript leading to the stall:

Code: [Select]
AT
OK
AT+KCNXCFG=1,"GPRS","payg.talkmobile.co.uk"
OK
AT+KCNXTIMER=1,60,2,70
OK
AT+CGATT=1
OK
AT+KTCPCFG=1,0,"SOME_SERVER_URL",SOCKET_NUM
+KTCPCFG: 1
OK
AT+KPATTERN="--END--"
OK
AT+KTCPCNX=1
OK
AT+KTCPSND=1,24
CONNECT


Following on from the "CONNECT" response, here's how I'm forming the GET request, the 24 characters that I send are set above the in KTCPSND command, and includes the end of file pattern set above with KPATTERN:

Code: [Select]
HELLO WORLD 1234 --END--

If I send the request during a telnet session with the server, I see the data echoed back. When I use the GPRS module, I get a stall, and Terminal no longer accepts further AT commands...

cucu

Hello i had the same problem and i solved it. the problem is:

Code: [Select]


"HELLO WORLD 1234 --END--"




The " caracter is necesary.

I have another problem. It is important that the first character will be "A", so, you have to put:

Code: [Select]


"AELLO WORLD 1234 --END--"



I don't know why, and i want to change it. Does anybody know how i can do it?

Thanks. Regards

cucu

I forgot say before, <ndata> is the length WITHOUT the pattern, so:

Code: [Select]


AT+KTCPSND=1,17
CONNECT
"AELLO WORLD 1234 --END--"


cllunlu

thnks for information.Can you help me about data sending and receiving as a server.
I failed tcp connection as a server...

cucu

I am sorry, I am using the module as a client.

I suppose it must be:

Code: [Select]

AT+KTCPCFG = <cnx conf>, 1, <tcp_port>



you configure as server. and you receive the <serverID> value

and also receive:

Code: [Select]

+KTCP_SRVREQ: <session_id>,<subsession_id>


When a client connect.

But I don't know it.

I hope it would be useful.

Regards

cllunlu

and in addition how can I learn my module's ip adress?
Which command?

cucu

Code: [Select]

AT+KCGPADDR


i cant find the web site where is the document, there you have one:

http://www.libelium.com/tienda/catalog/images/arduino/AT_Commands.pdf

but, it is not complete. If you want tell me your email and i will send you mine.

Regards

cllunlu

thnks for your helping.

my e-mail adress is :

celal.unlu@hotmail.com

sonped

#9
Mar 04, 2009, 07:01 pm Last Edit: Mar 05, 2009, 02:00 pm by sonped Reason: 1
The 'A' problem is because you don't have the latest firmware.
Upgrade to 5.05 and the problem is solved.

When upgraded you get the IP with AT+KCGPADDR

cucu

#10
Mar 05, 2009, 08:27 am Last Edit: Mar 05, 2009, 08:49 am by cucu Reason: 1
how can i get it?

I have another cuestion, i am sending tcp packets, so, i send two messages to the tcp module, AT+KTCPSND and the values i want to transmit, but i dont know why sometimes the gprs doesnt "read" the second one, so, it doesnt send the packet to the server and doesnt answer the comand.

Do you know the problem? is it necesary some wait time? why does it work sometimes?

Thanks!

Regards

sonped

I don't have the arduino module, I have the development kit from Sagem.
I have access to a Sagem ftp server for new documentation and firmware when released. I can make the Hilo module firmware ready for download a my site if Libelium don't have any firmware upgrades.
Post again if you can't find a new firmware at libelium :)


sonped

I have trouble connecting to the module when I have set up a server on it.
Do anyone have succes with this server ?

I can only connect to my server from a client I make on the same module. (not usable for much :D) Why can't I use telnet to get a +KTCP_SRVREQ ?

cucu

hello, i didnt do a server in the module, but i suppose that your ip isnt public, so, you only can access if you are in the same network, so, you can access to "localhost" but cant in other case.

I am not sure, but it could be the problem

Regards

sonped

I have checked that my ip is global.
As client I have connected to "myip.dk",80, and here I get the IP to be the same as the module tells me.

Go Up