background image

 

 
 
 
The information contained in this document is subject to change. This document contains proprietary information, which is protected by copyright 
laws. All rights are reserved. No part of this document may be photocopied, reproduced or translated to another language or program language 
without prior written consent of RFI Engineering B.V. 

 

 

 

 

QIG_G-router_1.2.2 

Page: 17(

21)  

5  Advanced configuration, user ‘root’ 

All configuration of the G-router is stored in and retrieved from the Hierarchical Information Base 
(HIB). The HIB is a database for storing configuration and run-time information for (embedded) 
RFI  products.  All  manipulation  of  configuration  elements  of  the  unit  is  done  through  the 
command line  interface tool called the HIB client  (hipc). Only user ‘root’ has access through all 
configuration settings of the G-router. Normal day-to-day operation should always be performed 
by  the  user  ‘admin’  or  any  of  its  sub-users.  Root  access  is  only  applicable  in  case  you  want  to 
make upgrades to the software. 
 
The HIB uses a tree-shaped hierarchical data structure for storing objects. A schema defines the 
hierarchical relations of the objects in the tree, and describes the properties of each object. 
 
The schema-tree is built from the following node types: 
 

 

Group

: A group is a container for holding other 'child' nodes. 

 

Object

: An object is the 'leaf' of the tree, which contains the actual data. 

 

Array

: An array is a container which can hold zero or more copies of its sub-tree. 

 
Every entry in an array is identified by an integer index, starting from 0. The following diagram 
is an example of a simple schema: 
 

-- config (group) 
|-- network (group) 
| |-- interface (array) 
| | |-- ifname (object) 
| | |-- ip_address (object) 
| | `-- netmask (object) 
`-- hostname (object) 

 
To retrieve a configuration setting you have to give the HIB client “

hibc ls

” command followed 

by  the  group,  object  or  array  identifier.  For  example  to  retrieve  the  current  IP  address 
configuration of the G-router you would give the following command: 

 

hibc ls -rl /config/network/eth0/ 
 
Srwp    47 Jan  1 02:09   |- ip_method "static" 
Or--    48 Jan  1 00:00   |  |- static 
-rwp    49 Jan  1 02:09   |  |  |- ip_address "192.168.168.1" 
-rwp    50 Jan  1 00:00   |  |  |- netmask "255.255.255.0" 
-rwp    51 Jan  1 00:00   |  |  |- gateway "192.168.168.254" 
Lrwp    52 Jan  1 00:00   |  |  `- dns 
Or--    53 Jan  1 00:00   |  `- dhcp 
Lrwp    54 Jan  1 00:00   |- route 
Lrwp    55 Jan  1 00:00   `- alias 

 
 
The  setting  of  configuration  elements  is  done  through  the  HIB  client  by  giving  the  command 

hibc  set

”.  For  example  to  set  the  IP  address  of  the  G-router  you  would  give  the  following 

command: 
 

hibc set config/network/eth0/ip_method/static/ip_address "192.168.168.1" 

 
 
The  following  paragraphs describe  a number of  examples  for  getting and  setting  information  in 
the G-router. 
 

Summary of Contents for G-router

Page 1: ...r GSM GPRS to RS 232 and Ethernet Gateway Quick Installation Guide Author RFI Support Team Revision A0 Quick Install Guide Version QIG_G router_1 2 2 Date 12 01 2012 Covering Product code G router RE...

Page 2: ...ia SSH and the Ethernet port CLI 11 4 2 Logging out CLI 12 4 3 Changing your password CLI 12 4 4 Console login via browser and the Ethernet port web 14 4 5 Console login via GSM dial in 15 4 6 Disconn...

Page 3: ...able password settings Configurable idle timer default set to 5 minutes Configurable escape sequence to take control of the GSM modem Default set to Relay LED toggle_relais command Synchronize the Lin...

Page 4: ...can be used for an effective reboot of the connected equipment The G router can be customized to optimally suit customer requirements to provide a reliable competitive solution for wireless M2M projec...

Page 5: ...n consent of RFI Engineering B V QIG_G router_1 2 2 Page 5 21 1 1 Check Your Package Contents These are the items included with your G router purchase 1x G router GSM GPRS unit 1x PoE Power Supply uni...

Page 6: ...s on the G router Unit This section provides an overview of the connectors and status LEDS on the G router unit Figure 1 G router front view 1 Blue Power LED 2 Green Modem 3 Green Status Flashing when...

Page 7: ...r translated to another language or program language without prior written consent of RFI Engineering B V QIG_G router_1 2 2 Page 7 21 2 1 Ethernet and 802 3af Power over Ethernet Pin Assignments 2 2...

Page 8: ...t to the low power device you can use a cable with an RJ 11 connector The two middle pins pin 3 and 4 of the RJ 11 connector are connected to the relay whereby the relay is normally open This contact...

Page 9: ...G router in such a way that adequate GSM reception is obtained You can see the GSM signal levels in the configuration menu of the G router Please see paragraph 5 4 for retrieving the GSM status 3 1 I...

Page 10: ...top left corner in the picture below 6 Re assemble the unit taking the above steps in reverse order After insertion of the SIM card and reassembly of the unit you can start configuring the unit 3 2 Co...

Page 11: ...re you use a cross Ethernet cable The default IP address of the G router is set to 192 168 168 1 After configuring your PC to be able to contact the G router you can login using your favorite SSH clie...

Page 12: ...ng the arrow keys Use up and down arrow to select objects Use enter or space to fold open Use right arrow to change focus 4 2 Logging out CLI Before going further you should know how to log out of the...

Page 13: ...ws All rights are reserved No part of this document may be photocopied reproduced or translated to another language or program language without prior written consent of RFI Engineering B V QIG_G route...

Page 14: ...t of RFI Engineering B V Page 14 21 4 4 Console login via browser and the Ethernet port web To connect to your G router using a standard web browser start the web browser and enter the IP address of t...

Page 15: ...router the G router displays a menu with options These options can be accessed during the dial in session by giving an escape sequence For example to show the menu again you can type CTRL followed by...

Page 16: ...nd a password login as root password Welcome RFI Engineering RFIos Rose Version G router buildnr 0235 Build on 01 28 2008 15 51 05 root G router 00804855565C The default password for the unit is set t...

Page 17: ...m the following node types Group A group is a container for holding other child nodes Object An object is the leaf of the tree which contains the actual data Array An array is a container which can ho...

Page 18: ...316xxxxxxxx Lrwp 41 Jan 1 00 00 boot_sms_objects Or 42 Jan 1 00 00 disabled Grwp 43 Jan 1 00 00 sms_commands Srwp 44 Jan 1 00 00 sms_commands_enable enabled Or 45 Jan 1 00 00 enabled rwp 46 Jan 1 00...

Page 19: ...The network_signal 5 means this unit has excellent reception The possible values for this field are 0 G router has no service 1 G router has 1 bar of signal strength 2 G router has 2 bars of signal s...

Page 20: ...3 Green GSM Status 4 Green Call Status 5 Green GPRS status 6 Green Contact Relay status 6 1 Power LED The blue power LED is hardwired to the power supply of the G router and should always be lit when...

Page 21: ...essfully connected to the GPRS network of the GSM operator When there is no GPRS coverage possible the LED will be off 6 6 Relay status LED The G router already has a relay status LED but NO relay con...

Reviews: