ST-Ericsson Android Bluetooth FTP Software Architecture version 0.1

DISCLAIMER © Copyright ST-Ericsson, 2010. All Rights Reserved. The contents of this document are subject to change without prior notice. ST-Ericsson makes no representation or warranty of any nature whatsoever (neither expressed nor implied) with respect to the matters addressed in this document, including but not limited to warranties of merchantability or fitness for a particular purpose, interpretability or interoperability or, against infringement of third party intellectual property rights, and in no event shall ST-Ericsson be liable to any party for any direct, indirect, incidental and or consequential damages and or loss whatsoever (including but not limited to monetary losses or loss of data), that might arise from the use of this document or the information in it. ST-Ericsson and the ST-Ericsson logo are trademarks of the ST-Ericsson group of companies or used under a license from STMicroelectronics NV or Telefonaktiebolaget LM Ericsson. All other names are the property of their respective owners. For more information on ST-Ericsson, visit www.stericsson.com

Introduction to Android Bluetooth File Transfer Profile ∙ Designed by ST-Ericsson based on SIG FTP specs 1.1 ∙ In line with existing OPP/PBAP profile in Android. In terms of architecture and code organization.

∙ Reuses existing OPP source code and enhances FTP specific functionality. ∙ Extensively tested and stable.

∙ Data path fine tuned for maximum throughput over obex in Android. ∙ Code profiling done using advanced tools such as Coverity Prevent.

Features highlights of ST-Ericsson Android Bluetooth File Transfer Profile ∙ FTP server role supported. ∙ Uses Secure Rfcomm APi’s for pin authentication for ftp service connection. ∙ FTP server accepts and responds to browse folder request. ∙ FTP server accepts the browse folder and subfolder requests. ∙ A file or folder can be pushed to the FTP server. ∙ Multiple files or folders can also be pushed to the ftp server. ∙ A file with any extension or folder can be pulled from FTP server.

∙ New folders can also be create on FTP server depending on permissions. ∙ Respective error codes generated and sent from ftp server in case of a failed transaction. ∙ Option to configure root directory on server.

Integration with Android Framework Changes ∙ Below are the files which have to be modified for integrating FTP with framework. ∙ $/frameworks/base/core/java/android/server/BluetoothService.java ∙ BluetoothService.java - This class is responsible to register Bluetooth services to the sdp tool when device’s Bluetooth switches ON. Here new lines are added to register FTP service. ∙ $/frameworks/base/core/java/android/bluetooth/BluetoothUuid.java ∙ BluetoothUuid.java This class defines the UUIDs used to represent Bluetooth profiles. ∙ Here we add UUID for FTP and defines it as reserved UUID. Add UUID for FTP. ∙ The definition of RESERVED_UUIDS also needs to be changed. ∙ AndroidManifest.xml in location $/packages/apps/Bluetooth. ∙ Create root.config in /data/data/com.android.bluetooth/files. If files folder not present create it. This file will have the configurable path for the root directory of ftp server. viz /usr is a valid path.

Limitations of ST-Ericsson Android Bluetooth File Transfer Profile ∙ File of zero size or without extension cannot be pushed to the FTP server ∙ Implementation does not delete the incomplete folder/file transfers ∙ Directory path which is mentioned in the root.config (root configuration file in /data/data/com.android.bluetooth/files) may contain system files/folders. Hence it may be deleted by the remote ftp client and cause abnormal behavior of the system. ∙ Before connecting first time to FTP server, root.config must be added else usr root directory will be exposed to the remote client by default. ∙ If a folder has a file with zero size or no extension file, its push transmission will be aborted and hence folder push request will be terminated with respective response code. FTP server role supported.

System Arcitecture BT turns on

BluetoothFtp Receiver.java

BluetoothFtp Batch.java

BluetoothFtp ShareInfo.jav a

BluetoothFtpT ransfer.java

BluetoothFtp Preference.ja va

Legend

BluetoothFtp RfcommListe ner.java

BluetoothFtp Service.java

BluetoothFtp Manager.java

BluetoothFtp ObexServerS ession.java

BluetoothFtpF ileUtility.java

BluetoothFtp ObexSession. java

New files added for FTP. Based on existing OPP files but enhanced for FTP.

BluetoothFtp Provider.java

BluetoothFtp Notification.ja va

BluetoothFtp Utility.java BluetoothFtp XmlFormer.ja va

BluetoothSha re.java

BluetoothFtp RfcommTrans port.java

Constants.jav a

