1.2.4.3. The connection Parameter -- Specifying the Connection Type between the PC and the Mobile Phone
The connection parameter specifies the type of the connection between the PC and the mobile phone.
1.2.4.3.1. AT Command Mode
If the AT command mode is used, no matter how the mobile phone is connected to the PC, the value of the connection parameter should be serial in Gnokii's configuration file:
model
= AT
connection = serial
Note that the settings mentioned below are for non-AT command mode.
1.2.4.3.2. Serial Connection (RS-232 Connection)
If the mobile phone is connected to the PC via a serial port (RS-232 port), assign the value serial to the connection parameter in Gnokii's configuration file:
connection = serial
If the serial cable used to connect the mobile phone and the PC is Nokia's DLR-3 or DLR-3P, specify dlr3p as the value of the connection parameter:
connection = dlr3p
If your mobile phone is Nokia 6210, Nokia 6250 or Nokia 7110 and the serial cable is Nokia's DAU-9P, specifying dau9p as the value of the connection parameter will allow Gnokii to initialize faster:
connection = dau9p
1.2.4.3.3. Bluetooth / RFCOMM Connection
If the mobile phone is connected to the PC via Bluetooth, assign the value bluetooth to the connection parameter in Gnokii's configuration file:
connection = bluetooth
Only AT command mode can work with a RFCOMM connection. So, if you use a RFCOMM connection between the mobile phone and the PC, the value of the connection parameter should be set to serial.
1.2.4.3.4. Infrared (IrDA) Connection
If the mobile phone is connected to the PC via infrared (IrDA) and Gnokii's nk6100 driver is used to communicate with your mobile phone (see "Mobile Phone Models Supported by Gnokii" if you do not know which driver Gnokii uses to communicate with your mobile phone), specify the value infrared to the connection parameter in Gnokii's configuration file:
connection = infrared
If the nk6100 driver is not used, use the value irda:
connection = irda
1.2.4.3.5. USB Connection
If the mobile phone is connected to the PC via a USB connection and the cable used is DKU-2 from Nokia, you have two choices. The better choice is to use libusb:
connection = dku2libusb
If the Linux kernel supports the DKU-2 cable, you can use the second choice as shown below. More details are available in the readme file README-DKU2 located in the gnokii-version/Docs directory of the extracted source tarball, where version is the version of Gnokii you are using. (e.g. gnokii-0.6.14/Docs if the version of Gnokii is 0.6.14.)
connection = dku2
If the mobile phone is connected to the PC via a DKU-5 USB cable from Nokia, you should specify dku5 to the connection parameter in Gnokii's configuration file, like this:
connection = dku5
Some information about Linux's support of the USB cables for connecting mobile phones is available at http://wiki.gnokii.org/index.php/Cables.
Previous Page | Page 6 of 12 | Next Page |
- 1. How to Use a Linux PC to Send and Receive SMS Messages (Non-Developer's Perspective)
- 1.1. Requirements for Sending and Receiving SMS Messages from a Linux PC via a Mobile Phone
- 1.2. Using Gnokii to Send and Receive SMS Messages from a Linux PC
- 1.2.1. Introduction
- 1.2.2. Mobile Phone Models Supported by Gnokii
- 1.2.3. Installing Gnokii / XGnokii
- 1.2.4. Configuring Gnokii / XGnokii on Linux
- 1.2.5. Examples
- 1.2.6. Testing Gnokii on Linux
- 1.2.7. Sending SMS Text Messages with XGnokii on Linux
- 1.2.8. Receiving SMS Text Messages with XGnokii on Linux
- 1.2.9. Importing and Exporting Phone Book Entries with XGnokii on Linux