Welcome to Developer's Home Wednesday, April 23, 2014
Home - DevelopersHome.com

Configuring Gnokii / XGnokii on Linux


Preferences - Do not show ads

Now we have successfully installed Gnokii/XGnokii on Linux. Next, we need to specify the correct settings in Gnokii's configuration file.

There is a sample configuration file gnokiirc in the gnokii-version/Docs/sample directory of the extracted source tarball, where version is the version of Gnokii you are using. As we are using Gnokii 0.6.14, the sample configuration file is located at the gnokii-0.6.14/Docs/sample directory. Copy it to your home directory in Linux and add a dot character to the beginning of its file name using the following command line:

# cp gnokii-0.6.14/Docs/sample/gnokiirc ~/.gnokiirc

Next open the file .gnokiirc in your home directory with a text editor. All lines that begins with the "#" character in the configuration file are comments. The usage of some commonly used parameters and parameter values are described in the following sections. Details of the other parameters can be found in the sample configuration file. Also, the web page at http://wiki.gnokii.org/index.php/Config contains some configurations that are reported to work under Linux. You can check whether information about your mobile phone is available on that web page.


The port Parameter -- Specifying the Port on the PC that the Mobile Phone is Connected to

The port parameter specifies the port on the PC that the mobile phone is connected to. You must have read and write permissions on the port.


Serial Connection (RS-232 Connection)

If the mobile phone is connected to the serial port (RS-232 port) of the PC, the value of the port parameter should be set to /dev/ttySn, where n = 0, 1, 2... For example:

port = /dev/ttyS0


Bluetooth / RFCOMM Connection

If the mobile phone is connected to the PC via Bluetooth, the value of the port parameter should be set to the Bluetooth address of the mobile phone. If you are going to use a RFCOMM connection between the PC and the mobile phone, the value of the port parameter should be set to /dev/rfcommn, where n = 0, 1, 2... Below are some examples:

# Example 1:
port = 00:11:AB:B3:10:EB

# Example 2:
port = /dev/rfcomm0

If Gnokii's source code is not compiled with Bluetooth support, the only choice is to use a RFCOMM connection.

Note that only AT mode (i.e. the value of the model parameter is set to AT) can work with a RFCOMM connection.


Infrared (IrDA) Connection

If the mobile phone is connected to the PC via infrared (IrDA), the value of the port parameter should be set to /dev/ircommn, where n = 0, 1, 2... For example:

port = /dev/ircomm0


USB Connection

If the mobile phone is connected to the USB port of the PC, the value of the port parameter should be set to /dev/ttyUSBn, where n = 0, 1, 2... The value can also be set to /dev/ttyACMn if AT mode is used. Below are some examples:

# Example 1:
port = /dev/ttyUSB0

# Example 2:
port = /dev/ttyACM0

Preferences - Do not show ads


Page 4 of 12 Previous Page | Next Page
Contents at a Glance
Print this Web Page | | Back to Top
Custom Search

Feedback Form (Expand)

What do you think about this web page?






Table of Contents Contents at a Glance Preferences - Change Color Scheme Preferences - Do Not Show Ads Previous Page Next Page

SMS Gateway Service


Bulk SMS software