namlooc
Junior Member level 3
[GSM sim548c] How to give back IP, and take another in GPRS connection.
Hi!
I'm sending data like this:
AT+CREG=1 --> answer: ok
AT+CSNS=4 --> answer: ok
AT+CSTT="INTERNET","INTERNET","INTERNET" --> answer: ok
AT+CIICR -->answer: ok
AT+CIFSR --> answer: ip adres
AT+CIPSTART="tcp","193.200.51.2","8000" --> answerk
AT+CIPSEND
> HELLOW WORLD <ctrl+z> -->answer: send ok
AT+CIPCLOSE -->answer: close ok
AT+CIPSHUT -->answer: shut ok
AT+CIPSTATUS -->answer: ip initial
Everything till this point is ok. Modem is sending "HELLOW WORLD" correctly to my PC.
After a while, i want to send more data. The same way i did it before:
AT+CREG=1 --> answer: ok
AT+CSNS=4 --> answer: ok
AT+CSTT="INTERNET","INTERNET","INTERNET" --> answer: ok
AT+CIICR -->answer: ERROR !!
AT+CIFSR --> answer: ERROR !!
AT+CIPSTART="tcp","193.200.51.2","8000" --> answerk
AT+CIPSEND
> HELLOW WORLD <ctrl+z> -->answer: send ok
AT+CIPCLOSE -->answer: close ok
AT+CIPSHUT -->answer: shut ok
AT+CIPSTATUS -->answer: ip initial
Modem is sending "HELLOW WORLD" correctly to my PC, but i can't get another IP adress.
My question: How to get rid of current IP address, and get another ?
or When i will be known about taking away my ip address?
and When a new IP address expires and i will need to get a new one?
I have found in the sim548c datasheet that AT+CIICR works only when STATE is IP START:
**broken link removed**
ciicr.th.jpg[/IMG][/URL]
..but i have IP INITIAL :/
Hi!
I'm sending data like this:
AT+CREG=1 --> answer: ok
AT+CSNS=4 --> answer: ok
AT+CSTT="INTERNET","INTERNET","INTERNET" --> answer: ok
AT+CIICR -->answer: ok
AT+CIFSR --> answer: ip adres
AT+CIPSTART="tcp","193.200.51.2","8000" --> answerk
AT+CIPSEND
> HELLOW WORLD <ctrl+z> -->answer: send ok
AT+CIPCLOSE -->answer: close ok
AT+CIPSHUT -->answer: shut ok
AT+CIPSTATUS -->answer: ip initial
Everything till this point is ok. Modem is sending "HELLOW WORLD" correctly to my PC.
After a while, i want to send more data. The same way i did it before:
AT+CREG=1 --> answer: ok
AT+CSNS=4 --> answer: ok
AT+CSTT="INTERNET","INTERNET","INTERNET" --> answer: ok
AT+CIICR -->answer: ERROR !!
AT+CIFSR --> answer: ERROR !!
AT+CIPSTART="tcp","193.200.51.2","8000" --> answerk
AT+CIPSEND
> HELLOW WORLD <ctrl+z> -->answer: send ok
AT+CIPCLOSE -->answer: close ok
AT+CIPSHUT -->answer: shut ok
AT+CIPSTATUS -->answer: ip initial
Modem is sending "HELLOW WORLD" correctly to my PC, but i can't get another IP adress.
My question: How to get rid of current IP address, and get another ?
or When i will be known about taking away my ip address?
and When a new IP address expires and i will need to get a new one?
I have found in the sim548c datasheet that AT+CIICR works only when STATE is IP START:
**broken link removed**
ciicr.th.jpg[/IMG][/URL]
..but i have IP INITIAL :/
Last edited: