Support : Industrial : AIRcable AIRmotes Programming Handbook : PART 1
PART 1: Access to the AIRmote
The AIRmote has three access interfaces available over the air.
(Our previous AIRcable Command Line Interface through the UART serial interface is no longer available.)
Using another Bluetooth compatible device, such as a PC or Palmpilot, the AIRmote can be detected and will, by default, display the OBEX FTP profile and the OBEX item-exchange profile. The OBEX FTP allows users to access the file system and to configure the AIRmote device.
Two files are always present:
These files are for the configuration of the AIRmote. AIRcable.bas is the BASIC program, and config.txt is the persistent configuration.
In config.txt, further configuration can be disabled. This will prevent upload, download and changing of these two files. The FTP protocol will still allow access to user files stored in the file system of the AIRmote.
The OBEX item-exchange profile is used for communicating with other AIRmote devices. For further details, see Part 3, Message Passing.
Configuration
The file config.txt contains the configuration of the AIRmote. This file is downloadable from the AIRmote to the PC so that PC users can view the configuration. It is also uploadable from the PC to the AIRmote so that the user can configure the hardware and the Bluetooth radio.
The configuration is a string of 16-bit hex numbers. The first hex number starts with "@" and the address of the configuration parameter. Then the syntax requires a space, an equal sign, and another space. A number of hex values follow.
Example: @0000 = 00c2 0104 0014
These configuration variables are defined as follows:
| // date @cccc = 20050828T005500Z |
8/28/2005 Time = 00:55.00 Zulu |
| // sniff max, min intv, attempt, timeout @0002 = 0150 0050 0002 0028 |
= 150 ms, 50 ms, 2 attempts, 28 sec timeout |
| // analog input correction @0008 = 03e8 |
|
| = hex 0000 0011 1110 1000 = decimal = 8 + 32 + 64 + 128 + 256 + 512 = 1000 (1.000) |
Example config.txt file:
// date
@cccc = 20050828T005500Z
// BT Class of device & version
@0000 = 00c2 0104 0013
// Name of device
@0001 = 0041 0049 0052 0070 0068 006f 006e 0065 0020 0031 0032
// sniff max, min intv, attempt, timeout
@0002 = 0150 0050 0002 0028
// pg scan intv, wind, inq scan intv, wind
@0003 = 0800 0012 1000 0012
// default and max RF output power
@0004 = 0000 0006
// default PIN code
@0005 = 0030 0030 0030 0030
// config security
@0006 = 0000 0001
// baud rate, stop bits, parity
@0007 = 009d 0000 0000
// analog input correction
@0008 = 03e8