Home > Mobile > Android to the bluetooth device to send the file data, takes a matter of time
Android to the bluetooth device to send the file data, takes a matter of time
Time:02-20
Android App to the bluetooth device to send the file data, because our bluetooth device receives the largest 200 bytes at a time, so I put the file data is divided into 200 bytes in one bag, send the subcontract, But if sending data in a row, write data failure happens, Online said that the need for interval between twice to send me a little time, so I now send a package every 500 milliseconds, but found that is too slow, Tried to reduce the time interval to 100 milliseconds, also can appear error writing data failure, Change to 200 milliseconds, but will not appear this kind of situation, But still feeling slowly, calculation, if send a 5 m file, it takes approximately 87 minutes, Because send the file data is made to the bluetooth device for the first time, so don't know if this is normal, bosses, please help me solve my confusion
CodePudding user response:
You this is a package to send and receive success to send a package?
CodePudding user response:
200 bytes, head long is understandable, the packet is 200 bytes.
CodePudding user response:
Error 200 milliseconds just discovering Now changed to 300 milliseconds, to send the files in the test of 3.45 M,,, That if 300 milliseconds can send file will need about 131 minutes in the 5 m
CodePudding user response:
Refer to https://blog.csdn.net/sinat_19628093/article/details/51890827? Utm_medium=distribute. Pc_relevant. None - task - blog - BlogCommendFromMachineLearnPai2-2. Control& Depth_1 - utm_source=distribute. Pc_relevant. None - task - blog - BlogCommendFromMachineLearnPai2-2. Control, And bluetooth transmission have speed problems, about 160 KB/s limit,