Use case: GET request from remote ftp client Remote client initiates request

ServerRequestHandler’s on Connect called creating new server connection

onSetPath called setting current root path and BluetoothFTPxmlFormer is created

Server returns current directory content in xml to client

Client selects and requests a file

ServerRequestHandler’s onGet called which calls sendFile method to send file to client Invalid file request

ServerRequestHan dler’s onSetPath called to send current directory content to client again in xml format

File transfer success ?

Yes

No

Send relevant error code to client

Client sends disconnect request

onDisconnect method on Server called to complete disconnect

Request complete

Use case: PUT request from remote ftp client Remote client initiates request

ServerRequestHandler’s on Connect called creating new server connection

onSetPath called setting current root path and BluetoothFTPxmlFormer is created

Server returns current directory content in xml to client

Client selects and sends PUT file request

ServerRequestHandler’s onPut called which calls recieveFile method to receive file from client Invalid file request

ServerRequestHan dler’s onSetPath called to send current directory content to client again in xml format

File transfer success ?

Yes No

Send relevant error code to client

Client sends disconnect request

onDisconnect method on Server called to complete disconnect

Request complete

THANK YOU

FM Radio in Android -

Code profiling done using advanced tools such as. Coverity Prevent. ... $<mydroid>/frameworks/base/core/java/android/bluetooth/BluetoothUuid.java.

262KB Sizes 2 Downloads 292 Views

Recommend Documents

FM Radio in Android -
Introduction to Android Bluetooth File Transfer Profile. ∙ Designed by ... to be changed. ∙ AndroidManifest.xml in location $/packages/apps/Bluetooth.

Portable FM Radio - GitHub
There is a hole on the top of the ... This design makes the components easily changeable and all of the expensive .... Si4701/035 document and the G Laroche6 website. ... .com/attach/BCA/BCA-764/35383_AN243%20Using%20RDS_RBDS.pdf ... My experiments s

Cheap Portable Digital Dab⁄Dab Radio Fm Radio Stereo Receiver ...
Cheap Portable Digital Dab⁄Dab Radio Fm Radio Stere ... ocal Dab Y4107H Free Shipping & Wholesale Price.pdf. Cheap Portable Digital Dab⁄Dab Radio Fm ...

Cheap Retail-Tecsun Pl600 Fm Radio Stereo Pl-600 Fm Radio ...
Cheap Retail-Tecsun Pl600 Fm Radio Stereo Pl-600 Fm Radio Clock Radio Free Shipping & Wholesale Price.pdf. Cheap Retail-Tecsun Pl600 Fm Radio Stereo ...

Cheap Pure Fm-980P Mini Fm Radio Audi Transmitter For Car ...
Cheap Pure Fm-980P Mini Fm Radio Audi Transmitter F ... Driving School Free Shipping & Wholesale Price.pdf. Cheap Pure Fm-980P Mini Fm Radio Audi ...

Cheap Cze-T200 0.2W Portable Fm Transmitter Radio Broadcast ...
Cheap Cze-T200 0.2W Portable Fm Transmitter Radio ... ⁄Church⁄School Free Shipping & Wholesale Price.pdf. Cheap Cze-T200 0.2W Portable Fm Transmitter ...

Cheap Mini Portable Fm Radio Solar Power Bank Led Flashlight ...
Cheap Mini Portable Fm Radio Solar Power Bank Led Fl ... Christmas Gifts Free Shipping & Wholesale Price.pdf. Cheap Mini Portable Fm Radio Solar Power Bank Led Fla ... s Christmas Gifts Free Shipping & Wholesale Price.pdf. Open. Extract. Open with. S

Cheap White Mini Frequency Modulation Fm Radio Digital Signal ...
Cheap White Mini Frequency Modulation Fm Radio Digi ... Earphone Radio Free Shipping & Wholesale Price.pdf. Cheap White Mini Frequency Modulation Fm Radio Digit ... h Earphone Radio Free Shipping & Wholesale Price.pdf. Open. Extract. Open with. Sign

Cheap Modern Design Compact Digital Alarm Clock Fm Radio With ...
Cheap Modern Design Compact Digital Alarm Clock Fm ... ome Desk Clock Free Shipping & Wholesale Price.pdf. Cheap Modern Design Compact Digital Alarm ...

Cheap Mini Portable Bamboo Wood Boombox Fm Radio Receiver ...
Cheap Mini Portable Bamboo Wood Boombox Fm Radio ... emote Control Free Shipping & Wholesale Price.pdf. Cheap Mini Portable Bamboo Wood Boombox ...

