简体   繁体   English

在Android中记录蓝牙传输活动

[英]Log bluetooth transfer activity in android

Is it possible to check in Android when 2 connected devices (paired? bonded?) start transferring a file over Bluetooth? 当2个已连接的设备(配对或绑定吗?)开始通过蓝牙传输文件时,是否可以签入Android?

I need to find a way how to log the time it takes for the 2 devices to transfer the file, and some specifications about the device who is being connected to. 我需要找到一种方法来记录两个设备传输文件所花费的时间,以及有关所连接设备的一些规范。

Could anyone point me in the right direction... 谁能指出我正确的方向...

Thanks 谢谢

The only thing I can think of (if I understand you correctly) is the logcat output. 我唯一能想到的(如果我理解正确的话)是logcat输出。 The logcat statements include time stamps and they include a lot of information about what is happening in Bluetooth. logcat语句包含时间戳,并且包含有关蓝牙中发生的事情的很多信息。

If you aren't already setup to read logcat statements over debug you can grab one of the logcat apps and check out all the Bluetooth debug statements coming out of the system. 如果您尚未设置为通过调试读取logcat语句,则可以获取其中一个logcat应用程序,并检出系统中发出的所有Bluetooth调试语句。

Now write a program to read logcat and parse... 现在编写一个程序来读取logcat并进行解析...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM