Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

1- System Services Menu

Main Menu → System Services

The System Services menu is used to restart the system, change the system clock, view the status or enable/disable certain RediGate processes.

Enter 1 at the Main Menu for the System Services menu.

 ================ System Services ==============
ElecSys(V:5.7.2017-07-24-1300)  Wed Jul 26 22:47:52 2017
UnitName : 1 @ 192.3.1.10  REDIGATE  <40170-0118>-SerialNumb
---------------------------------------------
 1) Boot/Reconfigure     2) Set Clock
 3) Channel Status       4) Channel Enable/Disable
 5) Channel Scan         6) Single Poll
 7) RTU Enable/Disable   8) RTU Scan
 9) RPN Calculator      10) New Master Key
11) Read Handshake Pins 12) Write Handshake Pins
13) Run Custom Utility  14) MQttClient to Next Broker
15) Cell Modem Diags

Make selection:

1- Boot/Reconfigure

Main Menu → System Services → Boot/Reconfigure

...

================ Boot/Reconfigure Director ==============
ElecSys(V:5.7.2017-07-24-1300)  Wed Jul 26 23:04:38 2017
UnitName : 1 @ 192.3.1.10  REDIGATE  <40170-0118>-SerialNumb
---------------------------------------------

 WARNING! Restarting unit will terminate all polling!
Non Auto-Start Channels must be individually restarted!
Enter 'Y' or 'N' to reboot, or 'R' to reconfigure.

Restart Unit (Y/N/R) ? r

...

Enter 2 for Set Clock, then enter the new date and time of the system using the following format: MMDDhhmmYYYY.ss where MM=month, DD=day, hh=hour (00 to 23), mm=minute, YYYY=year, and (optional) ss=seconds.

Set Date & Time? (Y/N) y
Mon Jul 31 11:02:26 UTC 2017

Note: MMDDhhmmYYYY   ....includes leading zeros
(Examp. New Years Eve of 2015 : 123123592015) :
(Examp. Two seconds til  2016 : 123123592015.58) : 073112002017
Mon Jul 31 17:00:00 UTC 2017


Write to Hardware clock (Y/N) ? y

Wrote system time to hardware clock

Press ENTER to continue

...

Channel Status

Chan Name              Status    Rtus Time
==== ==============    ========  ==== ==================
   0 Channel0          w/Errors     1  Mon Jul 31 19:38:20 2017
   2 Master Channel    Normal       1  Mon Jul 31 10:56:57 2017
  15 Channel15         Normal       1  Mon Jul 31 10:56:57 2017

Redisplay (Y/N/L where L is Log of Enables/Disables) ? L


Press SPACE to advance through log. Q to Quit
Mon Jul 31 19:37:52 UTC 2017 Channel-0: Enable
Mon Jul 31 19:33:32 UTC 2017 Channel-0: DisableDisable

See Channel Status for details on the Master Channel status information.

...

Channel Enable/Disable

Chan Name              Status    Rtus Time
==== ==============    ========  ==== ==================
   0 Channel0          w/Errors     1  Sun Aug 13 08:06:11 2017
   2 Master Channel    Normal       1  Sun Aug 13 08:03:41 2017
  15 Channel15         Normal       1  Sun Aug 13 08:03:41 2017

Channel 0-15 0

  0=Disable 1=Enable ? 0

Channel(0) Disable sent

...

================ Rtu Status ==============
ElecSys(V:5.7.2017-08-07-1200)  Sun Aug 13 08:16:05 2017
UnitName : 1 @ 192.3.1.10  REDIGATE  <46247-0004>-SerialNumb
---------------------------------------------
Chan Name              Status    Rtus Time
==== ==============    ========  ==== ==================
   0 Channel0          Suspended    1  Sun Aug 13 08:15:58 2017
   2 Master Channel    Normal       1  Sun Aug 13 08:03:41 2017
  15 Channel15         Normal       1  Sun Aug 13 08:03:41 2017

Enter Channel (0 to 15, -1 for all) ? 0

  -----------------RTU----------------   -----POLL-------  -------ERRORS-------
 Addr Name             Protocol Status     Time     Count  TimOut BadData Frame
----- ---------------- -------- -------- -------- -------- ------ ------- -----
    1 Modbus01         MBMAST00 Stopped  08:15:58        0    656       0    0

...

Enter 5 for Channel Scan. Enter the Master Channel number, and Y to trigger the scan.

 

Channel Scan


Chan Name              Status    Rtus Time
==== ==============    ========  ==== ==================
   0 Channel0          Suspended    1  Sun Aug 13 08:15:58 2017
   2 Master Channel    Normal       1  Sun Aug 13 08:03:41 2017
  15 Channel15         Normal       1  Sun Aug 13 08:03:41 2017

Channel 0-15 0
  Scan Channel-0 (Y/N) ? y

  Channel(0) sent scan all

...

Single Rtu Poll


Chan Name              Status    Rtus Time
==== ==============    ========  ==== ==================
   0 Channel0          Suspended    1  Sun Aug 13 10:00:02 2017
   2 Master Channel    Normal       1  Sun Aug 13 09:59:02 2017
  15 Channel15         Normal       1  Sun Aug 13 09:59:03 2017

