Poll
Question: suggestion about SIM508(GPS+GPRS) and any other
SIM508 - 15 (68.2%)
Any other - 7 (31.8%)
Total Voters: 4

Pages: [1] 2 3 4   Go Down
Author Topic: New GPRS module for Arduino  (Read 2870 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged


0
Offline Offline
Newbie
*
Karma: 0
Posts: 39
I love YaBB 1G - SP1!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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:
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...
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 37
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Code:

"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:

"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
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 37
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Code:

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

Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 37
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

I suppose it must be:

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


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

and also receive:

Code:
+KTCP_SRVREQ: <session_id>,<subsession_id>

When a client connect.

But I don't know it.

I hope it would be useful.

Regards
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 37
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
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
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thnks for your helping.

my e-mail adress is :

celal.unlu@hotmail.com
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 15
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: March 05, 2009, 08:00:58 am by sonped » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 37
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: March 05, 2009, 02:49:29 am by cucu » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 15
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley

Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 15
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley-grin) Why can't I use telnet to get a +KTCP_SRVREQ ?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 37
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 15
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1] 2 3 4   Go Up
Jump to: