Hi to All,
Happy 2018 to All.
I'm testing to get data from a remote CR10X-pb (id 2) through a CR1000 (id 1) both connected to a GSM modem.
The CR1000 also has these program lines in the program:
DialSequence (2)
dialOK = DialModem (ComRS232,9600, "xxxxxxxx361", "connect 9600" + CHR (13))
EndDialSequence (dialOK)
Every hour starts, the CR1000 dials the number and calls the remote CR10X-pb, but the call is not successful.
This is what traffics on RS232 port of CR1000:
16:02:02.44 T 2B 2B 2B +++
16:02:03.49 R 0D 0A 4F 4B 0D 0A ..OK..
16:02:03.49 T 41 A
16:02:03.51 R 41 A
16:02:03.51 T 54 T
16:02:03.53 R 54 T
16:02:03.53 T 48 H
16:02:03.55 R 48 H
16:02:03.55 T 0D .
16:02:03.57 R 0D .
16:02:04.49 R 0D 0A 4F 4B 0D 0A ..OK..
16:02:04.49 T 41 A
16:02:04.51 R 41 A
16:02:04.51 T 54 T
16:02:04.53 R 54 T
16:02:04.53 T 44 D
16:02:04.55 R 44 D
16:02:04.55 T 54 T
16:02:04.57 R 54 T
I removed some lines with the phone number
16:02:04.69 T 33 3
16:02:04.70 R 33 3
16:02:04.70 T 36 6
16:02:04.72 R 36 6
16:02:04.72 T 31 1
16:02:04.74 R 31 1
16:02:04.74 T 0D .
16:02:04.76 R 0D .
16:02:27.95 R 0D 0A 43 4F 4E 4E 45 ..CONNE
16:02:27.96 R 43 54 20 39 36 30 30 0D 0A CT 9600..
16:04:00.51 T 41 A
16:04:03.51 T 41 A
16:04:06.51 T 41 A
16:04:09.51 T 41 A
16:04:12.51 T 41 A
16:04:15.51 T 41 A
16:04:19.71 T 2B 2B 2B +++
16:04:20.75 R 0D 0A 4F 4B 0D 0A ..OK..
16:04:20.75 T 41 A
16:04:20.77 R 41 A
16:04:20.77 T 54 T
16:04:20.78 R 54 T
16:04:20.78 T 48 H
16:04:20.80 R 48 H
16:04:20.80 T 0D .
16:04:20.82 R 0D .
16:04:21.78 R 0D 0A 4F 4B 0D 0A ..OK..
16:04:21.78 T 41 A
16:04:21.80 R 41 A
16:04:21.80 T 54 T
16:04:21.82 R 54 T
16:04:21.82 T 44 D
16:04:21.84 R 44 D
16:04:21.84 T 54 T
16:04:21.86 R 54 T
I removed some lines with the phone number
16:04:21.99 T 33 3
16:04:22.01 R 33 3
16:04:22.01 T 36 6
16:04:22.03 R 36 6
16:04:22.03 T 31 1
16:04:22.05 R 31 1
16:04:22.05 T 0D .
16:04:22.07 R 0D .
16:04:42.65 R 0D 0A ..
16:04:42.66 R 43 4F 4E 4E 45 43 54 20 39 36 CONNECT 96
16:04:42.67 R 30 30 0D 0A 00..
16:06:00.51 T 41 A
16:06:03.51 T 41 A
16:06:06.51 T 41 A
16:06:09.51 T 41 A
16:06:12.51 T 41 A
16:06:15.51 T 41 A
16:06:19.71 T 2B 2B 2B +++
16:06:20.75 R 0D 0A 4F 4B 0D 0A ..OK..
16:06:20.75 T 41 A
16:06:20.77 R 41 A
16:06:20.77 T 54 T
16:06:20.79 R 54 T
16:06:20.79 T 48 H
16:06:20.81 R 48 H
16:06:20.81 T 0D .
16:06:20.83 R 0D .
16:06:21.72 R 0D 0A 4F ..O
16:06:21.73 R 4B 0D 0A K..
I see that after the connect 9600 the CR1000 sends A's (six times) but receives no answers.
If I call the CR10X-PB (id 2) with LoggerNet everything works.
Many thanks to those who can give me suggestions for other tests or solutions
Regards
Smile
Hi to All
to understand better I eliminated a potential problem, the GSM connection and I connected the two loggers via wire (30 cm).
Pin 2 of CSIO port of CR10X-PB -------> G of CR1000
Pin 4 of CSIO port of CR10X-PB -------> C1 TX com1 of CR1000
Pin 9 of CSIO port of CR10X-PB -------> C2 RX com1 of CR1000
PakBus ID of CR10X-PB is 2
In practice every 5 minutes CR1000 try to contact the CR10X-PB, until the connection is successful, but get_bis_ok is continuously increased.
CR1000 program
BeginProg
SerialOpen (Com1,9600,16,0,200)
get_bis_ok=99
Scan (15,Sec,0,0)
PanelTemp (PTemp,60)
Battery (Batt_volt)
'Enter other measurement instructions
If get_bis_ok=0 Then get_bis=false
If get_bis = true Then
GetVariables (get_bis_ok,Com1,0,2,0000,150,"inlocs","US_1",bis_var(),11)
EndIf
If IfTime (0,5,min) Then get_bis = true
'Call Output Tables
'Example:
CallTable Test
NextScan
EndProg
I do not understand where the problem is. Thanks in advance
Regards
Smile
There is more to CSIO than just connecting to a few pins. You should use an interface like SC32B between the dataloggers.
Dear JDavis,
many thanks.
True! I'll try right away.
Smile