我有使用OBEX Object Push Profile(OPP)通過藍牙發送數據的設備。通過藍牙通過OBEX Object PushProfile接收文件
利用亞行logcat我看到我的Android設備接收的連接(而中止這方面?)
08-22 11:14:37.939: I/BtOppRfcommListener(22586): Accepted connectoin from 00:07:CF:5F:52:A0
08-22 11:14:37.939: I/BtOpp Service(22586): Start Obex Server
08-22 11:14:38.109: D/Obex ServerSession(22586): java.io.IOException: Software caused connection abort
08-22 11:14:38.109: D/PowerManagerService(180): @PowerManagement: 'BtOppObexServer' releaseWakeLock when screen locked
08-22 11:14:39.219: D/BluetoothEventLoop(180): Device property changed: 00:07:CF:5F:52:A0 property: Connected value: false
當我安裝藍牙文件傳輸(從市場的免費應用程序),那麼我就能收到文件。 但我不想安裝其他應用程序。
使用以下內容可以發佈有問題的代碼,以便Android上的SO專家可以看看問題? –
這有幫助嗎? http://stackoverflow.com/questions/3625959/android-rfcomm-with-obex-push-not-working – domsom
@domsom我已經嘗試過類似的代碼沒有成功。國際海事組織的問題似乎是,本地藍牙仍然接受傳入的OPP數據並且自定義代碼不會被觸發。因此,解決方案不僅要監聽傳入的連接,還要與本地藍牙「註冊」,以便調用自定義OPP處理程序。 –