196
12.8
Wireless IO Replacement
iWRAPs can be used to do wireless IO replacement, that is, to transmit the status of GPIO
PINs over the SPP link. This means that if the status of the local IO changes, so does the
status of the remote IO. This functionality can be accomplished by using the MSC (Modem
Status Control) feature in iWRAP.
Host
iWRAP
iWRAP
Host
SET BT AUTH * {
pin
}
CALL {
bd_addr
} 1101
RFCOMM
SET BT AUTH * {
pin
}
Open Bluetooth connection
Connection successful
CALL {
link_id
}
CONNECT {
link_id
}
RFCOMM {
channel
}
RING {
link_id
} {
bd_addr
}
{
channel
} RFCOMM
SET CONTROL MSC DTE
80 20 0 0 0 0
MSC status update
Change PIO5 status
SET CONTROL MSC DCE
20 80 0 0 0 0
Change PIO5 status
Mode switch to data mode
PIO7 status changes
PIO7 status changes
MSC status update
Figure 16:
Wireless IO replacement connection
The example above was done with WT12 evaluation kits. In the evaluation kit, there is a
DSR button in PIO5 and a LED in PIO7. Parameter 80 matches with PIO7 and parameter
20 with PIO5. So whenever DSR button is pressed in the local device, the LED status
changes in the remote end.
NOTE:
Switching the IO status very rapidly may reset iWRAP as the GPIO interrupts are
handled with low priority. Therefore MSC feature is not feasible for radio GPIO
sampling application.
There is also a delay when transmitting the MSC status over the
Bluetooth
link.
Without power saving in use, this delay is roughly 20ms and if power saving is in
use, the delay depends on SNIFF mode parameters.
Содержание IWIP3G - IWRAP - IPHONE 3G
Страница 1: ...iWRAP3 U s e r G u i d e V e r s i o n 1 3 F r i d a y S e p t e m b e r 2 6 2 0 0 8...
Страница 31: ...31 INQUIRY 3 INQUIRY 00 18 42 f1 a5 be 5a020c INQUIRY 00 17 e4 ef f9 01 50020c INQUIRY 00 07 80 87 68 ec 200428...
Страница 33: ...33 Note IC command cancels the inquiry only if issued before the INQUIRY num_of_devices message...
Страница 116: ...116 6 18 2 Examples How to disable default escape character and configure DTR to PIO5 SET CONTROL ESCAPE 20 1...
Страница 169: ...169 9 7 RS232 Connections Diagram Figure 7 RS232 connections...
Страница 187: ...187 Example trace of file reception via OPP Figure 12 Receiving a vCard over OPP...
Страница 197: ...197 Figure 17 MSC signal directions...