Channel 0-15 0

  -----------------RTU----------------   -----POLL-------  -------ERRORS-------
 Addr Name             Protocol Status     Time     Count  TimOut BadData Frame
----- ---------------- -------- -------- -------- -------- ------ ------- -----
    1 Modbus01         MBMAST00 No Polls 10:00:03        0      3       0    0
Do you want to see the Scan Table? (y/n) y

 Index RtuAdr  Poll  Rate(Sec)
     0      1     1    3600
     1      1     2      60

  Enter Scan Index (0 to 1)  0


  Channel(0) sent scan allall

7- RTU Enable/Disable

Main Menu → System Services → RTU Enable/Disable

...

Rtu Enable/Disable


Chan Name              Status    Rtus Time
==== ==============    ========  ==== ==================
   0 Channel0          Suspended    1  Sun Aug 13 10:12:25 2017
   2 Master Channel    Normal       1  Sun Aug 13 09:59:02 2017
  15 Channel15         Normal       1  Sun Aug 13 09:59:03 2017

Channel 0-15 0


 Addr Name             Dbg? Protocol Status
----- ---------------- ---- -------- ------
    1 Modbus01         ON   MBMAST00 Stopped
  Enter Rtu to Modify 1

 0=Disable, 1=Enable ? 0


  Channel(0) sent Rtu00001...DisabledDisabled

8- RTU Scan

Main Menu → System Services → RTU Scan

...

Rtu Scan


Chan Name              Status    Rtus Time
==== ==============    ========  ==== ==================
   0 Channel0          Suspended    1  Sun Aug 13 10:06:54 2017
   2 Master Channel    Normal       1  Sun Aug 13 09:59:02 2017
  15 Channel15         Normal       1  Sun Aug 13 09:59:03 2017

Channel 0-15 0


 Addr Name             Dbg? Protocol Status
----- ---------------- ---- -------- ------
    1 Modbus01         ON   MBMAST00 Stopped
  Enter Rtu to Scan 1

Sent Scan RTU 1

...

================ Monitor /dev/acscomm?? handshaking pins ==============
ElecSys(V:5.7.2017-07-24-1300)  Sun Aug 13 13:00:08 2017
UnitName : 1 @ 192.3.1.10  REDIGATE  <40170-0118>-SerialNumb
---------------------------------------------
NOTE:This might require rebooting afterwards
Enter Serial Port Index 1 to 20 (console=0) 2

E=ElecSys driver  L=Linux driver e
Params=[9600 stop=1 word=8 parenb=0 pareven=0 parstick=0  mode=0 w_up=0 w_down=0]
           CPU0
 36:        203        SC  20  UART9
 38:         19        SC  22  zeus16550
 39:       1025        SC  23  pxa2xx-mci
 41:          0        SC  25  DMA
 42:       5833        SC  26  ost0
 44:          0        SC  28  Comms Timer Tick
 85:         16      GPIO  35  bt:dtr
103:          0      GPIO  53  mmc card detect
131:       1511      GPIO  81  eth0
Err:          0

Enter '1' to abort

Com-2 DCD=LOW CTS=LOW
Com-2 DCD=LOW CTS=LOW
Com-2 DCD=LOW CTS=LOW

The current state of Carrier Detect (DCD) and Clear to Send (CTS) inputs are shown once/second (LOW or HI). Enter 1 to stop the display.

...

================ Force /dev/acscomm?? handshaking pins ==============
ElecSys(V:5.7.2017-07-24-1300)  Sun Aug 13 13:09:33 2017
UnitName : 1 @ 192.3.1.10  REDIGATE  <40170-0118>-SerialNumb
---------------------------------------------
NOTE:This might require rebooting afterwards
Enter Serial Port Index 1 to 20 (console=0) 2

E=ElecSys driver  L=Linux driver e
Params=[9600 stop=1 word=8 parenb=0 pareven=0 parstick=0  mode=0 w_up=0 w_down=0]
           CPU0
 36:        203        SC  20  UART9
 38:         95        SC  22  zeus16550
 39:       1025        SC  23  pxa2xx-mci
 41:          0        SC  25  DMA
 42:      43630        SC  26  ost0
 44:          0        SC  28  Comms Timer Tick
 85:         16      GPIO  35  bt:dtr
103:          0      GPIO  53  mmc card detect
131:      13335      GPIO  81  eth0
Err:          0
RTS: 0=Low 1=High ? 0
Set COM(2) to 0
DTR: 0=Low 1=High ? 1
Set COM(2) to 1

Enter 1 or 0 to turn ON or OFF the Request to Send (RTS) and Data Terminal Ready (DTR) handshaking outputs.

...

Enter 13 to select the Run Custom Utility menu. A list of available scripts is displayed. Enter the number of the script following the last _ character.

Make selection: 13

CustUtil_NAT_Menu_5   CustUtil_atest_0
CustUtil_Stuff_UFF_4  CustUtil_iptables_1

Enter Index of Custom Utility 0 to N 0

Running CustUtil*_0


*****************
Here is a script!
*****************

14- MQttClient to Next Broker

...

================ MQttClient to Next Broker ==============
ElecSys(V:5.7.2017-08-07-1200)  Thu Aug 17 06:18:54 2017
UnitName : 1 @ 192.3.1.10  REDIGATE  <46247-0004>-SerialNumb
---------------------------------------------
0 ==> MQisdp

1 ==> MQisdpX0

Could not find MQisdpX1

Which MQ Client to force? (0 to 1) 0
Are you certain you want to force it to the next broker? (y/n) y

Checking connection in 5 seconds.  Enter any character to return to MENU MENU

If the connection cannot be made, the last line may be repeated every 5 seconds. To exit, enter any character on the keyboard followed by Enter to return to the previous menu.

...

Enter 15 for Cell Modem Diags.

Make selection: 15

================  Cell Modem Diags  ==============
ElecSys(V:5.7.2017-02-23-1000)  Thu Mar  2 18:09:19 2017
RediGate400C_CPLX : 1 @ 10.63.192.192  REDIGATE-400 <Use System Serv Option-123>
---------------------------------------------
 Virtual Port Numer
   73=Diag AT Cmds
   75=Auto-ATs or NMEA/GPS if HE-910
   77=NMEA/GPS if DE-910
   79=CellLEDs
 or 0 to Exit? 73

Enter  73  or  75  for the virtual port number on which to view diagnostics (one or more of these should be configured in ACE).

...

The command outputs are described with comments below.

Sending AT+GMM
Received[15]->   HE910    OK

This is the modem model (HE910 for GSM/HSPA, or DE910-DUAL for CDMA).



Sending AT+CNUM
Received[37]->   +CNUM: "","19132109122",129    OK

This is the phone number associated with the account activation.

 



Sending AT#CCID
Received[37]->   #CCID: 89014104277578463113    OK

For the HE910 modem, this is the SIM card number. For the DE910-DUAL, this command will return an error.

 



Sending AT+CGDCONT?
Received[42]->   +CGDCONT: 1,"IP","i2gold","",0,0    OK

For the HE910 modem, the second item in double quotes is the APN of the cellular access point. If the SIM is not properly installed or the RediGate is improperly configured, having an incorrect APN will block cellular connections.


Sending AT#MEIDESN?
Received[9]->    #MEIDESN: A1000032B304F6,000000000000,00000000

For the DE-910-DUAL modem, this is the MEID number. For the HE910, this command will return an error.



Sending AT#CIMI
Received[32]->   #CIMI: 310410757846311    OK

This is the IMSI number.



Sending AT#CGSN
Received[32]->   #CGSN: 357164042289457    OK

For the HE910 modem, this is the IMEI number. For the DE910-DUAL modem, this is the MEID number, split with a comma.

 

 


Sending AT+CREG?
Received[20]->   +CREG: 0,1    OK

This is the mode and connection status. The first number should normally be 0 (disable unsolicited).
The second number indicates registration status: 0=not registered, 1=registered/home network, 2=searching, 3=denied, 5=registered/roaming



Sending AT$GPSACP
Received[30]->   $GPSACP: 214127.000,3853.5898N,09447.4488W,0.9,315.4,3,12.1,7.3,3.9,310715,07

This is the GPS data, if a GPS antenna is connected to the modem. Otherwise, it will mostly be just commas with no data. GPS data represents:

UTC time (hhmmss.sss)
Latitude (ddmm.mmmm N/S)
Longitude (dddmm.mmmm E/W)
HDOP, Altitude (meters), Fix (0=invalid, 2=2D fix, 3=3D fix)
Course over ground (degrees), Speed over ground (Km/hr), Speed over ground (knots)
Date of fix (ddmmyy), Number of satellites in use

Sending AT+CSQ
Received[40]->   +CSQ: 28,3    OK

The first number after +CSQ is the signal strength. 99=no signal, 0-31 indicates increasing strength (0 = -113 dBm, 31 = -51 dBm, in steps of 2 dBm per CSQ number).
The second number is the bit error rate (BER). 0=best, 7=worst.

 

 

Repeat? (y/n) nEnter 'n' to not repeat the previous sequence of commands.

 

Then press Enter to exit the modem diagnostics, or  A/  to repeat the last command (AT+CSQ, signal strength).
Or enter an 'AT' modem string to manually send a command to the modem.

Enter  A//  to repeat the last command continuously every 2 seconds.    

 
Enter AT Command (Enter to Exit, 'A/' repeats last, 'A//' repeat every 2 secs) a//
Press Q<enter> to quit repeating
Sending[8]-> AT+CSQ
Received[20]->   +CSQ: 28,2    OK
 
Press Q<enter> to quit repeating
Sending[8]-> AT+CSQ
Received[20]->   +CSQ: 29,2    OK

 

Enter 'q' to stop the repeating AT+CSQ commands. And 'Enter' again to exit the menu.

q Enter AT Command (Enter to Exit, 'A/' repeats last, 'A//' repeat every 2 secs)Enter AT Command (Enter to Exit, 'A/' repeats last, 'A//' repeat every 2 secs)

q