使用技巧-提高蓝牙传输速度的一个方法_派派后花园

用户中心 游戏论坛 社区服务
发帖 回复
阅读:1390 回复:0

使用技巧-提高蓝牙传输速度的一个方法

刷新数据 楼层直达
小斯、

ZxID:135673


等级: 文学之神
永远的战神
举报 只看楼主 使用道具 楼主   发表于: 2007-10-17 0
利用蓝牙无线传输数据具有方便、稳定的特性,但速度无法与读卡器、数据线相提并论,仅仅好于红外。据我测试,用蓝牙向原卡写数据,每秒可以达到 37k。而向兼容的 mmc 卡写数据,不同的卡速度不一,但都没有原卡快!我的 kingmax 卡,用蓝牙向他上面写数据每秒只有 26k的样子。也就是说原卡和我的 kingmax 卡之间有 10k的差距,这个差距可不小啊,如何能提高蓝牙的速度,弥补这一差距呢?换卡、换蓝牙都是不现实的,又没有好的方法优化兼容的 mmc卡。难道就没有办法了吗?正在无计可施的时候,突然一个念头从眼前飞过,对!用蓝牙向手机内存写数据,只要原文件不大于手机剩余空间,这是可行的,而且理论上说速度应比向原卡写更快些啊,说干就干,我立刻选了一个 mp3文件向内存根目录写入(向根目录写,写完后手机会发出提示音,让你转存的。否则不会提示你转存。),哇!每秒能达到 41k,好棒啊,比原卡还快。等数据传输完毕,手机发出响亮的提示音,提示你转存。这时你就可以选择 mmc 卡中要存的位置了,内存向 mmc转存速度很快,几秒钟就完成了。     要注意的是: 1. 这种方法仅适合传输不太大的文件,如 4 - 5 兆的 mp3 文件。 2. 不能连续传输多个文件,以防内存溢出 3. 手机内存要有适当的剩余内存空间。
    上述方法也只是一个权宜之计,不是办法的办法,但在没有更好的方法及硬件的情况下,偶尔为之,不失为一个选择。
                                                                                                                                                                             <!--        function judgeBook(subcatid,bookid,good){            var postStr = "subcatid="+subcatid+"&bookid="+bookid+"&good="+good;            judge_http_obj = create_obj();            send_request(judge_http_obj,"http://group.zol.com.cn/check_book_judge.php",postStr);            alert('评定成功,感谢参与!');        }        var userid = readCookie("zol_userid");        if(userid.length){            document.write('<tr><td colspan=2> </td></tr>');            document.write('<tr>');            document.write('<td colspan=2 style="text-align:left;padding-left:10px;height:24px;border:1px solid #65A4CD" bgcolor="#C6DDEC">');            document.write('<table><tr>');            document.write('<td>您认为该贴内容  <a style="text-decoration:underline;" href="javascript:judgeBook(57,42009,1);"><img src="" border=0>好</a>    <a style="text-decoration:underline;" href="javascript:judgeBook(57,42009);"><img src="" border=0>坏</a></td>');            document.write('<td width="30"></td>');            document.write('<td style="vertical-align:bottom" onmouseover="show_table('boarder_0');" onmouseout="hidden_table('boarder_0');"><input type="button" value="送z币" style="padding:2px;" />(0)z币</td>');            document.write('<td width="50"></td>');            document.write('<td style="vertical-align:bottom" onmouseover="show_table('boarder_1');" onmouseout="hidden_table('boarder_1');"><a style="text-decoration:underline;">查看谁送了z币?</a></td>');            document.write('</tr>');            document.write('<tr>');            document.write('<td></td>');            document.write('<td width="30"></td>');            document.write('<td onmouseout="hidden_table('boarder_0');" onmouseover="show_table('boarder_0');">');            document.write('<div id="boarder_0" style="background-color:#EAEEF4;line-height:16px;width:103px;border:1px solid #248ECC;display:none;POSITION: absolute;" >');            document.write('<form style="margin:0px;padding:0px;" method="post" action="/tips/songfen.php" onsubmit="return song_fen_ckform(this);">');            document.write('<input type="hidden" id="song_fen_sid" name="song_fen_sid" value="57" />');            document.write('<input type="hidden" id="song_fen_mid" name="song_fen_mid" value="0" />');            document.write('<input type="hidden" id="song_fen_pid" name="song_fen_pid" value="0" />');            document.write('<input type="hidden" id="song_fen_bookid" name="song_fen_bookid" value="42009" />');            document.write('<input type="hidden" id="song_fen_uid" name="song_fen_uid" value="pig7" />');            document.write('<table width="100%">');            document.write('<tr>');            document.write('<td width="40">送z币:</td>');            document.write('<td align="left"><input type="text" id="song_fen" name="song_fen" style="width:50px;" /></td>');            document.write('</tr>');            document.write('<tr>');            document.write('<td></td>');            document.write('<td><input type="submit" width="30" value="给z币" /></td>');            document.write('</tr>');            document.write('</table>');            document.write('</form>');            document.write('</div>');            document.write('</td>');            document.write('<td width="50"></td>');            document.write('<td style="width:150px;" onmouseout="hidden_table('boarder_1');" onmouseover="show_table('boarder_1');">');            document.write('<div id="boarder_1" style="background-color:#EAEEF4;line-height:24px;width:150px;border:1px solid #248ECC;display:none;POSITION: absolute;" >');                                    document.write('<li style="list-style-type:none;border-bottom:1px solid #5F7CAA">暂无</li>');                        document.write('</div>');            document.write('</td>');            document.write('</table>');            document.write('</td>');            document.write('</tr>');        }        //-->                                              
  一百亿年很快就会过去、
发帖 回复