Open AT


#1

Hi Everyone,
Please, help with what function in the “Open AT” I can check the TCP connection client to the server. And what function resets the modem.


#2

hi
you can reset your modem with the “at+cfun=1” command. check the adl_atCmdCreate() function in the manual.

edit:
i didnt look it up, but if i remember correctly there isnt a direct way which allows you to reset the modul, so you have to go this way.


#3

For me, this area is new and I do not fully understand how to write programs, and whether you can append to the end of the existing program’s. I need to finish a small algorithm. It looks like this: check for client communication with the server if the connection is missing, then reconnect after 10 minutes, and if the connection okay, then after 10 minutes, check its status again.


#4

hi
with “not fully understand how to write programs” do you mean that you have no experience writing programs at all or do you mean, that you dont have a clue where to start in OpenAt?


#5

Yes, I mean, that I dont have a clue where to start in OpenAt!


#6

okay, thats a relief :laughing:

do you have the dev studio installed and can you connect to your device?

if so, you should thrown an eye onto the “ADL_User_Guide.pdf” Chapter 2.
This document includes a couple of examples for the different basic APIs that are implemented.

If you want to call a server via IP, you also want to throw an eye into the “WIP_Open_AT_IP_Connectivity_Development_Guide.pdf”, it has everything from sockets to FTP.

Also the dev studio has a couple of example projects. you can find them at the creation of a new Open At project.

edit:
you can find those PDF files somewhere inside the install directory of your dev studio. use the search function and search for .pdf files.


#7

Some specialist helped me to make the client and server. Now I need to add in listing some algorithm that will monitor the connection and make rekonekt. I’m trying to implement it as follows:

PingRet=wip_pingCreate (SERVER_ADDRESS, WIP_CEV_PING,1);
error:Multiple markers at this line
- passing argument 2 of ‘wip_pingCreate’ makes pointer from integer without a cast
- assignment makes integer from pointer without a cast
- passing argument 3 of ‘wip_pingCreate’ makes pointer from integer without a cast

PingRet1=wip_pingCreateOpts(SERVER_ADDRESS,WIP_COPT_INTERVAL,60000);
error:Multiple markers at this line
- passing argument 2 of ‘wip_pingCreateOpts’ makes pointer from integer without a cast
- assignment makes integer from pointer without a cast
- passing argument 3 of ‘wip_pingCreateOpts’ makes pointer from integer without a cast

if (PingRet==0){adl_wdActiveAppWd(1);}

But I have error at 1st and 2nd line. Can you tell what I wrote is not correct.


#8

my guess is, that the vars you are putting into the function aren´t from the type the function expects…

check the wip dev guide to see what types the functions are expecting

edit:

im not sure what happens if you name your function like a value from an enum, but i´d change the name


#9

I tried to change the variable type, and experimenting with the parameters used functions but still no result.


#10

and what have you tried?

and another thing that just came into my head…

does the server even answer ping requests? it might be deactivated… :smiley:

i guess the client isn´t a system where you have the controll? otherwise i would let the client make whatsoever out of the information that his requests are getting timeouts


#11

The server pinged with windows!
The client connects to it and creates an open channel of communication. But I need so that in case of loss of communication, the client can reconnect.


#12

why cant the client just reconnect when an error occurs?


#13

Because the program that was wrote for me does not provide it.


#14

do you have the source code?
if so, make that it simply reconnects :smiley:
if not, how do you want to tell the program that it has to reconnect?


#15

Therefore it is necessary to write a piece of code that will monitor and make reconnect.
If you can, then write the code.
I will be grateful.