DBR701 Class
10/16/2008
This class enables communication with the MSN Direct receiver by implementing the low-level details of the MSN Direct protocol on the host device.
Syntax
class DBR701
Methods
Method | Description |
---|---|
Initializes an instance of the DBR701 class. |
|
Closes all open handles and threads. |
|
Returns the degree of completion of the current MSN Direct receiver firmware upgrade, if an upgrade is currently being performed. |
|
Requests the Common Alerting Protocol (CAP) core emergency alerts from the MSN Direct receiver. |
|
Requests up-to-date data about CAP emergency supplemental alerts from the MSN Direct receiver. |
|
Requests the status of the download from the MSN Direct receiver. |
|
Requests up-to-date data about gas prices at local gas stations from the MSN Direct receiver. |
|
Requests up-to-date data about local gas stations from the MSN Direct receiver. |
|
Requests up-to-date data for group messages from the MSN Direct receiver. |
|
Requests up-to-date data about events that are occurring in the local area from the MSN Direct receiver. Local-events data includes the event name, the address of the event, and a contact phone number. |
|
Requests up-to-date data for the local time from the MSN Direct receiver. |
|
Requests up-to-date data about movie properties from the MSN Direct receiver. Movie properties include genre, rating, and actors. |
|
Requests up-to-date data about movie theaters in the local area from the MSN Direct receiver. |
|
Requests up-to-date data about movie show times from the MSN Direct receiver. |
|
Requests up-to-date data about movie titles from the MSN Direct receiver. |
|
Requests up-to-date data about news items for major news stories from the MSN Direct receiver. |
|
Increments the transaction counter and returns the new transaction count. |
|
Requests up-to-date data about weather conditions in major cities across the country/region. |
|
Requests up-to-date data about the power status from the MSN Direct receiver. Power-status information includes battery power level. |
|
Requests registration data from the MSN Direct receiver. |
|
Requests up-to-date data about stock quotes from the MSN Direct receiver. Stock-quotes data includes prices, daily highs, daily lows, and trading volume. |
|
Requests up-to-date data about stock symbols from the MSN Direct receiver. |
|
Requests the status on whether the MSN Direct receiver is currently subscribed to MSN Direct services over the Microsoft DirectBand Network. |
|
Requests up-to-date data about traffic-flow events from the MSN Direct receiver. Traffic-flow events data includes event duration, event extent, and traffic-flow speed in miles per hour. |
|
Requests up-to-date data about traffic incidents from the MSN Direct receiver. Traffic-incidents data includes warnings about events that block traffic flow, such as accidents, road closures, and road construction in the local area. |
|
Requests tuning data from the MSN Direct receiver. Tuning data includes strength, frequency, and signal status. |
|
Requests up-to-date data about favorite locations that you sent to the MSN Direct receiver from a desktop PC by using the Send to GPS feature of Live Search. |
|
Requests protocol-version information from the MSN Direct receiver. |
|
Requests up-to-date data about weather conditions in the local area from the MSN Direct receiver. Weather conditions include temperature, wind direction, and pressure trend. |
|
Requests up-to-date data for weather alerts from the MSN Direct receiver. A weather alert describes a weather event in the local area. |
|
Indicates whether the connection with the MSN Direct receiver is currently active. |
|
Indicates whether the MSN Direct protocol is in flash mode. |
|
Resets the state machine, opens the serial port that has the specified name, and starts the internal HeartBeatThread, if it is not already running. |
|
Prepares a simple response message that will be sent to the MSN Direct receiver. This message provides feedback about an incoming message that was accepted from the receiver. |
|
Processes a message that was accepted from the MSN Direct receiver. This method is called internally to process a full frame every time a full frame is read from the MSN Direct receiver without errors. |
|
Responds to a call that occurs when the host device must answer a power-status request sent from the MSN Direct receiver. |
|
Requests that the MSN Direct receiver is transitioned into manufacturing mode. |
|
Requests that the FM radio on the MSN Direct receiver be switched ON or switched OFF. |
|
Requests up-to-date data for the specified MSN Direct service. |
|
Sets the transaction counter to 0. |
|
Sends the specified message to the MSN Direct receiver synchronously. It blocks until a response is received, or until the time-out period expires. |
|
Initiates a firmware upgrade on the MSN Direct receiver that starts in a separate thread. |
Remarks
You must subclass the DBR701 class and override the ProcessInMessageFromReceiver method in order to provide custom message-handling routines for all message types supported by the MSN Direct application. To start communications with the MSN Direct receiver, the application can call the Open method.
In the pull model for exchanging messages, the ProcessInMessageFromReceiver method is invoked to respond to a previous request by calling one of the Get* methods. In the push model, the ProcessInMessageFromReceiver method is invoked when the receiver sends refreshed, up-to-date data to the host device.
The MSN Direct application must handle messages received through ProcessInMessageFromReceiver and return the appropriate application type in the responseMessage output parameter. Note that this method is executed on one of the threads from the pool of application-callback threads. Therefore, the MSN Direct application might have to use the appropriate thread-synchronization mechanisms when it handles messages sent from the MSN Direct receiver.
The MSN Direct library does not maintain any type of cache for messages. Therefore, the MSN Direct application must create and maintain thread-safe caches for all messages, and also replace or delete expired messages. The MSN Direct library does not process the contents of messages; it only performs minimal message parsing and simply parses messages from the MSN Direct receiver before routing them to the MSN Direct application.
In MSN Direct services for Windows Embedded CE, the host device is the Windows Embedded CEābased device.
Requirements
Header | DBR701.h |
Library | DBRLib.lib |
Windows Embedded CE | Windows CE 5.0, Windows Embedded NavReady 2009 |