Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

com110


fi Apr 22, 2014 02:09 PM

Hi,

I have some difficulties to get a public IP adress (dynamic) with my com110, i've tried different SimCard from Orange (french ISP) and for each attempts, i measure a good signal strengh but i don't get an IPadress.

I have already check twice the APN , username & pw ...

the sim card have to do GSM , data or both ? (i've tried the three)

Is someone have an idea?

Regards,

Firmin Fontaine


MDA informations:

++++++AT+WIMEI?

+WIMEI: 359991030605734

OK
AT+VAFV

M100EVO_SMARTPACK_097d_WMP100_R745_061212

OK
ATI3

R7.45.0.201102220653.WMP100 2200556 022211 06:53

OK
AT+TMODE

+TMODE: 1, 31, "", 3658

OK
AT+COPS=3,0

OK
AT+COPS?

+COPS: 0,0,"Orange F"

OK
AT+CSQ

+CSQ: 31,0

OK

Diagnostics Stopped


aps Apr 22, 2014 02:16 PM

Can you tell us what mode you are trying to use the COM110 in (using its own stack, or the dataloggers) and after what steps and how you are monitoring the IP address it has.


fi Apr 22, 2014 03:06 PM

Here are the MDA settings:
GPRS > CR1000 > 115200 baud > logger ipstack > logger program callback > com port:RS232

In fact, we would like that the CR1000 send data to a ftp server that we host in our laboratory.
With this function:

FTPSuccess = FTPClient(IP_public,user_ftp,user_mdp,"TableName.Tab1min",chaineFile,0)

with IP_public = the domain name of our ftp

So normally we don't need to know the current IPadresse affected to our systeme?


Thank you for your answer.

Regards

Firmin


aps Apr 22, 2014 04:22 PM

With this type of setup you will only see an IP address reported in the datalogger status information when a program is loaded in the datalogger and it is configured to open a PPP connection at that time.

You will not see a good IP address returned either in the MDA diagnostics screen (which is only applicable to the modems own stack) nor in the logger status screen otherwise (there must be a PPPOpen in the program as part of the callback code).

If you want to see if the connection is working with the SIM it is probably worth testing the modem with its own stack (and looking at the MDA diagnostic screen) or using the logger option which selects a permanent connection.


fi Apr 23, 2014 08:30 AM

I tried with the modem stack setting and it's workink.
So the SIM is ok.


Do you have any example of a CrBasic code which

- initiate the PPP communciation between the CR1000 and the COM110
- send a file to a ftp server ( with a known domain name)

?

Thank you for your help

Regards,

Firmin


thinkitcodeit Apr 29, 2014 09:56 AM

Here is an FTP Example, just substitute your server DNS name and credentials. Alternative examples are available in the CRBasic FTPClient instruction help.

SequentialMode

Const FTPServerAddress = "0.0.0.0"
Const FTPUserID = ""
Const FTPPassword = ""

Public FTPSuccess As Boolean = False, LastFileName As String * 32, PTemp, Batt
Dim SendFTP As Boolean = False, OutStat As Boolean = False, DestinationFilename As String * 32

DataTable (FTP,1,-1)
TableFile("USR:FTPTest",12,5,5,0,Min,OutStat,LastFileName) 'keep most recent 5 files, store 10 records per file
Sample(1,PTemp,FP2)
Sample(1,Batt,FP2)
EndTable


BeginProg

SetStatus("UsrDriveSize",8192) 'Only used in this example, be careful of use inside normal programs.

Scan (15,Sec,0,0)
CallTable(FTP)
If OutStat Then SendFTP = True
NextScan

'We use a Slow Sequence to carry out the FTP operation to avoid holding up the main processing
'and to allow for FTP timeout in the event the FTP server is unavailable.
SlowSequence
Do
If SendFTP Then
DestinationFilename = Right(LastFileName,Len(LastFileName)-4)
FTPSuccess = FTPClient(FTPServerAddress, FTPUserID, FTPPassword, LastFileName, DestinationFilename, 0)
SendFTP = False
EndIf
Loop

EndProg


thinkitcodeit Apr 29, 2014 10:14 AM

The PPP communication with the CR1000 can be managed via DevConfig settings in the logger, the MDA will program these for you. Are you looking to power the COM110 on/off or leave it powered?

* Last updated by: thinkitcodeit on 4/29/2014 @ 4:14 AM *


fi Apr 30, 2014 08:01 AM

I will try it soon.
Yes,we want to power on/off the com110 to reduce consumption and i'v seen example on the com110 datasheet to do it.
Thank for your help.

Regards

Firmin

Log in or register to post/reply in the forum.