Snapdragon® Telematics Application Framework (TelAF) Interface Specification
|
The diag update service APIs are used by applications to handle transfer requests from UDS clients. The diag update service includes the TransferData(0x36), RequestTransferExit(0x37), and RequestFileTransfer(0x38) services.
All functions of this API are provided by the tafDiagSvc platform service.
The following example illustrates how to bind to the diag update service.
bindings: { clientExe.clientComponent.taf_diagUpdate -> tafDiagSvc.taf_diagUpdate }
After getting a reference, an application registers a file transfer handler using taf_diagUpdate_AddRxFileXferMsgHandler(). Once a file transfer request message is received, the handler will be called indicating the new message.
An application can get a file path and name, and length by using taf_diagUpdate_GetFilePathAndName().
An application can set the file position by using taf_diagUpdate_SetFilePosition().
An application can set the file size or directory information length by using taf_diagUpdate_SetFileSizeOrDirInfoLength().
An application can send a file transfer response by using taf_diagUpdate_SendFileXferResp().
The following APIs are provided for request file transfer.
An application registers a transfer data handler using taf_diagUpdate_AddRxXferDataMsgHandler(). Once a transfer data request message is received, the handler will be called indicating the new message.
An application can get the data length and payload by using taf_diagUpdate_GetXferDataParamRecLen() and taf_diagUpdate_GetXferDataParamRec() referring to the following sample code snippets.
An application can send a transfer data response by using taf_diagUpdate_SendXferDataResp().
The following APIs are provided for transfer data.
An application registers a transfer exit handler using taf_diagUpdate_AddRxXferExitMsgHandler(). Once a transfer exit request message is received, the handler will be called indicating the new message.
An application can send a transfer exit response by using taf_diagUpdate_SendXferDataResp().
The following APIs are provided for request transfer exit.
The following APIs are provided for service reference.