Cheap Portable Solar Crank Power Fm Radio Hand Crank Dynamo ...
Cheap Portable Solar Crank Power Fm Radio Hand Cra ... Phone Charger Free Shipping & Wholesale Price.pdf. Cheap Portable Solar Crank Power Fm Radio ...

Cheap F Connector Telescopic Aerial Antenna Radio Dab Fm 75 ...
Cheap F Connector Telescopic Aerial Antenna Radio D ... ,Sangean Wr-11 Free Shipping & Wholesale Price.pdf. Cheap F Connector Telescopic Aerial Antenna ...

Cheap 15W Fm Broadcast Transmitter St-15B Stereo Pll Fm Radio ...
Cheap 15W Fm Broadcast Transmitter St-15B Stereo P ... ode Whosesales Free Shipping & Wholesale Price.pdf. Cheap 15W Fm Broadcast Transmitter St-15B ...

Cheap Mini Portable Cylinder Speaker Amplifier Fm Music Radio ...
Cheap Mini Portable Cylinder Speaker Amplifier Fm Mu ... Card Mp3 Player Free Shipping & Wholesale Price.pdf. Cheap Mini Portable Cylinder Speaker ...

Cheap Portable Pocket Am⁄Fm 2 Band Pocket Radio Receiver + ...
Cheap Portable Pocket Am⁄Fm 2 Band Pocket Radio Re ... #L060# New Hot Free Shipping & Wholesale Price.pdf. Cheap Portable Pocket Am⁄Fm 2 Band ...

Cheap Redamigo Tt032A Mini Fm Radio Speakers Support Sd Card ...
Cheap Redamigo Tt032A Mini Fm Radio Speakers Suppo ... io Mp3 Players Free Shipping & Wholesale Price.pdf. Cheap Redamigo Tt032A Mini Fm Radio ...

Cheap Modern Compact Digital Alarm Clock Fm Radio With Dual ...
Cheap Modern Compact Digital Alarm Clock Fm Radio W ... e Display Clock Free Shipping & Wholesale Price.pdf. Cheap Modern Compact Digital Alarm Clock ...

Cheap Indoor Fm Dipole Antenna,Copper Aerial-Hd Radio Female ...
Cheap Indoor Fm Dipole Antenna,Copper Aerial-Hd Rad ... Ohm For Stereo Free Shipping & Wholesale Price.pdf. Cheap Indoor Fm Dipole Antenna,Copper ...

Cheap T15W ⁄ 5W Fm Transmitter Broadcasting Stereo Radio With ...
Cheap T15W ⁄ 5W Fm Transmitter Broadcasting Stereo ... 8Mhz Only A Hos Free Shipping & Wholesale Price.pdf. Cheap T15W ⁄ 5W Fm Transmitter ...

Cheap Best Tecsun An-03L Radio Shortwave Antenna Fm & Sw ...
Cheap Best Tecsun An-03L Radio Shortwave Antenna ... Y4143A Fshow Free Shipping & Wholesale Price.pdf. Cheap Best Tecsun An-03L Radio Shortwave ...

Cheap Fm Dipole Indoor Antenna, Aerial For Hd Radio Bang ...
Cheap Fm Dipole Indoor Antenna, Aerial For Hd Radio ... & Others 75 Ohm Free Shipping & Wholesale Price.pdf. Cheap Fm Dipole Indoor Antenna, Aerial For ...

Cheap Redmaine Ms - 209Bt Portable High Power Output Fm Radio ...
Volume Control Free Shipping & Wholesale Price.pdf. Cheap Redmaine Ms - 209Bt Portable High Power Outpu ... Volume Control Free Shipping & Wholesale Price.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying Cheap Redmaine Ms - 209Bt Portabl

Cheap Lcd Display Internet Radio Digital Fm Radio Micro Sd⁄Tf Usb ...
Cheap Lcd Display Internet Radio Digital Fm Radio Mi ... ith Speaker T508 Free Shipping & Wholesale Price.pdf. Cheap Lcd Display Internet Radio Digital Fm ...

Cheap New Tv Stick Rtl Sdr Usb 2.0 Software Fm Radio Dvb-T ...
Cheap New Tv Stick Rtl Sdr Usb 2.0 Software Fm Radi ... k Drop Shipping Free Shipping & Wholesale Price.pdf. Cheap New Tv Stick Rtl Sdr Usb 2.0 Software ...