Programming Over Air
The AIRcable OS device supports wireless file transfer to install application:
Using another Bluetooth compatible device, such as a PC or a PDA, the AIRmote can be detected and will, by default, display the OBEX FTP profile and the OBEX item-exchange profile.
- OBEX FTP file transfer server
- OBEX item exchange server
The OBEX FTP allows users to access the file system and to configure the AIRcable OS device.
Two files are present:
- AIRcable.bas
- config.txt
AIRcable.bas file contains the BASIC program that runs on the AIRcable OS.
While config.txt is the persistent configuration used initially to configure the radio.
In config.txt, further configuration can be disabled. It can be used to allow or prevent upload, download, and any changing of these two files.
The OBEX item-exchange profile is used for communicating with other AIRcable devices using message and for business card exchange. For further details, see Part 3, Message Passing.
Configuration
The file config.txt contains the configuration of the AIRcable OS. This file can be also downloaded from the AIRcable to the PC so that PC users can view the configuration.
It is mainly used to upload from the PC to the AIRcable so that the user can configure the hardware and the Bluetooth radio.
The config.txt file has a specific format. The configuration is a set of lines containing an address and 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 fixed 4 digit hex values follow.
Example: @0000 = 00c2 0104 0014
These configuration variables are defined as follows:
|
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 = 0031 0032 0033 0034
// config security
@0006 = 0000 0000 0000
// baud rate, stop bits, parity
@0007 = 009d 0000 0000
// analog input correction
@0008 = 03e8 03e8