Difference between revisions of "Complex Arbritration Example"
(New page: Consider a complex mote based on the telosb mote that includes the following: * serial communication for direct connection. * serial communication for gps. * serial communication disabled...) |
|||
Line 21: | Line 21: | ||
=== Impact of GPS === | === Impact of GPS === | ||
− | GPS causes the existence of multiple serial paths that can be active at the same time. Assume that SERIAL is selected | + | GPS causes the existence of multiple serial paths that can be active at the same time. Assume that SERIAL is selected when the GPS is turned on. The GPS driver will request the UART1 h/w and will need to keep it while receiving packets from the GPS. But while the GPS is functioning it is desirable to be able to receive control packets from the SERIAL port. The SERIAL module is a default owner so the GPS module obtains the port for some amount |
+ | of time, releases (at a message boundary), and then requests again after an interval (allowing the SERIAL port to potentially start receiving a packet), | ||
+ | the SERIAL port won't release if a packet has started to be received. The SERIAL driver will release when it gets to a packet boundary. | ||
=== Sharing Strategies === | === Sharing Strategies === | ||
** Forcing the GPS to release/request at message boundaries costs significant overhead from the unconfigure/configure at each release/request/grant. | ** Forcing the GPS to release/request at message boundaries costs significant overhead from the unconfigure/configure at each release/request/grant. |
Revision as of 23:14, 26 November 2008
Consider a complex mote based on the telosb mote that includes the following:
- serial communication for direct connection.
- serial communication for gps.
- serial communication disabled.
- radio communication (SPI based)
- mass storage using a Secure Digital card (SPI based)
- Serial communication utilizes UART1/USART1 with an external multiplexer for switching between the three choices.
- Radio communication uses a CC2420 ChipCom radio that uses the SPI bus. This uses SPI1/USART1.
- SD Mass Storage uses the SPI and uses SPI1/USART1.
Communications can be in one of three modes, NONE, SERIAL, or RADIO. This will determine which Default Owner will own the resource. NONE being selected allows USART1 and associated h/w to be powered down. SERIAL being selected configures the serial hardware (including connecting clocks and timers which prevent the CPU from going into a lower power mode). SERIAL will own the h/w unless another module requests it. This ownership allows the serial port to receive packets. The SERIAL driver manages incoming bytes on a packet level and will only release the h/w at a packet boundary.
Impact of GPS
GPS causes the existence of multiple serial paths that can be active at the same time. Assume that SERIAL is selected when the GPS is turned on. The GPS driver will request the UART1 h/w and will need to keep it while receiving packets from the GPS. But while the GPS is functioning it is desirable to be able to receive control packets from the SERIAL port. The SERIAL module is a default owner so the GPS module obtains the port for some amount of time, releases (at a message boundary), and then requests again after an interval (allowing the SERIAL port to potentially start receiving a packet), the SERIAL port won't release if a packet has started to be received. The SERIAL driver will release when it gets to a packet boundary.
Sharing Strategies
- Forcing the GPS to release/request at message boundaries costs significant overhead from the unconfigure/configure at each release/request/grant.